/* ==========================================
   1. STYLES DE BASE (Desktop / Ordinateur)
   ========================================== */
header {
    background-color: #fff;
    padding: 0;
    text-align: center;
}

/* --- Bannière principale --- */

/* --- Bannière principale --- */
/* --- Bannière principale --- */
.banner {
    position: relative;
    width: 80%;
    margin: 0 auto;
    height: 220px;
    border-radius: 12px;    /* Conserve l'arrondi */
    /* REMPLACÉ : overflow: hidden; retiré pour éviter de couper le menu déroulant */
    background-image: url('/assets/images/banner.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}
/* --- Titre positionné dans la bannière --- */
.banner h1 {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 2;
    font-size: 3rem;
    margin: 0;
    font-family: "Helvetica", Arial, sans-serif;
    font-weight: 700;
}

.banner h1 a,
.banner h1 a:visited {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.banner h1 a:hover {
    color: #8B0000;
}

/* --- Menu superposé en haut à droite --- */
.top-nav {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 10;
    background: transparent;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-links li a:hover {
    color: #8B0000;
}

/* --- Cache le bouton burger et le checkbox sur Ordinateur --- */
.menu-checkbox,
.menu-burger {
    display: none !important;
}

 
/* ==========================================
   2. ADAPTATION MOBILE (Écrans < 768px uniquement)
   ========================================== */
 @media screen and (max-width: 768px) {
    
    .banner {
        height: 220px;
    }

    .banner h1 {
        font-size: 1.5rem;
        top: 60%;
    }

    /* Emplacement du menu sur mobile */
    .top-nav {
        top: 15px;
        right: 15px;
        z-index: 100; /* Valeur élevée pour être au-dessus de la info-box */
    }

  


/* 1. GLISSEMENT DE LA BANNIERE L'état de départ (caché et décalé vers la gauche) */
.reveal {
    opacity: 0;
    transform: translateX(-50px); /* Glisse depuis la gauche */
    transition: all 0.8s ease-out; /* Durée et lissage de l'animation */
    visibility: hidden;
}

/* 2. L'état quand l'élément devient visible (grâce au JS) */
.reveal.is-visible {
    opacity: 1;
    transform: translateX(0); /* Revient à sa position normale */
    visibility: visible;
}

/* Option : Si vous préférez un glissement par le BAS au lieu de la gauche :
   Remplacez translateX(-50px) par translateY(50px)
*/
