/* 
// Fichier css2/navbar.css
// (c) Emmanuel Zenou
*/



/****************************************************/
/* Style the top navigation bar */
/* https://www.web-soluces.net/outils-gratuits/services%20gratuits/menu%20CSS/menus%20CSS.php#BodakeSanket */


.navbar input[type="checkbox"],
.navbar .hamburger-lines{
    display: none;
}

.container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar{
    box-shadow: 0px 5px 10px 0px #aaa;
    position: fixed;
    width: 100%;
    background: #fff;
    color: #000;
    opacity: 0.85;
    z-index: 1000;
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items{
    order: 2;
    display: flex;
}

.logo{
    order: 1;
    font-size: 2.3rem;
}

.menu-items li{
    list-style: none;
    margin-left: 1.1rem;
    font-size: 1.1rem;
}

.navbar a{
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    /* color: #117964; */
    color: #003A96;
}

/* Menus principaux : bleu REDA par défaut */
.navbar .menu-items > li > a,
.navbar .menu-items > li > span {
    color: #003A96;
}

/* Sous-menus : noir par défaut */
.navbar .sous a,
.navbar .sous span {
    color: black;
}

/* Sous-menus au survol */
.navbar .sous a:hover {
    color: #003CA0;
}


/* ************************************ */
/* SOUS-MENUS DESKTOP */
/* ************************************ */

.deroulant {
    position: relative;
}

.sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 210px;
    padding: 8px 10px;
    margin: 0;

    background: rgba(255, 255, 255);
    border: 1px solid rgba(0, 60, 160, 0.18);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);

    z-index: 2000;
}

.deroulant:hover .sous {
    display: block;
}

.sous li {
    list-style: none;
    margin: 0;
    width: 100%;
    text-align: left;
}

.sous a {
    display: block;
    padding: 8px 10px;
    color: #003CA0;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

.sous a:hover {
    background: rgba(0, 60, 160, 0.10);
    color: #003CA0;
}


/* ************************************ */
/* RESPONSIVE */
/* ************************************ */

.responsive-only {
    display: none; /* Cache le texte en mode normal */
}

@media (max-width: 940px){
    .navbar{
        opacity: 0.95;
    }
    
    .responsive-only {
        display: inline; /* Affiche le texte en mode responsive */
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines{
        display: block;
    }

    .navbar-container{
        display: block;
        position: relative;
        height: 64px;
    }

     .navbar-container input[type="checkbox"]{
    position: absolute;
    display: block;
    height: 32px;
    width: 30px;
    top: 20px;
    right: 20px !important;   /* ← à droite */
    left: auto !important;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
    }

    .navbar-container .hamburger-lines{
    display: flex;
    height: 28px;
    width: 35px;
    position: absolute;
    top: 20px !important;
    right: 20px !important;   /* ← à droite */
    left: auto;
    z-index: 2;
    flex-direction: column;
    justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line{
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }
    
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2{
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items{
        padding-top: 100px;
        background: #fff;
        height: calc(100dvh - 64px); /* 64px = hauteur navbar */
        overflow: auto;
        -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
        /* height: auto; */
        max-width: 420px;
        width: 85vw;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 40px;
        transition: transform 0.5s ease-in-out;
        box-shadow:  5px 0px 10px 0px #aaa;
        overflow: auto;                   /* ✅ garder celui-ci */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 1 !important; /* ✅ en-dessous du logo */
    }

    .navbar .menu-items li{
        margin-bottom: 1.8rem;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items{
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }

    /* Logo 1 à gauche en mobile */
    .logo{
    position: absolute !important;
    top: 25px !important;
    left: 20px !important;         /* ← au lieu de 50% */
    transform: none !important;    /* ← enlève le centrage */
    margin: 0 !important;
    z-index: 4 !important;
    }

    /* 
// Fichier css2/navbar.css
// (c) Emmanuel Zenou
*/



/****************************************************/
/* Style the top navigation bar */
/* https://www.web-soluces.net/outils-gratuits/services%20gratuits/menu%20CSS/menus%20CSS.php#BodakeSanket */


.navbar input[type="checkbox"],
.navbar .hamburger-lines{
    display: none;
}

.container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar{
    box-shadow: 0px 5px 10px 0px #aaa;
    position: fixed;
    width: 100%;
    background: #fff;
    color: #000;
    opacity: 0.85;
    z-index: 1000;
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items{
    order: 2;
    display: flex;
}

.logo{
    order: 1;
    font-size: 2.3rem;
}

.menu-items li{
    list-style: none;
    margin-left: 1.1rem;
    font-size: 1.1rem;
}

.navbar a{
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    /* color: #117964; */
    color: #003A96;
}


/* ************************************ */
/* SOUS-MENUS DESKTOP */
/* ************************************ */

.deroulant {
    position: relative;
}

.sous {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 210px;
    padding: 8px 10px;
    margin: 0;

    background: rgba(0, 60, 160, 0.06);
    border: 1px solid rgba(0, 60, 160, 0.18);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);

    z-index: 2000;
}

.deroulant:hover .sous {
    display: block;
}

.sous li {
    list-style: none;
    margin: 0;
    width: 100%;
    text-align: left;
}

.sous a {
    display: block;
    padding: 8px 10px;
    color: #003CA0;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

.sous a:hover {
    background: rgba(0, 60, 160, 0.10);
    color: #003CA0;
}


/* ************************************ */
/* RESPONSIVE */
/* ************************************ */

.responsive-only {
    display: none; /* Cache le texte en mode normal */
}

@media (max-width: 940px){
    .navbar{
        opacity: 0.95;
    }
    
    .responsive-only {
        display: inline; /* Affiche le texte en mode responsive */
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines{
        display: block;
    }

    .navbar-container{
        display: block;
        position: relative;
        height: 64px;
    }

     .navbar-container input[type="checkbox"]{
    position: absolute;
    display: block;
    height: 32px;
    width: 30px;
    top: 20px;
    right: 20px !important;   /* ← à droite */
    left: auto !important;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
    }

    .navbar-container .hamburger-lines{
    display: flex;
    height: 28px;
    width: 35px;
    position: absolute;
    top: 20px !important;
    right: 20px !important;   /* ← à droite */
    left: auto;
    z-index: 2;
    flex-direction: column;
    justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line{
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }
    
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2{
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items{
        padding-top: 100px;
        background: #fff;
        height: calc(100dvh - 64px); /* 64px = hauteur navbar */
        overflow: auto;
        -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
        /* height: auto; */
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 40px;
        transition: transform 0.5s ease-in-out;
        box-shadow:  5px 0px 10px 0px #aaa;
        overflow: auto;                   /* ✅ garder celui-ci */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 1 !important; /* ✅ en-dessous du logo */
    }

    .navbar .menu-items li{
        margin-bottom: 1.8rem;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items{
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }

    /* Logo 1 à gauche en mobile */
    .logo{
    position: absolute !important;
    top: 25px !important;
    left: 20px !important;         /* ← au lieu de 50% */
    transform: none !important;    /* ← enlève le centrage */
    margin: 0 !important;
    z-index: 4 !important;
    }

}


/* Le logo de la navbar n’hérite JAMAIS des règles globales des images */
.navbar img{
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  display: inline-block !important;
}


    /* Sous-menus en mode smartphone */
    .navbar .menu-items .sous {
        display: block !important;
        position: static !important;

        min-width: auto !important;
        padding: 6px 0 0 18px !important;
        margin: 0 !important;

        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .navbar .menu-items .sous li {
        margin-bottom: 0.8rem !important;
    }

    .navbar .menu-items .sous a,
    .navbar .menu-items .sous a:hover {
        display: block !important;
        padding: 4px 0 !important;

        background: transparent !important;
        color: #003CA0 !important;
        border: none !important;
        box-shadow: none !important;
    }

/* ************************************ */
/* NAV BAR ORGANISATEUR */
/* ************************************ */




/* RESSOURSES 

1/ Transformer menu en logo pour mobile
https://www.raphaelbeaudet.fr/creer-un-menu-responsive-uniquement-en-html-css/




/*
// End of File
*/

}


/* Le logo de la navbar n’hérite JAMAIS des règles globales des images */
.navbar img{
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  display: inline-block !important;
}




/* ************************************ */
/* NAV BAR ORGANISATEUR */
/* ************************************ */




/* RESSOURSES 

1/ Transformer menu en logo pour mobile
https://www.raphaelbeaudet.fr/creer-un-menu-responsive-uniquement-en-html-css/




/*
// End of File
*/