/* Bureau virtuel styles - Aurélien Husson */

/* ===== LOADING SCREEN STYLES ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-container {
    text-align: center;
    color: #e2e8f0;
    max-width: 500px;
    width: 90%;
}

.os-logo {
    margin-bottom: 60px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.os-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    letter-spacing: 2px;
}

.os-version {
    font-size: 1rem;
    color: #94a3b8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.loading-progress {
    margin-bottom: 40px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 500;
}

.loading-percentage {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.loading-status {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 30px;
    min-height: 20px;
}

.boot-info {
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding-top: 20px;
}

.system-info {
    font-size: 0.8rem;
    color: #64748b;
}

/* Animations */
@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)); 
    }
    100% { 
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8)); 
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-status {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== FIN LOADING SCREEN STYLES ===== */

/* Accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 6px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    padding-bottom: 48px;
    margin: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Icônes du bureau */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.desktop-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.desktop-icon .icon {
    font-size: 32px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.desktop-icon span {
    font-size: 12px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Barre des tâches */
.taskbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 48px !important;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center;
    padding: 0 10px;
    z-index: 1000 !important;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 !important;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.taskbar-right {
    display: flex;
    align-items: center;
}

.start-button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.start-button:hover {
    background: rgba(255,255,255,0.2);
}

.taskbar-apps {
    display: flex;
    gap: 5px;
}

.taskbar-app {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-app:hover {
    background: rgba(255,255,255,0.2);
}

.taskbar-app.minimized {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.tray-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.clock {
    text-align: center;
    min-width: 80px;
    font-size: 12px;
    background: #000000 !important;
    border-radius: 4px;
    padding: 6px 8px;
    margin: 0 4px;
    border: none;
}

.time {
    font-weight: bold;
    font-size: 14px;
    color: white;
    line-height: 1.2;
}

.date {
    font-size: 10px;
    color: white;
    line-height: 1.1;
}

/* Menu Démarrer */
.start-menu {
    position: fixed;
    bottom: 60px;
    left: 10px;
    width: 250px;
    background: rgba(0,0,0,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    display: none;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.start-menu.active {
    display: block;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s ease;
    user-select: none;
    min-height: 44px;
    white-space: nowrap;
}

.start-menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.start-menu-item span {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Fenêtres */
.window {
    position: absolute;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    top: 50px;
    left: 50px;
}

.window.active {
    display: block;
}

.window-header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.window-control.minimize {
    background: #ffbd2e;
    color: #8a6914;
}

.window-control.close {
    background: #ff5f56;
    color: #8b2635;
}

.window-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Contenu des sections - SIMPLE ET DIRECT */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.content-section h3 {
    color: #4a90e2;
    margin: 15px 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.content-section p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.content-section ul {
    color: #666;
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 5px;
}

/* Profile section */
.profile-container {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #4a90e2;
}

.profile-text {
    flex: 1;
}

/* Service steps */
.service-steps {
    margin: 20px 0;
}

.service-step {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #4a90e2;
}

.step-number {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.featured-service {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Skills */
.skill-category {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.skill-item {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

/* Files */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.file-item:hover {
    background: #f5f5f5;
    border-color: #4a90e2;
}

.file-icon {
    font-size: 24px;
}

/* Mail Window Styles */
.mail-content {
    text-align: center;
    padding: 20px;
}

.mail-content h2 {
    margin-bottom: 15px;
    color: #1976d2;
}

.mail-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.mail-info {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.mail-field {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.mail-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mail-field strong {
    color: #333;
    margin-right: 10px;
}

.mail-actions {
    margin-top: 25px;
}

.mail-button {
    background: linear-gradient(145deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.mail-button:hover {
    background: linear-gradient(145deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.mail-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.mail-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Phone/WhatsApp Window Styles */
.phone-content {
    text-align: center;
    padding: 20px;
}

.phone-content h2 {
    margin-bottom: 15px;
    color: #25d366;
}

.phone-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.phone-info {
    background: #f0f9f0;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #25d366;
}

.phone-field {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8f5e8;
}

.phone-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.phone-field strong {
    color: #333;
    margin-right: 10px;
}

.phone-actions {
    margin-top: 25px;
}

.phone-button {
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.phone-button:hover {
    background: linear-gradient(145deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.phone-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.phone-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Matrix Window Styles */
.matrix-content {
    text-align: center;
    padding: 20px;
}

.matrix-content h2 {
    margin-bottom: 15px;
    color: #6264a7;
}

.matrix-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.matrix-info {
    background: #f3f2f1;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #6264a7;
}

.matrix-field {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e1dfdd;
}

.matrix-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.matrix-field strong {
    color: #333;
    margin-right: 10px;
}

.matrix-actions {
    margin-top: 25px;
}

.matrix-button {
    background: linear-gradient(145deg, #6264a7, #464775);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(98, 100, 167, 0.3);
}

.matrix-button:hover {
    background: linear-gradient(145deg, #464775, #33344a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 100, 167, 0.4);
}

.matrix-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(98, 100, 167, 0.3);
}

.matrix-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* CV Window Styles */
.cv-content {
    text-align: center;
    padding: 20px;
}

.cv-content h2 {
    margin-bottom: 15px;
    color: #d32f2f;
}

.cv-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.cv-info {
    background: #f3f2f1;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #d32f2f;
}

.cv-field {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e1dfdd;
}

.cv-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cv-field strong {
    color: #333;
    margin-right: 10px;
}

.cv-actions {
    margin-top: 25px;
}

.cv-button {
    background: linear-gradient(145deg, #d32f2f, #c62828);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    margin: 0 8px 10px 0;
}

.cv-button:hover {
    background: linear-gradient(145deg, #c62828, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.cv-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.cv-button.secondary {
    background: linear-gradient(145deg, #757575, #616161);
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.3);
}

.cv-button.secondary:hover {
    background: linear-gradient(145deg, #616161, #424242);
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.4);
}

.cv-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Fix pour l'affichage des caractères Unicode */
* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Assurer un affichage correct des emojis et symboles */
.icon, .tray-item, .start-button span {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: inherit;
}

/* ===== RESPONSIVE DESIGN IMPROVEMENTS ===== */

/* Règles générales pour éviter les débordements sur mobile */
@media (max-width: 768px) {
    /* S'assurer que le bureau ne déborde pas */
    .desktop {
        padding-bottom: 60px; /* Plus d'espace pour la taskbar */
        overflow-x: hidden;
    }
    
    /* Positionner les icônes pour éviter les débordements */
    .desktop-icons {
        top: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100vw - 30px);
    }
}

/* Mobile et petites tablettes (768px et moins) */
@media (max-width: 768px) {
    /* Loading screen responsive */
    .loading-container {
        width: 95%;
        padding: 0 10px;
    }
    
    .os-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    /* Taskbar responsive */
    .taskbar {
        padding: 8px;
        height: 56px;
    }
    
    .start-button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .taskbar-app {
        padding: 4px 8px;
        font-size: 11px;
        max-width: 100px;
    }
    
    .tray-item {
        font-size: 14px;
        padding: 3px;
    }
    
    .clock {
        min-width: 70px;
        font-size: 11px;
        padding: 4px 6px;
        margin: 0 2px;
    }
    
    .time {
        font-size: 12px;
    }
    
    .date {
        font-size: 9px;
    }
    
    /* Menu démarrer responsive */
    .start-menu {
        width: calc(100vw - 20px);
        max-width: 280px;
        bottom: 64px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 140px);
    }
    
    .start-menu-item {
        padding: 12px 8px;
        gap: 10px;
    }
    
    /* Fenêtres responsive */
    .window {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 80px) !important;
        min-width: 280px !important;
    }
    
    .window-header {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .window-control {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .window-content {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Icônes bureau responsive */
    .desktop-icons {
        top: 15px;
        left: 15px;
        gap: 15px;
    }
    
    .desktop-icon {
        width: 70px !important;
        height: auto !important;
        padding: 8px 4px !important;
        font-size: 10px !important;
        min-height: 75px;
    }
    
    .desktop-icon .icon {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }
    
    .desktop-icon span {
        font-size: 10px !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        text-align: center !important;
        max-width: 100% !important;
    }
}

/* Très petits mobiles (480px et moins) */
@media (max-width: 480px) {
    .os-title {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .taskbar {
        padding: 6px;
        height: 52px;
    }
    
    .start-button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .taskbar-apps {
        gap: 3px;
    }
    
    .taskbar-app {
        padding: 3px 6px;
        font-size: 10px;
        max-width: 80px;
    }
    
    .system-tray {
        gap: 10px;
    }
    
    .clock {
        min-width: 60px;
        font-size: 10px;
        padding: 3px 5px;
        margin: 0 1px;
    }
    
    .time {
        font-size: 11px;
    }
    
    .date {
        font-size: 8px;
    }
    
    .window {
        min-width: 260px !important;
        max-width: calc(100vw - 10px) !important;
    }
    
    .window-content {
        padding: 10px;
        font-size: 13px;
    }
    
    .welcome-window {
        min-width: 260px !important;
        max-width: calc(100vw - 10px) !important;
    }
    
    /* Icônes bureau pour très petits écrans */
    .desktop-icons {
        top: 10px;
        left: 10px;
        gap: 12px;
    }
    
    .desktop-icon {
        width: 60px !important;
        height: auto !important;
        padding: 6px 2px !important;
        font-size: 9px !important;
        min-height: 70px;
    }
    
    .desktop-icon .icon {
        font-size: 24px !important;
        margin-bottom: 3px !important;
    }
    
    .desktop-icon span {
        font-size: 9px !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
        text-align: center !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}

/* Petites tablettes et mobiles en mode paysage (481px à 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .window {
        min-width: 320px !important;
        max-width: calc(100vw - 30px) !important;
    }
    
    .welcome-window {
        min-width: 320px !important;
        max-width: calc(100vw - 30px) !important;
    }
    
    .taskbar {
        height: 54px;
    }
    
    .start-menu {
        width: calc(100vw - 30px);
        max-width: 350px;
    }
}

/* Tablettes en mode paysage et desktop moyens */
@media (min-width: 769px) and (max-width: 1024px) {
    .start-menu {
        width: 300px;
    }
    
    .window {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 100px);
        min-width: 450px;
    }
    
    .welcome-window {
        min-width: 450px;
        max-width: 600px;
    }
    
    .taskbar {
        padding: 8px 12px;
    }
    
    .desktop-icon {
        width: 70px;
        height: 80px;
    }
}

/* Desktop large (1025px et plus) */
@media (min-width: 1025px) {
    .welcome-window {
        min-width: 500px;
        max-width: 700px;
    }
    
    .window {
        min-width: 400px;
        max-width: 90vw;
    }
    
    .start-menu {
        width: 280px;
    }
}

/* Amélioration du touch sur mobile */
@media (hover: none) and (pointer: coarse) {
    .start-button,
    .taskbar-app,
    .window-control,
    .start-menu-item {
        min-height: 44px; /* Taille minimale recommandée pour le touch */
    }
    
    .desktop-icon {
        min-height: 64px;
        min-width: 64px;
    }
}

/* ===== FIN RESPONSIVE DESIGN IMPROVEMENTS ===== */

/* ===== WELCOME WINDOW STYLES ===== */
.welcome-window {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    min-width: 500px;
    max-width: 700px;
    width: 90%;
}

.welcome-content {
    padding: 24px;
    text-align: center;
    color: #1e293b;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.welcome-header {
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 20px;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.welcome-message {
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.6;
}

.welcome-message h3 {
    color: #3b82f6;
    margin-bottom: 12px;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.welcome-message h3:first-child {
    margin-top: 0;
}

.welcome-message p {
    margin-bottom: 16px;
    color: #475569;
    line-height: 1.6;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.welcome-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #64748b;
    line-height: 1.5;
    word-spacing: normal;
    white-space: normal;
}

.welcome-features li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.welcome-features li strong {
    font-weight: 600;
    color: #3b82f6;
    margin: 0 2px;
}

.welcome-close-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.welcome-close-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.welcome-close-btn:active {
    transform: translateY(0);
}

/* Ajustements pour le responsive - SOLUTION SIMPLE MOBILE */
@media (max-width: 768px) {
    .welcome-window {
        position: fixed !important;
        top: 5px !important;
        left: 5px !important;
        right: 5px !important;
        bottom: 65px !important;
        min-width: auto !important;
        max-width: none !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .welcome-content {
        padding: 12px;
        height: 100%;
        overflow-y: auto;
        font-size: 14px;
        box-sizing: border-box;
        display: block;
    }
    
    .welcome-close-btn {
        position: sticky;
        bottom: 0;
        margin: 10px 0 0 0;
        padding: 12px;
        width: 100%;
        font-size: 0.9rem;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        border-radius: 6px;
        box-sizing: border-box;
    }
    
    .welcome-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .welcome-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .welcome-message h3 {
        font-size: 1rem;
        margin-top: 16px;
        margin-bottom: 8px;
    }
    
    .welcome-message p {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .welcome-features {
        margin: 12px 0;
    }
    
    .welcome-features li {
        padding-left: 20px;
        margin-bottom: 8px;
        line-height: 1.4;
        font-size: 13px;
    }
    
    .welcome-features li::before {
        top: 1px;
        font-size: 0.8rem;
        left: 0;
    }
}

/* FORCE L'HORLOGE EN NOIR PUR - RÈGLE ULTRA-SPÉCIFIQUE */
.taskbar .taskbar-right .system-tray .tray-item.clock,
.taskbar-right .system-tray .tray-item.clock,
.system-tray .clock,
.tray-item.clock,
.clock {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

.taskbar .taskbar-right .system-tray .tray-item.clock .time,
.taskbar-right .system-tray .tray-item.clock .time,
.system-tray .clock .time,
.tray-item.clock .time,
.clock .time {
    color: #ffffff !important;
    background: transparent !important;
}

.taskbar .taskbar-right .system-tray .tray-item.clock .date,
.taskbar-right .system-tray .tray-item.clock .date,
.system-tray .clock .date,
.tray-item.clock .date,
.clock .date {
    color: #ffffff !important;
    background: transparent !important;
}