/*DEBUT Header -----------------------------------------------------*/
#entete {
    position: relative;
    height: 110px; 
    width: auto;
    max-width: 100%;
    font-size: 11pt;
    display: flex;
    align-items: center;
    justify-content: center; 
    background-color: #1B1C1B; 
    box-sizing: border-box;
}
#logo {
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    display: flex;
    align-items: center;
    margin-right: 60px;
}
#logo img {
    width: 160px;
    height: auto;
}
#menu {
    height: auto;
    width: auto;
    background-color: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    margin-right: 60px;
}
#menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
}
#menu li {
    display: inline-block;
    padding-right: 30px;
    padding-left: 30px;
}
#menu a {
    text-decoration: none; 
    color: white;
    font-size: 17pt;
}
#menu a:hover,
#menu a:focus,
#menu a.active {
    color: #BB4144;
    position: relative;
    transition: color 0.2s;
}
#menu a.active::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170px;
    height: 170px;
    background: #BB4144;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.2s, border 0.2s;
}
#mini-barre {
    position: relative;
    width: 100%;
    height: 5px;
    margin: 0;
    margin-top: -5px; 
    padding: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 10%,
        rgba(220,0,0,0.7) 50%,
        rgba(255,255,255,0.5) 90%,
        rgba(255,255,255,0) 100%
    );
    opacity: 0.85;
    border: none;
    z-index: 1000;
}
/*FIN Header*/


/* DEBUT Téléphone ----------------------------------------------------------- */
#hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
#hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
#hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
#hamburger.active span:nth-child(2) {
    opacity: 0;
}
#hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
body.menu-mobile-open #entete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    box-sizing: border-box;
}
body.menu-mobile-open main,
body.menu-mobile-open #zoneprinc {
    padding-top: 80px;
}
body.menu-mobile-open #mini-barre {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 3001;
}
body.menu-mobile-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    transition: none;
}
#menu-mobile {
    display: none;
}
/* FIN Téléphone ----------------------------------------------------------- */


/* DEBUT Responsive Menu Mobile ----------------------------------------------------- */
@media screen and (max-width: 1250px) {
    #menu-mobile {
        display: block;
    }
    #entete {
        height: 80px;
        padding: 0 15px;
        justify-content: space-between; /* Normal par défaut */
    }

    /* Quand le menu mobile est ouvert, garde la position du hamburger */
    body.menu-mobile-open #entete {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 3000;
        justify-content: space-between; /* Garde la même disposition */
        padding: 0 15px; /* Même padding */
    }
    
    /* Assure que le hamburger reste à sa place */
    #hamburger {
        position: relative; /* Assure une position stable */
    }
    
    #logo img {
        width: 120px;
    }
    
    /* Cache le menu desktop */
    #menu,
    #langues {
        display: none;
    }
    
    /* Affiche le hamburger */
    #hamburger {
        display: flex;
    }
    
    /* Menu mobile (overlay) */
    #menu-mobile {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #1B1C1B;
        transform: translateX(-100%);
        transition: transform 0.5s ease-out;
        z-index: 2000;
        padding-top: 40px;
    }
    
    #menu-mobile.active {
        transform: translateX(0);
    }
    
    #menu-mobile ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    
    #menu-mobile li {
        margin: 30px 0;
    }
    
    #menu-mobile a {
        color: white;
        text-decoration: none;
        font-size: 20px;
        padding: 15px;
        display: block;
        transition: color 0.3s;
    }
    
    #menu-mobile a:hover,
    #menu-mobile a.active {
        color: #BB4144;
    }
    
    /* Langues dans le menu mobile */
    #langues-mobile {
        text-align: center;
        margin-top: 40px;
    }
    
    #langues-mobile a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        margin: 0 10px;
        text-transform: uppercase;
    }
}
@media screen and (max-width: 1250px) and (max-height: 500px) {
    #menu-mobile ul {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
        gap: 15px 20px; /* Espacement entre lignes et colonnes */
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    #menu-mobile li {
        margin: 15px 0; /* Réduit les marges */
        text-align: center;
    }
    
    #menu-mobile a {
        font-size: 18px; /* Réduit légèrement la taille */
        padding: 10px; /* Réduit le padding */
    }
    
    /* Langues toujours centrées en bas */
    #langues-mobile {
        grid-column: 1 / -1; /* Prend toute la largeur */
        margin-top: 20px;
        text-align: center;
    }
}
/* Media query pour écrans très larges */
@media screen and (min-width: 2560px) {
    #entete {
        height: 130px;
    }
    
    #logo img {
        width: 220px;
    }
    
    #menu a {
        font-size: 22pt;
    }
    
    #menu li {
        padding-right: 40px;
        padding-left: 40px;
    }

    #menu a.active::before {
    width: 220px;
    height: 220px;
    }
}
/*FIN Responsive Menu Mobile*/

