:root { 
    --bg: #030303; --primary: #ffb800; --text: #f5f5f5; 
    --border: rgba(255, 255, 255, 0.08); --window-bg: rgba(20, 20, 20, 0.6);
}

::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
}

/* Masquer pour Internet Explorer et Edge */


/* --- CALQUE ORGANIQUE GLOBAL --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Un grain très subtil pour simuler une pellicule photo/vidéo */
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}



@keyframes backgroundPulse {
    0% { background-color: #030303; }
    100% { background-color: #080808; }
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* Texture & Animation */
    background-image: radial-gradient(circle, rgba(255, 184, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: backgroundPulse 15s infinite alternate ease-in-out;
}

/* --- HEADER / MENU BAR --- */
.os-menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px; /* Barre fine style macOS */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000; /* Toujours au-dessus du reste */
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-accent {
    color: var(--primary);
    /* Petit effet de lueur sur le point de statut */
    text-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
}

#os-clock {
    color: var(--text);
}

/* Ajustement pour le contenu principal */
.dashboard-container {
    padding-top: 40px; /* Évite que le haut du dashboard soit caché sous le menu */
}


/* --- FOOTER EXPEDITION CRM --- */
.os-footer {
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-middle {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
}

.geo-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
}

.social-link .ext {
    color: var(--primary);
    font-weight: 800;
}

/* L'effet de battement de cœur du système */
.pulse {
    animation: heartbeat 2s infinite;
    color: #00ff41; /* Vert terminal pour le statut nominal */
}

@keyframes heartbeat {
    0% { opacity: 0.4; }
    50% { opacity: 1; text-shadow: 0 0 10px #00ff41; }
    100% { opacity: 0.4; }
}

.system-diagnostic {
    display: flex;
    gap: 20px;
    font-family: 'JetBrains Mono';
    font-size: 8px;
    opacity: 0.4;
    text-transform: uppercase;
}

.diag-item::before {
    content: "> ";
}

/* Conteneur aligné avec la grille du dashboard */
.os-footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.status-line, .system-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav, .social-logs {
    display: flex;
    gap: 25px;
}

.nav-link, .social-logs a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.5;
    transition: 0.3s;
}

.nav-link:hover, .social-logs a:hover {
    opacity: 1;
    color: var(--primary);
}

.system-status {
    opacity: 0.3;
}




/* --- STYLES DU LOGO DANS LE HEADER --- */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px; /* Espace entre le logo et le texte */
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.7; /* Petit effet au survol */
}

.header-logo {
    height: 18px;
    width: auto;
    /* ACTIVE CETTE LIGNE CI-DESSOUS */
    filter: brightness(0) invert(1); 
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

/* Correction responsive pour mobile */
@media (max-width: 480px) {
    .logo-text {
        display: none; /* On ne garde que le logo sur les très petits écrans pour gagner de la place */
    }
}


/* --- MISSION CONTROL : TUILES CARRÉES --- */
.mission-launcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tile-square {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force le carré parfait */
    border-radius: 18px; /* Angles arrondis style App */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: 0.3s;
    overflow: hidden;
}

/* Effet de brillance au survol */
.tile-container:hover { transform: translateY(-8px); }
.tile-container:hover .tile-square { 
    border-color: rgba(255, 255, 255, 0.4); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* --- MISSION CONTROL : FLAT PALETTE --- */
.tile-square.yellow { background: #f4c042; }
.tile-square.blue   { background: #3d5afe; }
.tile-square.red    { background: #e53935; }
.tile-square.green  { background: #2d5a54; }
.tile-square.cyan   { background: #56b9e2; }
.tile-square.dark   { background: #1a1a2e; }

.tile-label {
    animation: pulse-status 2s infinite ease-in-out;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tile-icon { 
    width: 45%; 
    height: auto; 
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

.tile-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tile-icon {
    width: 40px; /* Taille fixe pour l'équilibre visuel */
    height: 40px;
    transition: transform 0.3s ease;
}

.tile-container:hover .tile-icon {
    transform: scale(1.15) rotate(-5deg); /* Petit effet dynamique au survol */
}

.tile-icon {
    position: relative;
    z-index: 1;
}

/* --- UI : WINDOWS & TERMINALS --- */
.window {
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.traffic-lights { display: flex; gap: 8px; margin-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.dot.amber { background: var(--primary); box-shadow: 0 0 8px var(--primary); }

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.window-content { padding: 30px; }

/* --- FORMULAIRE TACTIQUE --- */
.field-group { 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Centre le label et l'input */
    gap: 8px; 
}

.input-os {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    transition: 0.3s;
    
    /* 📌 Bloque l'étirement du champ de texte */
    resize: none; 
}

.input-os:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 184, 0, 0.05);
}

.btn-os {
    background: var(--primary); /* Retour au jaune pour guider l'utilisateur */
    color: #000;
    border: none;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
    display: inline-flex; /* Utilise inline-flex pour centrer le texte dedans */
    align-items: center;
    justify-content: center;
}

.btn-os:hover {
    background: #fff;
    transform: scale(1.02);
}

/* --- OPTIMISATION MOBILE ORGANIQUE --- */
@media (max-width: 768px) {
   

    .tile-container {
        width: 100%;
    }

    /* Effet de pression quand on touche la carte */
    .tile-container:active {
        transform: scale(0.96);
        transition: transform 0.1s ease-out;
    }
}

@media (max-width: 480px) {
    /* --- LE HEADER "ISLAND" --- */
    .os-menu-bar {
        top: 12px;
        width: auto; /* Largeur dynamique selon le contenu */
        min-width: 140px;
        left: 50%;
        transform: translateX(-50%); /* Centrage parfait à l'écran */
        height: 42px;
        padding: 0 20px;
        
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        
        justify-content: center; /* Centre le logo dans la pilule */
        gap: 15px;
    }

    .logo-text, #os-clock { display: none; } /* On épure au maximum */

    .header-logo {
        height: 18px;
        filter: brightness(0) invert(1);
    }

    /* Petit point de statut organique à droite du logo */
    .menu-right {
        display: flex !important;
        position: relative;
    }

    .menu-right::after {
        content: "";
        width: 6px;
        height: 6px;
        background: #00ff41;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
        animation: pulse-status 2s infinite;
    }

    /* --- LE DASHBOARD 2x2 --- */
    .mission-launcher {
        grid-template-columns: repeat(2, 1fr) !important; /* Force le carré de 4 */
        gap: 15px;
        padding: 0px 20px 40px; /* Plus d'espace en haut pour laisser respirer l'Island */
    }

    .tile-square {
        border-radius: 20px; /* Plus doux au toucher */
    }
}

.window {
    animation: floatWindow 6s infinite ease-in-out;
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Boutons organiques */
.btn-os {
    border-radius: 50px; /* Forme pilule plus douce */
    overflow: hidden;
    position: relative;
}

.btn-os::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-os:hover::after {
    left: 100%;
}

.skill-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}