@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* On garde le transparent pour voir l'image du ::before */
    background-color: transparent !important;
    background-image: none !important;
}

/* L'IMAGE DE FOND (FLOUTÉE) */
body::before {
    content: "";
    position: fixed;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -100;
    background: url('https://images.pexels.com/photos/209251/pexels-photo-209251.jpeg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(12px);
    -webkit-filter: blur(12px);
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.4); }

/* GLASSMOSPHERE */
.glass-panel {
    background: rgba(255, 255, 255, 0.85); /* Augmentation de l'opacité pour la lecture */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.9); /* Plus sombre et opaque pour le contraste */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Amélioration contraste texte sur flou */
.glass-panel p, .glass-panel h2, .glass-panel h1, .glass-panel span {
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.5);
}


/* --- CONFIGURATION INTRO --- */
/* L'overlay est FIXE pour ne pas pousser le header */
#intro-overlay {
    position: fixed !important; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    /* Pas de fond blanc ici, sinon on ne voit pas l'image du body::before */
    background: transparent; 
}

/* Si le body a la classe show-intro, on force l'affichage en flex */
body.show-intro #intro-overlay {
    display: flex !important;
}

/* Si le body a show-intro, on cache le contenu principal pour la performance */
body.show-intro #main-content {
    display: none !important;
}

#intro-overlay .intro-box {
    max-width: 520px !important;
    width: 90% !important;
    padding: 20px !important;
    border-radius: 16px !important;
}

/* ANIMATION CONFETTI */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* NAVIGATION */
.nav-link { position: relative; font-weight: 500; }
.nav-link::after {
    content: ''; position: absolute; width: 100%; transform: scaleX(0);
    height: 2px; bottom: -2px; left: 0; background-color: #2563eb;
    transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.rotate-180 { transform: rotate(180deg); }