/* COLORS */
:root {
    --black: #1d222a;
    --white: #ffffff;
    --grey-light: #8d8d8d;

    --green-dark: #2fb99f;
    --green: #d5f4ee;
    --green-light: #eff9f7;
    --blue: #134661;
    --blue-light: #e6ecf3;
    --linear-blue: linear-gradient(65.9deg, #1a506d 29.65%, #307396 92.13%);

    --confidence-dark: #44968a;
    --confidence: #68baae;
    --confidence-light: #dff6f2;

    --care-dark: #318092;
    --care: #519cab;
    --care-light: #e3f7f9;

    --mapatho: #ff6fab;
    --mapatho-light: #fff1f7;

    --prosper-text: #717c77;
    --prosper-background: #deeee6;
}

/* FONTS */
@font-face {
    font-family: "Montserrat";
    src:
        url("../fonts/montserrat/woff2/Montserrat.woff2") format("woff2"),
        url("../fonts/montserrat/ttf/Montserrat-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src:
        url("../fonts/montserrat/woff2/Montserrat.woff2") format("woff2"),
        url("../fonts/montserrat/ttf/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src:
        url("../fonts/montserrat/woff2/Montserrat.woff2") format("woff2"),
        url("../fonts/montserrat/ttf/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* STRUCTURE PAGE */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--blue);
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    @media (max-width: 900px) {
        font-size: 18px;
        line-height: 22px;
    }
}
main {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 50px);
    padding-top: 50px;
    padding-bottom: 80px;
    @media (max-width: 800px) {
        padding-top: 30px;
    }
}
.container {
    width: 100%;
    max-width: 1196px;
    height: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* BASIC ELEMENT */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    margin: 0;
}
h1 {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    @media (max-width: 800px) {
        font-size: 22px;
        line-height: 28px;
    }
}
h2 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    @media (max-width: 800px) {
        font-size: 20px;
        line-height: 28px;
    }
}
h3 {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
}

p {
    margin: 5px 0;
}
button {
    display: block;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 17px 30px;
    background-color: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 4px 8px 0 rgba(77, 145, 225, 0.1);
    @media (max-width: 800px) {
        font-size: 16px;
        line-height: 20px;
    }
}
button:hover {
    background-color: var(--green-dark);
    @media (max-width: 800px) {
        background-color: var(--blue);
    }
}
button.white {
    background-color: var(--white);
    color: var(--blue);
}
button.white:hover {
    color: var(--green-dark);
    @media (max-width: 800px) {
        color: var(--blue);
    }
}
a {
    text-decoration: none;
    color: var(--black);
    width: fit-content;
    display: block;
}
a > button {
    width: fit-content;
}
ul {
    padding: 0;
}
li {
    list-style: none;
}
input,
textarea {
    padding: 12px 20px;
    width: 100%;
    max-width: 540px;
    text-align: left;
    border-radius: 6px;
    border: 1px solid rgba(19, 91, 119, 0.4);
    margin: 10px auto;
    outline: none;
    color: var(--grey);
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
}
input::placeholder,
textarea::placeholder {
    color: var(--black);
    opacity: 0.5;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
}
@media (max-width: 800px) {
    input::placeholder,
    textarea::placeholder {
        font-size: 14px;
    }
}
strong {
    font-weight: bold;
}

/* CLASSE PERSONNALISÉE */
.text-t2 {
    font-weight: 300;
    font-size: 18px;
    line-height: 26px;
    @media (max-width: 800px) {
        font-size: 16px;
        line-height: 26px;
    }
}
.text-t3 {
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    @media (max-width: 800px) {
        font-size: 13px;
        line-height: 13px;
    }
}
.text-t4 {
    font-weight: 400;
    font-size: 10px;
    line-height: 10px;
    @media (max-width: 800px) {
        font-size: 12px;
        line-height: 12px;
        font-weight: 300;
    }
}

.blue {
    color: var(--blue);
}
.white {
    color: var(--white);
}
.grey-light {
    color: var(--grey-light);
}
.pink {
    color: var(--mapatho);
}
.green-dark {
    color: var(--green-dark);
}
.confidence-dark {
    color: var(--confidence-dark);
}
.care-dark {
    color: var(--care-dark);
}
.prosper {
    color: var(--prosper-text);
}
.semi-bold {
    font-weight: 500;
}
.bold-600 {
    font-weight: 600;
}
.bold {
    font-weight: bold;
}
.text-center {
    text-align: center;
}
@media (min-width: 800px) {
    .mobile-only {
        display: none !important;
    }
}
@media (max-width: calc(800px - 1px)) {
    .desktop-only {
        display: none !important;
    }
}
.display-none {
    display: none;
}
.error {
    color: red;
}

/** ========================= PARTIALS ========================= **/
/* === HEADER === */
header {
    width: 100%;
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 100;
}
header nav {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    background-color: var(--white);
    position: relative;
}
header nav .logo a {
    height: 30px;
}
header nav .logo a svg {
    width: 100%;
    height: 100%;
}
header nav .nav-link {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 30px;
    @media (max-width: 800px) {
        right: 15px;
        left: revert;
    }
    background-color: var(--white);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* === FIN HEADER === */

/* === FOOTER === */
footer {
    position: absolute;
    bottom: 0;
    background: var(--linear-blue);
    color: var(--white);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin: auto;
    padding: 20px 80px;
    gap: 10px;
    @media (max-width: 800px) {
        position: inherit;
        flex-direction: column-reverse;
        padding: 20px 30px;
        gap: 20px;
    }
}
footer .links {
    display: flex;
    gap: 15px;
}
footer .links a {
    color: var(--white);
    text-decoration: underline;
}
/* === FOOTER === */

/* === CONTACT FORM === */
.contact-form {
    width: 100%;
    max-width: 600px;
    background-color: var(--white);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #e9ecf1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    @media (max-width: 800px) {
        padding: 40px;
    }
}
.contact-form button {
    margin: 30px auto 0;
}
.contact-form h1 {
    scroll-margin-top: 150px;
    margin-bottom: 30px;
    text-align: center;
}
.contact-form #contact-form-error-mail,
.contact-form #contact-form-error-phone,
.contact-form #contact-form-error,
.contact-form #contact-form-success {
    text-align: center;
    display: none;
}
.contact-form #contact-form-success {
    margin-top: 50px;
    margin-bottom: 50px;
}
.contact-form .row {
    display: flex;
    gap: 10px;
}
.contact-form .checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}
.contact-form .checkbox input {
    width: fit-content;
    margin: 0;
    cursor: pointer;
}
.contact-form .checkbox label {
    cursor: pointer;
}
.contact-form .checkbox label a {
    text-decoration: underline;
    color: var(--grey-light);
    display: inline-block;
}

/* === FIN CONTACT FORM === */

/** ========================= PAGES ========================= **/

/* === PAGE HOME === */
.home .shapes div {
    position: absolute;
    z-index: 1;
    width: 25vw;
}
.home .shapes .left {
    bottom: 0;
    left: 0;
}
.home .shapes .right {
    top: 0;
    right: 0;
}
.home .shapes div svg {
    width: 100%;
    height: 100%;
}

.home.slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px - 50px);
    @media (max-width: 800px) {
        height: 100%;
        min-height: calc(100vh - 96px - 50px);
    }
}
.home.slider .slides-container {
    position: relative;
    overflow: hidden;
    margin: 0;
}
.home.slider .slides-container ul {
    position: relative;
    margin: 0;
    padding: 0;
    height: auto;
    list-style: none;
}
.home.slider .slides-container ul li {
    position: relative;
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100vw;
    height: calc(100vh - 64px - 50px);
    @media (max-width: 800px) {
        height: 100%;
        min-height: calc(100vh - 96px - 50px);
    }
}

.home.slider .slides-container ul li .controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    @media (max-width: 800px) {
        margin: 20px auto;
    }
}
.home.slider .slides-container ul li .controls span {
    cursor: pointer;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    @media (max-width: 800px) {
        width: 40px;
        height: 40px;
    }
}
.home.slider .controls span.prev {
    rotate: -180deg;
}
.home.slider .controls span svg {
    margin-left: 5px;
    width: 20px;
    height: 40px;
    @media (max-width: 800px) {
        width: 16px;
        height: 32px;
    }
}
.home.slider .slides-container ul li .slide-container {
    position: relative;
    z-index: 2;
    height: calc(100vh - 64px - 50px - 70px);
    width: 100vw;
    max-width: 1196px;
    display: grid;
    grid:
        "phone logo" auto
        "phone content" auto
        / auto 1fr;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 50px;
    margin: auto;
    @media (max-width: 800px) {
        grid:
            "logo" auto
            "phone" auto
            "content" 1fr / 1fr;
        padding: 0 20px;
        text-align: center;
        height: 100%;
        min-height: calc(100vh - 96px - 50px - 80px);
    }
}
.home.slider .slides-container ul li.pink {
    background-color: var(--mapatho-light);
}
.home.slider .slides-container ul li.care-dark {
    background-color: var(--care-light);
}
.home.slider .slides-container ul li.confidence-dark {
    background-color: var(--confidence-light);
}
.home.slider .slides-container ul li.prosper {
    background-color: var(--prosper-background);
}
.home.slider .slides-container ul li.api {
    background-color: var(--blue-light);
}
.home.slider .slides-container ul li.human-care {
    background-color: var(--green-light);
}
.home.slider .slides-container ul li.human-care .slide-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 55px;
}
.home.slider .slides-container ul li.human-care .slide-container h1 {
    margin-bottom: 20px;
}
.home.slider .slides-container ul li .slide-container .logo {
    grid-area: logo;
    align-self: flex-end;
    height: 75px;
    @media (max-width: 800px) {
        height: 40px;
        margin: 30px auto 15px;
    }
}
.home.slider .slides-container ul li.api .slide-container .logo {
    height: 40px;
}
.home.slider .slides-container ul li .slide-container .logo svg {
    height: 100%;
    width: auto;
}
.home.slider .slides-container ul li .slide-container .phone {
    grid-area: phone;
    margin: auto;
    width: 350px;
    max-height: calc(100vh - 64px - 50px - 70px);
    @media (max-width: 800px) {
        width: 210px;
    }
}
.home.slider .slides-container ul li .slide-container .phone img {
    max-width: 100%;
    max-height: calc(100vh - 64px - 50px - 70px);
}

.home.slider .slides-container ul li .slide-container .content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 60px;
    gap: 30px;
    @media (max-width: 800px) {
        padding-top: 10px;
        gap: 15px;
    }
}
.home.slider .slides-container ul li .slide-container .content p {
    margin: 0;
    @media (max-width: 800px) {
        margin: 10px auto 0;
    }
}
.home.slider .slides-container ul li .slide-container .content .logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
    @media (max-width: 800px) {
        margin-top: 0;
        justify-content: center;
        row-gap: 10px;
        column-gap: 15px;
    }
}
.home.slider .slides-container ul li .slide-container .content .logos svg {
    height: 30px;
    width: auto;
    @media (max-width: 800px) {
        height: 19px;
    }
}
.home.slider .slides-container ul li .slide-container .content a {
    @media (max-width: 800px) {
        margin: 20px auto 0;
    }
}
/* === FIN PAGE HOME === */

/* === PAGE CONTACT === */
.contacts {
    background-color: var(--green-light);
}

/* === FIN PAGE CONTACT === */

/* === PAGE LEGALES === */
.legal-notice h1,
.privacy-policy h1,
.terms-of-use h1 {
    margin-bottom: 70px;
    @media (max-width: 800px) {
        margin-bottom: 40px;
    }
}
.legal-notice .content h2,
.legal-notice .content h3,
.privacy-policy .content h2,
.privacy-policy .content h3,
.terms-of-use .content h2,
.terms-of-use .content h3 {
    font-weight: bold;
}
.legal-notice .content strong,
.privacy-policy .content strong {
    margin: 10px 0;
    display: block;
}
.legal-notice .content h3,
.privacy-policy .content h3,
.terms-of-use .content h3 {
    margin: 20px 0;
}
.legal-notice .content h2,
.privacy-policy .content h2,
.terms-of-use .content h2 {
    margin: 30px 0;
}
.terms-of-use .content h2 + br,
.terms-of-use .content h3 + br {
    display: none;
}
.terms-of-use .content ul,
.legal-notice .content ul {
    padding-left: 20px;
}
.terms-of-use .content ul li,
.legal-notice .content ul li {
    list-style: inherit;
}
.legal-notice .content a,
.privacy-policy .content a,
.terms-of-use .content a {
    text-decoration: underline;
    display: inline-block;
}

.legal-notice {
    table {
        border: 1px solid #eee;
        margin: 0 0 15px;
        text-align: left;
        width: 100%;
    }

    thead th,
    tr th {
        color: #555;
        font-weight: 700;
        padding: 9px 24px;
    }

    tr td {
        border-top: 1px solid #eee;
        padding: 6px 24px;
    }

    tr:nth-child(1) td {
        border: none;
    }
}

.legal-notice strong {
    display: block;
    padding: 10px 0;
}

@media (max-width: 767px) {
    .legal-notice figure.table {
        overflow: scroll;
    }
}

/* === FIN PAGE LEGALES === */

/* === PAGE 404 === */
.page-404 {
    display: flex;
    position: relative;
}
.page-404 .text {
    width: 100%;
}
.page-404 .text h1 {
    margin-bottom: 30px;
    color: var(--blue);
}
/* === FIN PAGE 404 === */
