/* --- Global Styles --- */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #556B2F; 
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }

/* --- Header & Navigation (Styles de base pour la page d'accueil) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: transparent;
    position: absolute; /* Positionné par-dessus l'image Hero */
    top: 0;
    width: 100%;
    z-index: 1000;
}
.logo {
    font-size: 32px;
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
    color: #ffffff; /* Blanc sur la page d'accueil */
    text-decoration: none;
}
nav { display: flex; align-items: center; gap: 20px; }
nav a {
    margin-left: 20px;
    text-decoration: none; 
    font-weight: 700; 
    color: #ffffff; /* Blanc sur la page d'accueil */
    position: relative;
    transition: color 0.3s, text-decoration 0.3s;
}
nav a:hover {
    color: #b8860b; /* Doré (Accentuation) */
    text-decoration: underline; 
}

/* --- Menu Mobile (Hamburger) --- */
.menu-toggle {
    display: none; /* Caché sur ordinateur */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white; /* Blanc pour l'accueil */
    border-radius: 2px;
    transition: 0.3s;
}

/* Couleur des barres pour les pages intérieures */
.alt-header .bar {
    background-color: #556B2F;
}

#mobile-menu.is-active .bar {
    background-color: #556B2F !important;
}

.alt-header .lang-switch {
    color: #556B2F; /* Séparateur passe au vert */
}

.alt-header .lang-link {
    color: #556B2F !important; /* Liens passent au vert */
}

.lang-switch {
    color: #ffffff;
}

.lang-link {
    text-decoration: none;
    color: #ffffff !important; /* Garde la couleur du parent */
    transition: color 0.3s;
    margin: 0 !important; /* Reset la marge des liens nav standards */
}

.lang-link:hover {
    color: #b8860b !important;
    text-decoration: none !important;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace uniforme de 5px partout */
}

.lang-switch .sep {
    opacity: 0.7; /* Optionnel : rend le trait un peu plus discret */
    font-weight: 300;
}

/* --- Responsivité (Tablettes et Mobiles) --- */
@media (max-width: 992px) { /* On déclenche le menu dès 992px pour éviter le débordement */
    
    .menu-toggle {
        display: flex;
    }

    nav {
        display: none; /* On cache la nav standard */
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98); /* Fond blanc presque opaque */
        padding: 80px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    /* Quand la nav est ouverte */
    nav.active {
        display: flex;
    }

    nav a {
        margin: 15px 0;
        color: #556B2F !important; /* Texte en vert olive sur le fond blanc du menu */
        font-size: 20px;
    }

    .nav-rsvp {
        border-color: #b8860b !important;
        color: #b8860b !important;
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

    /* Force le style du bouton RSVP quand il est dans le menu mobile ouvert */
    nav.active .nav-rsvp {
        color: #b8860b !important;
        border-color: #b8860b !important;
        background-color: transparent !important;
        width: 100%; /* Prend toute la largeur pour être cliquable facilement */
        display: block;
        text-align: center;
    }

    /* EFFET SURVOL : Le bouton devient doré avec texte blanc au toucher/souris */
    nav.active .nav-rsvp:hover, 
    nav.active .nav-rsvp:active {
        background-color: #b8860b !important;
        color: #ffffff !important;
    }

    .lang-switch {
        margin: 20px 0; /* Espacement dans le menu mobile */
        font-size: 18px;
        justify-content: center;
        color: #556B2F !important; /* Toujours vert sur le fond blanc du menu mobile */
    }

    .lang-link {
        text-decoration: none;
        color: inherit !important; /* Garde la couleur du parent */
        transition: color 0.3s;
        margin: 0 !important; /* Reset la marge des liens nav standards */
    }
}

/* ----------------------------------------------------------------- */
/* --- NOUVEAUX STYLES pour la Navigation des pages INTÉRIEURES --- */
/* ----------------------------------------------------------------- */

.alt-header {
    /* Fond Blanc et Retrait de la position absolue */
    position: relative;
    background-color: #ffffff; 
    border-bottom: 1px solid #eee; /* Petite ligne de séparation */
}

.alt-header .logo {
    /* Logo en vert */
    color: #556B2F;
}

.alt-header nav a {
    /* Texte des liens en vert par défaut */
    color: #556B2F; 
}

.alt-header nav a:hover {
    /* Le hover doré reste le même */
    color: #b8860b; 
    text-decoration: underline;
}

/* Lien Désactivé (Planning) */
.disabled {
    cursor: default;
    color: #cccccc; 
    text-decoration: none !important; 
}
.disabled:hover {
    color: #cccccc; 
}
/* Tooltip pour Planning */
.disabled:hover::after {
    content: "Prochainement";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #556B2F;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
}

/* --- Bouton RSVP Rectangulaire --- */
.nav-rsvp {
    border: 2px solid #ffffff; /* Bordure dorée toujours visible */
    background-color: transparent; /* Transparent par défaut */
    color: #ffffff !important; /* Blanc pour la page d'accueil */
    padding: 8px 18px !important;
    border-radius: 4px; /* Forme carrée avec un très léger arrondi pour le style */
    font-weight: 800;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Donne un aspect plus "bouton" */
    font-size: 14px;
}

/* Ajustement couleur texte pour les pages intérieures (header blanc) */
.alt-header .nav-rsvp {
    border-color: #b8860b;
    color: #b8860b !important;
}

/* Effet Hover : se colore au passage de la souris */
.nav-rsvp:hover {
    background-color: #b8860b !important;
    color: white !important;
    text-decoration: none !important;
}

/* --- Hero Section (Parallax) --- */
.hero {
    position: relative;
    width: 100%;
    height: 80vh; 
    background: url('img/20240622GrandlauronEL26jpg_6752cc768f820.jpg') center top/cover no-repeat;
    background-attachment: fixed; /* EFFET PARALLAX */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Overlay pour améliorer le contraste du texte sur l'image */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Overlay noir semi-transparent */
    z-index: 1;
}
.hero > div { z-index: 2; position: relative; } 

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    margin: 0;
}
.hero p {
    margin-top: 10px; 
    font-size: 32px; 
    color: white; 
    text-shadow: 0 2px 6px rgba(0,0,0,0.4); 
    font-family:'Nunito', sans-serif;
}

/* --- Compte à rebours --- */
#countdown-styled {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}
.count-box { 
    background:rgba(255,255,255,0.9); 
    border-radius:12px; 
    width: 90px; 
    padding:10px 0; 
    text-align:center; 
    box-shadow:0 4px 12px rgba(0,0,0,0.15); 
    font-family:'Nunito', sans-serif; 
    color:#2b2b2b; 
}
.count-number { font-size:28px; font-weight:800; }
.count-label { font-size:14px; margin-top:2px; opacity:0.8; font-weight: 600; }

/* --- Contenu Général --- */
.welcome-banner {
    background-color: #f7f7f7;
    padding: 30px 20px;
    text-align: center;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.welcome-banner h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #b8860b;
    margin: 0;
}

.texte-section {
    max-width: 900px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: #556B2F;
}

.texte-section h2 {
    max-width: 900px;
    margin: 10px auto 10px auto; /* Marge ajustée pour la barre */
    padding: 20px 20px 10px 20px;
    text-align: center;
    font-size: 32px;
    line-height: 1.7;
    color: #556B2F;
}

/* Classe pour la barre de séparation verte */
.separator-bar {
    display: block;
    width: 80px; 
    height: 3px; 
    background-color: #556B2F; /* Couleur Vert Olive foncé */
    margin: 0 auto 30px auto; 
    border-radius: 2px;
}

/* --- Style du Bouton RSVP --- */
.rsvp-button {
    display: inline-block; 
    padding: 14px 35px;
    margin-top: 30px; 
    background-color: #b8860b; 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 8px;
    font-size: 18px; 
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.rsvp-button:hover {
    background-color: #a8790a; /* Un peu plus foncé au survol */
    transform: translateY(-2px); /* Effet de légère élévation */
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #556B2F;
}
footer a {
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
footer a:hover {
    color: #a8790a;
    text-decoration: underline;
}

/* --- Responsivité Mobile --- */
@media (max-width: 768px) {
    header { padding: 10px 20px; }
    nav { gap: 10px; }
    nav a { margin-left: 10px; }

    .hero h1 { font-size: 60px; }
    .hero p { font-size: 24px; }

    #countdown-styled { gap: 8px; }
    .count-box { width: 70px; }
    .count-number { font-size: 24px; }
    .count-label { font-size: 12px; }

    .texte-section h2 {
        font-size: 28px;
        padding: 15px 10px 5px 10px;
    }
}