/* ------------------ RESET ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------ GLOBAL ------------------ */
body {
    font-family: "Inter", 'Open sans', sans-serif;
    background: #fffaf0;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    position: relative; /* Aide à stabiliser le tout */
    line-height: 1.6;
}

/* Empêche le scroll quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}

/* ------------------ HEADER ------------------ */
/* Header général */

header { 
    background: linear-gradient(135deg, rgba(110, 11, 20, 0.8) 0%,rgba(110, 11, 20, 0.8) 70%, rgba(110, 11, 20, 0.5) 85%,rgba(110, 11, 20, 0.7)100%);
    background-size: cover; /* pour l’animation */
    animation: gradientMove 8s ease infinite;
    padding: 10px 0; 
    text-align: center; 
    color: #fffaf0;
    z-index:100; 
    position: relative; /* Modifié pour gérer les z-index */
    
    }
    @keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    /*background: url('../img/Photo_banière_V1.jpg') no-repeat center center;*/
    background-size: cover;
    opacity: 0.2; /* transparence pour fondu */
    z-index: 0;   /* derrière le contenu */
}

/* Header top : logo + titre */
.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Texte GUAI 2026 décalé à droite */
.header-title {
    font-family: "Playfair Display", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fffaf0;
    margin-left: auto; /* pousse le texte vers la droite */
}


header h1 {
    font-family: "Playfair Display", sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #fffaf0;
}
/* Header : titre + logo à droite */
.header-right {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}


/* Petit logo */
.header-logo img,
.header-logo svg {
    height: 100px;
    width: auto;
}

/* ------------------ NAVIGATION (DESKTOP) ------------------ */
nav {
    margin-top: 15px;
    display: flex;
    justify-content: space-center;
    align-items: center;
    position: relative; 
}

/* Style des liens sur PC */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fffaf0;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.8s ease;
    font-weight: 500;
}

.nav-links > a:hover {
    background: rgba(255, 255, 255, 0.2);
}
.nav-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* logo gauche / burger droite */
    padding: 15px 20px;
    position: center;
    z-index: 3000;
}


/* ------------------ BURGER (Caché sur PC) ------------------ */
.burger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fffaf0;
    margin: 0;
    transition: all 0.3s ease;
}

/* ------------------ MENU DÉROULANT (Desktop & Base) ------------------ */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fffaf0; 
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 10px;
    top: 100%;
    left: 0;
    overflow: hidden; 
}

.dropdown-content a {
    color: #333 !important; 
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 0; 
    transition: all 0.4s ease;
}

.dropdown-content a:hover {
    background-color: rgb(127, 26, 34);
    color: white !important; 
}

/* Affichage au survol sur PC uniquement (min-width: 901px) */
@media screen and (min-width: 901px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .dropdown:hover .dropbtn {
        background: rgba(255, 255, 255, 0.2);
    }
}


/* =======================================================
   RESPONSIVE (TABLETTES ET MOBILES) - Version Corrigée
   ======================================================= */
@media screen and (max-width: 900px) {
    
    

    /* 2. Affichage du Burger */
    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .nav-left {
        display: flex;
        align-items: center;
    }

    .nav-left .header-logo img,
    .nav-left .header-logo svg {
        height: 42px;
        width: auto;
    }

    /* 3. Le Menu Latéral (Nav Links) */
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: #fffaf0;
        
        /* C'EST ICI QUE CA SE JOUE : */
        display: flex;
        flex-direction: column !important; /* Force l'affichage vertical (l'un sous l'autre) */
        flex-wrap: nowrap !important;      /* Interdit formellement de mettre les éléments côte à côte */
        
        align-items: center;
        justify-content: flex-start;
        
        padding-top: 80px;
        padding-bottom: 50px;
        
        width: 70%;
        transition: right 0.5s ease;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        
        overflow-y: auto; 
        gap: 0; 
    }

    .nav-links.active {
        right: 0;
    }

    /* 4. Style Compact des liens */
    .nav-links > a, .dropdown .dropbtn {
        color: #7D1a23;
        font-size: 18px; /* Taille raisonnable */
        margin: 0;       /* Pas de marge externe */
        padding: 10px 0; /* Espace clickable propre */
        width: 100%;
        text-align: center;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Petit trait de séparation */
    }

    /* 5. Gestion du Dropdown sur Mobile (Accordéon) */
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        display: none; /* Caché par défaut */
        position: relative; 
        width: 100%;
        background-color: rgba(125, 26, 35, 0.05); /* Fond subtil */
        box-shadow: none;
        margin: 0;
        top: 0;
    }

    /* Classe active ajoutée par le JS pour ouvrir le menu */
    .dropdown.active .dropdown-content {
        display: block;
        animation: fadeIn 0.3s;
    }
    
    .dropdown-content a {
        font-size: 16px;
        color: #555 !important;
        padding: 8px 0; /* Compact */
        margin: 0;
        text-align: center;
    }

    /* Animation du Burger */
    .burger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #7D1a23;
    }
    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .burger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #7D1a23;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}


/* ------------------ MAIN ------------------ */
main {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 15px;
    text-align: center;
}

section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

section div a {
    display: inline-block;
    text-decoration: none;
    background: rgb(110, 11, 20);
    color: #fffaf0;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

section div a:hover {
    background: #7d1a23;
    transform: translateY(-3px);
}

h1{
    font-family: 'Playfair Display', sans-serif;
    font-size: 36px;
    color: #222;    
}

h2{
    font-family: 'Playfair Display', sans-serif;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 35px;
    font-weight: bold; 
    color: #222;
}

h3{
    font-family: 'Playfair display', sans-serif;
    font-size: 20px;
    font-weight: bold; 
    color: #222;
    text-decoration: underline;
    text-decoration-color: #222;
    text-decoration-thickness: 2px;
}

footer {
    background: #7d1a23;
     padding: 15px 0; 
     margin-top: auto; 
     display: flex; 
     justify-content: center; 
     align-items: center; 
     gap: 20px; 
     flex-wrap: wrap; 
     /* Pour le responsive du footer */ }

footer a {
    text-decoration: none;
    color: #fffaf0;
    font-weight: 500;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.6;
}

footer img { 
    width: 28px;
     height: 28px; 
}

footer div a { 
    display: inline-block; 
    text-decoration: none; 
    background: #7d1a23; 
    color: #fffaf0; 
    padding: 5px 10px; 
    border-radius: 30px; 
    font-weight: 600; 
    transition: transform 0.3s, background 0.3s; 
}

footer div a:hover { 
    background: #fffaf0; 
    transform: translateY(-3px); 
    color: #7d1a23; 
    /* Correction couleur texte */ }

.footer-left {
    width: 50px;
    height: 80px; 
    object-fit: contain;
    margin-top: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin-left: 10px;
}
.site-footer {
  background-color: #7d1a23;
  padding: 20px;
  text-align: center;
}

.facebook-icon svg {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.facebook-icon:hover svg {
  transform: scale(1.1);
  opacity: 0.8;
}
