/* Réinitialisation de base (Inchangé) */
body { 
    margin: 0; padding: 0; overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Définition de la div principale (Inchangé) */
#main-container { width: 100%; height: 100svh; position: relative; overflow: hidden; }

/* Pseudo-élément pour le fond flou (Inchangé) */
#main-container::before {
    content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
    background-image: url('../images/bg.webp'); background-size: cover; background-position: center; 
    background-repeat: no-repeat; z-index: -1;
}

/* NOUVEAU : Pseudo-élément pour l'effet CRT (Lignes de balayage et filtre) */
#main-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Crée les scanlines (lignes de balayage) du CRT */
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.2) 1px,
        rgba(0, 0, 0, 0.2) 2px
    );
    
    background-size: 100% 100%; 
    opacity: 1; /* L'effet est plus visible */
    
    /* Animation de légère déformation/vibration (CRT) */
    animation: crt-vignette 0.2s infinite alternate; 
               
    z-index: 2; /* Placés au-dessus du logo pour être visibles */
    pointer-events: none; /* Pour que le contenu derrière reste cliquable */
}

/* DÉFINITION DE L'ANIMATION KEYFRAMES POUR LA VIBRATION CRT */
@keyframes crt-vignette {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(0.5px, 0.5px); opacity: 0.98; }
    100% { transform: translate(-0.5px, -0.5px); opacity: 1; }
}

/* Les anciennes animations (starryNight, starPulse, shootingStars) sont supprimées */


/* RÈGLE #content-wrapper : Gère l'alignement vertical, le FOND, et le FILTRE (Inchangé) */
#content-wrapper {
    width: 100%; height: 100svh; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    background-image: url('../images/gold-mobile.webp'); 
    background-repeat: no-repeat; 
    background-position: center bottom; 
    
    /* MODIFICATION : Ajout d'un filtre pour simuler la courbure de l'écran CRT */
    filter: url(#wavy);
    
    backdrop-filter: blur(1px); /* Optionnel, si vous voulez conserver un peu de flou */
    background-size: cover; 
    box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.9); 
    z-index: 1; 
}
 
@media (min-width: 768px) {
    #content-wrapper { background-image: url('../images/gold-desktop.webp'); }
}

/* STYLES DES SECTIONS PRINCIPALES (Inchangé) */
.top-section { 
    width: 100%; 
    height: 50px; 
    padding: 0 10px; 
    box-sizing: border-box; 
    background-color: rgba(0,0,0,.5); 
}

/* SECTION DU BAS (Pied de page) (Inchangé) */
.bottom-section {
    width: 100%;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0);
    color: #ccc;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.9em;
    align-items: center;
    display: contents;
}

#footer-content { width: 100%; max-width: 1200px; margin: 0 auto; text-align: center; }

/* Styles pour le lien de l'auteur (Inchangé) */
#footer-content a {
    color: #ffcc00; text-decoration: none; transition: color 0.2s, text-decoration 0.2s;
}
#footer-content a:hover {
    color: #fff; text-decoration: underline;
}
 
/* LOGO DU PIED DE PAGE (ANIMATION PULSE) (Inchangé) */
#footer-logo {
    width: 300px; height: auto; display: block; margin-left: auto; margin-right: auto;
    cursor: pointer; animation: footerLogoPulse 3s infinite alternate ease-in-out;
    transition: transform 0.2s ease-in-out; 
}
@media (min-width: 768px) {
    #footer-logo { width: 500px; }
}
#footer-logo:hover { transform: scale(1.05); }

/* DÉFINITION DE L'ANIMATION KEYFRAMES POUR LE "PULSE" (Inchangé) */
@keyframes footerLogoPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* Styles du bloc de minuterie (Inchangé) */
#redirection-timer {
    margin-top: 15px; 
    color: #ffcc00; 
    font-size: 0.8em; 
    font-weight: 700;
    margin-bottom : 10px;
}

/* Styles du bouton Pause/Reprendre (Inchangé) */
#pause-button {
    background: transparent; color: #ffcc00; border: 1px solid #ffcc00;
    padding: 3px 6px; 
    margin-left: 8px; 
    cursor: pointer; border-radius: 3px;
    transition: background-color 0.2s; font-family: 'Plus Jakarta Sans', sans-serif; 
    font-size: 0.8em; 
    font-weight: 700;
}
#pause-button:hover { background-color: rgba(255, 204, 0, 0.1); }

/* Styles de l'en-tête (inchangés) */
#header-flex-container { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; }
.left-compartment, .right-compartment { color: white; font-size: 1.2em; }
.left-compartment img { height: 35px; width: 35px; vertical-align: middle; }
#contact-button {
    display: inline-block; padding: 7px 15px; font-size: 0.7em; text-transform: none; 
    background-color: #e50914; color: white; text-decoration: none; font-weight: 700; 
    border-radius: 3px; transition: background-color 0.3s; border: none; cursor: pointer; box-shadow: none; 
}
#contact-button:hover { background-color: #f40612; }