/* --- Styles Généraux --- */ body { display: none; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow: hidden; height: 100vh; background-color: #000; } .hidden { display: none !important; } /* --- Écran de Connexion --- */ #login-screen { display: flex; justify-content: center; align-items: center; height: 100%; background: url('images/wallpaper.jpg') no-repeat center center/cover; backdrop-filter: blur(20px); } .login-box { background: rgba(30, 30, 30, 0.4); padding: 30px 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); width: 350px; text-align: center; backdrop-filter: blur(10px); } #main-user-view .login-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.5); margin-bottom: 5px; } #main-user-view h2, #guest-login-view h2 { color: white; margin-top: 0; margin-bottom: 20px; font-weight: 400; } #main-user-view .password-container { position: relative; width: 100%; margin: 0 auto; } #main-user-view .password-container input { width: 100%; padding: 10px 40px 10px 10px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: white; font-size: 16px; box-sizing: border-box; } #main-user-view .password-container button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: #555; color: white; font-size: 18px; cursor: pointer; } #guest-login-view input { width: 100%; box-sizing: border-box; padding: 12px 15px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #555; background: rgba(0, 0, 0, 0.3); color: white; font-size: 16px; } #guest-login-view input::placeholder { color: #aaa; } #guest-login-view button { width: 100%; padding: 12px; font-size: 16px; font-weight: 500; border: none; border-radius: 8px; background-color: #007aff; color: white; cursor: pointer; transition: background-color 0.2s; } #guest-login-view button:hover { background-color: #0056b3; } .error-message { color: #ff8a80; margin-top: 10px; font-size: 14px; height: 16px; text-align: center; } .switch-user-link { background: none; border: none; color: rgba(255, 255, 255, 0.8); cursor: pointer; font-size: 14px; margin-top: 30px; display: inline-block; } .switch-user-link:hover { color: white; text-decoration: underline; } /* --- Bureau --- */ #desktop { height: 100vh; background: url('images/wallpaper.jpg') no-repeat center center/cover; position: relative; } /* --- Dock --- */ .dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 24px; padding: 8px; align-items: flex-end; } .dock-icon { margin: 0 8px; text-align: center; cursor: pointer; transition: transform 0.2s ease, margin-bottom 0.2s ease; } .dock-icon img { width: 64px; height: 64px; } .dock-icon span { display: none; position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); color: white; padding: 5px 10px; border-radius: 5px; font-size: 12px; white-space: nowrap; } .dock-icon:hover { transform: scale(1.4) translateY(-15px); } .dock-icon:hover span { display: block; } /* --- Fenêtres des Applications --- */ .window { position: absolute; top: 100px; left: 150px; width: 600px; height: 400px; background: #f0f0f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; resize: both; overflow: hidden; min-width: 250px; min-height: 150px; } .title-bar { background: #e8e8e8; padding: 8px; cursor: grab; user-select: none; display: flex; align-items: center; border-bottom: 1px solid #dcdcdc; } .title-bar:active { cursor: grabbing; } .buttons { display: flex; } .buttons div { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; } .close { background: #ff5f57; } .minimize { background: #ffbd2e; } .maximize { background: #28c940; } .title { color: #333; font-weight: 500; text-align: center; flex-grow: 1; margin-right: 70px; } .window .content { padding: 15px; flex-grow: 1; overflow-y: auto; background: #ffffff; } /* --- Styles Finder --- */ .finder-header { display: flex; align-items: center; padding: 5px 10px; background: #f8f8f8; border-bottom: 1px solid #ddd; } #finder-back-button { font-size: 18px; border: 1px solid #ccc; background: #fff; border-radius: 5px; margin-right: 10px; padding: 0 8px; } #finder-back-button:disabled { opacity: 0.5; cursor: not-allowed; } #finder-path { color: #555; font-size: 14px; } .file-list { list-style: none; padding: 0; margin: 0; } .file-list li { padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; user-select: none; } .file-list li:hover { background: #e0e8f0; } .file-list li.folder { cursor: pointer; font-weight: 500; } .file-list li.file, .file-list li.image, .file-list li.audio, .file-list li.video { cursor: pointer; } .file-list li::before { content: '📄'; margin-right: 10px; font-size: 1.2em; } .file-list li.folder::before { content: '📁'; } .file-list li.image::before { content: '🖼️'; } .file-list li.audio::before { content: '🎵'; } .file-list li.video::before { content: '🎞️'; } .file-list li.protected::after { content: '🔒'; margin-left: auto; font-size: 0.9em; } /* --- Styles pour la visionneuse de texte --- */ .text-viewer-content { background: #fff; font-family: Menlo, Monaco, 'Courier New', monospace; color: #333; padding: 20px !important; } .text-viewer-content pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; } /* --- Styles pour la visionneuse d'image en fenêtre --- */ .image-viewer-content { background: #333; padding: 0 !important; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; } .image-viewer-content img { max-width: 100%; max-height: 100%; object-fit: contain; } .image-viewer-content .image-controls { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 5px; border-radius: 8px; opacity: 0; transition: opacity 0.3s ease; } .image-viewer-content:hover .image-controls { opacity: 1; } .image-viewer-content .fullscreen-button { background: none; border: 1px solid #fff; color: #fff; padding: 6px 12px; border-radius: 5px; cursor: pointer; } /* --- Styles pour le Media Player --- */ .media-viewer-content { background: #000; padding: 0 !important; display: flex; align-items: center; justify-content: center; height: 100%; } .media-viewer-content video { max-width: 100%; max-height: 100%; } /* --- Styles pour le Navigateur Safari --- */ .browser-header { display: flex; padding: 8px; background: #e8e8e8; align-items: center; border-bottom: 1px solid #dcdcdc; } .browser-url { flex-grow: 1; border-radius: 5px; border: 1px solid #ccc; padding: 5px 8px; font-family: monospace; } .browser-content { padding: 0 !important; height: 100%; overflow: hidden; } .browser-content iframe { width: 100%; height: 100%; border: none; background: white; } /* --- Styles des autres apps --- */ .photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; } .photo-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; cursor: pointer; transition: transform 0.2s ease; } .photo-gallery img:hover { transform: scale(1.05); } .calculator-body { display: flex; flex-direction: column; background: #333; padding: 0; height: 100%; } .calc-display { background: #333; color: white; font-size: 48px; text-align: right; padding: 20px; box-sizing: border-box; flex-grow: 1; display: flex; justify-content: flex-end; align-items: flex-end; } .calc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; height: 75%; } .calc-btn { background: #666; color: white; border: none; font-size: 24px; padding: 20px 0; cursor: pointer; transition: background-color 0.2s; } .calc-btn:hover { background: #777; } .calc-btn:active { background: #888; } .calc-btn.function { background: #555; } .calc-btn.operator { background: #f39c12; } .calc-btn.zero { grid-column: span 2; } /* --- Visionneuse Lightbox --- */ #lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 1000; } #lightbox-image { max-width: 90%; max-height: 80%; border: 3px solid white; border-radius: 5px; } #close-lightbox { position: absolute; top: 20px; right: 40px; font-size: 40px; color: white; cursor: pointer; } /* --- Styles pour la fenêtre de mot de passe --- */ #password-prompt-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; } #password-prompt-modal .modal-content { background: #f0f0f0; padding: 25px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); text-align: center; width: 320px; border: 1px solid rgba(0,0,0,0.1); } #password-prompt-modal h3 { margin-top: 0; font-weight: 500; } #password-prompt-modal p#password-prompt-error { color: #d32f2f; margin-bottom: 10px; margin-top: -5px; } #password-prompt-modal #password-prompt-input { width: 90%; padding: 8px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 0; text-align: center; font-size: 16px; } #password-prompt-modal .modal-buttons { margin-top: 20px; display: flex; justify-content: flex-end; } #password-prompt-modal button { padding: 8px 16px; border-radius: 5px; border: 1px solid #adadad; cursor: pointer; margin-left: 10px; } #password-prompt-modal #password-prompt-submit { background-color: #007aff; color: white; border-color: #007aff; font-weight: 500; }