.reveal {
    opacity: 0;
    transform: translateY(60px);
}

h3 {
    margin: var(--gutter) 0;
}

header#hero {
    width: 100%;
    aspect-ratio: 21/9;
    position: relative;
    color: var(--color-white);

}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black);
    opacity: .5;
    /* couleur + opacité */
    pointer-events: none;
    z-index: 1;
}

#hero::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(
        circle at bottom center,
        rgb(7, 50, 45, 1) 0%,
        rgb(7, 50, 45, .5) 50%,
        rgb(7, 50, 45, .3) 90%,
        transparent 100%
    ); */
    background: linear-gradient(0deg, rgb(224, 255, 243, 1) 1%, rgba(224, 255, 243, 0) 5%);
    z-index: 2;
}

#hero-fig {
    height: 100%;
    width: 100%;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero-texts {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 50%;
    padding: 0 var(--margin);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#hero-texts h1,
#hero-texts h2 {
    filter: drop-shadow(0px 0px 15px rgb(27, 38, 59, .25));
}

#wrapper {
    min-height: 35vh;
}

/* ------------------------------------------------------------------------------ */
/* CARROUSEL */
/* ------------------------------------------------------------------------------ */

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;

}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide figcaption {
    color: var(--color-white);
    position: absolute;
    z-index: 2;
    bottom: var(--gutter);
    right: var(--margin);
    filter: drop-shadow(0px 0px 15px rgb(27, 38, 59, .25));

}

@media screen and (max-width: 1150px) {
    #hero {
        height: 550px;
    }

    #hero-texts {
        width: 100%;
    }
}

@media screen and (max-width: 560px) {
    #hero h1 {
        font-size: 36px;
    }

    #hero h2 {
        font-size: 28px;
    }
}


/* ----------------------------------------------------------------------------------- */
/* INTRO*/
/* ----------------------------------------------------------------------------------- */

section#intro {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gutter)*2);
    align-items: center;
    width: 70%;
    margin: calc(var(--gutter)*4) auto;
}

#intro-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 20vh);
    grid-column-gap: var(--margin);
    grid-row-gap: var(--margin);
}

#zhList {
    list-style-type: disc;
    padding: 0 var(--gutter);
    margin: var(--margin) 0;
}

#wrapper img {
    border-radius: 20px;
    box-shadow: 0px 0px 15px -3px rgb(7, 50, 45, .25);
}


#intro-fig-vertical {
    grid-area: 1 / 1 / 3 / 2;
}

#intro-fig-square {
    grid-area: 1 / 2 / 2 / 3;
}

#intro-text {
    grid-area: 2 / 2 / 3 / 4;
}

#info {
    width: 100%;
    display: flex;
    gap: calc(var(--gutter));
    flex-direction: column;
    align-items: center;
}

#info-card-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--gutter);
    justify-content: center;
}

#info-card-container .card {
    flex-basis: calc(20% - var(--gutter));
    height: 300px;
    position: relative;
}

#info-card-container .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black);
    opacity: 0;
    /* couleur + opacité */
    pointer-events: none;
    border-radius: 20px;
}

#info-card-container .card-fig {
    width: 100%;
    height: 100%;
}

#info-card-container .card-text {
    position: absolute;
    top: 50%;
    right: -100px;
    color: var(--color-white);
    transition: all .3s ease-in-out;
    right: -20%;
    transform: translate(50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 var(--margin);
}

#info-card-container .card-text-container {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    background: rgb(7, 50, 45, .6);
    opacity: 0;
    border-radius: 20px;
    transition: opacity .3s ease-in-out;
    pointer-events: none;
}

#info-card-container .card:hover .card-text-container {
    opacity: 1;
}

#info-card-container .card:hover .card-text {
    right: 50%;
}


@media screen and (max-width: 800px) {
    #intro-container {
        grid-template-columns: repeat(2, 250px);
        grid-template-rows: repeat(2, 1fr);
        text-align: center;
    }

    #intro h3 {
        text-align: center;
    }


    #intro-fig-vertical {
        grid-area: 1 / 1 / 2 / 2;
    }

    #intro-fig-square {
        grid-area: 1 / 2 / 2 / 3;
    }

    #intro-text {
        grid-area: 2 / 1 / 3 / 3;
        text-align: center;
    }
}

@media screen and (max-width: 580px) {
    section#intro {
        width: 100%;
        padding: 0 var(--margin);
        margin: calc(var(--gutter)*4) 0;
    }

    #intro-container {
        display: flex;
        flex-direction: column;

    }

    #intro-fig-vertical,
    #intro-fig-square,
    #intro-text {
        width: 100%;
    }

    #intro-text {
        font-size: 1.25rem;
        font-weight: bold;
    }
}

@media screen and (max-width: 1550px) {
    #info-card-container .card {
        flex-basis: calc(50% - var(--gutter));
    }
}

@media screen and (max-width: 750px) {
    #info-card-container .card {
        flex-basis: 100%;
        aspect-ratio: 1/1;
    }
}

@media (hover: none),
(pointer: coarse) {
    #info-card-container .card-text-container {

        opacity: 1 !important;

    }

    #info-card-container .card-text {

        right: 50% !important;
    }

}

section#why {
    height: 800px;
    width: 80%;
    margin: calc(var(--gutter)*4) auto;
    position: relative;
    padding: 0 var(--margin);
}

section#why::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    pointer-events: none;
    border-radius: 50%;
    width: 800px;
    aspect-ratio: 1/1;
    top: 0;
    left: -20px;
    z-index: -1;
}

section#why::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-secondary);
    pointer-events: none;
    border-radius: 50%;
    width: 150px;
    aspect-ratio: 1/1;
    top: 600px;
    left: 1600px;
    z-index: -1;
}

#why-text {
    height: 100%;
    width: 800px;
    text-align: center;
    color: var(--color-white);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: var(--gutter);
    padding: 0 var(--gutter);
    transform: translateX(-20px);
}

#why-fig {
    width: 400px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 720px;
    top: 0;
    box-shadow: 0px 0px 15px -3px rgb(7, 50, 45, .25);
}

#why-second-text {
    position: absolute;
    left: 780px;
    top: 60%;
    transform: translateY(-100%);
}

#why-second-text h4 {
    margin: var(--margin) 0;
}


@media screen and (max-width: 1760px) {
    section#why::after {
        left: 90%;
    }
}

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

    section#why {
        margin: calc(var(--gutter)*4) auto;
    }

    section#why::before,
    #why-text {
        height: 800px;
        aspect-ratio: 1/1;
    }

    #why-text {
        margin: auto;
    }


    section#why::before {
        left: 50%;
        transform: translateX(-50%);
    }

    section#why::after {
        display: none;
    }

    #why-fig {
        left: 20%;
        transform: translateX(-50%);
        top: 70%;
        width: 300px;
    }

    #why-second-text {
        left: 55%;
        top: 70%;
    }
}

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

    section#why {
        height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--gutter);
        width: 100%;
    }

    #why-text {
        width: 90%;
        color: var(--color-black);
        height: auto;
        aspect-ratio: auto;
        padding: 0;
        transform: translateX(0);
    }

    section#why::before {
        display: none;
    }

    section#why::before {
        left: 50%;
        transform: translateX(-50%);
    }

    section#why::after {
        display: none;
    }

    #why-fig {
        display: none;
    }

    #why-second-text {
        position: inherit;
        left: 0;
        top: 0;
    }
}

#features {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gutter)*2);
    margin-bottom: calc(var(--gutter)*4);
}

section#features h4 {
    text-align: center;
}

#features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--gutter);
}

.features-card {
    flex-basis: calc(25% - var(--gutter));
    aspect-ratio: 2/3;
    position: relative;
}

.features-card .feature-fig {
    width: 100%;
    height: 100%;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    background: rgb(7, 50, 45, .6);
    opacity: 0;
    border-radius: 20px;
    transition: opacity .3s ease-in-out;
    color: var(--color-white);
    text-align: center;
}

.feature-text p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 var(--margin);
}

.features-card:hover .feature-text {
    opacity: 1;
}

@media screen and (max-width: 1100px) {
    .features-card {
        flex-basis: calc(50% - var(--gutter));
    }
}

@media screen and (max-width: 550px) {
    .features-card {
        flex-basis: calc(100% - var(--gutter));
        aspect-ratio: 1/1
    }
}

@media (hover: none),
(pointer: coarse) {
    #features .features-card .feature-text {
        opacity: 1 !important;
    }
}

#team {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gutter)*2);
    margin: calc(var(--gutter)*4) 0;
}

#team #team-title {
    text-align: center;
}

#team-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
    justify-content: center;
}

.team-card {
    flex-basis: calc(20% - var(--gutter));
    aspect-ratio: 3/4;
    background: white;
    box-shadow: 0px 0px 15px -3px rgb(7, 50, 45, .25);
    border-radius: 20px;
}

.team-fig {
    width: 100%;
    height: 60%;
}

#team .team-fig .team-img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: none;
}

.team-text {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

@media screen and (max-width: 1250px) {
    .team-card {
        flex-basis: calc(25% - var(--gutter));
        aspect-ratio: 3/4;
    }
}

@media screen and (max-width: 1100px) {
    .team-card {
        flex-basis: calc(33% - var(--gutter));
        aspect-ratio: 3/4;
    }
}

@media screen and (max-width: 800px) {
    .team-card {
        flex-basis: calc(50% - var(--gutter));
        aspect-ratio: 3/4;
    }
}

@media screen and (max-width: 550px) {
    .team-card {
        flex-basis: calc(100% - var(--gutter));
        aspect-ratio: 1/1;
    }
}