/* base */
@import "styles/reset.css";
@import "styles/font.css";
@import "styles/variable.css";
@import "styles/utils.css";

/* layout */
@import "cookieConsent.css";

/* cookoie */
@import "layout.css";

/* component */
@import "components/sentence.css";
@import "components/navbar.css";
@import "components/button.css";
@import "components/description.css";
@import "components/carousel.css";
@import "components/stars.css";

video {
    cursor: pointer;
}

a {
    color: var(--font-base);
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* customization */
.customization,
.answer,
.language,
.authorisation .video img {
    border-radius: 1rem;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 9rem);
    padding-bottom: 20px;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.hero>* {
    z-index: 2;
}

.logo {
    max-height: 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Feature */

#features {
    display: flex;
    flex-direction: column;
    gap: clamp(7.75rem, 5.098rem + 11.317vw, 15rem);
}

.feature {
    display: grid;
    grid-template-columns: 58.54% auto;
    gap: min(3.4rem, 4.257rem);
}

.feature .col {
    display: flex;
    flex-direction: column;
    gap: min(3.4rem, 4.257rem);
}

.feature .element {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.feature--reverse {
    grid-template-columns: auto 60%;
}


/* Use Case */
.use-case {
    display: flex;
    justify-content: center;
    width: 90%;
}


/* Discovery */
.discovery {
    margin-bottom: clamp(7.75rem, 5.098rem + 11.317vw, 15rem);
}

.discovery .wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: clamp(5rem, -8.617rem + 21.277vw, 10rem);
    padding: clamp(3rem, -1.766rem + 7.447vw, 4.75rem);
}

.discovery .content__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: clamp(1.67rem, 1.298rem + 1.588vw, 2.688rem);
    font-weight: 500;
    color: var(--white);
}

.discovery .content__texts {
    display: flex;
    gap: 4rem;
    font-size: clamp(0.85rem, 0.737rem + 0.3vw, 1rem);
    font-weight: 700;
}

.discovery .content__texts ul li {
    padding: 0.5rem 0rem;
}

.discovery .content__texts ul {
    border-left: 2px solid #ff327f50;
    padding-left: 1rem;
}

.discovery .buy {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
}

.discovery .cost {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.discovery .cost .cost__price {
    font-size: clamp(3rem, -1.766rem + 7.447vw, 4.75rem);
    font-weight: 700;
}

.discovery .cost .cost__text {
    /*font-size: clamp(0.85rem, 0.658rem + 0.82vw, 1.375rem);*/
    width: max-content;
    font-size: clamp(0.85rem, 0.737rem + 0.3vw, 1rem);
    font-weight: 700;
}


/* Offer */
.offers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.offers>div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(2.76rem, 2.466rem + 1.253vw, 3.563rem) 0;
}

.offers>div:nth-child(4),
.offers>div:nth-child(2) {
    margin-top: 2rem;
}

.offers .offer-card__content {
    padding: 0 clamp(1.1rem, 0.954rem + 0.624vw, 1.5rem);
}

.offers .offer-card__content .offer-card__title {
    text-align: center;
    font-size: clamp(1.67rem, 1.298rem + 1.588vw, 2.688rem);
    font-weight: 500;
    color: var(--white);
}

.offers .offer-card__content .offer-card__price {
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.85rem, 0.658rem + 0.82vw, 1.375rem);
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.offers .offer-card__content .offer-card__price .price-bold {
    font-size: clamp(1.24rem, 0.962rem + 1.186vw, 2rem);
}

.offers .technical-info {
    display: none;
}

.offers .discovery-r {
    display: none;
}

.offer-card {
    position: relative;
}

.offers ul {
    margin-top: 3rem;
}

.offers ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: clamp(0.85rem, 0.737rem + 0.3vw, 1rem);
    margin-bottom: 1.88rem;
}

.offers ul li .icon-step {
    min-width: 25px;
    min-height: 25px;
    background: url("../assets/img/step.svg");
    align-self: baseline;
}

.offers ul li .icon-plus {
    min-width: 25px;
    min-height: 25px;
    background: url("../assets/img/step-plus.svg");
    align-self: baseline;
    background-size: 25px;
}

.offers ul li .icon-step--alt {
    width: 25px;
    height: 20px;
    background: url("../assets/img/cloud-fr.svg") no-repeat;
    background-size: 25px;
}

.offers .features-r {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offers .features-r>div {
    background: rgba(12, 11, 38, 0.75);
    padding: 2rem 0;
    border-top: 1px solid #343567;
    border-bottom: 1px solid #343567;
}


/* Offer Array */
.offer-array table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 1.375rem;
    font-weight: 400;
}

.offer-array table td {
    text-align: center;
    height: 6.5rem;
    border: 1px solid #412e8e5c;
    background: rgba(var(--bg-content), 0.75);
    padding: 0rem 1rem;
    font-size: clamp(0.85rem, 0.737rem + 0.3vw, 1rem);
    font-weight: 700;
}

.offer-array table tr.header {
    position: sticky;
    top: 120px;
}

.offer-array table tr.header td.offer {
    background: rgb(var(--bg-content));
    border-bottom: 4px solid #412e8e5c;
}

.offer-array table tr:nth-child(1) td {
    border-radius: 1.5625rem 1.5625rem 0rem 0rem;
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--white);
}

.offer-array table tr:nth-child(1)>td:nth-child(1) {
    background: none;
    border: none;
    backdrop-filter: none;
}

.offer-array table tr>td:nth-child(5),
tr>td:nth-child(3),
tr>td:nth-child(7) {
    width: 25%;
}

.offer-array table .empty {
    border: none;
    width: 10px;
    background: none;
    padding: 0;
}

.icon-step--bg {
    width: 25px;
    height: 25px;
    background: url("../assets/img/step-alt.svg");
    background-size: 25px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form h3 {
    font-size: clamp(1.67rem, 1.3rem + 1.577vw, 2.68rem);
    font-weight: 500;
    color: var(--white);
    text-align: center;
    width: 50%;
    margin: auto;
    margin-bottom: clamp(3rem, 2.268rem + 3.122vw, 5rem);
    white-space: nowrap;
}

.contact-form h3:before,
.contact-form h3:after {
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 50%;
}

.contact-form h3:before {
    right: 0.5em;
    margin-left: -50%;
    background: linear-gradient(90deg, #19193F 0%, #797BB6 100%);
}

.contact-form h3:after {
    background: linear-gradient(90deg, #797BB6 0%, #19193F 100%);
    left: 0.5em;
    margin-right: -50%;
}

.separator {
    height: 2px;
    background: linear-gradient(90deg, #343567 0%, #19193F 100%);
    width: 50%;
    margin: 3rem auto;
}

.contact-form .contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form .contact>div {
    padding: 3rem;
}

.contact-form .contact .contact__texts {
    flex: 60%;
    font-size: clamp(1.25rem, 0.976rem + 1.171vw, 2rem);
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.contact-form .contact .contact__buttons {
    flex: 40%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-form .contact .contact__buttons a {
    width: 100%;
    display: flex;
    /* justify-content: center; */
    /* Pour les tests par David pour l'alignement des boutons */
    justify-content: left;
    align-items: center;
    gap: 1rem;

}

.contact-form form {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    gap: 3rem;
}

.contact-form form .input {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.contact-form form input,
.contact-form form textarea {
    color: var(--font-base);
    font-size: 1.125rem;
    padding: 2rem 2.875rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid #412e8e5c;
    background: rgba(var(--bg-content), 0.75);
    backdrop-filter: blur(var(--blur));
    width: 100%;
    resize: none;
}

.contact-form form input::placeholder,
.contact-form form textarea::placeholder {
    font-size: 1.125rem 2rem;
    color: var(--font-base);
}

.contact-form form input:focus,
.contact-form form textarea:focus {
    outline: none;
    border: 1px solid var(--secondary);
}

.contact-form form a {
    width: 20%;
    align-self: flex-end;
}



.legals .legals__title {
    text-align: center;
    font-size: clamp(1.67rem, 1.298rem + 1.588vw, 2.688rem);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.legals .legals__content {
    display: flex;
    gap: clamp(3.5rem, -6.032rem + 14.894vw, 7rem);
    justify-content: space-between;
    padding: clamp(2rem, 2.268rem + 3.122vw, 3rem) clamp(1.8rem, 1.544rem + 1.093vw, 2.5rem);
}


.legal {
    padding-inline: clamp(2rem, -0.723rem + 4.255vw, 3rem);
}

.legal .legal__title {
    font-size: clamp(1.37rem, 1.298rem + 1.588vw, 2rem);
    font-weight: 500;
    margin-top: 1.675rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal .legal__para {
    text-align: justify;
    font-size: clamp(0.9rem, 1.298rem + 1.588vw, 1.1rem);
    margin-bottom: 0.75rem;
}



@media (max-width: 1024px) {
    .hero {
        min-height: calc(100vh);
    }

    .hero .logo {
        max-height: 90%;
        max-width: 90%;
    }

    .feature {
        grid-template-columns: auto;
        gap: 2.625rem;
    }

    .feature .col {
        gap: 2.625rem;
    }

    .feature:nth-child(odd) .col:nth-child(2) {
        flex-direction: column-reverse;
    }

    .feature:nth-child(even) .col:nth-child(1) {
        order: 1;
        flex-direction: column-reverse;
    }

    .feature:nth-child(even) .col:nth-child(2) {
        order: 0;
    }


    .offers {
        grid-template-columns: repeat(1, 1fr);
    }

    .offers>div:nth-child(2),
    .offers div:nth-child(4) {
        margin-top: 0rem;
    }

    .offers .discovery-r {
        display: inline;
    }

    .offers .technical-info {
        display: block;
        margin-top: 5rem;
    }

    .offers .technical-info .hidden {
        display: none;
    }

    .offers .technical-info__btn {
        display: flex;
        justify-content: center;
    }

    .offers .technical-info__btn button {
        width: 80%;
    }

    .offers .technical-info__title {
        text-align: center;
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 1px;
        margin-top: 4rem;
        margin-bottom: 1.88rem;
        -webkit-animation: fadeIn 0.5s;
        animation: fadeIn 0.5s;
    }

    .offers .technical-info__list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        -webkit-animation: fadeIn 0.5s;
        animation: fadeIn 0.5s;
    }

    .offers .technical-info__list .technical-info__item {
        background: rgba(12, 11, 38, 0.75);
        margin: 2px;
    }

    .offers .technical-info__list .technical-info__item>div {
        padding: 3rem 1.25rem;
        font-size: 1rem;
        font-weight: 500;
        text-align: center;
    }

    .offers .technical-info__list .technical-info__item>div:nth-child(1) {
        border-top: 1px solid #412e8e5c;
        border-bottom: 1px solid #412e8e5c;
    }

    .offers .technical-info__list .technical-info__item>div:nth-child(2) {
        border-bottom: 1px solid #412e8e5c;
    }


    .contact-form h3:before,
    .contact-form h3:after {
        width: 30%;
    }

    .contact-form .contact {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-form .contact>div {
        padding: 0rem;
    }

    .contact-form form {
        padding: 0rem;
        gap: 1rem;
    }

    .contact-form form .input {
        flex-direction: column;
    }

    .contact-form form input,
    .contact-form form textarea {
        padding: 1.2rem;
    }

    .contact-form form a {
        width: 100%;
    }


    .discovery,
    .offer-array {
        display: none;
    }

    .mention {
        padding-inline: 0;
    }

    .legals__content {
        flex-direction: column;
    }
}



@media (max-width: 768px) {
    .hero svg:nth-child(1) {
        max-width: 60%;
        max-height: 60%;
    }

    .hero svg:nth-child(2) {
        max-width: 90%;
        max-height: 90%;
    }
}