/* Fonts --> */
@import url(fonts/MontserratAlternate/stylesheet.css);
@import url(fonts/Poppin/stylesheet.css);
@import url('https://unpkg.com/css.gg@2.0.0/icons/css/phone.css');
@import url('https://unpkg.com/css.gg@2.0.0/icons/css/pin.css');
@import url('https://unpkg.com/css.gg@2.0.0/icons/css/mail.css');

:root {

    /* Global variables --> */
    --CONTENT-WIDTH: 1150px;
    /* Colors --> */
    --pastel-green: #b5d48b;
    --light-green: #a2c617;
    --turquoise-blue: #008a8f;
    --yellow: #fffd1d;
    --scale: 1;
    --overlay_light: rgba(73, 73, 73, 0.4);
    --overlay_darker: rgba(56, 56, 56, 0.5);
    --overlay_dark: rgba(0, 0, 0, 0.5);
    --overlay_pastel: rgba(181, 212, 139, 0.5);
    --overlay_turquoise: rgba(0, 138, 143, 0.5);
    --overlay_lightgreen: rgba(162, 198, 23, 0.5);
    --overlay_yellow: #fffb1d85;
    ;

}

/* Front page --> */


html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.front-page {
    overflow: hidden;
    background-image: url(Images/Background/DJI_0488HDVh.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 2000px var(--overlay_light);
    background-position: center;
    height: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
}

.front-page h1 {
    font-family: "MontserratAlternates-SemiBold";
    /*font-size: calc(3.3vw + 3.3vh);*/
    font-size: 42px;
    color: white;
    margin: calc(8vw + 8vh) auto 0 auto;
    width: 100%;
    max-width: 96vw;
}

.front-page h2 {
    font-family: "Poppins-Light";
    /*font-size: calc(1.2vw + 1.2vh);*/
    font-size: 20px;
    color: white;
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    margin: calc(3vw + 3vh) auto 0 auto;
}

/* Nav bar --> */

nav {
    margin: 2vw auto 0 auto;
    position: relative;
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    height: calc(var(--CONTENT-WIDTH) / 20);
    background-color: white;
    font-size: 0;
    background-attachment: fixed;
}

nav a {
    line-height: calc(var(--CONTENT-WIDTH) / 20);
    height: 100%;
    font-size: 18px;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Poppins-light";
    text-align: center;
    color: black;
    cursor: pointer;
}

nav a img {
    display: inline-block;
    position: relative;
    z-index: 1;
    display: inline-block;
    background-color: white;
    transition: background-color .3s ease;
    width: 100%;
}



nav .animation {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: 0;
    transition: all .3s ease 0s;
}


a:nth-child(1) {
    width: 20%;
}

a:nth-child(2) {
    width: 21.5%;
}

a:nth-child(3) {
    width: 17%;
}

a:nth-child(4) {
    width: 21.5%;
}

a:nth-child(5) {
    width: 20%;
}

nav a:hover~.animation {
    height: calc(var(--CONTENT-WIDTH) / 20);
    background-color: var(--pastel-green);
}

nav .start-ref,
a:nth-child(1):hover~.animation {
    width: 20%;
    left: 0;
}

nav .start-id,
a:nth-child(2):hover~.animation {
    width: 21.5%;
    left: 20%;
}

nav .start-home,
nav img:hover {
    background-color: var(--pastel-green);
    transition: all .3s ease;
}

nav .start-presta,
a:nth-child(4):hover~.animation {
    width: 21.5%;
    left: 58.5%;
}

nav .start-contact,
a:nth-child(5):hover~.animation {
    width: 20%;
    left: 80%;
}


/* Separators --> */
.separator {
    /* Box shadow properties */
    width: calc(var(--CONTENT-WIDTH) / 2);
    max-width: 96vw;
    height: calc(var(--CONTENT-WIDTH) / 16);
    margin: calc(var(--CONTENT-WIDTH) / 16) auto calc(var(--CONTENT-WIDTH) / 32) auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.separator.small {
    /* Box shadow properties */
    width: calc(var(--CONTENT-WIDTH) / 2);
    max-width: 96vw;
    height: calc(var(--CONTENT-WIDTH) / 32);
    margin: calc(var(--CONTENT-WIDTH) / 64) auto calc(var(--CONTENT-WIDTH) / 32) auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.separator h1 {
    font-family: "Poppins-Light";
    font-size: 30px;
    color: black;
    margin: 0
}

.separator .fancy-line {
    display: flex;
    border: 0;
    height: 1px;
    position: relative;
    margin: auto;
}

.separator .fancy-line:before {
    top: -0.5em;
    height: 1em;
}

.separator .fancy-line:after {
    height: 0.5em;
    top: calc(-0.5em + 1px);
    /* adjusted this */
}

.separator .fancy-line:before,
.fancy-line:after {
    content: '';
    position: absolute;
    width: 100%;
}

.separator .fancy-line,
.fancy-line:before {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 75%);
}

body,
.fancy-line:after {
    background: #f4f4f4;
}

#sep-entreprise {
    margin-bottom: 0;
}

/* ------------------------------- front text content------------------------------- */
.front-text-content {
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    margin: 0 auto calc(var(--CONTENT-WIDTH) / 64) auto;
    text-align: center;
    font-family: "Poppins-Light";
    font-size: 18px;
    display: flex;
}

p {
    text-align: justify
}

/* Panels --> */
.panels_container {
    margin: auto;
    display: flex;
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    height: calc(var(--CONTENT-WIDTH) / 2);
    max-height: 60vh;
    position: relative;

}

.panels {
    height: 100%;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    transition: flex .3s ease;
    position: relative;
}

.panels h2 {
    font-family: "Poppins-Light";
    color: white;
    margin-left: auto;
    margin-right: auto;
    text-align: center;

}

.panels:nth-child(2) {
    margin: 0 2vw 0 2vw;

}

.panels .overlay {
    background-color: var(--overlay_darker);
    width: 100%;
    height: 100%;
    position: absolute;
    transition: background-color .8s ease;
}

.panels .content {
    z-index: 2;
    margin-left: 2vw;
    margin-right: 2vw;
    text-align: center;
}

.panels:hover {
    flex: 2;
}

.panels:hover .overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

.panels p {
    content: "";
    opacity: 0;
    font-size: 0;
}

.panels:hover p {
    font-family: "Poppins-Light";
    opacity: 1;
    transition-timing-function: ease;
    transition-duration: 0.3s;
    transition-property: opacity, font-size;
    transition-delay: 0.4s, 0s;
    color: white;
    font-size: 18px;
}

#Engagement {
    background-image: url("Images/Motsdordre/Dessin\ EngagementVf.png");
}


#Fiabilité {
    background-image: url("Images/Motsdordre/Dessin\ fiabilité\ Vf.png");
}

#Accompagnement {
    background-image: url("Images/Motsdordre/Dessin\ accompagnement\ Vf.png");
}

/*Anti-align panels*/

.skill_container {
    margin: auto;
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    position: relative;
}

.skill {
    height: calc(var(--CONTENT-WIDTH) / 8);
    max-height: 30vh;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

.skill .text-content {
    margin: auto;
}


.skill h2 {
    font-family: "Poppins-Light";
    /*font-size: calc(1.5vw + 1.5vh);*/
    font-size: 24px;
    text-align: center;
}

.skill p,
li {
    text-align: left;
    font-family: "Poppins-Light";
    /*font-size: calc(1.5vw + 1.5vh);*/
    font-size: 20px;
}

.skill li {
    text-align: left;
}


.skill img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 20%;
    margin-right: 3%;
}

.skill:nth-child(1) {
    background-color: var(--overlay_pastel);
}

.skill:nth-child(2) {
    background-color: var(--overlay_lightgreen);
}

.skill:nth-of-type(3) {
    background-color: var(--overlay_turquoise);
}

.skill:nth-of-type(4) {
    background-color: var(--overlay_light);
}

.skill:nth-of-type(5) {
    background-color: var(--overlay_dark);
}

/* Image grid --> */

.img-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-between;
    margin: auto;
    margin-bottom: -5.33vw;
    width: 96vw;
    padding: 0;
}

.img-list li {
    width: 20vw;
    height: 20vw;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.img-list li:not(:last-child) {
    margin-bottom: 5.33vw;
}

.img-list img {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-list li p {
    position: absolute;
    box-sizing: content-box;
    font-family: "Poppins-Light";
    top: 40%;
    /* Adjusted to center vertically */
    left: 50%;
    /* Adjusted to center horizontally */
    transform: translate(-50%, -50%);
    /* Centering trick with translate */
    width: 90%;
    color: #fff;
    font-size: 24;
    opacity: 0;
    text-align: center;
    z-index: 1;
    transition: opacity 0.3s ease 0.3s;
}

.img-list li:hover p {
    opacity: 1;
}

/* The hover effect*/
.img-list li:before {
    transition: all .5s ease;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transform: scale(0);
}

.img-list li:hover:before {
    opacity: .5;
    transform: scale(1);
}

.img-list li:after {
    transition: all .6s ease .2s;
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid #aaa;
    background: #000;
    opacity: 0;
    transform: scale(0);
}

.img-list li:hover:after {
    opacity: .35;
    transform: scale(1);
}

/* Home page footer --> */


.home-page-footer {
    display: flex;
    margin: auto;
    width: var(--CONTENT-WIDTH);
    max-width: 96vw;
    height: fit-content;
    max-height: 15vw;
    align-items: center;
    justify-content: center;

}

.home-page-footer .certif-container {
    flex: 0 0 auto;
    display: flex;
    height: fit-content;
    align-items: center;
    margin-left: auto;
}

.home-page-footer .certif-container .certif {
    margin: 10px;
    /* Adjust the margin as needed */
    height: 115px;
}

.home-page-footer .logo {
    flex: 0 0 auto;
    overflow: hidden;
    margin: 10px;
    /* Adjust the margin as needed */
    height: 150px;

}


.home-page-footer ul {
    position: relative;
    list-style-type: none;
    color: black;
    padding: 0;
    margin-left: 2vw;
    width: 100%;
    height: 100%;
    /* Adjust the width of the ul as needed */
}


/* Center the ul horizontally and vertically within the footer */


.home-page-footer li {
    display: flex;
    font-size: 14px;
    padding: 1vw;
    align-items: center;
    /* Center items vertically */
}

.home-page-footer li i {
    margin-right: 10px;
    font-size: 1em;
}

.mail a {
    font-family: "Poppins-Bold";
    color: #000;
}

.adress {
    font-family: "Poppins-Light";
}

.tel {
    font-family: "Poppins-Bold";
    color: #000;
}


/* Buttons --> */

/* Fill button styling */

.button_container {
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: calc(var(--CONTENT-WIDTH) / 32);
    margin-bottom: calc(var(--CONTENT-WIDTH) / 32);

}

.fill {
    font-family: "Poppins-Light";
    font-size: 20px;
    padding: 10px 40px 10px;
    outline: 0;
    border: 2px solid black;
    color: #000;
    cursor: pointer;
    position: relative;
    background-color: rgba(0, 0, 0, 0);
}

.fill::after {
    background-color: var(--pastel-green);
    content: "";
    width: 100%;
    z-index: -1;
    position: absolute;
    height: 100%;
    top: 0px;
    left: 0px;
    transition: 0.2s;
}

.fill.val::after {
    background-color: var(--pastel-green);
}


.fill.prest::after {
    background-color: var(--pastel-green);
}

.fill.ref::after {
    background-color: var(--pastel-green);
}

/* End of Fill Button  */

/* Media query for smaller screens --> */
@media (max-width: 1150px) {
    nav a {
        font-size: calc(0.8vw + 0.8vh);
    }

    .panels h2,
    .skill h2 {
        font-size: calc(1.4vw + 1.4vh);
    }

    .panels:hover p,
    .skill p,
    .img-list li p {
        font-size: calc(1.2vw + 1.2vh);
    }

    .front-page h1 {
        font-size: calc(2.8vw + 2.8vh);
    }

    .front-page h2 {
        font-size: calc(1.2vw + 1.2vh);
    }

    .home-page-footer .certif-container .certif {
        height: 100px;
    }

    .home-page-footer .logo {
        height: 100px;
    }



}

@media (max-width: 768px) {
    .img-list {
        margin-bottom: -3vw;
    }

    .img-list li {
        width: 30vw;
        height: 30vw;
    }

    .img-list li:not(:last-child) {
        margin-bottom: 3vw;
    }

    .panels h2 {
        font-size: calc(1.1vw + 1.2vh);
    }

    .home-page-footer li {
        display: flex;
        font-size: 11.2px;

    }

    .home-page-footer li i {
        transform: scale(0.8);

    }

    .home-page-footer .certif-container .certif {
        height: 75px;
    }

    .home-page-footer .logo {
        height: 75px;
    }



    .skill li {
        font-size: 20px;

    }
}

@media (max-width: 480px) {

    .separator.small {
        height: calc(var(--CONTENT-WIDTH) / 64);
        margin: calc(var(--CONTENT-WIDTH) / 32) auto calc(var(--CONTENT-WIDTH) / 64) auto;

    }

    /* Image grid --> */

    .img-list {
        margin-bottom: -6vw;
    }

    .img-list li {
        width: 45vw;
        height: 45vw;
    }

    .img-list li:not(:last-child) {
        margin-bottom: 6vw;
    }

    /* Front page --> */
    .front-page {
        background-attachment: scroll;
    }

    .front-page h1 {
        font-size: 34px;
    }

    .front-page h2 {
        font-size: 15px;
    }

    .separator h1 {
        font-size: 28px;
    }

    /* Font-size */
    .panels:hover p,
    .skill p,
    .img-list li p {
        font-size: 15px;
    }

    .panels h2,
    .skill h2 {
        font-size: 20px;

    }


    /* Nav bar --> */
    nav {
        margin: 6vw auto 0 auto;
        height: calc(var(--CONTENT-WIDTH) / 32);
    }

    nav a {
        line-height: calc(var(--CONTENT-WIDTH) / 32);
        height: 100%;
        font-size: 8px;
    }

    nav img {
        display: inline-block;
        position: relative;
        z-index: 1;
        display: inline-block;
        background-color: white;
        transition: background-color .3s ease;
        width: 100%;
    }

    nav .animation {
        position: absolute;
        height: 100%;
        top: 0;
        z-index: 0;
        transition: all .3s ease 0s;
    }


    a:nth-child(1) {
        width: 18.5%;
    }

    a:nth-child(2) {
        width: 19%;
    }

    a:nth-child(3) {
        width: 25%;
    }

    a:nth-child(4) {
        width: 19%
    }

    a:nth-child(5) {
        width: 18.5%
    }

    nav a:hover~.animation {
        height: calc(var(--CONTENT-WIDTH) / 32);
        background-color: var(--pastel-green);
    }

    nav .start-ref,
    a:nth-child(1):hover~.animation {
        width: 18.5%;
        left: 0;
    }

    nav .start-id,
    a:nth-child(2):hover~.animation {
        width: 19%;
        left: 18.5%;
    }

    nav .start-home,
    img:hover {
        background-color: var(--pastel-green);
        transition: all .3s ease;
    }

    nav .start-presta,
    a:nth-child(4):hover~.animation {
        width: 19%;
        left: 62.5%;
    }

    nav .start-contact,
    a:nth-child(5):hover~.animation {
        width: 18.5%;
        left: 81.5%;
    }

    /* Panels --> */

    .panels_container {
        flex-direction: column;
        margin: auto;
        width: 96vw;
        height: calc(var(--CONTENT-WIDTH) / 2);
        max-height: 60vh;
    }

    .panels {
        width: 100%;
        flex: 1;
        margin: auto;
    }

    .panels:nth-child(2) {
        margin: 2vw auto
    }

    .home-page-footer {
        height: var(--CONTENT-WIDTH);
    }

    .home-page-footer li {
        display: flex;
        font-size: 10px;

    }

    .home-page-footer li i {
        transform: scale(0.57);

    }

    .certif-container {
        flex-direction: column;
        height: 100%;
    }

    .home-page-footer .certif-container .certif {
        margin: 5px;
    }

    .home-page-footer .certif-container .certif {
        height: 65px;
    }

    .home-page-footer .logo {
        height: 65px;
    }
}