/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    /* Nouveau dégradé : Bleu plus clair en haut vers Bleu Nuit très foncé en bas (pas noir) */
    background: linear-gradient(180deg, oklch(0.72 0.19 58) 0%, oklch(0.22 0.06 50) 100%);
    background-attachment: fixed;
    color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    line-height: 1.6;
}

.container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    
    /* 🎨 LE GRADIENT RADIAL POUR LE VOLUME : 
       Centre plus clair (#3a4454) qui s'assombrit vers les bords (#1a202c) 
       Le tout en semi-transparence pour garder l'effet de transparence moderne */
    background: radial-gradient(circle at center, oklch(0.74 0.16 226) 0%, oklch(0.19 0.02 260 / 0.986) 120%);
    
    /* Amplification du flou d'arrière-plan pour accentuer la texture */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem;
    
    /* Bordure grise/blanche fine qui attrape la lumière sur les bords */
    border: 2px solid rgb(255, 255, 255);
    
    /* Le halo bleu clair que tu as validé, ajusté pour coller au volume gris */
    box-shadow: 0 0 50px rgba(102, 197, 234, 0.25), 
                inset 0 0 20px rgba(255, 255, 255, 0.05); /* Ombre interne discrète pour le relief */
                
    transition: all 0.3s ease;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
    letter-spacing: -2.0px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.644);  /* 👈 Flou de 8px */
}

.brand .highlight {
    font-weight: 900;
    color: #ffffff;
}

.brand .highlight {
    font-weight: 600;
    color: #ffffff;
    
    /* 🛠️ ICI : On force la suppression du dégradé d'origine */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    
    /* 🌟 C'est ici : On passe à 90% de blanc pur pour que le slogan ressorte parfaitement */
    color: rgb(255, 255, 255); 
    
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation subtile sous le titre */
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}
/* ===== LANG GRID ===== */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.2rem 0.5rem;
    /* Gris plus foncé pour ressortir sur le conteneur */
    background: rgba(10, 46, 83, 0.726);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 2px 2px 0px rgb(0, 171, 171);
    text-decoration: none;
    color: #f0f4ff;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lang-card:hover {
    /* Au survol, elle s'éclaircit légèrement avec un reflet blanc discret (plus de violet) */
    background: rgb(0, 6, 27);
    border-color: rgba(255, 255, 255, 0.61);
    transform: translateY(-3px);
    /* Ombre de survol très légère */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.534);
}


.lang-card:active {
    transform: scale(0.96);
}

.flag {
    font-size: 2rem;
    line-height: 1;
}

.lang-name {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.lang-code {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.774);
}


/* ===== FOOTER ===== */
.footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation un peu plus visible */
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75); /* Passé de 0.4 à 0.75 pour être bien lisible */
    font-weight: 400;
    letter-spacing: 0.3px;
}

.schedule {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8); /* Passé de 0.5 à 0.8 pour ressortir proprement */
    margin-top: 0.3rem;
    font-weight: 300;
}

.copyright {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4); /* Passé de 0.2 à 0.4 pour rester discret mais lisible */
    margin-top: 0.6rem;
    letter-spacing: 0.5px;
}

/* ===== UTILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    body {
        padding: 0.75rem;
    }
    .container {
        padding: 1.5rem 1rem 1rem;
        border-radius: 1.5rem;
    }
    .logo {
        width: 56px;
        height: 56px;
    }
    .brand {
        font-size: 2.2rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    .lang-card {
        padding: 0.9rem 0.3rem;
        border-radius: 1rem;
    }
    .flag {
        font-size: 1.6rem;
    }
    .lang-name {
        font-size: 0.7rem;
    }
    .lang-code {
        font-size: 0.55rem;
    }
}

/* ===== LEGAL LINKS ===== */
.legal-links {
    margin-top: 0.4rem;  /* Petit espace avec le disclaimer */
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;     /* Pour passer à la ligne sur petit écran */
}

.legal-link {
    color: rgba(255, 255, 255, 0.7); /* Légèrement plus clair pour être lisible */
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.legal-link:hover {
    color: #ffffff;      /* Devient blanc au survol */
    text-shadow: 0 0 10px rgba(102, 197, 234, 0.5); /* Petit effet "Buzz" */
    text-decoration: underline;
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3); /* Gris discret pour le séparateur */
}

@media (max-width: 420px) {
    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .brand {
        font-size: 1.3rem;
    }
    .logo {
        width: 72px;
        height: 72px;
    }
}

@media (min-width: 768px) {
    .lang-card:hover .flag {
        transform: scale(1.1);
    }
}

/* ===== SCROLLBAR (optionnel) ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: #002A50;
    border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}
