/* ========================================
   BASE
   ======================================== */
body {
    font-family: "Red Hat Display", sans-serif;
    margin: 0;
    background-color: var(--color-1);
    image-rendering: optimizeSpeed;
}

/* ========================================
   SECTION HERO
   ======================================== */
#section-0 {
    background-color: var(--color-1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-2);
    margin-top: var(--header-height);
    padding: 10vmin 15vw;
    gap: 15vw;
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

#section-0.is-visible {
    min-height: 80vh;
    gap: 10vw;
    animation: anim-s0 2.5s cubic-bezier(0.4, 0, 0.05, 0.94) forwards;
}

/* Photo container */
.photo-container {
    height: 30vmax;
}

#section-0 #photo-page {
    border-radius: 300px;
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Logo et baseline */
#section-0 .box-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#section-0 #logo-page {
    width: 30vmax;
}

#section-0 h1 {
    opacity: 0.5;
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 400;
}

/* ========================================
   ANIMATIONS HERO
   ======================================== */
@keyframes anim-s0 {
    0% {
        transform: translateY(5vmin);
        gap: 7vw;
        min-height: 100vh;
    }

    45% {
        gap: 7vw;
        min-height: 100vh;
    }

    80% {
        transform: translateY(0);
    }

    100% {
        gap: 15vw;
        transform: translateY(0);
        min-height: 80vh;
    }
}

@keyframes anim-s0-resp {
    0% {
        transform: translateY(5vmax);
        gap: 5vmin;
    }

    45% {
        gap: 5vmin;
    }

    80% {
        transform: translateY(0);
    }

    100% {
        gap: 10vmin;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE HERO
   ======================================== */
@media (max-width: 570px) {
    #section-0 {
        flex-direction: column;
        gap: 10vmin;
        min-height: 60vh;
        animation: anim-s0-resp 2.5s cubic-bezier(0.4, 0, 0.05, 0.94);
    }

    #section-0 h1 {
        right: initial;
    }
}

/* ========================================
   SECTION ACTUALITÉ - BACKGROUND WEBP avec FALLBACK
   ======================================== */

/* Fallback JPG par défaut */
#section-1 {
    min-height: 76vh;
    background: url(/DOC/Photo/cabinet-psychotherapie-fond.jpg) center 50% / 110%;
    position: relative;
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.37);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-1);
    padding: 15vmin;
    gap: 15vmin;
    will-change: background-position;
}

/* Si WebP supporté, charge la version WebP */
.webp #section-1 {
    background-image: url(/DOC/Photo/cabinet-psychotherapie-fond.webp);
}

#section-1 img {
    width: 200px;
}

#section-1 p {
    max-width: 350px;
}

@media (max-width: 870px) {
    #section-1 {
        flex-direction: column;
        gap: 5vw;
    }

    #txt-portfolio {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   SECTION PLEIN ET VIDE
   ======================================== */
#section-3 {
    background-color: var(--color-1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-2);
    height: 80vh;
    overflow: hidden;
}

#section-3 .titre-h1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
}

#section-3 #plein.is-visible {
    font-size: 96px;
    transform: translateY(15px);
    transform-origin: bottom;
    animation: anim-plein 3s cubic-bezier(0.4, 0, 0.05, 0.94);
}

#section-3 #vide.is-visible {
    letter-spacing: 50px;
    font-weight: 200;
    animation: anim-vide 3s cubic-bezier(0.4, 0, 0.05, 0.94);
}

@keyframes anim-plein {
    0% {
        transform: scale(0.23) translateY(15px);
    }

    100% {
        transform: scale(1) translateY(15px);
    }
}

@keyframes anim-vide {
    0% {
        letter-spacing: initial;
        font-weight: 900;
    }

    100% {
        letter-spacing: 50px;
        font-weight: 200;
    }
}

/* ========================================
   SECTION PRESTATIONS
   ======================================== */
#section-2 {
    background-color: var(--color-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-1);
    padding: 15vmin 5vmin;
    padding-bottom: 10vmin;
    gap: 5vmin;
    position: relative;
}

#section-2 .container-picto {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5vmin;
}

@media (max-width: 950px) {
    #section-2 {
        padding: 200px 5vmin;
        padding-bottom: 100px;
        gap: 100px;
    }

    #section-2 .container-picto {
        width: min-content;
        display: flex;
        flex-direction: column;
        justify-content: baseline;
        align-items: baseline;
        gap: 100px;
    }
}

/* Boîtes prestations */
#section-2 .box-presta {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
    width: 100%;
}

.box-presta.is-visible {
    animation: anim-box-presta 0.8s cubic-bezier(0.4, 0, 0.05, 0.94) forwards;
}

.box-presta:nth-child(2).is-visible {
    animation-delay: 0.15s;
}

.box-presta:nth-child(3).is-visible {
    animation-delay: 0.3s;
}

@keyframes anim-box-presta {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

h6 {
    position: absolute;
    font-size: 155.2px;
    font-weight: 900;
    margin: 0;
    line-height: 0;
    z-index: 2;
    opacity: 0.07;
    top: -10px;
}

#section-2 .box-presta img {
    height: 70px;
}