/* =========================================================
   POLICES BYMADA
   BabeSans  -> texte courant
   Starlight -> titres (Regular + Bold)
========================================================= */

@font-face {
    font-family: "BabeSans";
    src: url("../assets/fonts/BabeSans.woff2") format("woff2"),
         url("../assets/fonts/BabeSans.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Starlight";
    src: url("../assets/fonts/Starlight.woff2") format("woff2"),
         url("../assets/fonts/Starlight.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Starlight";
    src: url("../assets/fonts/Starlight-Bold.woff2") format("woff2"),
         url("../assets/fonts/Starlight-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --light: #f2f1ed;
    --dark: #171617;
    --green: #29412c;

    --dark-muted: rgba(23, 22, 23, 0.62);
    --light-muted: rgba(242, 241, 237, 0.66);

    --dark-border: rgba(23, 22, 23, 0.18);
    --light-border: rgba(242, 241, 237, 0.18);

    --title-font: "Starlight", "BabeSans", "Arial Narrow", Arial, sans-serif;
    --body-font: "BabeSans", Arial, Helvetica, sans-serif;

    --content-width: 1440px;
    --case-width: 1660px;

    --page-padding: clamp(22px, 4vw, 64px);

    --text-xs: 9px;
    --text-s: 11px;
    --text-m: 13px;
    --text-base: 15px;
    --text-l: 16px;

    --section-title-size: clamp(48px, 6vw, 96px);
    --section-title-size-tablet: clamp(44px, 8.5vw, 80px);
    --section-title-size-mobile: clamp(38px, 11vw, 64px);

    /* ---- Motion : une seule grammaire pour tout le site ---- */
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);   /* décélération — signature */
    --ease-io: cubic-bezier(0.83, 0, 0.17, 1);          /* symétrique — boucles */

    --dur-fast: 220ms;
    --dur-base: 480ms;
    --dur-slow: 800ms;

    --stagger: 90ms;   /* battement entre deux éléments d'un même groupe */
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;

    background: var(--light);
    color: var(--dark);

    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;

    overflow-x: hidden;
}

main,
section,
article {
    width: 100%;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.section-container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;
}


/* =========================================================
   ÉLÉMENTS COMMUNS
========================================================= */

.section-label {
    display: none;
}

.section-heading,
.clients__heading,
.video-work__intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(34px, 5vw, 70px);

    text-align: center;
}

.section-heading h2,
.clients__heading h2,
.video-work__heading h2 {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    font-family: var(--title-font);
    font-size: var(--section-title-size);
    font-weight: 400;
    line-height: 0.82;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   01 — HERO
========================================================= */

.hero {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;
    min-height: 100svh;

    padding:
        34px
        var(--page-padding)
        32px;

    background: var(--dark);
    color: var(--light);

    overflow: hidden;
}

.hero__video {
    position: absolute;
    z-index: 0;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    background: var(--dark);
}

.hero__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 10, 9, 0.7) 0%,
            rgba(12, 10, 9, 0.3) 52%,
            rgba(12, 10, 9, 0.12) 100%
        ),
        linear-gradient(
            180deg,
            rgba(12, 10, 9, 0.28) 0%,
            transparent 45%,
            rgba(12, 10, 9, 0.64) 100%
        );
}

.hero__top,
.hero__content,
.hero__bottom {
    position: relative;
    z-index: 2;
}

.hero__top,
.hero__bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    font-size: 9px;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero__content {
    width: min(100%, var(--content-width));
    margin: auto;

    text-align: center;
}

.hero__eyebrow {
    margin-bottom: 16px;

    font-family: var(--title-font);
    font-size: clamp(25px, 3vw, 46px);
    line-height: 1;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--title-font);
    font-size: clamp(115px, 20vw, 330px);
    font-weight: 400;
    line-height: 0.69;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.hero__intro {
    max-width: 480px;

    margin:
        clamp(40px, 7vh, 80px)
        auto
        0;

    color: rgba(242, 241, 237, 0.86);

    font-size: var(--text-l);
    font-weight: 300;
}

.hero__bottom {
    align-items: center;
}

.hero__bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================================================
   HERO — CHORÉGRAPHIE D'ENTRÉE
   Séquence pilotée par .hero.is-ready (posé en JS au chargement)
========================================================= */

/* Ken Burns : zoom très lent et continu sur la vidéo de fond.
   Animé via la propriété `scale` (individuelle) pour composer avec la
   parallaxe qui pilote `translate` — les deux ne se marchent pas dessus. */
.hero__video {
    transform-origin: 50% 42%;
    animation: heroKenBurns 28s var(--ease-io) infinite alternate both;
    will-change: scale, translate;
}

@keyframes heroKenBurns {
    from { scale: 1.05; }
    to   { scale: 1.13; }
}

/* Flèche du hero : cible magnétique, retour glissé */
.hero__bottom a[data-magnetic] {
    padding: 10px;
    margin: -10px;
    transition: transform var(--dur-base) var(--ease-out-expo);
    will-change: transform;
}

/* Titre : chaque ligne monte derrière un masque */
.hero__title-line {
    display: block;
    overflow: hidden;
    /* marge de clip pour ne pas rogner les capitales (line-height serré) */
    padding-block: 0.18em;
    margin-block: -0.18em;
}

.hero__title-line > span {
    display: block;
    transform: translateY(120%);
    transition: transform var(--dur-slow) var(--ease-out-expo);
    transition-delay: 220ms;
}

.hero.is-ready .hero__title-line > span {
    transform: translateY(0);
}

/* Éléments secondaires : état initial masqué */
.hero__top span,
.hero__intro,
.hero__bottom {
    opacity: 0;
    transition:
        opacity var(--dur-slow) ease,
        transform var(--dur-slow) var(--ease-out-expo);
}

.hero__intro {
    transform: translateY(18px);
}

/* Révélation échelonnée */
.hero.is-ready .hero__top span {
    opacity: 1;
    transition-delay: 150ms;
}

.hero.is-ready .hero__intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 560ms;
}

.hero.is-ready .hero__bottom {
    opacity: 1;
    transition-delay: 820ms;
}

/* Indice de scroll : respiration douce, une fois l'entrée jouée */
.hero.is-ready .hero__bottom a span {
    animation: heroCue 2.4s var(--ease-io) 1.4s infinite;
}

@keyframes heroCue {
    0%, 100% { transform: translateY(0);   opacity: 0.55; }
    50%      { transform: translateY(5px); opacity: 1; }
}

/* Sécurité : sans JavaScript, tout reste visible (aucune séquence) */
@media (scripting: none) {
    .hero__title-line > span,
    .hero__intro { transform: none; }

    .hero__top span,
    .hero__intro,
    .hero__bottom { opacity: 1; }
}


/* =========================================================
   02 — ABOUT
========================================================= */

.about {
    background: var(--dark);
    color: var(--light);
}

.about__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 620px;
    padding:
        clamp(100px, 12vw, 190px)
        var(--page-padding);

    text-align: center;
}

.about__statement {
    width: 100%;
    max-width: 1220px;

    font-family: var(--title-font);
    font-size: clamp(25px, 2.7vw, 43px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.about__location {
    max-width: 760px;

    margin:
        clamp(70px, 8vw, 120px)
        auto
        0;

    font-size: clamp(19px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.about__services {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 105px;
    padding: 26px var(--page-padding);

    background: var(--light);
    color: var(--dark);

    text-align: center;
}

.about__services p {
    font-family: var(--title-font);
    font-size: clamp(16px, 1.65vw, 27px);
    font-weight: 400;
    line-height: 1.35;
    text-transform: uppercase;
}

.about__services span {
    display: inline-block;
    margin: 0 10px;
}


/* =========================================================
   03 — SERVICES
========================================================= */

.services {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 100vh;
    min-height: 100svh;

    padding: clamp(80px, 8vw, 120px) 0;

    background: var(--dark);
    color: var(--light);
}

.services .section-heading {
    margin-bottom: clamp(70px, 9vw, 130px);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 460px;
    padding: clamp(28px, 3vw, 48px);

    border: 1px solid var(--light-border);

    overflow: hidden;

    transition:
        background-color 250ms ease,
        color 250ms ease;
}

.service-card + .service-card {
    border-left: 0;
}

.service-card:hover {
    background: var(--light);
    color: var(--dark);
}

.service-card__top {
    display: flex;
    justify-content: space-between;

    font-size: 12px;
}

.service-card__content h2,
.service-card__content h3 {
    margin-bottom: 24px;

    font-family: var(--title-font);
    font-size: clamp(30px, 2.8vw, 48px);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
}

.service-card__content p {
    max-width: 390px;

    color: var(--light-muted);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.service-card:hover .service-card__content p {
    color: var(--dark-muted);
}

.service-card__link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;

    margin-top: clamp(50px, 6vw, 90px);
    padding-top: 22px;

    border-top: 1px solid currentColor;

    color: inherit;

    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;

    opacity: 0.78;

    transition:
        opacity 220ms ease,
        padding-left 220ms ease;
}

.service-card__link::before {
    content: "";

    position: absolute;
    top: -1px;
    left: 0;

    width: 0%;
    height: 1px;

    background: currentColor;

    transition: width 320ms ease;
}

.service-card__link::after {
    content: "↗";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 12px;

    transition:
        transform 220ms ease,
        background-color 220ms ease,
        color 220ms ease;
}

.service-card:hover .service-card__link {
    opacity: 1;
    padding-left: 10px;
}

.service-card:hover .service-card__link::before {
    width: 100%;
}

.service-card:hover .service-card__link::after {
    transform: translate(4px, -4px);

    background: var(--dark);
    color: var(--light);
}


/* =========================================================
   04 — SELECTED CLIENTS
========================================================= */

.clients {
    padding:
        clamp(95px, 11vw, 180px)
        0;

    background: var(--light);
    color: var(--dark);
}

.clients__heading {
    margin-bottom: clamp(75px, 9vw, 140px);
}

.clients__heading h2 {
    max-width: 1100px;
}

.clients__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap:
        clamp(65px, 8vw, 120px)
        clamp(45px, 7vw, 100px);

    width: 100%;
    max-width: 1250px;

    margin: 0 auto;
}

.clients__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 130px;
}

.clients__logo img {
    width: auto;
    max-width: min(100%, 300px);
    height: auto;
    max-height: 130px;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   05 — PROJECT INTRO / CHAPTERS
========================================================= */

.video-work {
    position: relative;

    background: var(--light);
    color: var(--dark);
}

.video-work__intro {
    padding-top: clamp(90px, 10vw, 160px);
    padding-bottom: clamp(55px, 6vw, 90px);
}

.video-work__heading {
    text-align: center;
}

.video-work__heading h2 {
    color: var(--dark);
}

.video-work__heading > p {
    max-width: 760px;

    margin:
        clamp(30px, 4vw, 55px)
        auto
        0;

    color: rgba(23, 22, 23, 0.72);

    font-size: clamp(12px, 1vw, 15px);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    text-align: center;
}


/* =========================================================
   CHAPTER INDEX
========================================================= */

.video-index {
    position: sticky;
    top: 18px;
    z-index: 80;

    width: 100%;

    padding:
        0
        var(--page-padding)
        34px;

    background: transparent;
    border: 0;
}

.video-index__inner {
    display: flex;
    align-items: stretch;
    gap: 12px;

    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 12px;

    background: rgba(242, 241, 237, 0.86);
    border: 1px solid rgba(23, 22, 23, 0.08);
    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(23, 22, 23, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    overflow-x: auto;
    scrollbar-width: none;
}

.video-index__inner::-webkit-scrollbar {
    display: none;
}

.video-index a {
    position: relative;

    flex: 1 1 0;
    min-width: 170px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    padding: 16px 18px;

    border: 1px solid transparent;
    border-radius: 18px;

    background: transparent;
    color: rgba(23, 22, 23, 0.52);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background-color var(--dur-fast) var(--ease-out-expo),
        color var(--dur-fast) var(--ease-out-expo),
        border-color var(--dur-fast) var(--ease-out-expo),
        transform var(--dur-fast) var(--ease-out-expo),
        box-shadow var(--dur-fast) var(--ease-out-expo);
}

.video-index a span {
    color: rgba(23, 22, 23, 0.34);

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1;
}

.video-index a:hover {
    background: rgba(23, 22, 23, 0.04);
    color: var(--dark);

    transform: translateY(-1px);
}

.video-index a:hover span {
    color: rgba(23, 22, 23, 0.55);
}

.video-index a.is-active {
    background: var(--dark);
    color: var(--light);

    border-color: var(--dark);

    box-shadow: 0 12px 24px rgba(23, 22, 23, 0.16);
}

.video-index a.is-active span {
    color: rgba(242, 241, 237, 0.56);
}

.video-index a.is-active::after {
    content: "";

    position: absolute;
    top: 14px;
    right: 14px;

    width: 8px;
    height: 8px;

    border-radius: 999px;
    background: #3d5b42;
}

.video-index a:focus-visible {
    outline: 2px solid #3d5b42;
    outline-offset: 2px;
}


/* =========================================================
   PROJECT CASE STUDIES
========================================================= */

.case {
    width: 100%;

    padding:
        clamp(65px, 7vw, 110px)
        var(--page-padding);

    overflow: hidden;
}

.case--light {
    background: var(--light);
    color: var(--dark);
}

.case--dark {
    background: var(--dark);
    color: var(--light);
}

.case__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 2.15fr)
        minmax(280px, 0.75fr);

    gap: clamp(18px, 2.2vw, 38px);
    align-items: stretch;

    width: 100%;
    max-width: var(--case-width);

    margin: 0 auto;
}

.case__media,
.case__content {
    min-height: clamp(560px, 70vh, 860px);
    height: 100%;
}

.case__media {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: clamp(35px, 6vw, 105px);

    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(23, 22, 23, 0.08);
}

.case--dark .case__media {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(242, 241, 237, 0.1);
}

.case__content {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: clamp(18px, 1.8vw, 28px);

    border: 1px solid rgba(23, 22, 23, 0.1);
}

.case--dark .case__content {
    border-color: rgba(242, 241, 237, 0.14);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;
    overflow: hidden;
}

.video-frame video {
    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #000;
}

.case__caption {
    max-width: 650px;

    margin:
        clamp(18px, 2vw, 30px)
        auto
        0;

    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.case--light .case__caption {
    color: var(--dark-muted);
}

.case--dark .case__caption {
    color: var(--light-muted);
}

.case__preview {
    width: 100%;
    margin-bottom: 34px;

    overflow: hidden;
}

.case__preview img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
}

.case__information {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.case__info-block {
    width: 100%;
}

.case__label {
    display: block;

    margin-bottom: 10px;

    opacity: 0.45;

    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.case h3 {
    font-family: var(--title-font);
    font-size: clamp(30px, 2.6vw, 46px);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.case__info-block p,
.case__info-grid p {
    font-size: 12px;
    line-height: 1.6;
}

.case--light .case__info-block p,
.case--light .case__info-grid p {
    color: var(--dark-muted);
}

.case--dark .case__info-block p,
.case--dark .case__info-grid p {
    color: var(--light-muted);
}

.case__info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 26px 22px;

    padding-top: 24px;

    border-top: 1px solid rgba(23, 22, 23, 0.1);
}

.case--dark .case__info-grid {
    border-color: rgba(242, 241, 237, 0.14);
}

.video-project {
    scroll-margin-top: 82px;
}

.video-project .case__inner {
    min-height: min(860px, calc(100vh - 75px));
}

.video-project + .video-project {
    border-top: 1px solid rgba(127, 127, 127, 0.14);
}


/* =========================================================
   CAROUSEL
========================================================= */

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__slide {
    flex: 0 0 100%;
    width: 100%;

    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.carousel__slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;

    object-fit: contain;
    object-position: center;

    background: rgba(23, 22, 23, 0.04);

    cursor: zoom-in;
}

.case--dark .carousel__slide img {
    background: rgba(242, 241, 237, 0.04);
}

.carousel__button {
    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    /* masque le glyphe texte (← / →) : le chevron est dessiné en CSS */
    font-size: 0;
    color: #9a9a9a;

    border: 0;
    background: transparent;

    cursor: pointer;

    transform: translateY(-50%);

    transition: color 200ms ease;
}

/* Chevron fin dessiné avec deux bords — net à toutes les résolutions */
.carousel__button::before {
    content: "";

    width: 12px;
    height: 12px;

    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.carousel__button--prev {
    left: 24px;
}

.carousel__button--prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.carousel__button--next {
    right: 24px;
}

.carousel__button--next::before {
    transform: translateX(-2px) rotate(45deg);
}

.carousel__button:hover {
    color: var(--light);
}

.carousel__button:focus-visible {
    outline: 2px solid var(--light);
    outline-offset: 4px;
    color: var(--light);
}

.carousel__button.is-disabled,
.carousel__button:disabled {
    opacity: 0.24;
    pointer-events: none;
}

.carousel__hint {
    margin: 22px 0 0;

    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: right;
    text-transform: uppercase;
}

.case--light .carousel__hint {
    color: var(--dark-muted);
}

.case--dark .carousel__hint {
    color: var(--light-muted);
}


/* =========================================================
   LIGHTBOX
========================================================= */

body.is-lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: clamp(18px, 4vw, 54px);

    background: rgba(10, 10, 10, 0.92);

    opacity: 0;
    pointer-events: none;

    transition: opacity 220ms ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.lightbox__image {
    max-width: 94vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(242, 241, 237, 0.28);
    border-radius: 999px;

    background: rgba(242, 241, 237, 0.08);
    color: var(--light);

    cursor: pointer;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background-color 200ms ease,
        color 200ms ease,
        transform 200ms ease;
}

.lightbox__close {
    top: 28px;
    right: 28px;

    width: 48px;
    height: 48px;

    font-size: 22px;
}

.lightbox__nav {
    top: 50%;

    width: 56px;
    height: 56px;

    font-size: 24px;

    transform: translateY(-50%);
}

.lightbox__nav--prev {
    left: 28px;
}

.lightbox__nav--next {
    right: 28px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--light);
    color: var(--dark);
}

.lightbox__nav--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox__nav--next:hover {
    transform: translateY(-50%) translateX(3px);
}

.lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    color: rgba(242, 241, 237, 0.68);

    font-size: var(--text-s);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   06 — CONTACT
========================================================= */

.contact {
    padding:
        clamp(48px, 6vw, 82px)
        0
        24px;

    background: var(--dark);
    color: var(--light);
}

.contact__content {
    text-align: center;
}

.contact__eyebrow {
    margin: 0 0 24px;

    color: rgba(242, 241, 237, 0.55);

    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.contact h2 {
    max-width: 720px;
    margin: 0 auto 32px;

    font-family: var(--title-font);
    font-size: clamp(42px, 5.8vw, 82px);
    font-weight: 400;
    line-height: 0.86;
    text-transform: uppercase;
}

.contact h2 span {
    display: block;
}

.contact__details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;

    font-size: 12px;
    line-height: 1.4;
}

.contact__details a {
    position: relative;

    padding-bottom: 4px;

    color: rgba(242, 241, 237, 0.72);

    /* souligné de repos, discret (affordance) */
    border-bottom: 1px solid rgba(242, 241, 237, 0.18);
    text-decoration: none;

    transition: color var(--dur-fast) var(--ease-out-expo);
}

/* trait net qui se trace depuis la gauche au survol */
.contact__details a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 100%;
    height: 1px;

    background: var(--light);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--dur-base) var(--ease-out-expo);
}

.contact__details a:hover,
.contact__details a:focus-visible {
    color: var(--light);
}

.contact__details a:hover::after,
.contact__details a:focus-visible::after {
    transform: scaleX(1);
}

.contact__footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;

    margin-top: clamp(38px, 5vw, 64px);
    padding-top: 18px;

    border-top: 1px solid rgba(242, 241, 237, 0.12);

    color: rgba(242, 241, 237, 0.45);

    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(36px);

    transition:
        opacity var(--dur-slow) ease,
        transform var(--dur-slow) var(--ease-out-expo);

    /* délai en cascade : --i posé en HTML (défaut 0) */
    transition-delay: calc(var(--i, 0) * var(--stagger));
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-media {
    opacity: 0;
    transform: translateY(42px) scale(0.985);

    transition:
        opacity 850ms ease,
        transform 850ms var(--ease-out-expo);

    transition-delay: calc(var(--i, 0) * var(--stagger));
}

.reveal-media.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* héritage : reveal-delay = un cran de stagger */
.reveal-delay {
    --i: 1;
}

/* Révélation cinématographique : le média « se pose » dans son cadre.
   Les cadres (.video-frame, .carousel, .case__preview) sont en overflow:hidden. */
.reveal-media .video-frame video,
.reveal-media .carousel__slide img,
.reveal .case__preview img {
    transform: scale(1.06);
    transition: transform 1200ms var(--ease-out-expo);
}

.reveal-media.is-visible .video-frame video,
.reveal-media.is-visible .carousel__slide img,
.reveal.is-visible .case__preview img {
    transform: scale(1);
}


/* =========================================================
   SCROLL FX — CASE COMPLÈTE EN UN SEUL CADRE
========================================================= */

.case__inner.is-scroll-fx {
    transform:
        translate3d(0, var(--case-scroll-y, 0px), 0)
        scale(var(--case-scroll-scale, 1));

    transform-origin: center;
    transition: transform 80ms linear;
    will-change: transform;
}

.case__inner.is-scroll-fx .case__media,
.case__inner.is-scroll-fx .case__content {
    transform: none;
}


/* =========================================================
   TABLETTES
========================================================= */

@media (max-width: 1050px) {

    .section-heading h2,
    .clients__heading h2,
    .video-work__heading h2 {
        font-size: var(--section-title-size-tablet);
        line-height: 0.84;
    }

    .about__main {
        min-height: 540px;
    }

    .about__statement {
        max-width: 900px;
    }

    .about__location {
        margin-top: 75px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 340px;
    }

    .service-card + .service-card {
        border-top: 0;
        border-left: 1px solid var(--light-border);
    }

    .clients__heading {
        margin-bottom: 90px;
    }

    .clients__logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 70px 45px;
    }

    .clients__logo img {
        max-width: 180px;
        max-height: 75px;
    }

    .case__inner {
        grid-template-columns:
            minmax(0, 1.65fr)
            minmax(250px, 0.85fr);

        gap: 22px;
    }

    .case__media,
    .case__content {
        min-height: 560px;
    }

    .case__media {
        padding: 38px;
    }

    .case__content {
        padding: 18px;
    }

    .case__information {
        gap: 26px;
    }

    .case h3 {
        font-size: clamp(30px, 4vw, 46px);
    }

    .video-index {
        top: 12px;
        padding-bottom: 28px;
    }

    .video-index__inner {
        gap: 10px;
        padding: 10px;
        border-radius: 20px;
    }

    .video-index a {
        min-width: 150px;
        padding: 14px;

        font-size: 10px;
    }

    .video-index a span {
        font-size: 8px;
    }

}


/* =========================================================
   TABLETTES + MOBILES POUR CAROUSEL
========================================================= */

@media (max-width: 900px) {

    .carousel__button {
        display: none;
    }

    .carousel__hint {
        text-align: left;
    }

}


/* =========================================================
   MOBILES
========================================================= */

@media (max-width: 720px) {

    .hero {
        min-height: 100svh;

        padding:
            22px
            var(--page-padding)
            22px;
    }

    .hero__top,
    .hero__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero__content {
        width: 100%;
        margin: auto 0;
    }

    .hero__eyebrow {
        max-width: 300px;

        margin-bottom: 12px;

        font-size: clamp(24px, 7.5vw, 34px);
        line-height: 0.95;
    }

    .hero h1 {
        max-width: 100%;

        font-size: clamp(58px, 18vw, 78px);
        line-height: 0.78;
        letter-spacing: -0.025em;
        white-space: nowrap;
    }

    .hero__intro {
        max-width: 310px;

        margin: 28px auto 0;

        font-size: 12px;
        line-height: 1.55;
    }

    .section-heading h2,
    .clients__heading h2,
    .video-work__heading h2 {
        font-size: var(--section-title-size-mobile);
        line-height: 0.86;
    }

    .about__main {
        align-items: flex-start;

        min-height: auto;
        padding-top: 90px;
        padding-bottom: 90px;

        text-align: left;
    }

    .about__statement {
        font-size: clamp(23px, 7vw, 34px);
        line-height: 1.2;
    }

    .about__location {
        margin: 60px 0 0;

        font-size: clamp(18px, 5.5vw, 25px);
    }

    .about__location br {
        display: none;
    }

    .about__services {
        justify-content: flex-start;

        padding-top: 30px;
        padding-bottom: 30px;

        text-align: left;
    }

    .about__services p {
        font-size: 17px;
        line-height: 1.55;
    }

    .about__services span {
        margin: 0 5px;
    }

    .services {
        min-height: auto;
        padding: 64px 0;
    }

    .services .section-heading {
        margin-bottom: 34px;
    }

    .services__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card {
        position: relative;

        min-height: 118px;
        padding: 16px 8px 34px;

        justify-content: center;

        border: 1px solid var(--light-border);
        text-align: center;

        overflow: hidden;
    }

    .service-card + .service-card {
        border-left: 0;
        border-top: 1px solid var(--light-border);
    }

    .service-card__top {
        display: none;
    }

    .service-card__content h2,
    .service-card__content h3 {
        max-width: 100%;
        margin: 0;

        font-size: clamp(16px, 4.6vw, 22px);
        line-height: 0.95;
        letter-spacing: -0.015em;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    .service-card__content p {
        display: none;
    }

    .service-card__link {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        margin: 0;
        padding: 0;

        border: 0;

        font-size: 0;
        opacity: 1;
    }

    .service-card__link::before {
        display: none;
    }

    .service-card__link::after {
        position: absolute;
        right: 9px;
        bottom: 9px;

        width: 20px;
        height: 20px;

        font-size: 8px;

        opacity: 0.72;
    }

    .clients {
        padding-top: 70px;
        padding-bottom: 76px;
    }

    .clients__heading {
        margin-bottom: 48px;
    }

    .clients__heading h2 {
        max-width: 340px;

        font-size: clamp(44px, 13vw, 66px);
        line-height: 0.88;
    }

    .clients__logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 34px 28px;

        max-width: 330px;
    }

    .clients__logo {
        min-height: 64px;
    }

    .clients__logo img {
        max-width: 118px;
        max-height: 48px;
    }

    .video-work__intro {
        padding-top: 85px;
        padding-bottom: 50px;
    }

    .video-work__heading > p {
        margin-top: 28px;

        font-size: 12px;
        line-height: 1.6;
    }

    .video-index {
        position: sticky;
        top: 0;
        z-index: 90;

        width: 100%;
        max-width: 100%;

        padding: 0;

        overflow: visible;
    }

    .video-index__inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 8px var(--page-padding);

        gap: 7px;

        overflow: visible;

        border-left: 0;
        border-right: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .video-index a {
        min-width: 0;

        padding: 11px 8px;

        border-radius: 13px;

        font-size: 8px;
        line-height: 1.2;
        letter-spacing: 0.06em;

        text-align: left;
    }

    .video-index a span {
        display: none;
    }

    .video-index a.is-active::after {
        top: 9px;
        right: 9px;

        width: 6px;
        height: 6px;
    }

    .case {
        padding: 52px var(--page-padding);
    }

    .case__inner,
    .case--light .case__inner,
    .case--dark .case__inner {
        display: flex;
        flex-direction: column;

        gap: 22px;
        min-height: auto;
    }

    .case__media {
        order: 1;

        min-height: auto;
        height: auto;

        padding: 0;

        background: transparent;
        border: 0;
    }

    .case__content {
        order: 2;

        min-height: auto;
        height: auto;

        padding: 0;

        border: 0;
    }

    .case__preview {
        display: none;
    }

    .video-frame,
    .carousel {
        width: 100%;
    }

    .video-frame {
        aspect-ratio: 16 / 9;
    }

    .video-frame video {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }

    .carousel__slide {
        flex-basis: 100%;
    }

    .carousel__slide img {
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

    .case__caption {
        margin-top: 12px;

        font-size: 9px;
        line-height: 1.45;
        text-align: left;
    }

    .case__information {
        gap: 20px;
    }

    .case__label {
        margin-bottom: 7px;

        font-size: 7px;
        letter-spacing: 0.08em;
    }

    .case h3 {
        font-size: clamp(38px, 11vw, 56px);
        line-height: 0.9;
    }

    .case__info-block p,
    .case__info-grid p {
        font-size: 10px;
        line-height: 1.55;
    }

    .case__info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 18px 20px;

        padding-top: 18px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox__image {
        max-width: 100%;
        max-height: 82vh;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;

        width: 42px;
        height: 42px;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;

        font-size: 20px;
    }

    .lightbox__nav--prev {
        left: 14px;
    }

    .lightbox__nav--next {
        right: 14px;
    }

    .lightbox__counter {
        bottom: 18px;
    }

    .contact {
        padding:
            48px
            0
            22px;
    }

    .contact__eyebrow {
        margin-bottom: 20px;
    }

    .contact h2 {
        max-width: 100%;
        margin-bottom: 28px;

        font-size: clamp(38px, 12vw, 62px);
        line-height: 0.9;
    }

    .contact__details {
        align-items: center;
        flex-direction: column;
        gap: 10px;

        font-size: 12px;
    }

    .contact__footer {
        align-items: center;
        flex-direction: column;
        gap: 10px;

        margin-top: 38px;
        padding-top: 16px;

        text-align: center;
    }

    .case__inner.is-scroll-fx {
        transform: none;
        transition: none;
        will-change: auto;
    }

}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 420px) {

    .case__info-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html,
    .carousel__track {
        scroll-behavior: auto;
    }

    .hero__video {
        display: none;
    }

    .reveal,
    .reveal-media,
    .case__inner.is-scroll-fx {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    /* pas de settle cinématographique sur les images */
    .reveal-media .video-frame video,
    .reveal-media .carousel__slide img,
    .reveal .case__preview img {
        transform: none;
        transition: none;
    }

    /* Hero : pas de séquence, tout est visible et immobile */
    .hero__title-line > span,
    .hero__intro,
    .hero__top span,
    .hero__bottom {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero.is-ready .hero__bottom a span {
        animation: none;
    }

}

/* Ajustement flèche services — mobile */
@media (max-width: 720px) {

    .service-card__link::after {
        right: 9px;
        bottom: 9px;
    }

}
