:root {
    /* --primary-bg-color: rgb(24, 26, 27);
    --primary-color: rgb(232, 230, 227);
    --primary-color-2: rgb(232, 230, 227); */

    /* --secondary-bg-color: rgb(126, 2, 6);
    --secondary-color: rgb(253, 95, 101); */

    --footer-bottom-bg-color: #02256c;
    /* --footer-color: rgba(232, 230, 227, 0.59); */

    /* --input-bg-color: rgb(29, 31, 32);
    --input-border-color: rgb(65, 70, 73);
    --input-color: rgb(156, 148, 135); */

    --horizontal-padding: 4%;
    
    /* --primary-bg-color: rgb(232, 230, 227); */
    --primary-color: rgb(24, 26, 27);
    --primary-color-2: rgb(232, 230, 227);
    --primary-color-3: rgb(181, 181, 181);
    --tertiary-bg-color: rgb(240, 240, 240);
    
    --input-bg-color: rgb(207, 206, 206);
    --input-border-color: rgb(65, 70, 73);
    --input-color: rgb(29, 31, 32);

    --secondary-bg-color: rgb(17, 76, 121);
    --secondary-color: rgb(17, 76, 121);
    --secondary-bg-color: #003499;
    --secondary-bg-color: #020381;
    --secondary-bg-color: #020276;
    --secondary-bg-color-2: #003499;
    --primary-bg-color: #fff;

    --button-hover-bg: #FFB606;
    --card-bg-color: #fff;

    --link-hover-color: #f8c76c;
    
}
html {
    scroll-behavior: smooth;
}
img {
    height: inherit;
    width: auto;
}
a {
    color: var(--primary-color-2);
    text-decoration: none;
}
h1, h2, h3 {
    text-align: center;
    color: var(--secondary-color);
}
h1 {
    font-size: 38px;
    font-weight: 500;
    font-style: italic;
    padding: 16px;
}
h3 {
    font-size: 24px;
    font-weight: 525;
    margin: 0;
}
p {
    font-size: 18px;
}
body {
    background-color: var(--primary-bg-color);
    color: var(--primary-color);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    font-size: 16px;
    font-family: sans-serif;
    background-image: url("../images/NQA/IMG-20230910-WA0001.jpg") !important;
    background-size: contain;
    background-repeat: no-repeat;
}
.overlay {
    width: 100%;
    height: 800px;
    background-color: #000;
    opacity: 0.4;
    position: absolute;
}
.content-container {
    background-color: transparent;
    z-index: 2;
}
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    transition: all 0.3s ease-in-out;
    z-index: 5;
    background-color: transparent;
}
.nav-up {
    top: -200px;
    transition: all 0.3s ease-in-out;
}
.nav-down {
    transition: all 0.3s ease-in-out;
}
.nav-scrolled {
    background-color: var(--secondary-bg-color-2);
    transition: all 0.3s ease-in-out;
}
.logo {
    height: 90px;
}
.logo a {
    height: inherit;
}
.small-logo a {
    height: inherit;
}
.header-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-right: 8%;
}
.nav-link {
    padding: 0 16px;
    font-size: 20px;
}
a.active, .nav-link.active > a, .nav-link.active > .nav-link > a {
    color: var(--link-hover-color);
}
.nav-link > a:hover {
    color: var(--link-hover-color);
}
.nav-link.nav-formation .nav-link> a:hover {
    cursor: default;
    color: var(--primary-color-2);
}
.nav-link.nav-formation:hover {
    padding-bottom: 16px;
    margin-bottom: -16px;
}
.nav-link-sub-list {
    display: none;
    padding: 8px;
    margin-left: -8px;
}
.nav-scrolled .nav-link-sub-list {
    background-color: var(--primary-bg-color);
    border: solid 1px #000;
    color: var(--primary-color);
}
.nav-scrolled .nav-link-sub-list > a {
    color: var(--primary-color);
}
.nav-link-sub-list > a:hover {
    color: var(--link-hover-color);
}
.nav-link:hover > .nav-link-sub-list {
    position: absolute;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.separator {
    margin: 0 15%;
    border: solid 0.3px var(--primary-color);
}

.content-container {
    background-color: var(--primary-bg-color);
    padding-bottom: 72px;
    background-color: transparent;
}
.sub-header {
    height: 262px;
    background-color: var(--secondary-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: end;
    background-color: transparent;
}
h1 {
    color: var(--primary-color-2);
}
.bg {
    width: 100%;
    height: 200px;
    background-color: transparent;
}
.svg {
    height: 100px;
    background-color: var(--primary-bg-color);
}
.dynamic-title {
    color: #f3b034;
    font-weight: 550;
}

.carousel-image {
    background-image: url();
    display: none;
    height: 300px;
    background-color: #003499;
}
.carousel-image.active {
    display: block;
}

.lorem2 {
    margin-top: 130px;
    background-color: #fff;
    padding: 16px 10%;

}
.carousel {
    background-color: #fff;
}

.formations {
    /* margin-top: 136px; */
    padding: 0 0 0 0;
    /* background-color: var(--primary-bg-color); */
}
.formation-svg {
    fill: var(--primary-color-2);
    height: 50px;
    width: 100%;
}
.section-title {
    background-color: #fff;
    margin-top: 64px;
}
.section-title > h2 {
    margin-bottom: 0;
}
/* .section-title {
    padding-bottom: 32px;
} */
.formations-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap : 8px;
    background-color: var(--primary-color-2);
    padding: 64px 0;
}

.mini-card {
    display: flex;
    flex-direction: column;
    width: 45%;
    text-align: center;
    align-items: center;
    padding: 16px;
    background-color: var(--card-bg-color);
    border-radius: 24px;
    transition: all 0.3s ease-in-out;
}
.mini-card:hover {
    box-shadow: 0px 0px 16px -4px #003499;
}
.mini-card-image {
    height: 72px;
    width: 72px;
    padding: 16px;
    border: solid 3px var(--secondary-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.mini-card-image-container {
    width: 80px;
}

.mini-card-image-container > svg{
    color: var(--secondary-bg-color);
}

.mini-card-image-container > img {
    width: inherit;
    height: auto;   
    mix-blend-mode: multiply;
    filter: invert(15%) sepia(37%) saturate(7316%) hue-rotate(239deg) brightness(68%) contrast(130%);

}

.mini-card-button {
    cursor: pointer;
    margin-top: 8px;
    padding: 8px 16px;
    background-color: var(--secondary-bg-color);
    color: var(--primary-color-2);
    border:none;
    border-radius: 50px;
    font-size: 16px;
}

.mini-card-button:hover {
    background-color: var(--button-hover-bg);
    color: #000;
}

.formations-and-about-us-container {
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    gap: 32px;
    color: #747474;
}
.us-img:hover {
    transform: scale(1.15);
}
h4 {
    color: #292929;
    font-weight: 400;
    font-size: 20px;
}
.formations-and-about-us {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
}
.formations-and-about-us-title h3 {
    color: #7C7C7C;
    font-size: 16px;
    margin: 0;
}
.formations-and-about-us-title h2 {
    color: #292929;
    font-size: 32px;
    font-weight: 400;
    margin-top: 0;
}
.formations-and-about-us:nth-child(2n+1) {
    flex-direction: row-reverse;
}
.formations-and-about-us-image {
    border-radius: 50%;
    width: 450px;
    height: 450px;
    overflow: hidden;
    background-color: var(--secondary-bg-color-2);
}
.formations-and-about-us-image a {
    width: 100%;
    height: 100%;
}

.formations-and-about-us-image img {
    transform: scale(1.1);
    transition: all .3s ease-in-out;
}
.us-link {
    margin-top: -250px;
    margin-left: 800px;
    transition: all .3s ease-in-out;
    width: 100%;
    color: var(--primary-color-2);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}
.formations-and-about-us-image:hover {
    cursor: pointer;
}
.formations-and-about-us-image:hover img{
    opacity: 0.5;
}
.lorem {
    padding: 8px 10%;
    text-align: center;
    color: #fff;
    background-color: #0000006a;
}

.formations-and-about-us-image:hover .us-link {
    position: relative;
    transform: translateX(-500px);
}
.formations-and-about-us-description-container {
    width: 40%;
    text-align: justify;
}
footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: var(--secondary-bg-color-2);
    color: var(--primary-color-2);
}
.footer-links-container {
    /* margin-top: 48px; */
    padding: 32px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}
.footer-links {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 16px;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qualiopi-logo {
    height: 150px;
}
.qualiopi-logo a {
    height: 100%;
}
footer a { 
    color: var(--fourthiary-color) !important; 
    cursor: pointer;
}
footer a:hover {
    text-decoration: underline;
}
.copyright {
    background-color: var(--footer-bottom-bg-color);
    width: 100%;
    padding: 16px 0;
    /* margin-top: 16px; */
}
.footer-logo {
    height: 90px;
}
.footer-partenaire-logo {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
}
.partenaire-logo {
    height: 64px;
    width: 64px;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}
.partenaire-logo > a {
    width: 100%;
    height: 100%;
}
.small-logo {
    display: none;
}

.footer-social-network {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding-bottom: 8px;
    width: 100%;
    justify-content: center;
    background-color: #032b7c;
    background-color: var(--footer-bottom-bg-color);
}
.footer-social-network-icon a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.footer-social-network-icon img {
    height: inherit;
    width: auto;
}
.footer-social-network-icon {
    width: 16px;
    height: 16px;
}

#menu-toggle {
    display: none;
    z-index: 6;
}

@media screen and (max-width: 1200px) {
    .header-links {
        margin-right: 0;
    }
}
@media screen and (max-width: 1090px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    .logo {
        display: none;
    }
    .nav-up {
        top: 0;
        padding: 0;
    }
    .nav-down {
        top: 0px;
        padding: 0;
    }
    .small-logo {
        display: block;
        margin-bottom: 16px;
        height: 48px;
        width: 128px;
    }
    .nav-link-sub-list {
        display: none;
        padding: 0;
        margin-left: 0;
    }
    .nav-scrolled .nav-link-sub-list {
        background-color: transparent;
        border: 0;
    }
    .nav-scrolled .nav-link-sub-list a {
        color: var(--primary-color-2);
    }
    .nav-scrolled .nav-link-sub-list a:hover {
        color: var(--link-hover-color);
    }
    .menu-button-container{
        display: flex;
    }
    .header-links {
        position: absolute;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        top: 0;
        width: 200px;
        right: 0;
        padding: 0;
        padding-left: 8px;
        height: 100vh;
        background-color: var(--secondary-bg-color);
    }/**/
    .nav-link {
        padding: 16px 0;
        height: unset;
        border-bottom: solid 1px wheat;
        margin-left: -8px;
        padding-left: 8px;
    }

    .nav-link.nav-formation {
        gap: 12px;
        padding: 0;
        margin-left: 0;
        border: 0;
        display: flex;
        flex-direction: column;
    }
    .nav-link.nav-formation > a:hover {
        cursor: default;
        color: var(--primary-color-2);
    }
    .nav-link.nav-formation:hover {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .nav-link.nav-formation:hover + .nav-link {
        border-top: solid 1px var(--primary-color-2);
    }
    .nav-link:hover > .nav-link-sub-list {
        position: unset;
        margin-top: unset;
    }
    .nav-link.nav-formation:not(:focus) > .nav-link-sub-list {
        display: none;
    }
    label.separator {
        /* display: none; */
        border-color: var(--primary-color-2);
    }
    #menu-toggle:checked ~ .header-links .nav-formation:hover .nav-link-sub-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        width: 75%;
        padding-bottom: 16px;
    }
    #menu-toggle {
        display: none;
    }
    .btn-container {
        position: fixed;
        top: 40px;
        right: 0;
        margin-right: 8px;
        margin-top: -12px;
        z-index: 6;
        width: 30px;
        height: 30px;
    }
    .menu-button,
    .menu-button::before,
    .menu-button::after {
      display: block;
      background-color: var(--primary-color-3);
      position: absolute;
      height: 4px;
      width: 30px;
      transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
      border-radius: 2px;
      z-index: 5;
    }
    div.menu-button {
        position: fixed;
        top: 40px;
    }
    /* Top layer of burger */
    .menu-button::before {
        content: '';
        margin-top: -8px;
      }
    /* Bottom layer of burger */
    .menu-button::after {
        content: '';
        margin-top: 8px;
    }
    #menu-toggle:checked + .menu-button-container .menu-button::before {
        margin-top: 0px;
        transform: rotate(405deg);
        background-color: var(--primary-color-2);
    }
    #menu-toggle:checked + .menu-button-container .menu-button {
        background: rgba(255, 255, 255, 0);/* make middle layer of burger transparent */
    }
    #menu-toggle:checked + .menu-button-container .menu-button::after {
        margin-top: 0px;
        transform: rotate(-405deg);
        background-color: var(--primary-color-2);
    }
    #menu-toggle ~ .header-links {
        display: none;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .header-links {
        display: block;
        padding-top: 24px;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu-button-container {
        padding: 0;
    }
    .menu-button {
        right: 0;
        margin-right: 8px;
    }
}
@media screen and (max-width: 1000px) {
    .sub-header {
        height: 210px;
    }
}
@media screen and (max-width: 900px) {
    .footer-links-container {
        flex-wrap: wrap;
        gap: 16px;        
        align-items: stretch;
    }
    .footer-links-container > div:nth-child(1) {
        order: 3;
    }
    .footer-links-container > div:nth-child(2) {
        order: 1;
    }
    .footer-links-container > div:nth-child(3) {
        order: 2;
    }
    .footer-links-container > div:nth-child(4) {
        order: 4;
    }
}
@media screen and (max-width: 840px) {
    .sub-header {
        height: 160px;
    }
    h1 {
        margin-bottom: 0;
    }
    .section-title {
        margin-top: 16px;
    }
    .landing.formations-and-about-us-container .formations-and-about-us {
        flex-direction: column;
        gap: 0;
    }
    .landing.formations-and-about-us-description-container {
        width: 60%;
        padding-bottom: 32px;
    }
}
@media screen and (max-width: 716px) {
    .footer-links-container {
        justify-content: space-between;
    }
    .footer-links-container > div:nth-child(1) {
        order: 3;
    }
    .footer-links-container > div:nth-child(2) {
        order: 1;
    }
    .footer-links-container > div:nth-child(3) {
        order: 2;
    }
    .footer-links-container > div:nth-child(4) {
        order: 4;
    }
    .formations-cards {
        flex-direction: column;
        align-items: center;
    }
    .mini-card {
        width: 80%;
    }
}

@media screen and (max-width: 716px) {
    .landing .formations-and-about-us-description-container {
        width: 80%;
    }
    .landing .formations-and-about-us-image {
        width: 300px;
        height: 300px;
    }
    .footer-links {
        margin: 0 16px;
    }
    .qualiopi-logo {
        margin: 0 16px;
    }
}
@media screen and (max-width: 660px) {
    .sub-header {
        height: 120px;
    }
}
@media screen and (max-width: 600px) {
    .sub-header {
        height: 100px;
    }
    h1 {
        margin-top: 0;
        font-size: 30px;
    }
    .lorem {
        font-size: 14px;
    }
}

@media screen and (max-width: 550px) {
    .sub-header {
        height: 20px;
    }
}

@media screen and (max-width: 500px) {
    .footer-links-container {
        flex-direction: column;
        align-content: center;
    }
    .footer-logo {
        width: 200px;
    }
    .footer-logo > img {
        width: inherit;
        height: auto;
    }
    .footer-partenaire-logo {
        justify-content: center;
    }
}
@media screen and (max-width: 410px) {
    h1 {
        margin-top: 0;
        font-size: 20px;
    }
    .lorem {
        margin: 0;
        font-size: 12px;
    }
}
@media screen and (max-width: 310px) {
    .landing .formations-and-about-us-image {
        width: 250px;
        height: 250px;
    }
}
/*120px*/