:root {
    --text-color: #4c575f;
    --text-color-2: #58636B;
    --text-color-light: #8596A5;
    --text-color-dark: #4C5860;

    --bg-grey-color: #e9e9e9;
    --bg-dark-color: #21282B;
    --bg-light-grey-color: #f3f3f3;

    --purple-gradient:  linear-gradient(to right, #fcc4d6, #f3b2d4, #e3a2d6, #cd94db, #ae8ae2);
    --purple-gradient-diagonal: linear-gradient(to right top, #fcc4d6, #f3b2d4, #e3a2d6, #cd94db, #ae8ae2);
    --purple: #AB88E2;
    --pink: #E9B6C4;
}

html, body {
    padding: 0;
    margin: 0;
}

body > * {
    padding: 60px calc((100% - 1000px) / 2) ;
}

html.modal-active, body.modal-active {
  overflow: hidden;
}

@font-face {
    font-family: 'NextouLight';
    src: url("fonts/NeoSansProLight.OTF") format("opentype");
}

@font-face {
    font-family: 'NextouRegular';
    src: url("fonts/NeoSansProRegular.OTF") format("opentype");
}

@font-face {
    font-family: 'NextouBold';
    src:url("fonts/NeoSansProBold.OTF") format("opentype")
}

* {
    box-sizing: border-box;
    font-family: 'NextouRegular';
    /* font-family: 'poppins', sans-serif; */
}

h1 {
    font-size: 70px;
    text-align: center;
    font-family: "NextouBold";
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.subtitle {
    text-align: center;
}

span, p, a {
    font-size: 18px;
    color: var(--text-color);
}

a {
    text-decoration: none;
}

@media screen and (max-width: 1050px) {
    body > * {
        padding: 60px calc((100% - 650px) / 2) ;
    }

    h1 {
        font-size: 40px;
    }
}

@media screen and (max-width: 740px) {
    body > * {
        padding: 60px 20px;
    }
}

/*-------------------- header --------------------*/

.header {
    background-color: var(--bg-grey-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 50px;
}


.header .header_buttons.lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    width: 100%;
}

.header .header_buttons.lg > *{
    font-size: 18px;
}

.header .header_buttons.lg .button {
    background-image: var(--purple-gradient);
    border: none;
    color: #FFF;
    padding: 0.75em 1.75em;
    border-radius: 25px;
}

.header .nextou_pad {
    width: 70%;
    margin-left: auto;
    margin-bottom: 200px;
    transform: translateX(150px);
}

.header .header_text {
    position: absolute;
    bottom: 250px;
    width: 460px;
    left: 500px;
    z-index: 5;
}

.header_text span {
    font-size: 45px;
}

.header .header_text>span:nth-child(2) {
    font-weight: 900;
    font-family: "NextouBold";
    color: var(--purple);
}

.header .header_buttons.sm {
    display: none;
}


@media screen and (max-width: 1050px) {

    .header img {
        width: 200px;
    }

    .header .header_buttons {
        margin-bottom: 20px;
    }

    .header .header_text {
        left: 15%;
        bottom: 30%;
        width: 350px;
    }

    .header_text span {
        font-size: 25px;
    }

    .header .nextou_pad {
        margin-bottom: 100px;
        transform: translateX(30px);
    }

    .header .header_buttons.lg {
        display: none;
    }

    .header .header_buttons.sm {
        display: flex;
        padding: 10px 0;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .header .header_buttons.sm input {
       display: none;
    }

    .header .header_buttons.sm label {
        cursor: pointer;
        height: 100%;
        padding:  0 10px;
        color: var(--text-color);
    }

    .header .header_buttons.sm svg {
        width: 25px;
        height: 25px;
    }

    .header .header_buttons.sm ul {
        position: absolute;
        background-color: #FFF;
        bottom: 0;
        transform: translateY(100%);
        width: 100%;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease-out;
        z-index: 10;
    }

    .header .header_buttons.sm input:checked ~ ul {
        max-height: 500px;
        transition: max-height 0.35s ease-in;
    }

    .header .header_buttons.sm li {
        padding: 7px 15px;
        text-align: center;
    }

    .header .header_buttons.sm li {
        list-style: none;
    }
}

@media screen and (max-width: 1600px) {
    .header .nextou_pad {
        transform: translateX(80px);
    }
    .header .header_text {
        left: 15%;
        bottom: 200px;
        /* width: 270px; */
    }

}


@media screen and (max-width: 740px) {

    .header .nextou_pad {
        transform: none;
    }
    
    .header .header_text {
        left: 30px;
        bottom: 100px;
        width: 270px;
    }
}

@media screen and (max-width: 500px) {
    
    .header .header_text {
        left: 30px;
        bottom: 80px;
        width: 220px;
    }
}

/*-------------------- fonctionnalites --------------------*/


.fonctionnalites>div:first-child {
    width: 620px;
    margin: auto;
}

.fonctionnalites>div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin: 100px 0;
}

.fonctionnalites .grid_element {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: max-content 1fr;
    column-gap: 30px;
}

.fonctionnalites .picto {
    background-image: var(--purple-gradient-diagonal);
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: fit-content;
    padding: 15px;
    border-radius: 20px;
}

.fonctionnalites .picto svg {
    width: 48px;
    height: 48px;
    color: #FFF;
}

.fonctionnalites .grid_element span {
    grid-column: 2 / 3;
}

.fonctionnalites .grid_element span:nth-child(2) {
    font-size: 21px;
    font-family: "NextouBold";
}

.fonctionnalites .grid_element span:nth-child(3) {
    font-size: 15px;
    color: var(--text-color-light);
    line-height: 1.5;

}

@media screen and (max-width: 740px) {

    .fonctionnalites>div:first-child {
        width: 100%;
    }

    .fonctionnalites>div:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 60px 0;
    }

    .fonctionnalites .picto {
        grid-row: 1 / 2;
        padding: 7px;
        border-radius: 10px;
    }

    .fonctionnalites .picto svg {
        width: 24px;
        height: 24px;
    }

    .fonctionnalites .grid_element {
        column-gap: 10px;
    }

    .fonctionnalites .grid_element span:nth-child(2) {
        font-size: 18px;
    }

    .fonctionnalites .grid_element span:nth-child(3) {
        font-size: 13px;
    }

}

/*-------------------- service client --------------------*/

.service_client {
    background-color: var(--bg-dark-color);
    position: relative;
}

.service_client>div:first-child {
    width: 620px;
    margin: auto;
}

.service_client h1 span {
    font-size: inherit;
    font-family: inherit;
    color: #FFF;
}

.service_client h1 span:last-child {
    color: var(--purple);
}

.service_client .subtitle {
    color: #FFF;
}

.service_client .element_list {
    width: 75%;
    margin: 100px 0;
}

.service_client .element {
    margin: 50px 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: max-content 1fr;
    column-gap: 20px;
}

.service_client .element span {
    color: #FFF;
    grid-column: 2 / 3;
}

.service_client .element img {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
}

.service_client .element span:nth-child(2) {
    font-size: 21px;
    font-family: "NextouBold";
}

.service_client .element span:nth-child(3) {
    font-size: 15px;
    color: var(--text-color-light);
    line-height: 1.5;
}

.service_client .symbole {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 400px;
}

.service_client .button {
    margin-top: 75px;
    background: transparent;
    font-family: "NextouBold";
    font-size: 21px;
    color: var(--pink);
    border: 5px solid var(--pink);
    padding: 0.75em 1.75em;
    border-radius: 35px;
}

@media screen and (max-width: 1200px) {
    .service_client .element_list {
        width: 65%;
    }

    .service_client .symbole {
        width: 370px;
    }

}

@media screen and (max-width: 1050px) {
    
    .service_client>div:first-child {
        width: 100%;
    }

    .service_client .element_list {
        position: relative;
        z-index: 5;
        margin: 60px 0;
        width: 100%;
    }

    .service_client .element span:nth-child(2) {
        font-size: 18px;
    }

    .service_client .element span:nth-child(3) {
        font-size: 13px;
    }

    .service_client .symbole {
        z-index: 0;
        opacity: 0.4;
        bottom: 60px;
    }

    .service_client .element_list>div:last-child {
        display: flex;
    }

    .service_client button {
        margin: 75px auto 0 auto;
    }
}

/*-------------------- transition --------------------*/
.transition {
    background-color: var(--bg-light-grey-color);
    /* display: grid;
    grid-template-columns: max-content 1fr; */
    padding-left: 700px;
    height: calc(800px + 2 * 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.transition img {
    position: absolute;
    left: 0;
    height: 800px;

}

.transition>div:nth-child(2) {
    display: flex;
    align-items: end;
}

.transition span {
    font-size: 30px;
    color: var(--text-color-2);
}

.transition span:not(:last-child) {
    color: var(--purple);
    font-weight: 600;
}

@media screen and (max-width: 1050px) {
    .transition {
        height: fit-content;
        padding-left: 0px;
        display: grid;
        grid-template-columns: max-content 1fr;
        column-gap: 5px;
        row-gap: 20px;
    }
    .transition img {
        margin: auto 0;
        position: static;
        grid-row: 1 / 3;
        transform: translateX(-50px);
        height: 600px;
        width: auto;
    }

    .transition>div {
        grid-column: 2 / 3;
    }

    .transition span {
        vertical-align: middle;
        font-size: 21px;
    }
}


@media screen and (max-width: 740px) {
    /* .transition {
        height: fit-content;
        padding-left: 0px;
        display: grid;
        grid-template-columns: max-content 1fr;
        column-gap: 5px;
        row-gap: 20px;
    } */
    .transition img {
        /* margin: auto 0;
        position: static;
        grid-row: 1 / 3;
        transform: translateX(-50px); */
        /* position: absolute; */
        height: 300px;
        /* width: auto; */
    }

    /* .transition>div {
        grid-column: 2 / 3;
    }
 */
    .transition span {
        /* vertical-align: middle; */
        font-size: 16px;
    }
}

/*-------------------- temoignages --------------------*/

.temoignages {
    position: relative;
    padding-top: 200px;
}

.temoignages>img {
    position: absolute;
    width: 300px;
    top: 0;
    transform: translateY(-25%);
}

.temoignages .bubble {
    background-color: #515B67;
    display: grid;
    grid-template-columns: max-content 1fr;
    width: 80%;
    column-gap: 40px;
    padding: 40px 100px;
    border-radius: 200px;
    margin: 0 auto;
}

.temoignages .bubble img {
    width: 200px;
    margin: auto 0;
    grid-row: 1 / 4;
}

.temoignages .bubble span {
    grid-column: 2 / 3;
    font-family: "NextouLight";
    color: #FFF;
}

.temoignages .bubble span:nth-child(2) {
        margin-bottom: 30px;
}

.temoignages .bubble span:nth-child(3) {
    font-family: "NextouBold";
        color: var(--purple);
}

@media screen and (max-width: 1050px) {

    .temoignages>img {
        width: 150px;
    }

    .temoignages .bubble {
        width: 100%;
        padding: 20px 50px;
    }

    .temoignages .bubble img {
        width: 130px;
    }

    .temoignages .bubble span{
        font-size: 17px;
    }

}

@media screen and (max-width: 740px) {

    .temoignages {
        padding-top: 100px;
    }

    .temoignages>img {
        width: 130px;
    }

    .temoignages .bubble {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .temoignages .bubble img {
        width: 100px;
        margin: 0 auto;
    }

    .temoignages .bubble span{
        font-size: 15px;
    }

    .temoignages .bubble span:nth-child(2) {
        margin-bottom: 10px;
    }

    .temoignages .bubble span:nth-child(3),
    .temoignages .bubble span:nth-child(4) {
        text-align: end;
        margin-right: 30px;
    }
}

/*-------------------- footer --------------------*/
.footer {
    background-color: var(--bg-dark-color);
}

.footer hr {
    margin: 60px;
}

.footer1 {
    display: flex;
    justify-content: space-between;
}

.footer1 > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer1 >div:not(:first-child) span, 
.footer1 >div:not(:first-child) a {
    font-size: 16px;
}

.footer1 >div:not(:first-child) span:first-child {
    color: var(--purple);
}

.footer .interesse {
    color: #FFF;
    font-size: 19px;
    font-family: "NextouBold";
    text-align: center;
    margin-bottom: 20px;
}

.footer .button {
    background-image: var(--purple-gradient);
    color: #FFF;
    border: none;
    padding: 0.75em 2em;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto;
    font-size: 17px;
    
}

.footer2 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    color: var(--text-color-2);
}

.footer .contact {
    font-size: 19px;
    font-family: "NextouBold";
    color: var(--purple);
}

.footer img {
    width: 200px;
}

@media screen and (max-width: 1050px) {
    .footer img {
        width: 150px;
    }

    .footer2,
    .footer2 .contact {
        font-size: 15px;
    }

}

@media screen and (max-width: 740px) {
    .footer1 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    .footer1>div:first-child {
        grid-column: 1 / 3;
    }

    .footer1>div:not(:first-child) {
        text-align: center;
    }

    .footer2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
        text-align: center;
    }

    .footer2 img {
        grid-column: 1 / 4;
        margin: 0 auto;
    }

    .footer2,
    .footer2 .contact {
        font-size: 15px;
    }
}

/*-------------------- page footer --------------------*/

.page-footer {
    padding: 5px 10px;
    background-color: var(--bg-dark-color);
    display: flex;
    align-items: end;
    padding: 10px 20px;
}

.page-footer button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.page-footer span, .page-footer button {
    font-size: 16px;
    color: var(--text-color-2);
}

.page-footer img {
    width: 150px;
    /* height: 60px; */
    margin-left: auto;
}

@media screen and (max-width: 740px) {

    .page-footer {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
        gap:20px;
    }

    .page-footer img {
        width: 100px;
        grid-row: 1 / 2;
        margin: auto;
    }
}

/*-------------------- modal --------------------*/

.modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    /* transform: scale(0); */
    z-index: 1;
}

.modal-container:not(.open):not(.out) {
    transform: scale(0);
}

.modal-container.open .modal-background {
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-container.open .modal-background .modal {
  opacity: 0;
  animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-container.open + .content {
  animation: scaleBack 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-container.out {
  animation: quickScaleDown 0s 0.5s linear forwards;
}
.modal-container.out .modal-background {
  animation: fadeOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-container.out .modal-background .modal {
  animation: scaleDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.modal-container.out + .content {
  animation: scaleForward 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-container .modal-background {
  display: table-cell;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  vertical-align: middle;
}

.modal-container .modal-background .modal {
  background: white;
  padding: 10px 30px;
  display: grid;
  grid-template-rows: max-content 1fr;
  gap: 20px;
  margin: auto;
  width: 75vw;
  height: 95vh;
  border-radius: 3px;
  font-weight: 300;
  position: relative;
}

.modal-container .modal-background .modal>div:first-child {
    display: flex;
    justify-content: end;
}

.modal-container .modal-background .modal button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-container .modal-background .modal svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.modal-container .modal-background .modal button:hover {
    opacity: 0.7;
}

.modal-container .modal-background .modal>div:last-child {
    text-align: start;
    overflow: scroll;
}

.modal-container h1 {
    font-size: 35px;
}

.modal-container h2 {
    font-size: 21px;
    color: var(--text-color);
}

.modal-container h3 {
    font-size: 16px;
    color: var(--text-color-2);
}

.modal-container p {
    font-size: 16px;
    color: var(--text-color-2);
    list-style: 1.2;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.8) translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
}

@keyframes scaleDown {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
  100% {
    transform: scale(0.8) translateY(1000px);
    opacity: 0;
  }
}
@keyframes scaleBack {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.85);
  }
}
@keyframes scaleForward {
  0% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes quickScaleDown {
  0% {
    transform: scale(1);
  }
  99.9% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes fadeOut {
  0% {
    background: rgba(0, 0, 0, 0.7);
  }
  100% {
    background: rgba(0, 0, 0, 0);
  }
}