@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto", sans-serif;
}


#header {
    color: white;
    /*padding: 10px 10px;*/
    font-family: Arial, sans-serif;    
}

#entete {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: whitesmoke;
    padding: 0px;
}
#contact-address {  
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap:10px;
    align-items: flex-start;
    font-size: 10px;
    padding-top: 5px;
    padding-left: 10px;
    color: black;
}

.fas {
        margin-right: 5px;
    }

#contact-address a {
    text-decoration: none;
    color:mediumslateblue;
}

#social-media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 5px;
    padding-right: 10px;
    
}

#baniere-logo {
    display: flex;
    flex-direction: row;    
    justify-content: space-around;
    align-items: center;     
    background-color: #088395;
    padding: 20px;
}

img[alt="CRESMAC logo"] {
    width: 150px;
    height: 150px;
    /*display: block;*/  
    /*margin-top: 20px;  */
}

.nom-centre {
    margin-left: 10px;
    width: 700px;  
}

.carte-pays-ceeac {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 150px;
    /*margin-left: 500px;*/
}

.nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: yellow;
    height: 40px;
    margin-top: 0px;
}


.main-menu {
    height: 100%;
    width: 150px;    
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    justify-items: center;
}
    

#nav a {
    text-decoration: none;
    font-size: large;
}

.humburger {
    display: none;
}

.active {
    height: 100%;
    width: 150px;;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;     
    background-color: #088295fc;
}

.a-active {
    color: rgb(252, 247, 247);
}

#nav a:hover {
    color: #ff6347;
}

.sticky-actived {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombre */
    padding: 0;
    background-image: url('./assets/Images/cresmac_logo.png'); /* Ajout d'image */
    background-repeat: no-repeat;
    background-position: 100px; 
    background-size: contain;
    height: 60px;
    transition: height 2s;
    
}

p.lead {
    text-align: justify;
}
.caption-photo-dir {
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
}

#menaces-secmar {
    position: relative;
}

#featured-3 {
    
    background-color: rgba(238, 11, 11, 0.1);
}
.modular-window {
    display: none; 
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1000; 
}
.mw-container {
    background-color: white;
    margin: 5% auto; 
    padding: 20px;
    width: 80%; 
    border-radius: 5px;
}
.mw-subcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.close-mw {         
    padding: 0px 0px 5px auto;
    margin-bottom: 20px;
}
.btn-close {
    float: right;
    background-color: red;
    color: yellow;
    width: 20px;
    height: 20px;
    margin: 0;
}

.mw-text {
    width: max(55%, 400px);
}
.mw-text, .mw-stat-graph {
    padding: 20px;
    margin-top: 50px;
    text-align: justify;
    
}
.mw-stat-graph {
    width: max(40%, 400px);
    font-style: italic;
}
.mw-stat-graph img {
    width: 350px;
    margin-bottom: 10px;
}

.show-modular {
    display: block;     
    

}
.lire-plus {
    cursor: pointer;
    font-style: italic;
    color: blue;
}

#partnership {
    margin: 0 100px;
    background-color: white;
}

#partners-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 70px;
    margin-top: 50px;
}

#partners-logos a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    text-decoration: none;
    color: black;
}

#partners-logos a img {
    height: 150px;
    width: 150px;
}

.hamburger-container {
    display: none;
}  

@media screen and (max-width: 900px) {
    .main-menu {
        height: 100%;
        width: 100px;    
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        justify-items: center;
    }
   
    
}

@media screen and (max-width: 768px) {
    #entete {
        display: flex;
        flex-direction: column;
        justify-content:first baseline;
        align-items: center;
        background-color: whitesmoke;
        padding: 0px;
    }
    #contact-address {  
        display: flex;
        flex-direction: column;
        gap:5px;
        align-items: flex-start;
        font-size: 10px;
        padding-top: 5px;
        padding-left: 10px;
        color: black;
    }

    #social-media {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 5px;
        padding-top: 5px;
        padding-right: 5px;                
    }

    #baniere-logo {
        display: flex;
        flex-direction: row;    
        justify-content: center;
        align-items: center;     
        background-color: #088395;
        padding: 10px;
        width: 100%;
    }

    img[alt="CRESMAC logo"] {
        width: 80px;
        height: 80px;
    }

    .nom-centre {
        margin-left: 5px;
        width: 450px;  
        font-size: 20pt;
    }

    .nom-centre h1 { 
        font-size: 15pt;
    }

    .carte-pays-ceeac {
        display: flex;
        align-items: center;
        justify-content: baseline;
        height: 150px;
    }

    .carte-pays-ceeac img {
        height: 200px;
        width: auto;
    }

    .hamburger-container {
        display: block;
        width: 100%;
        height: 30px;
        background-color: yellow;
        position: sticky;
        top: 0;
        z-index: 2000;
    }  
    #hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: relative;
        left: 0;
        top: 5px;
        cursor: pointer;
        width: 20px;
        height: 20px;
    }
    .bar {
        border-bottom: 2px solid #088395;
    }    

    .nav {
        display: none;
    }

    .nav-tin {
        display: flex;
        flex-direction: column;
        /* justify-content: flex-start;
        align-items: baseline; */
        gap: 0px;
        position: sticky;
        top: 30px;
        left: 0px;
        z-index: 4000;
        background-color: yellow;
        height: auto;
        width: 200px;
        margin-top: 0px;
        font-size: small;
    }
    
    .main-menu {
        width: 100%;
        height: 30px;
        border-top: 1px dotted blue;
        text-align: justify; 
    }

    .main-menu > a {
        text-decoration: none;                      
    }   
    
    /* .active {
        text-align: left;
    } */

    #le-directeur {
        position: relative;
        z-index: -1;
    }

    .caption-photo-dir {
        text-align: center;
        font-size: 0.5rem;
        font-style: italic;
    }

    .dir-cresmac {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    #partnership {
        width: 100%;
        margin: 0;
        padding: 20px 10px;
    }

    #partners-logos {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        height: auto;
        width: 100%;
        margin-top: 0px;
    }

    #partners-logos img {
        height: 100px;
        width: 100px;
    }

    .mw-stat-graph img {
        width: 100%;
    }


}


#slideshow-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 100%;
    height: auto;
    margin: auto;
    margin-top: 5px;
    background-color: whitesmoke;
    padding-top: 10px;
    padding-bottom: 20px;
}

#slideshow-container img {
    width: 400px;
    height: 300px;
    display: block;
    border-radius: 5px;
}

#slideshow-container .caption-photo-dir {
    text-align: center;
    font-style: italic;
    font-size: small;
}

#slideshow-container .containeur-mot-directeur {
    max-width: 700px;
    height: auto;
    text-align: justify;
}

#content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0px;
    
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}



#main-footer {
    background-color: #088395;
    padding-bottom: 20px;
}
.titre-footer {
    text-align: center;
}
#footer-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.footer-title-border-left, .footer-title-border-right {
    border-top: 2px solid white;
    width: 35%;
    margin: auto;
}
.titre-footer {
    color: white;
    font-size: 14px;
    font-weight: bold;
}
#footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-around;
    align-items:stretch;    
    color: white;
    padding: 10px;
    margin-top: 0px;
}

#footer-links, #copy-rights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items:normal;
}
#footer #footer-links .footer-links-group a {
    text-decoration: none;
    color: white;
}

#social-media-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    align-items: center;
}

#copy-rights {
    background-color: #09637E;
    justify-content: center;
    color: whitesmoke;
    font-size: 12px;
    padding: 10px;
}





