/* Oihan · sable, ocre et brun de son tableau en relief, grosses capitales condensées.
   Animations : tout est piloté par la position de défilement (variables --p / --v posées par site.js),
   avec des sections « collantes » natives (position: sticky) : pas de bibliothèque, fluide sur iPhone.
   Aucun arrondi sur les images. */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-100-900.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root { color-scheme: only light;
  --paper: #efe6d8;      /* sable */
  --paper-2: #e4d7c3;
  --ink: #17110b;        /* brun nuit */
  --ink-2: #241a10;
  --orange: #c08a4e;     /* ocre (nom gardé : la réservation s'en sert) */
  --ocre-f: #99622a;     /* ocre foncé, lisible sur le sable */
  --grey: #8b7b68;
  --line: rgba(23, 17, 11, .16);
  --line-c: rgba(239, 230, 216, .18);
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --g: clamp(18px, 3vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; margin: 0; }
.muted { color: var(--grey); }
.x, .display { font-family: var(--sans); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .88; letter-spacing: -.01em; margin: 0; }
.display { font-size: clamp(56px, 9.4vw, 168px); }
.x em, .display em, .hero__line em { font-style: normal; color: var(--ocre-f); }
[data-nuit] .x em, [data-nuit] .hero__line em { color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; background: var(--ink); color: var(--paper); font: 900 20px/1 var(--sans); font-stretch: 62%; text-transform: uppercase; letter-spacing: .02em; transition: background .3s; white-space: nowrap; }
.btn:hover { background: var(--ocre-f); }
.btn[disabled] { opacity: .3; pointer-events: none; }
.btn--line { background: none; color: var(--ink); border: 1px solid var(--ink); }
.btn--line:hover { color: var(--paper); }

/* Apparitions (activées seulement si le script tourne) */
.rise > span { display: block; overflow: hidden; padding-top: .06em; padding-bottom: .02em; }
/* Les titres montent lettre par lettre, avec une légère bascule (chaque lettre part un peu après la précédente) */
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js .rise .ch, .js .cta .ch { transform: translate3d(0, 115%, 0) rotate(7deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--c) * 24ms); }
.js .rise.in .ch, .js .cta.in .ch { transform: none; }
.js .fade { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- Barre ---------- */
.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(10px + env(safe-area-inset-top)) var(--g) 10px; color: var(--ink); background: var(--paper); transition: background .45s, color .45s; }
.bar.nuit { background: var(--ink); color: var(--paper); }
.bar.nue { background: transparent; color: var(--paper); }
.bar__name { font: 900 28px/1 var(--sans); font-stretch: 62%; }
.bar__rdv { justify-self: end; font: 900 17px/1 var(--sans); font-stretch: 62%; text-transform: uppercase; letter-spacing: .03em; padding: 12px 18px; background: var(--orange); color: var(--ink); transition: background .3s; }
.bar__rdv:hover { background: var(--paper); }
.bar:not(.nuit):not(.nue) .bar__rdv:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .bar { grid-template-columns: 1fr auto; } .bar__mid { display: none; } }

/* ---------- 1 · Ouverture ---------- */
.hero { height: 230svh; }
.hero__pin { --p: 0; --p2: 0; --p3: 0; --ex: 10%; --et: 15%; --eb: 36%; position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; background: var(--paper); }
.hero__media { position: absolute; inset: 0; background: var(--ink); clip-path: inset(calc(var(--p) * var(--et)) calc(var(--p) * var(--ex)) calc(var(--p) * var(--eb)) calc(var(--p) * var(--ex))); }
.hero__media .hero__poster, .hero__media .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - var(--p) * .16)); }
.hero__video { opacity: 0; transition: opacity 1s; }
.hero__video.on { opacity: 1; }
/* iPhone : jamais de bouton lecture natif par-dessus le film */
.hero__video::-webkit-media-controls, .hero__video::-webkit-media-controls-start-playback-button, .hero__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.55), rgba(23,17,11,.05) 30%, rgba(23,17,11,.1) 50%, rgba(23,17,11,.85)); opacity: calc(1 - var(--p) * .8); }
.hero__tag { position: absolute; left: var(--g); right: var(--g); top: calc(74px + env(safe-area-inset-top)); display: flex; justify-content: space-between; gap: 12px; color: var(--paper); opacity: calc(1 - var(--p) * 4); }
.hero__word { position: absolute; left: 0; right: 0; bottom: 5svh; margin: 0; display: grid; justify-items: center; transform: translate3d(0, calc(var(--p) * -15svh), 0); }
.hero__w { grid-area: 1 / 1; font: 900 min(39.5vw, 50svh)/.8 var(--sans); font-stretch: 62%; letter-spacing: -.01em; white-space: nowrap; padding-top: .08em; overflow: hidden; }
.hero__w--clair { color: var(--paper); opacity: calc(1 - var(--p2)); }
.hero__w--fonce { color: var(--ink); opacity: var(--p2); }
.hero__w i { font-style: normal; display: inline-block; animation: monte 1.5s var(--ease) both; }
.hero__w i:nth-child(2) { animation-delay: .07s; } .hero__w i:nth-child(3) { animation-delay: .14s; } .hero__w i:nth-child(4) { animation-delay: .21s; } .hero__w i:nth-child(5) { animation-delay: .28s; }
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
.hero__line { position: absolute; left: var(--g); right: var(--g); bottom: 5svh; margin: 0; text-align: center; font: 900 clamp(26px, 6.6vw, 54px)/.95 var(--sans); font-stretch: 62%; text-transform: uppercase; color: var(--ink); opacity: var(--p3); transform: translate3d(0, calc((1 - var(--p3)) * 30px), 0); }
.hero__line em { color: var(--ocre-f) !important; }
@media (min-width: 900px) { .hero__pin { --ex: 33%; --et: 12%; --eb: 40%; } .hero__word { bottom: 3svh; } }

/* ---------- 3 · Le travail ---------- */
.work { background: var(--ink); color: var(--paper); }
.work__pin { --x: 0; --p: 0; padding: calc(84px + env(safe-area-inset-top)) 0 30px; }
.js .work__pin { position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.work__head { padding: 0 var(--g); display: grid; gap: 14px; }
.work__head .mono { color: var(--orange); }
.work__head h2 { font-size: clamp(46px, 8vw, 130px); }
.work__track { display: flex; gap: clamp(12px, 1.6vw, 26px); padding: 26px var(--g) 0; overflow-x: auto; }
.js .work__track { overflow: visible; width: max-content; transform: translate3d(calc(var(--x) * -1px), 0, 0); will-change: transform; }
.work__track figure { margin: 0; flex: none; height: clamp(300px, 52svh, 620px); aspect-ratio: 3 / 4; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.work__track img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.work__track figcaption b { color: var(--orange); font-weight: 500; margin-right: 10px; }
.work__end { flex: none; height: clamp(300px, 52svh, 620px); aspect-ratio: 3 / 4; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--orange); color: var(--ink); align-self: start; }
.work__end .x { font-size: clamp(38px, 5vw, 76px); }
.work__end .x em { color: var(--paper); }
.work__bar { margin: 22px var(--g) 0; height: 2px; background: var(--line-c); }
.work__bar i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p)); }

/* ---------- Têtes de section ---------- */
.sec-head { padding: 0 var(--g); display: grid; gap: 16px; margin-bottom: clamp(34px, 6vh, 70px); }
.sec-head .mono { color: var(--ocre-f); }
[data-nuit] .sec-head .mono { color: var(--orange); }
.sec-head h2 { font-size: clamp(54px, 10.5vw, 190px); }

/* ---------- 4 · Tarifs ---------- */
.prices { padding: clamp(100px, 16vh, 200px) 0; }
.prices__list { margin: 0 var(--g); border-top: 2px solid var(--ink); }
.pr { border-bottom: 1px solid var(--line); }
.pr__main { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; width: 100%; text-align: left; padding: clamp(14px, 2vh, 24px) 0; }
.pr__name, .pr__price { font: 900 clamp(54px, 9.4vw, 170px)/.86 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.pr__name { transition: transform .6s var(--ease); }
.pr__price { color: var(--ocre-f); white-space: nowrap; }
.pr__go { width: 60px; height: 60px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 22px; transition: background .3s, color .3s; }
.pr__main:hover .pr__name { transform: translateX(16px); }
.pr__main:hover .pr__go { background: var(--ink); color: var(--paper); }
.pr__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 34px; padding: 0 0 28px; }
.pr__opts h4 { margin: 0 0 8px; color: var(--grey); font-weight: 400; }
.pr__opts p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 16px; font-weight: 500; font-stretch: 90%; }
.pr__opts p span:last-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.prices__note { padding: 22px var(--g) 0; color: var(--grey); }
@media (max-width: 760px) { .pr__go { display: none; } .pr__main { grid-template-columns: 1fr auto; } .pr__opts { grid-template-columns: 1fr; } }

/* ---------- 5 · Le salon ---------- */
.salon { background: var(--ink); color: var(--paper); padding: clamp(100px, 16vh, 200px) 0 0; }
.salon__wide { --v: 0; height: clamp(360px, 78svh, 900px); overflow: hidden; clip-path: inset(calc((1 - var(--v)) * 12%) calc((1 - var(--v)) * 14%)); }
.salon__wide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(calc(1.3 - var(--v) * .3)); }

.piece { height: 220svh; background: var(--ink); color: var(--paper); }
.piece__pin { --p: 0; --p3: 0; position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; }
.piece__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.55 - var(--p) * .55)); will-change: transform; }
.piece__pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.35), rgba(23,17,11,0) 35%, rgba(23,17,11,.9)); }
.piece__txt { position: absolute; z-index: 1; left: var(--g); right: var(--g); bottom: calc(34px + env(safe-area-inset-bottom)); }
.piece__num { font-size: clamp(120px, 32vw, 420px); line-height: .78; color: var(--orange); font-variant-numeric: tabular-nums; }
.piece__txt h3 { margin: 22px 0 10px; font-weight: 500; }
.piece__p { margin: 0; max-width: 24em; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.32; font-weight: 500; font-stretch: 88%; opacity: var(--p3); transform: translate3d(0, calc((1 - var(--p3)) * 24px), 0); }

/* ---------- 6 · Face caméra ---------- */
.cam { padding: clamp(100px, 16vh, 200px) 0; }
.cam__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 28px); padding: 0 var(--g); }
.reel { margin: 0; }
.reel__f { position: relative; aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; }
.reel__f video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; }
.reel__play i { width: 78px; height: 78px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .5s var(--ease), background .3s; }
.reel__play i::after { content: ""; position: absolute; left: 31px; top: 25px; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.reel__play:hover i { transform: scale(1.1); background: var(--orange); }
.reel.on .reel__play { display: none; }
.reel figcaption { padding-top: 14px; font: 600 clamp(18px, 1.6vw, 24px)/1.15 var(--sans); font-stretch: 80%; }
@media (max-width: 760px) {
  .cam__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cam__row::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: center; }
}

/* ---------- 8 · Venir ---------- */
.venir { background: var(--ink); color: var(--paper); padding: clamp(100px, 16vh, 200px) 0 clamp(70px, 10vh, 120px); }
.venir__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 100px); padding: 0 var(--g); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper); }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-c); }
.facts .mono { color: var(--orange); padding-top: 4px; }
.facts p { margin: 0; font-size: 18px; font-weight: 500; font-stretch: 90%; }
.facts a { border-bottom: 1px solid var(--line-c); }
.hours { border-top: 1px solid var(--paper); padding-top: 16px; }
.hours > .mono { color: var(--orange); margin-bottom: 10px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-c); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.hours li.today { color: var(--orange); }
.hours .closed { opacity: .5; }
@media (max-width: 760px) { .venir__grid { grid-template-columns: 1fr; } .facts li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 9 · Réserver ---------- */
.cta { background: var(--ink); color: var(--paper); padding: 0 var(--g) clamp(50px, 8vh, 100px); text-align: center; }
.cta__btn { position: relative; display: block; width: 100%; overflow: hidden; border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.cta__btn .x { display: block; font-size: clamp(88px, 21vw, 400px); line-height: .82; padding: .07em 0 .03em; }
.cta__fill { position: absolute; inset: 0; background: var(--orange); color: var(--ink); clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); }
.cta__btn:hover .cta__fill, .cta__btn:active .cta__fill, .cta__btn:focus-visible .cta__fill { clip-path: inset(0); }
.cta > .mono { margin-top: 18px; color: var(--orange); }
.foot { background: var(--ink); color: rgba(239,230,216,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px var(--g) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-c); }
.foot a:hover { color: var(--orange); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

html:not(.js) .piece__pin { --p: 1; --p3: 1; }
@media (min-width: 900px) { .hero__media .hero__poster, .hero__media .hero__video { object-position: center 22%; } }

/* ---------- 2 · Ses mots : lignes dévoilées au défilement, puis la photo grandit et recouvre ---------- */
.say { height: 340svh; background: var(--paper); }
.say__pin { --a: 0; --b: 0; --c: 0; --d: 0; --img: 0; --t: 0; position: sticky; top: 0; height: 100svh; min-height: 540px; overflow: hidden; display: grid; align-content: center; }
.say__big { padding: 0 var(--g); font-size: clamp(54px, min(13.2vw, 20svh), 230px); line-height: .84; }
.say__ln { display: block; overflow: hidden; padding-top: .05em; }
.say__ln > span { display: inline-block; will-change: transform; }
.say__ln:nth-child(1) > span { transform: translate3d(0, calc((1 - var(--a)) * 105%), 0); }
.say__ln:nth-child(2) > span { transform: translate3d(0, calc((1 - var(--b)) * 105%), 0); }
.say__ln:nth-child(3) > span { transform: translate3d(0, calc((1 - var(--c)) * 105%), 0); }
.say__ln:nth-child(4) > span { transform: translate3d(0, calc((1 - var(--d)) * 105%), 0); }
.say__ln--o { color: var(--ocre-f); }
.say__img { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--img)) * 42%) calc((1 - var(--img)) * 38%) calc((1 - var(--img)) * 42%) calc((1 - var(--img)) * 38%)); visibility: hidden; }
.say__pin.img-on .say__img { visibility: visible; }
.say__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.5 - var(--img) * .5)); }
.say__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.15), rgba(23,17,11,.82)); opacity: var(--t); }
.say__over { position: absolute; left: var(--g); right: var(--g); bottom: calc(40px + env(safe-area-inset-bottom)); color: var(--paper); opacity: var(--t); transform: translate3d(0, calc((1 - var(--t)) * 40px), 0); }
.say__txt { margin: 0; max-width: 20em; font: 600 clamp(24px, 3.2vw, 46px)/1.14 var(--sans); font-stretch: 78%; }
.say__sign { margin-top: 22px; color: var(--orange); }
.say__sign::before { content: "— "; }
html:not(.js) .say { height: auto; }
html:not(.js) .say__pin { --a: 1; --b: 1; --c: 1; --d: 1; position: relative; height: auto; padding: 100px 0; }
html:not(.js) .say__img, html:not(.js) .say__over { display: none; }

/* ---------- 7 · Avis : la note se compte, les cartes s'empilent ---------- */
.avis { padding: clamp(90px, 14vh, 170px) 0 clamp(60px, 10vh, 120px); }
.avis__head { padding: 0 var(--g); display: grid; justify-items: center; text-align: center; gap: 16px; }
.avis__head .mono { color: var(--ocre-f); }
.avis__head a { border-bottom: 1px solid currentColor; }
.avis__note { font-size: clamp(170px, 46vw, 520px); line-height: .78; font-variant-numeric: tabular-nums; }
.avis__stars { --s: 0; display: flex; gap: 10px; }
.avis__stars i { width: clamp(22px, 4vw, 40px); aspect-ratio: 1; background: var(--line); position: relative; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.avis__stars i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(clamp(0, calc(var(--s) * 5 - var(--k)), 1)); }
.avis__stars i:nth-child(1) { --k: 0; } .avis__stars i:nth-child(2) { --k: 1; } .avis__stars i:nth-child(3) { --k: 2; } .avis__stars i:nth-child(4) { --k: 3; } .avis__stars i:nth-child(5) { --k: 4; }
.avis__stack { padding: clamp(60px, 10vh, 120px) var(--g) 0; max-width: 980px; margin: 0 auto; }
.card { --i: 0; --k: 0; position: sticky; top: calc(84px + var(--i) * 18px + env(safe-area-inset-top)); margin: 0 0 22vh; min-height: clamp(300px, 52svh, 460px); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: var(--ink); color: var(--paper); transform-origin: top center; transform: scale(calc(1 - var(--k) * .06)); will-change: transform; }
.card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--k) * .35); pointer-events: none; }
.card:nth-child(even) { background: var(--terre, #5c4028); }
.card:last-child { margin-bottom: 0; }
.card__n { color: var(--orange); }
.card__q { margin: 0; font: 600 clamp(28px, 4.2vw, 56px)/1.08 var(--sans); font-stretch: 78%; }
.card cite { font-style: normal; color: var(--orange); }

/* ---------- Téléphone : animations jouées en entier à l'apparition (pas d'états à moitié faits au défilement) ---------- */
.work__arrows { display: none; }
.mob .say { height: auto; }
.mob .say__pin { position: relative; height: auto; min-height: 0; overflow: visible; display: block; padding: 90px 0 0; }
.mob .say__ln > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); }
.mob .say__ln:nth-child(2) > span { transition-delay: .12s; } .mob .say__ln:nth-child(3) > span { transition-delay: .24s; } .mob .say__ln:nth-child(4) > span { transition-delay: .36s; }
.mob .say.in .say__ln > span { transform: none; }
.mob .say__img { position: relative; visibility: visible; margin-top: 46px; height: 118svh; max-height: 900px; clip-path: inset(18% 12% 18% 12%); transition: clip-path 1.6s var(--ease); }
.mob .say__img img { transform: scale(1.25); transition: transform 2.4s var(--ease); }
.mob .say__img.in { clip-path: inset(0 0 0 0); }
.mob .say__img.in img { transform: none; }
.mob .say__img::after { opacity: 1; }
.mob .say__over { position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1s .5s, transform 1s .5s var(--ease); }
.mob .say__over.in { opacity: 1; transform: none; }
.mob .say__wrap { position: relative; }

.mob .work { height: auto !important; }
.mob .work__pin { position: relative; height: auto; min-height: 0; overflow: visible; padding-bottom: 70px; display: block; }
.mob .work__head { grid-template-columns: 1fr auto; align-items: end; }
.mob .work__head .mono { grid-column: 1 / -1; }
.mob .work__arrows { display: flex; gap: 8px; }
.work__arrow { width: 48px; height: 48px; border: 1px solid var(--line-c); display: grid; place-items: center; }
.work__arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 1.6; }
.work__arrow:active { background: var(--orange); }
.mob .work__track { width: auto; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.mob .work__track::-webkit-scrollbar { display: none; }
.mob .work__track > * { scroll-snap-align: start; scroll-margin-left: var(--g); }
.mob .work__track figure, .mob .work__end { height: auto; width: 78vw; aspect-ratio: auto; }
.mob .work__track img { aspect-ratio: 3 / 4; height: auto; }
.mob .work__end { aspect-ratio: 3 / 4; }

.mob .piece { height: auto; }
.mob .piece__pin { position: relative; height: 100svh; }
.mob .piece__img { transform: scale(1.3); transition: transform 2.6s var(--ease); }
.mob .piece.in .piece__img { transform: none; }
.mob .piece__p { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s .9s, transform 1s .9s var(--ease); }
.mob .piece.in .piece__p { opacity: 1; transform: none; }

/* Image animée de secours quand l'iPhone refuse la vidéo (mode économie d'énergie) */
.hero__anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Téléphone : la fenêtre du hero se referme par une mise à l'échelle (calculée par la carte graphique) plutôt qu'un découpage */
.mob .hero__media { clip-path: none; transform-origin: 50% 32%; transform: translate3d(0, calc(var(--p) * -4svh), 0) scale(calc(1 - var(--p) * .44), calc(1 - var(--p) * .5)); will-change: transform; }
.mob .hero__media .hero__poster, .mob .hero__media .hero__video, .mob .hero__anim { transform: none; }

/* ---------- Ouverture ---------- */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; }
.intro__img { position: absolute; inset: 0; background: var(--ink); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); will-change: transform; }
.intro__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.55), rgba(23,17,11,.05) 30%, rgba(23,17,11,.1) 50%, rgba(23,17,11,.85)); }
@media (min-width: 900px) { .intro__img img { object-position: center 22%; } }
.intro__lid { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--paper); will-change: transform; }
.intro__lid--t { top: 0; } .intro__lid--b { bottom: 0; }
.intro__blade { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ocre-f); transform: scaleX(0); will-change: transform; }
.intro__word { position: absolute; left: 0; right: 0; bottom: 5svh; margin: 0; display: grid; justify-items: center; font: 900 min(39.5vw, 50svh)/.8 var(--sans); font-stretch: 62%; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 900px) { .intro__word { bottom: 3svh; } }
.intro__w { grid-area: 1 / 1; overflow: hidden; padding-top: .08em; }
.intro__w--ink { color: var(--ink); }
.intro__w--clair { color: var(--paper); opacity: 0; }
.intro__w i { font-style: normal; display: inline-block; transform: translate3d(0, 105%, 0); will-change: transform; }
.intro__tag { position: absolute; left: var(--g); right: var(--g); top: calc(74px + env(safe-area-inset-top)); display: flex; justify-content: space-between; color: var(--ink); opacity: 0; }
.intro__count { position: absolute; right: var(--g); top: calc(50% - 26px); font-size: 13px; color: var(--ink); }

.intro-go .intro__w i { animation: intro-rise 1.05s cubic-bezier(.22, 1, .36, 1) forwards; }
.intro-go .intro__w i:nth-child(2) { animation-delay: .07s; } .intro-go .intro__w i:nth-child(3) { animation-delay: .14s; } .intro-go .intro__w i:nth-child(4) { animation-delay: .21s; } .intro-go .intro__w i:nth-child(5) { animation-delay: .28s; }
.intro-go .intro__tag { animation: intro-in .7s .45s forwards, intro-hide .3s 1.55s forwards; }
.intro-go .intro__count { animation: intro-hide .25s 1.3s forwards; }
.intro-go .intro__blade { animation: intro-blade .55s 1.15s cubic-bezier(.65, 0, .35, 1) forwards, intro-hide .2s 1.75s forwards; }
.intro-go .intro__lid--t { animation: intro-up 1.15s 1.65s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro-go .intro__lid--b { animation: intro-down 1.15s 1.65s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro-go .intro__img img { animation: intro-zoom 1.9s 1.65s cubic-bezier(.33, 1, .68, 1) forwards; }
.intro-go .intro__w--ink { animation: intro-hide .45s 2.1s forwards; }
.intro-go .intro__w--clair { animation: intro-in .45s 2.1s forwards; }
.intro-go .intro { animation: intro-out .35s 3.05s forwards; }
@keyframes intro-rise { to { transform: none; } }
@keyframes intro-in { to { opacity: 1; } }
@keyframes intro-hide { to { opacity: 0; } }
@keyframes intro-blade { to { transform: scaleX(1); } }
@keyframes intro-up { to { transform: translate3d(0, -101%, 0); } }
@keyframes intro-down { to { transform: translate3d(0, 101%, 0); } }
@keyframes intro-zoom { to { transform: scale(1.16); } }
@keyframes intro-zoom-m { to { transform: scale(1); } }
@keyframes intro-out { to { opacity: 0; } }
/* Téléphone : le hero affiche le film sans agrandissement, l'ouverture finit donc à la même taille */
@media (max-width: 899px), (hover: none) { .intro-go .intro__img img { animation-name: intro-zoom-m; } }
/* Pendant l'ouverture : la barre attend, les lettres du hero ne rejouent pas leur montée */
.intro-on .bar { opacity: 0; }
.intro-go .bar { animation: intro-in .5s 2.75s forwards; }
.intro-on .hero__w i, .intro-done .hero__w i { animation: none; }

/* ---------- Rideau ocre sur les photos et les vidéos ---------- */
.wipe { position: relative; overflow: hidden; }
.js .wipe::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--orange); transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); pointer-events: none; will-change: transform; }
.js .wipe > img, .js .wipe > video { transform: scale(1.3); transition: transform 1.9s var(--ease); }
.js .wipe.in::after { transform: translate3d(0, -101%, 0); }
.js .wipe.in > img, .js .wipe.in > video { transform: none; }
.reel:nth-child(2) .wipe::after, .reel:nth-child(2) .wipe > video { transition-delay: .12s; }
.reel:nth-child(3) .wipe::after, .reel:nth-child(3) .wipe > video { transition-delay: .24s; }
.work__track .wipe { min-height: 0; }
.work__track .wipe img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5 · Le salon : la photo grandit entre les deux phrases, qui s'écartent ---------- */
.grow { height: 260svh; background: var(--ink); color: var(--paper); }
.grow__pin { --e: 0; position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; }
.grow__frame { position: absolute; z-index: 1; inset: 0; overflow: hidden; transform: scale(calc(.5 + var(--e) * .5)); will-change: transform; }
.grow__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(calc(1.4 - var(--e) * .4)); will-change: transform; }
.grow__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,11,.45), rgba(23,17,11,0) 30%); opacity: var(--e); }
.grow__h { position: static; font-size: clamp(42px, 11.5vw, 120px); }
.grow__t { position: absolute; left: var(--g); right: var(--g); text-align: center; will-change: transform; }
.grow__t--a { bottom: calc(75% + 16px); transform: translate3d(0, calc(var(--e) * -36svh), 0); }
.grow__t--b { top: calc(75% + 16px); transform: translate3d(0, calc(var(--e) * 36svh), 0); }
.grow__lab { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; color: var(--paper); opacity: var(--e); }
@media (min-width: 900px) { .grow__h { font-size: clamp(60px, 6.6vw, 130px); } .grow__t { white-space: nowrap; } }
html:not(.js) .grow { height: auto; }
html:not(.js) .grow__pin { --e: 1; }
html:not(.js) .grow__t { display: none; }

/* Galerie au doigt : pas de rideau ni d'agrandissement (Safari compte sinon une largeur en trop et laisse glisser dans le vide) */
.mob .work__track .wipe::after { display: none; }
.mob .work__track .wipe > img { transform: none; transition: none; }
.wipe { contain: paint; }
.mob .work__track { overscroll-behavior-x: contain; }

/* ---------- Téléphone : les deux pièces s'empilent, la seconde glisse par-dessus la première ---------- */
.mob .piece { position: sticky; top: 0; height: 100svh; }
.mob .piece__pin { position: relative; height: 100%; min-height: 0; }

/* ---------- Barre : accès à l'espace client ---------- */
.bar__end { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.bar__acc { font: 900 17px/1 var(--sans); font-stretch: 62%; text-transform: uppercase; letter-spacing: .03em; padding: 12px 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.bar__acc:hover { background-size: 100% 1px; }

/* Rien ne doit dépasser sur le côté : sur iPhone, une page plus large que l'écran se laisse glisser
   de travers et Safari la redimensionne quand sa barre du bas réapparaît. */
.say__img { overflow: hidden; }
html { overflow-x: clip; }

/* ---------- « Pas d'attente » sur ordinateur : texte à gauche, photo à droite, le tout tient dans l'écran ---------- */
@media (min-width: 900px) {
  html.js:not(.mob) .say { height: 230svh; }
  html.js:not(.mob) .say__pin { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: clamp(32px, 4vw, 90px); row-gap: 28px; align-content: stretch; padding: calc(96px + env(safe-area-inset-top)) var(--g) clamp(32px, 6svh, 64px); }
  html.js:not(.mob) .say__big { grid-column: 1; grid-row: 1; align-self: end; padding: 0; font-size: clamp(48px, min(6.4vw, 14.5svh), 180px); }
  html.js:not(.mob) .say__img { position: relative; inset: auto; grid-column: 2; grid-row: 1 / 3; visibility: visible; overflow: hidden; clip-path: inset(calc((1 - var(--img)) * 100%) 0 0 0); }
  html.js:not(.mob) .say__img img { transform: scale(calc(1.25 - var(--img) * .25)); }
  html.js:not(.mob) .say__img::after { display: none; }
  html.js:not(.mob) .say__over { position: relative; left: auto; right: auto; bottom: auto; grid-column: 1; grid-row: 2; color: var(--ink); max-width: 34em; }
  html.js:not(.mob) .say__txt { font-size: clamp(19px, min(1.6vw, 3svh), 28px); }
}

/* Champs remplis par le navigateur : pas de fond bleu/blanc, on garde le papier du site */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset; box-shadow: 0 0 0 1000px var(--paper) inset;
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s;
}
input:autofill { background: var(--paper); }

/* Support de sabot (accueil) */
.sabot { padding: clamp(90px, 14vh, 170px) 0 0; }
.sabot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 70px); padding: 0 var(--g); align-items: end; }
.sabot__img { display: block; overflow: hidden; aspect-ratio: 18 / 25; background: var(--ink); }
.sabot__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.sabot__img:hover img { transform: scale(1.04); }
.sabot__p { margin: 0 0 26px; max-width: 30em; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.32; font-weight: 500; font-stretch: 88%; }
.sabot__facts { list-style: none; margin: 0 0 30px; padding: 0; border-top: 2px solid var(--ink); }
.sabot__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(23,17,11,.18); }
.sabot__facts span { color: var(--ocre-f); }
.sabot__btn { display: inline-flex; gap: 10px; align-items: center; padding: 16px 24px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; border-radius: 999px; }
.sabot__btn:hover { background: var(--orange); color: var(--ink); }
@media (max-width: 760px) { .sabot__grid { grid-template-columns: 1fr; } .sabot__img { aspect-ratio: 4 / 5; } }
