/* 
    Color: 
        noir : #262423
        café : #59402A
        miel : #F24D79
        vanille : #F2EBC4
        blanc : #FFFDF2

    Typographie : 
        titre : font-family: "Playfair Display SC", serif;
        texte : font-family: "Red Hat Text", sans-serif;
        manuscrite : font-family: "Thuressia";


*/

body {
    display: flex;
    flex-direction: column;
}

nav li {
    list-style: none;
}

main {
    flex-grow: 1;
}

.flexC {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flexR {
    display: flex;
    flex-direction: row;
    align-items: center;
}

header {
    z-index: 999;
}

.container {
    max-width: 1500px;
    justify-content: center;
    margin: 0 auto;
    padding: 2rem 0;
}


@media screen and (min-width: 1500px) {
    nav {
        max-width: 1500px;
        margin: 0 auto;
        
    }
    footer {
        margin: 0 auto;
    }
    
    footer>* {
       max-width: 1500px !important;
        
    }
}



/* pour les Abeilles svg -> list-style: url("/shared-assets/images/examples/rocket.svg"); */ 

/* 
---------------------------------Styles du nav----------------------------------------------------
*/

nav {
    background-color: var(--blanc);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 1rem;
}

#onglet-container {
    flex-basis: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

#icons-container {
    flex-basis: 10%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;


}

#icons-container i{
        font-size: 1.5rem;
        color: var(--marron);
}

nav img, #footer-middle-section img {
    width: 200px;
    margin: 0.5rem 0;
}

nav span {
    color: var(--marron);
    font-family: var(--titre);
}

.sub-menu{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 1.5rem;
    left: 50%;       /* Aligne le bord gauche du menu au milieu du parent */
    transform: translate(-50%,0) !important; /* Décale le menu de 50% de sa propre largeur vers la gauche */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.sub-menu li{
    width: 10rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

.sub-menu li:hover a{
    color: var(--blanc);
    scale: 1.1;

}

.sub-menu li:hover {
    scale: 1.1;
}

nav a {
    color: var(--marron);
}

.menu {
    position: relative;
    transition: all 0.3s ease-out;
}

.menu:hover .sub-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(5%);
    background-color: var(--jaune);  
    border-radius: 0.5rem;
    border: 1px solid var(--beige);
}

.menu:hover {
    /*background-color: var(--jaune);*/
    cursor: pointer;
    scale: 1.1;
}

#icons {
    display: flex;
    flex-direction: row;
    padding-left: 0.5rem;
    align-items: center;
    justify-content: center;
}

#icons a{
    display: flex;
}

/* burger */

#burger{
    opacity: 0;
    visibility: hidden;
    display: none;
    flex-direction: column;
}

#burger-container{
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(100%); /* Sorti complètement de l'écran */
    position: fixed; /* Mieux que absolute pour un menu plein écran */
    background-color: var(--jaune);
    right: 0;
    top: 0;
    height: 100vh;
    width: 70vw; /* Un peu plus large pour le confort */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    z-index: 999;
    padding-top: 8rem;
}

/* La classe qui sera ajoutée par le JS */
#burger-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}




.menu li{
    text-align: center;
    position: relative;
}

/*#burger-container ul{
    height: 25vh;
}*/

.bar {
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 0.2rem auto;
    background-color: var(--marron);
}

#navbarToggle {
    color: inherit;
    border: inherit;
    background-color: inherit;
    z-index: 9999;
}

nav {
    justify-content: space-around !important;
}


#essaim {
    position: fixed;
    right: 0;
    top: 15vh;
    width: fit-content;
}

#essaim h1 {
    margin: 0;
    padding: 1.5rem 1.5rem;
    border-radius: 10px 0 0 10px;
}


/* 
---------------------------------Styles du footer----------------------------------------------------
*/
footer {
    background-color: var(--jaune);
    padding: 1rem  0;
    justify-content: center;
    width: 100%;
    margin-top: 5rem;
}

#footer-left, #footer-right {
    flex-basis: 15%;
    font-weight: 300;
    font-size: 1rem;
    padding: 0rem 0.5rem;
    text-align: center;
}

#footer-left, #icons {
    list-style: none;
}

#footer-middle {
    flex-basis:50%;
    /*padding: 1rem 0.5rem;*/
    justify-content: center;
}

#footer-middle-section {
    text-align: center;
    padding: 0 1rem;
}

#footer-middle-section #icons{
    font-size: 2rem;
    color: var(--marron);
}

#footer-middle-section p {
    font-size: 0.6rem;
}

.footer-img {
    width: 8vw !important;
    height: 8vw !important;
}

#icons a {
    padding: 0 0.5rem 0 0.5rem;
}


@media (max-width: 450px) {
    .footer-img {
        display: none;
    }
    #footer-left, #footer-right, #onglet-container, #icons-container {
        display: none;
    }

    #footer-middle {
        flex-basis: 100%;
    }

    #burger {
        opacity: 1;
        visibility: visible;
        height: fit-content;
        display: flex;
    }

    .menu li span {
        font-size: 1.5rem;
    }

    .menu li {
        height: fit-content;
    }

    .sub-menu {
        display: none;
    }

    .menu {
        height: fit-content;
    }
/* Force l'affichage du sous-menu quand on clique en mobile */
    .sub-menu-mobile {
    display: flex !important;
    position: static !important; /* Pour qu'il pousse le contenu vers le bas */
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    background-color: rgba(0,0,0,0.05); /* Légère distinction */
}
}






/* 
---------------------------------Styles du index---------------------------------------------------
*/

#header-index {
    justify-content: center;
    height: 25vh;
    position: relative;
    padding: 0;
}

#idx-txt-container h2 {
    font-family: var(--titre);
    font-size: 3.8rem;
    line-height: 3.5rem;
    text-align: end;
}

#idx-txt-container h1 {
    font-family: var(--texte);
    line-height: 2rem;
    text-align: start;
    font-size: 1.5rem;
}

#idx-img-container{
    margin-top: 2rem;
    align-self: flex-start;
    width: 12rem;
    height: 18rem;
    margin-right: 2rem;
    position: relative; /* Indispensable pour positionner le ::after */
    z-index: 1; /* Crée un contexte d'empilement */
}

#idx-img-container::after{
    content: "";
    position: absolute;
    bottom: 20px;    /* Décalage pour l'effet visuel */
    right: 20px;   /* Décalage pour l'effet visuel */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.624);
    z-index: -1; /* TRES IMPORTANT : place le fond DERRIÈRE l'image */
}

#idx-img-container img {
    width: 100%;
    object-fit: contain;
    /*max-width: 250px;*/
}

/* section pres index */
.section-presentation>div {
    justify-content: center;
}

.section-presentation>a {
    margin-top: 2rem;
}

.img-container img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    flex-basis: 30%;
    border-radius: 1rem;
}

#pres-index div:last-child{
    flex-basis: 40%;
    margin-left: 2rem;
    justify-content: center;
    height: 100%;
}

#pres-index div h1{
    margin-bottom: 2rem;
    line-height: 2rem;
}

#pres-index{
    margin-top: 7rem !important;
    height: 45vh;
}

.img-container {
    height: 100%;
}

.point-item {
    flex-basis: 25%;
    text-align: center;
}

.point-item h2 {
    margin: 0.8rem 0;
}

.titre-rectangle {
    margin-bottom: 1rem;
}


@media (max-width: 450px) {
    #idx-img-container {
        display: none;
    }

    .section-presentation .flexR{
        flex-direction: column;
    }

    #essaim h1 {
        padding: 0.5rem;
    }

    #pres-index{
        height: auto;
        margin-top: 0 !important;
        flex-direction: column !important;
    }

    .img-container img {
        width: 80%;
        height: 80%;
            margin: 0rem auto 1rem auto;


}

}
/* 
---------------------------------Styles de la page 404----------------------------------------------------
*/

._404 {
        display: flex;
        flex-direction: column;
        align-items: center;
}

._404 img {
    scale: 0.7;
    margin: 2rem;
}

/* 
---------------------------------Styles de confidentialite ----------------------------------------------------
*/
.confidentialite>h2, .mentionL>h2{
    margin: 1.5rem 0;
}

.confidentialite, .mentionL {
    max-width: 1100px;
    text-align: center;
}

.confidentialite ul, .mentionL ul {
    max-width: 700px;
    margin: 1rem 0;
    text-align: start;
}




/* 
---------------------------------Styles du futur style ----------------------------------------------------
*/