@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&display=swap');

/****** VARIABLES ******/

:root {
    --font-color-dark: #FDFDFF;
    --font-color-dark-off: #A494E8;
    --font-color-light: #372488;
    --primary: #482DB7;
    --secondary: #E0DDED;
    --background-color: #F1F0F7;
    --link-nav: #312076;
}

/***** PARAMETRE GENERAUX *****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Funnel Display", sans-serif;
    background-color: var(--primary);
    color: var(--font-color-light);
}

a {
    text-decoration: none;
    margin: 0;
    color: var(--font-color-light);
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cta {
    cursor: pointer;
}

/***** TXT *****/

h1 {
    position: relative;
    font-size: 1.5vw;
    font-weight: 300;
    color: var(--font-color-dark);
}

h2 {
    font-size: 3vw;
    line-height: 3.5vw;
    font-weight: 600;
}

h4 {
    font-size: 7vw;
    font-weight: 500;
    letter-spacing: -0.3vw;
    line-height: 7vw;
}

h5 {
    font-size: 4.5vw;
    font-weight: 500;
    line-height: 4.5vw;
}

.txt-p {
    font-size: 1.2vw;
    line-height: 2.2vw;
}

.o-50 {
    opacity: 50%;
}

.txt-c-d-off {
    color: var(--font-color-dark-off);
}

/***** LOADER *****/

.loader {
    overflow: hidden;
    visibility: visible;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #3d259e;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader.out-loader {
    height: 0;
    visibility: hidden;
    transition: visibility 1s,
        height 1s cubic-bezier(.7,0,.27,1);
}

.loader-txt {
    transition: opacity 1s cubic-bezier(.65,0,.74,.16);
}

h1::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: -0.4vw;
    display: block;
    height: 100%;
    width: 2px;
    background: var(--font-color-dark-off);
    animation: cursor;
    animation-duration: 1s;
    animation-iteration-count: 3;
    animation-timing-function: step-start;
    animation-delay: 2.5s;
}

@keyframes cursor {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/***** MODAL *****/

.modal-container {
    overflow: hidden;
    visibility: hidden;
    position: fixed;
    z-index: 1001;
    top: 0;
    width: 100vw;
    height: 100vh;
    transition: visibility .8s;
}

.modal-container.active-modal {
    visibility: visible;
    transition: visibility 0s;
}

.overlay-modal {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #22165490;
    transition: opacity .8s cubic-bezier(.12,.85,.25,1);
}
.modal-container.active-modal .overlay-modal {
    opacity: 1;
    transition: opacity .8s cubic-bezier(.12,.85,.25,1);
}

.modal {
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    height: 100vh;
    width: 42vw;
    transform: translateX(100%);
    background: var(--background-color);
    padding: 7vw 8vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity .8s cubic-bezier(.12,.85,.25,1),
    transform .8s cubic-bezier(.12,.85,.25,1);
}
.modal-container.active-modal .modal {
    transform: translateX(0);
    transition: opacity .8s cubic-bezier(.12,.85,.25,1),
    transform .8s cubic-bezier(.12,.85,.25,1);
}

.modal-txt, .modal-links {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.modal-links-el a {
    width: fit-content;
    transition: opacity .7s cubic-bezier(.12,.85,.25,1);
}

.modal-links-el a:hover {
    opacity: 1;
}

.modal-subtitle {
    font-size: 1.7vw;
    line-height: 2.7vw;
}

.close-modal {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    background: var(--secondary);
    padding: 2.35vw;
    cursor: pointer;
    display: flex;
    transition: background .7s cubic-bezier(.12,.85,.25,1);
}
.close-icon {
    width: .8vw;
}

.close-modal:hover {
    background: #c8c0ea;
}

/***** HEADER *****/

header {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background-position: bottom right; 
    padding: 5vw 10vw;
}

.background-header {
    object-fit: cover;
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: scale(1.5);
    transition: 2s cubic-bezier(.21,.83,.27,1.01);
}

/** NAV **/

nav {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 3vw;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.nav-scroll {
    background: #492db770;
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
}

nav:hover .nav-scroll {
    transform: translateY(0);
}

.nav-logo {
    width: 10vw;
}

.nav-links {
    display: flex;
    align-items: center;
}

.link-nav, .link-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vw 3vw;
    font-size: 1.2vw;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.link-nav {
    background: var(--link-nav);
    color: var(--font-color-dark-off);
}

.link-nav:hover {
    color: var(--font-color-dark);
    background: #36208e;
}

.link-contact {
    cursor: pointer;
    color: var(--font-color-dark);
    background: #3C2698;
}

.link-contact:hover {
    background: #623bff;
}

/** HEADER CONTAIN **/

.header-title-container {
    display: flex;
    flex-direction: column;
}

.header-title-box {
    overflow: hidden;
    height: 12.5vw;
}

.header-title {
    font-size: 10vw;
    letter-spacing: -0.4vw;
    color: var(--font-color-dark);
    transform: translateY(105%);
    transition: 1.5s cubic-bezier(.21,.83,.27,1.01);
}

.ht-marg {
    margin-top: -3vw;
}

.intro-title.active-intro {
    transform: translateY(0);
}

/** HEADER CTA **/

.cta-1 {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 3vw;
    padding-left: 3vw;
    background: var(--font-color-dark);
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.cta-1:hover {
    background: #DFDBF1;
}

.cta-txt, .cta-footer-txt {
    font-size: 1.2vw;
}

.cta-arrow {
    position: relative;
    padding: 2.2vw;
    background: #DFDBF1;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.cta-1:hover .cta-arrow {
    background: var(--font-color-dark);
}

.cta-arrow-v-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
    height: 1.1vw;
}

.cta-1:hover .arrow-down {
    transform: translateY(0);
}

.arrow-down {
    transform: translateY(-1.2vw);
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.arrow-v {
    height: 1vw;
}

.arrow-h {
    width: 1vw;
}

/***** ABOUT *****/

.about {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    width: 100%;
    height: 100vh;
    background: var(--background-color);
}

.about-photo-box {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    display: flex;
}

.about-photo {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: scale(1.3);
    transition: none;
}

.about-photo.active-photo {
    transform: scale(1);
    transition: 2s cubic-bezier(.21,.83,.27,1.01);
}

.about-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-txt-container {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    width: 32vw;
}

/***** SERVICES *****/

.services {
    background: var(--secondary);
}

.services-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12vw;
}

.services-start-txt-container {
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

.services-img {
    width: 30vw;
}
 
.services-start-title {
    width: 40vw;
}

.services-start-txt {
    font-size: 3vw;
    font-weight: 400;
    width: 38vw;
}

.services-tab {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 1px;
}

.services-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--background-color);
    height: 32vw;
    padding: 4.3vw;
    transition: 1s cubic-bezier(.21,.83,.27,1.01);
}

.check-box {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    height: 4vw;
    width: 4vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #DAD2FF;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.services-card:hover .check-box {
    background: #623bff;
}

.icon-check {
    opacity: 0;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}
.services-card:hover .icon-check {
    opacity: 1;
    transform: scale(1.3);
}

.icon-check path {
    fill: var(--font-color-dark);
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

/*.services-card:hover .icon-check path {
    fill: var(--font-color-dark);
}*/

.services-card-title {
    width: 20vw;
}

.card-txt-box {
    overflow: hidden;
    height: 12vw;
    display: flex;
}

.card-txt {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    transform: translateY(5vw);
    transition: 1s cubic-bezier(.21,.83,.27,1.01);
}

.services-card:hover .card-txt {
    transform: translateY(0);
}

.active-card {
    transform: translateY(0);
}

.services-card-number {
    height: 7vw;
    transition: 1s cubic-bezier(.21,.83,.27,1.01);
}

.number {
    font-size: 7vw;
    font-weight: 300;
    transform: translateY(-2vw);
}

.services-card-title {
    font-size: 2.7vw;
    font-weight: 600;
}

/***** WHY-US *****/

.why {
    padding: 12vw 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10vw;
    background: var(--background-color);
}

.why-txt-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-txt {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    width: 32vw;
}

.why-img-box {
    position: relative;
    width: 35vw;
    height: 38vw;
}

.why-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 35vw;
}

.why-card {
    z-index: 1;
    opacity: 0;
    transform: scale(0.7);
    transition: 1s cubic-bezier(.21,.83,.27,1.01);
}

.active-card-why {
    opacity: 1;
    transform: scale(1);
}

/***** FOOTER *****/

footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10vw;
    padding: 6vw 8vw;
    background: var(--font-color-light);
}

.btn-top {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2.2vw;
    background: #221654;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.btn-top:hover {
    background: #623bff;
}

.btn-top:hover .arrow-up {
    transform: translateY(-1.2vw);
}

.arrow-up {
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.btn-top-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
    height: 1.1vw;
}

.footer-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.footer-title, .footer-txt {
    color: var(--font-color-dark);
}

.footer-title {
    font-weight: 400;
    width: 30vw;
}

.footer-txt {
    width: 28vw;
}

.footer-link {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.cta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3vw;
    padding-left: 2.2vw;
    background: #2C1B73;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.cta-footer:hover {
    background: #221654;
}

.cta-footer-txt {
    color: var(--font-color-dark);
}

.cta-footer-arrow {
    padding: 2.2vw;
    background: #221654;
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.cta-footer:hover .cta-footer-arrow {
    background: #623bff;
}

.cta-arrow-h-box {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.2vw;
    width: 1.1vw;
}

.cta-footer:hover .arrow-right {
    transform: translateX(1.2vw);
}

.cta-footer:hover .arrow-right-2 {
    transform: translateX(1.2vw);
}

.arrow-right, .arrow-right-2 {
    transition: .7s cubic-bezier(.21,.83,.27,1.01);
}

.arrow-right-2 {
    position: absolute;
    top: 0;
    left: -1.2vw;
}

.footer-bottom {
    width: 100%;
}


/********************** MOBILE **********************/

@media screen and (max-width:470px) {

    /***** TXT *****/

    h1 {
        font-size: 1.5vw;
    }

    h2 {
        font-size: 2em;
        line-height: 1.2em;
    }

    h4 {
        font-size: 3.5em;
        letter-spacing: -0.03em;
        line-height: 1em;
    }

    h5 {
        font-size: 3em;
        font-weight: 500;
        line-height: 1.1em;
    }

    .txt-p {
        font-size: 1em;
        line-height: 1.8em;
    }

    /***** LOADER *****/

    h1 {
        font-size: 1em;
    }
        
    h1::after {
        right: -0.4em;
    }

    /***** MODAL *****/

    .modal-container {
        width: 100vw;
    }

    .modal {
        width: 100%;
        padding: 7em 2em 2em 2em;
    }

    .modal-txt, .modal-links {
        gap: 1.5em;
    }

    .modal-subtitle {
        font-size: 1.3em;
        line-height: 1.5em;
    }

    .close-modal {
        padding: 2.2em;
    }
    .close-icon {
        width: 0.7em;
    }

    /***** HEADER *****/

    header {
        padding: 1.5em;
    }

    /** HEADER CONTAIN **/

    .header-title-box {
        height: 6em;
    }

    .header-title {
        font-size: 4.5em;
        letter-spacing: -0.04em;
    }

    .ht-marg {
        margin-top: -1.5em;
    }

    /** HEADER CTA **/

    .cta-1 {
        gap: 2em;
        padding-left: 2em;
    }

    .cta-txt, .cta-footer-txt {
        font-size: 1em;
    }

    .cta-arrow {
        padding: 1.7em 1.7em;
    }

    .cta-1:hover .cta-arrow {
        background: var(--font-color-dark);
    }

    .cta-arrow-v-box {
        gap: 0.2em;
        height: 0.8em;
    }

    .arrow-down {
        transform: translateY(-1em);
    }

    .arrow-v {
        height: 0.8em;
    }

    .arrow-h {
        width: 0.8em;
    }

    /** NAV **/

    .nav-container {
        padding-left: 1.5em;
    }

    .nav-logo {
        width: 8em;
    }

    .link-contact {
        padding: 1.5em 2em;
        font-size: 1em;
    }

    .link-nav {
        display: none;
    }

    .nav-scroll {
        background: #492db770;
        backdrop-filter: blur(10px);
        transform: translateY(0);
    }

    /***** ABOUT *****/

    .about {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .about-photo-box {
        height: 70vh;
        width: 100%;
    }

    .about-txt {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .about-txt-container {
        gap: 1.5em;
        width: 100%;
        padding: 4em 1.5em;
    }

    /***** SERVICES *****/

    .services-start {
        display: flex;
        flex-direction: column;
        align-items: normal;
        justify-content: normal;
        gap: 0;
        padding: 4em 1.5em 3em 1.5em;
    }

    .services-start-txt-container {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
    }

    .services-img {
        display: none;
    }
    
    .services-start-title {
        width: 100%;
    }

    .services-start-txt {
        font-size: 1.2em;
        width: 100%;
    }

    .services-tab {
        display: flex;
        flex-direction: column;
        gap: 1px;
        padding: 0 1.5em 1.5em 1.5em;
    }

    .services-card {
        height: 90vw;
        padding: 1.5em;
    }

    .check-box {
        display: none;
    }
    

    .services-card-title {
        width: 100%;
    }

    .card-txt-box {
        height: auto;
    }

    .card-txt {
        gap: 1em;
        transform: translateY(0);
    }

    .services-card:hover .card-txt {
        transform: translateY(0);
    }

    .services-card-number {
        height: 3em;
    }

    .number {
        font-size: 4em;
        transform: translateY(-0.2em);
    }

    .services-card-title {
        font-size: 2em;
    }

    /***** WHY-US *****/

    .why {
        padding: 5em 1.5em;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: normal;
        align-items: normal;
        gap: 5em;
    }

    .why-txt-container {
        display: flex;
        justify-content: normal;
        align-items: normal;
    }

    .why-txt {
        gap: 2em;
        width: 100%;
    }

    .why-img-box {
        width: 100%;
        height: 90vw;
    }

    .why-img {
        width: 100%;
    }

    /***** FOOTER *****/

    footer {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 5em;
        padding: 1.5em;
        background: var(--font-color-light);
    }

    .btn-top {
        display: none;
    }

    .footer-top {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: normal;
        align-items: start;
        gap: 1.5em;
    }

    .footer-title {
        width: 100%;
    }

    .footer-txt {
        width: 100%;
    }

    .footer-link {
        gap: 1.5em;
    }

    .cta-footer {
        gap: 2em;
        padding-left: 2em;
    }

    .cta-footer-arrow {
        padding: 1.7em;
    }

    .cta-arrow-h-box {
        gap: 0.2em;
        width: 0.8em;
    }

    .cta-footer:hover .arrow-right {
        transform: translateX(1em);
    }

    .cta-footer:hover .arrow-right-2 {
        transform: translateX(1em);
    }

    .arrow-right-2 {
        left: -1em;
    }

    .footer-bottom {
        width: 100%;
    }

}