/* ===== 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 (#5f9ce0) vers Bleu Nuit très foncé (#18223c) */
    background: #18223c; /* Fallback pour très vieux navigateurs */
    background: linear-gradient(180deg, #5f9ce0 0%, #18223c 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;
    
    /* Conversion fidèlement calculée depuis oklch(0.74 0.16 226) et oklch(0.19 0.02 260 / 0.986) */
    background: #151d30; /* Fallback background */
    background: radial-gradient(circle at center, #00c3ff 0%, rgba(21, 29, 48, 0.986) 120%);
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem;
    
    /* 🔥 Border ultra fine + glow */
    border: 1px solid rgba(255, 255, 255, 0.955);
    
    /* 🔥 Halo bleu clair externe + interne */
    box-shadow: 
        0 0 60px rgba(1, 198, 253, 0.493),
        0 0 120px rgb(240, 117, 10),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
        
    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: 180px;
    height: 180px;
    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.6rem;
    letter-spacing: -4.0px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.723);  /* 👈 Flou de 8px */
}

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

.brand .highlight {
    font-weight: 900;
    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.4rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.644);
    /* 🌟 C'est ici : On passe à 90% de blanc pur pour que le slogan ressorte parfaitement */
    color: rgba(255, 255, 255, 0.897); 
    
    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;
    
    background: rgba(35, 45, 59, 0.771);
    border-radius: 1.2rem;
    border: none;
    
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    
    text-decoration: none;
    color: #f0f4ff;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lang-card:hover {
    background: rgba(1, 22, 32, 0.842);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(102, 197, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.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: 102px;
        height: 102px;
    }
    .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: 2.2rem;
    }
    .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;
}
