/* ==========================================================================
   midi. — index.css
   Styles et mises en page propres à la page d'accueil
   ========================================================================== */

/* ---------------------------------- Intro — plongée immersive 3D ---------------------------------- */
/* L'intro n'est plus une section à part : c'est une couche superposée
   directement DANS .hero (position absolute, inset:0), pour qu'il n'existe
   jamais d'espace vide entre les deux — le hero est déjà en place en
   dessous, prêt, pendant que l'intro joue par-dessus. Au chargement : la
   photo plein cadre + le wordmark qui apparaît doucement, aucun écran noir.
   Au scroll : un unique ScrollTrigger pinné sur .hero fait reculer la photo
   en profondeur (scale + translateZ) tout en resserrant son cadre
   (clip-path, effet fenêtre/hublot) et en la faisant disparaître, pendant
   que le titre et le sous-texte du hero se révèlent en synchronisation dans
   la même timeline. Le pin se relâche exactement quand le hero atteint son
   état final : aucune coupure, le scroll vertical prend le relais au pixel
   près. */

.intro {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow: hidden;
}

.intro__stage {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1800px;
    perspective-origin: 50% 50%;
}

.intro__media {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    will-change: transform, clip-path, opacity;
}

.intro__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.intro__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 15, 12, 0.35) 0%, rgba(14, 15, 12, 0.08) 30%, rgba(14, 15, 12, 0.15) 60%, rgba(14, 15, 12, 0.55) 100%),
        radial-gradient(ellipse at 50% 42%, rgba(14, 15, 12, 0.15) 0%, rgba(14, 15, 12, 0.4) 100%);
}

.intro__wordmark {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: var(--f-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(3.5rem, 11vw, 9rem);
    color: var(--c-solaire);
    will-change: transform, opacity;
}

.intro__cue {
    position: absolute;
    left: 50%;
    bottom: clamp(2rem, 6vh, 3.5rem);
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-caption);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    will-change: transform, opacity;
}

.intro__cue-line {
    width: 1px;
    height: 34px;
    background: var(--c-text-dim);
}

/* ---------------------------------- Hero ---------------------------------- */
/* ---------------------------------- Hero ---------------------------------- */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    perspective: 1400px;
}

.hero__media {
    position: absolute;
    inset: 0;
    transform-origin: 50% 0%;
    will-change: transform;
}

.hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 8%;
    transform: scale(1.08);
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 15, 12, 0.82) 0%, rgba(14, 15, 12, 0.4) 14%, rgba(14, 15, 12, 0.3) 34%, rgba(14, 15, 12, 0.5) 62%, rgba(14, 15, 12, 0.88) 100%),
        linear-gradient(100deg, rgba(14, 15, 12, 0.62) 0%, rgba(14, 15, 12, 0.28) 38%, rgba(14, 15, 12, 0) 66%);
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    padding-inline: var(--pad-inline);
    max-width: 68rem;
}

.hero__eyebrow {
    opacity: 0;
}

.hero__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-hero);
    line-height: 1.02;
    color: var(--c-solaire);
}

.hero__title-line-wrap {
    display: block;
    overflow: hidden;
}

.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(115%);
}

.hero__sub {
    max-width: 30rem;
    color: var(--c-text-dim);
    font-size: var(--fs-body);
    opacity: 0;
}

.hero__scroll-cue {
    position: absolute;
    left: var(--pad-inline);
    bottom: 2.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-caption);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    opacity: 0;
}

.hero__scroll-cue-line {
    width: 1px;
    height: 42px;
    background: var(--c-text-dim);
    position: relative;
    overflow: hidden;
}

.hero__scroll-cue-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-or);
    transform: translateY(-100%);
    animation: cueDrop 2.4s var(--ease-in-out) infinite;
}

@keyframes cueDrop {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ---------------------------------- Manifeste ---------------------------------- */

.manifesto {
    padding: var(--space-section) var(--pad-inline);
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.manifesto__text {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-xl);
    line-height: 1.3;
    color: var(--c-solaire-dim);
}

.manifesto__text em {
    color: var(--c-or);
    font-style: italic;
}

/* ---------------------------------- Galerie horizontale 3D ---------------------------------- */

.gallery {
    position: relative;
}

.gallery__pin {
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
}

.gallery__heading {
    padding-inline: var(--pad-inline);
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gallery__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--fs-xl);
}

.gallery__viewport {
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.gallery__track {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-inline: var(--pad-inline);
    width: max-content;
    transform-style: preserve-3d;
    will-change: transform;
}

.look-card {
    position: relative;
    width: min(62vw, 380px);
    flex: none;
    transform-style: preserve-3d;
    will-change: transform;
}

.look-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.look-card__ghost {
    position: absolute;
    top: -0.4em;
    left: -0.35em;
    z-index: -1;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(6rem, 14vw, 10rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-line);
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none;
}

.look-card__note {
    margin-top: 0.5rem;
    max-width: 20rem;
    color: var(--c-text-dim);
    font-size: 0.85rem;
    font-style: italic;
}

.look-card__frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    will-change: transform;
}

.look-card__frame picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.look-card__caption {
    will-change: transform, opacity;
}

.look-card__glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(237, 237, 228, 0) 40%, rgba(237, 237, 228, 0.35) 50%, rgba(237, 237, 228, 0) 60%);
    transform: translateX(-120%);
    pointer-events: none;
}

.look-card__index {
    margin-top: 1.1rem;
    font-size: var(--fs-caption);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-or);
}

.look-card__name {
    margin-top: 0.3rem;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--c-solaire);
}

.gallery__hint {
    position: absolute;
    bottom: 1.5rem;
    right: var(--pad-inline);
    font-size: var(--fs-caption);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-dim);
}

/* ---------------------------------- Citation / parallax 3D ---------------------------------- */

.quote {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote__media {
    position: absolute;
    inset: -10%;
    transform-style: preserve-3d;
    will-change: transform;
}

.quote__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.quote__veil {
    position: absolute;
    inset: 0;
    background: rgba(14, 15, 12, 0.5);
}

.quote__text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--f-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--fs-xl);
    color: var(--c-solaire);
    will-change: transform;
}

.quote__text p+p {
    color: var(--c-or);
}

/* ---------------------------------- Maison ---------------------------------- */

.maison {
    padding: var(--space-section) var(--pad-inline);
    display: grid;
    grid-template-columns: 0.85fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 88rem;
    margin-inline: auto;
}

.maison__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--c-line);
}

.maison__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.maison__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-xl);
    line-height: 1.15;
    margin-top: 1rem;
}

.maison__col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: start;
}

.maison__text {
    color: var(--c-text-dim);
    max-width: 34rem;
}

@media (max-width: 900px) {
    .maison {
        grid-template-columns: 1fr;
    }

    .maison__media {
        max-width: 26rem;
    }
}

/* ---------------------------------- Cercle / CTA ---------------------------------- */

.cercle {
    padding: var(--space-section) var(--pad-inline) calc(var(--space-section) * 1.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background: var(--c-ombre-soft);
}

.cercle__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-xl);
    max-width: 34rem;
}

.cercle__form {
    margin-top: 1.5rem;
    display: flex;
    width: min(100%, 30rem);
    border-bottom: 1px solid var(--c-line);
    transition: border-color 0.3s var(--ease-out);
}

.cercle__form:focus-within {
    border-color: var(--c-or);
}

.cercle__input {
    flex: 1;
    padding: 0.9rem 0.25rem;
}

.cercle__input::placeholder {
    color: var(--c-text-dim);
}

.cercle__submit {
    padding: 0.9rem 0.25rem;
    font-size: var(--fs-caption);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-or);
    cursor: pointer;
}

.cercle__legal {
    max-width: 24rem;
    color: var(--c-text-dim);
    font-size: var(--fs-caption);
    letter-spacing: 0.02em;
}

/* ---------------------------------- Éditorial ---------------------------------- */

.editorial {
    position: relative;
    padding: var(--space-section) var(--pad-inline);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.editorial__frame {
    width: 100%;
    max-width: 74rem;
    aspect-ratio: 16 / 9;
    perspective: 1600px;
}

.editorial__mask {
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: clip-path;
    transform-style: preserve-3d;
}

.editorial__mask picture {
    display: block;
    width: 100%;
    height: 100%;
}

.editorial__mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    will-change: transform, filter;
}

.editorial__caption {
    max-width: 34rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    will-change: transform, opacity, filter;
}

.editorial__text {
    font-family: var(--f-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--c-solaire-dim);
}

/* ---------------------------------- Matières — parallax en couches ---------------------------------- */

.matieres {
    padding: var(--space-section) var(--pad-inline);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 6vw, 5rem);
    max-width: 88rem;
    margin-inline: auto;
    align-items: center;
}

.matieres__heading {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.matieres__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-xl);
    line-height: 1.15;
}

.matieres__text {
    color: var(--c-text-dim);
    max-width: 30rem;
}

.matieres__scene {
    position: relative;
    height: clamp(22rem, 42vw, 34rem);
    perspective: 1400px;
}

.matieres__layer {
    position: absolute;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid var(--c-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    will-change: transform;
}

.matieres__layer picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.matieres__layer--back {
    top: 0;
    left: 0;
    width: 58%;
    height: 60%;
    z-index: 1;
}

.matieres__layer--mid {
    top: 18%;
    right: 6%;
    width: 50%;
    height: 56%;
    z-index: 2;
}

.matieres__layer--front {
    bottom: 0;
    left: 18%;
    width: 42%;
    height: 46%;
    z-index: 3;
}

@media (max-width: 900px) {
    .matieres {
        grid-template-columns: 1fr;
    }

    .matieres__scene {
        margin-top: 1rem;
    }
}

/* ---------------------------------- Ateliers en chiffres — flip 3D ---------------------------------- */

.chiffres {
    padding: var(--space-section) var(--pad-inline);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.chiffres__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(9rem, 1fr));
    gap: clamp(2rem, 6vw, 5rem);
    max-width: 60rem;
    perspective: 1200px;
}

.chiffres__item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chiffres__num {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    color: var(--c-or);
    transform-origin: 50% 100%;
}

.chiffres__label {
    font-size: var(--fs-caption);
    letter-spacing: 0.06em;
    color: var(--c-text-dim);
    max-width: 14rem;
    margin-inline: auto;
}

@media (max-width: 640px) {
    .chiffres__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ---------------------------------- Signature — clôture pinnée ---------------------------------- */

.signature {
    position: relative;
}

.signature__pin {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature__media {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.signature__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.signature__glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(198, 161, 91, 0) 42%, rgba(198, 161, 91, 0.32) 50%, rgba(198, 161, 91, 0) 58%);
    transform: translateX(-140%);
    pointer-events: none;
}

.signature__veil {
    position: absolute;
    inset: 0;
    background: rgba(14, 15, 12, 0.5);
}

.signature__title {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
    padding-inline: var(--pad-inline);
    will-change: transform;
}

.signature__title-main {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: var(--fs-hero);
    color: var(--c-solaire);
}

.signature__title-sub {
    font-family: var(--f-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--c-or);
}

/* ---------------------------------- Reveal générique ---------------------------------- */

/* [data-reveal] : will-change n'est plus déclaré ici en statique — il est
   posé et retiré dynamiquement par ScrollTrigger.batch() dans global.js,
   uniquement pendant la durée réelle de l'animation. */

@media (max-width: 680px) {
    .gallery__pin {
        padding-block: 2rem;
    }

    .look-card {
        width: 72vw;
    }
}