/* Variables */

:root {
    --main_color: #0B74C2;
    --clr_rubriqueCM: #7A0077;
    --clr_rubriqueDP: #C442F8;
    --clr_rubriqueDC: #8964C2;
    --clr_rubriqueCR: #37BBA1;
    --clr_rubriqueGPB: #9A6636;
    --clr_rubriqueEA: #CEA12A;
    --clr_rubriqueCS: #FFC000;
    --clr_rubriqueBEN: #FD955D;
    --clr_rubriqueEOA: #B83F68;
}



/* Structure */

* {
    box-sizing: border-box;
    font-family: Corbel, Verdana, "Bitstream Vera Sans", sans-serif;
}

body {
    margin: 0;
    padding: 0;
}



/* Classes réutilisables */

.flex_center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* NavBar */

#navbar_container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

#logo_nav {
    max-height: 100%;
    height: 100%;
    width: 430px;
    display: flex;
    justify-content: left;
    align-items: center;
    object-fit: contain;
}

#logo_nav > img {
    max-height: 100px;
    height: 80%;
    max-width: 100%;
    transition: .3s;
}

#logo_nav:hover > img {
    max-height: 110px;
}

nav {
    height: 100%;
    margin-right: 30px;
    margin-top: 30px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    height: 100%;
}

nav ul li {
    margin: 0 30px;
    min-width: 75px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(39, 39, 39);
    transition: .3s;
}

nav ul li a:hover {
    color: #3999e2;
}

.current_link {
    color: var(--main_color);
}

@media (min-width: 1000px) {

    #navbar_container {
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0;
    }

    nav {
        margin-top: 0;
    }

}



/* Disposition */

#bg_image_container {
    background-color: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 50px 0;
    width: 100%;
    min-height: 700px;
}

@media (min-width: 1111px) {

    #bg_image_container {
        background-image:url(../../img/bg_image.jpg);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-color: transparent;
    }

}

#div_description-NAF {
    width: 35%;
    min-width: 400px;
    padding: 15px;
    text-align: center;
    margin: 0 50px 50px 50px;
    background: rgba(221, 239, 255, 0.75) ;
    border-radius: 15px;
}

#div_description-NAF p {
    margin: 10px 0;
}

#div_description-NAF>button {
    padding: 15px;
    background-color: var(--main_color);
    border: none;
    border-radius: 100px;
    color: white;
    transition: 0.3s;
}

#div_description-NAF>button>a {
    color: white;
    text-decoration: none;
}

#div_description-NAF>button:hover {
    font-size: medium;
}





#container_avis {
    position: relative;
    height: 28em;
    width: 35%;
    min-width: 38em;
    background-color: var(--main_color);
    border-radius: 2em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: .5em;
}

@media (max-width: 400px) {
    #container_avis {
        width: 90%;
        min-width: 0;
    }

    #avis_track_container {
        width: 80%;
    }

    .avis_content {
        font-size: 1.15em;
    }

    .txt_header_avis > * + * {
        font-size: .5em;
    }
}

#container_avis > h3 {
    color: white;
    font-size: 2em;
    margin: 0;
}

.carrousel_button {
    width: 5em;
    height: 5em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.carrousel_button--left {
    left: 0px;
}

.carrousel_button--right {
    right: 0px;
}

.carrousel_button > img {
    max-height: 100%;
    margin: auto;
}

#avis_track_container {
    background-color: rgb(243, 243, 243);
    padding: 2em;
    height: 80%;
    width: 100%;
    max-width: 30em;
    position: relative;
    overflow: hidden;
    border-radius: 2em;
}

#avis_track {
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    width: 100%;
    transition: transform 0.25s ease-in;
}

.avis_slide {
    position: absolute;
    inset: 1em 1em 1em 1em;
    width: 100%;
    height: 100%;
}

.avis_content {
    font-size: 1.3em;
    text-align: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    flex-wrap: wrap;
    
}

.avis_content > * {
    margin: 0;
    padding: 0;
}

.header_avis_content {
    display: flex;
    gap: 1em;
    height: 4em;
}

.pp_header_avis {
    height: 3em;
}

.pp_header_avis > img {
    max-height: 100%;
}

.txt_header_avis {
    text-align: start;
}

.txt_header_avis > * {
    margin: 0;
    padding: 0;
    font-weight: 300;
}

.txt_header_avis > * + * {
    font-weight: 900;
    font-size: .8em;
}







#h2_formations {
    text-align: center;
    margin: 60px 0 35px 0;
}

#container_divs_formation {
    margin-bottom: 60px;
    width: 80%;
    height: min-content;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
}

#formations_display_div {
    position: relative;
    inset: 0;
}

.div_formation {
    width: 330px;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 15px;
    margin: 50px;
    box-shadow: 2px 2px 5px grey;
    transition: 0.3s;
    position: relative;
    padding-bottom: 4em;
}

.div_formation:hover {
    box-shadow: 5px 5px 8px grey;
}

.header_div_formation {
    margin: 0;
    padding: 0 1em;
    color: white;
    font-size: 1.3em;
    max-height: 125px;
    min-height: 125px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header_div_formation_1 {
    background-color: var(--clr_rubriqueGPB);
}

#header_div_formation_2 {
    background-color: var(--clr_rubriqueEA);
}

#header_div_formation_3 {
    background-color: var(--clr_rubriqueBEN);
}

.div_formation ul {
    padding: 0 15px;
}

.div_formation ul li {
    list-style: none;
    margin: 15px auto 15px 0;
    text-align: left;
}

.buttons_div_formations {
    border: none;
    padding: 13px;
    color: white;
    border-radius: 100px;
    transition: 0.3s;
    cursor: pointer;
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
}

.buttons_div_formations:hover {
    font-size: medium;
}

.buttons_div_formations a {
    text-decoration: none;
    color: white;
}

#button1_div_formations {
    background-color: var(--clr_rubriqueGPB);
}

#button2_div_formations {
    background-color: var(--clr_rubriqueEA);
}

#button3_div_formations {
    background-color: var(--clr_rubriqueBEN);
}

#end_button_formations {
    margin: 0 auto 5vh auto;
    border: 0;
    background: var(--main_color);
    cursor: pointer;
    padding: 1.5em;
    border-radius: 5em;
    text-align: center;
    transition: .3s;
}

#end_button_formations:hover {
    font-size: 1.05em;
    border: 1px solid lightgray;
    background: rgb(248, 248, 248);
}

#end_button_formations > * {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

#end_button_formations:hover > * {
    color: var(--main_color);
}








#bg_color_div_images {
    background-color: var(--main_color);
    width: 100%;
    padding: 60px;
}

#h2_images {
    color: white;
    text-align: center;
    margin-bottom: 35px;
}

#container_imgs {
    position: relative;
    aspect-ratio: 16/9;
    max-width: 90%;
    margin: 0 auto;
}

@media (min-width: 1000px) {

    #container_imgs {
        width: 1080px;
    }

}

#imgs_button--left {
    left: -5em;
}

#imgs_button--right {
    right: -5em;
}

#imgs_track_container {
    background-color: var(--clr_rubriqueEA);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2.5em;
}

#imgs_track {
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    transition: transform 0.25s ease-in;
}

.imgs_slide {
    position: absolute;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
}

.imgs_slide > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
}







#h2_partenaire {
    margin: 70px 0 15px 0;
    text-align: center;
}

#container_partenaire {
    width: 70%;
    height: 15vh;
    padding: 0;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 2px 2px 5px grey;
    overflow: hidden;
    position: relative;
}

#container_partenaire::before, #container_partenaire::after {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
}

#container_partenaire::before {
    left: 0;
    background: linear-gradient(to left, #111, transparent);
}

#content_partenaire {
    list-style: none;
    height: 100%;
    display: flex;
    margin: 0;
    padding: 0;
}

.gradiant_sides {
    position: absolute;
    top: 0;
    z-index: 1;
    height: 100%;
    width: 10vw;
    padding: 0;
    background: linear-gradient(0.25turn, rgba(128, 128, 128, 0.288), rgba(255, 255, 255, 0));
}

.gradiant_sides--left {
    left: 0;
}

.gradiant_sides--right {
    right: 0;
    transform: rotate(180deg);
}

.logo_partenaire {
    height: 100%;
    max-height: 100%;
    width: 150px;
    min-width: 150px;
    list-style: none;
    animation: scrolling 25s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 0 30px;
}

.logo_partenaire img {
    object-fit: contain;
    height: 100%;
    min-width: 100%;
}

@keyframes scrolling {
    0% { transform: translateX(); }
    100% { transform: translateX(calc(-1050px - 420px)); }
}

@media (max-width: 300px) {
    .logo_partenaire {
        width: 50%; 
    }
}







footer {
    background: #333;
    padding: 0;
    margin: 10vh 0 0 0;
    color: white;
}

#container_footer {
    height: 100%;
    margin: 0 150px;
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    grid-gap: 2.5em;
}

@media (max-width: 500px) {
    #container_footer {
        margin: 0 5%;
    }
}

.columns_footer {  
    width: 100%;
}

.columns_footer > *:not(h5) {
    margin: 0;
    padding: 0;
    list-style: none;
}

#SAO_infos_footer {
    text-align: justify;
}

#horaires-contact_footer {
    font-size: 1.3em;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
}

#links_footer {
    font-size: 1.5em;
}

#links_footer ul li {
    margin: .75em 0;
}

#links_footer ul li a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

#links_footer ul li a:hover {
    color: #258edf;
    font-size: 1.2em;
}

#rs_footer {
    font-size: 1.3em
}

#rs_footer > h4 {
    margin-bottom: 2em;
}

#rs_footer > a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

#rs_footer > a:hover {
    font-size: 1.1em;
}

#rs_footer > a > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2em;
}

#rs_footer > a > div > img {
    width: 3em;
    height: 3em;
}

#horaires-contact_footer * {
    width: 100%;
    padding: 0;
    list-style: none;
}

#horaires-contact_footer address span {
    font-size: .9em;
}

#imgs_footer {
    background: #fff;
    border-radius: 15px;
    height: 10rem;
    max-width: 100%;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}

#imgs_footer img {
    max-height: 100%;
}

.title {
    color: var(--main_color);
    font-size: 1.8rem;
    margin: 0;
}