/* Layout : le scroll comme une table de montage. Un viseur qui s'ouvre sur la vidéo, un slogan qui glisse en travelling, les expertises en défilement latéral, un footer découvert sous la page. */
:root {
  --paper: #efefec;
  --paper-2: #e2e2de;
  --ink: #0b0b0b;
  --ink-2: #161616;
  --mute: #6d6d68;
  --mute-dark: #9a9a94;
  --white: #f7f7f4;
  --rec: #ff3b2f;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gl: max(16px, env(safe-area-inset-left, 0px), 3vw);
  --gr: max(16px, env(safe-area-inset-right, 0px), 3vw);
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
.wrap { padding-left: var(--gl); padding-right: var(--gr); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
em, .it { font-style: italic; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }

/* Boutons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 999px; border: 1px solid currentColor;
  text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: 15px; color: inherit; background: transparent; overflow: hidden; isolation: isolate; transition: color .4s var(--ease); cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.btn span { transition: color .4s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn.dark:hover span, .btn.dark:focus-visible span { color: var(--paper); }
.btn.light:hover span, .btn.light:focus-visible span { color: var(--ink); }
.btn .arr { width: 16px; height: 16px; flex: none; }
.btn.dark:hover .arr { color: var(--paper); }
.btn.light:hover .arr { color: var(--ink); }

/* Header : blend pour rester lisible sur papier comme sur vidéo */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gr) 0 var(--gl);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.top > * { pointer-events: auto; }
.top .logo img { width: clamp(118px, 11vw, 160px); height: auto; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; }
.top nav a.lnk { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.top nav a.lnk:hover { background-size: 100% 1px; }
.top .btn { padding: 10px 16px; font-size: 13.5px; }
.top .btn:hover span, .top .btn:hover .arr { color: #000; }
.burger { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 9px 16px; font: 500 13.5px var(--sans); cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 30px;
  padding: 100px var(--gr) calc(34px + env(safe-area-inset-bottom, 0px)) var(--gl); clip-path: circle(0 at calc(100% - 50px) 40px); transition: clip-path .8s var(--ease); visibility: hidden; }
.menu-open .sheet { clip-path: circle(150% at calc(100% - 50px) 40px); visibility: visible; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sheet a { font-family: var(--serif); font-size: clamp(42px, 12vw, 72px); line-height: 1.05; text-decoration: none; }
.sheet a:hover { font-style: italic; }

/* ---------- 01 · Viseur ---------- */
.hero { position: relative; height: 330vh; }
.hero .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.frame { position: absolute; left: 50%; top: 50%; width: var(--fw, 24vw); height: var(--fh, 13.5vw); transform: translate(-50%, -50%); overflow: hidden; background: var(--ink); border-radius: var(--fr, 4px); }
.frame video, .frame img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .bar-t, .frame .bar-b { position: absolute; left: 0; right: 0; height: var(--lb, 0px); background: #000; z-index: 2; }
.frame .bar-t { top: 0; } .frame .bar-b { bottom: 0; }
.frame .shade { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.36); opacity: var(--sh, 0); }
.vf { position: absolute; inset: 10px; z-index: 3; pointer-events: none; opacity: var(--vfo, 1); color: #fff; }
.vf i { position: absolute; width: 14px; height: 14px; border: 0 solid #fff; }
.vf i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.vf i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.vf .rec { position: absolute; left: 20px; top: 14px; display: flex; gap: 7px; align-items: center; font-size: 10px; }
.vf .ratio { position: absolute; right: 20px; top: 14px; font-size: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.half { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; white-space: nowrap; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 130px); line-height: 1; letter-spacing: -.02em; }
.half.l { right: calc(50% + var(--fw, 24vw) / 2 + 2.2vw); }
.half.r { left: calc(50% + var(--fw, 24vw) / 2 + 2.2vw); }
.after { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; color: var(--white); pointer-events: none; padding: 0 var(--gr) 0 var(--gl); }
.after p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 8vw, 150px); line-height: 1; letter-spacing: -.02em; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: block; transform: translateY(calc((1 - var(--r, 0)) * 110%)); }
.hero .meta { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; color: var(--mute); opacity: calc(1 - var(--hp, 0) * 5); }

/* ---------- 02 · Pourquoi ---------- */
.why { position: relative; height: 300vh; }
.why .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding-block: 90px 40px; }
.why h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.6vw, 150px); line-height: .98; letter-spacing: -.025em; }
.slot { display: block; height: 1.04em; overflow: hidden; position: relative; }
.slot .reel { display: block; transform: translateY(calc(var(--vi, 0) * -1.04em)); }
.slot .reel span { display: block; height: 1.04em; font-style: italic; }
.why .side { display: grid; gap: 26px; align-content: center; max-width: 46ch; }
.why .side p { margin: 0; font-size: clamp(17px, 1.35vw, 21px); }
.why .side p.conv { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.15; }
.why .count { display: flex; gap: 8px; }
.why .count i { width: 28px; height: 2px; background: var(--paper-2); position: relative; overflow: hidden; }
.why .count i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--c, 0)); transform-origin: 0 50%; }
.why .mono { color: var(--mute); }

/* ---------- 03 · Slogan en travelling ---------- */
.slogan { background: var(--ink); color: var(--white); padding-block: 22vh 22vh; overflow: hidden; position: relative; }
.slogan .row { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(34px, 10vw, 200px); line-height: 1.02; letter-spacing: -.025em; will-change: transform; transform: translateX(var(--x, 0)); }
.slogan .row:nth-child(2) { text-align: right; }
.slogan .row:nth-child(3) { text-align: center; }
.slogan .row em { color: var(--mute-dark); }
.slogan .tag { position: absolute; left: var(--gl); top: 8vh; color: var(--mute-dark); }

/* ---------- 04 · Expertises en défilement latéral ---------- */
.exp { position: relative; background: var(--paper); margin-top: max(90px, 13vh); }
.exp .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.track { display: flex; gap: 4vw; align-items: stretch; padding-left: var(--gl); padding-right: 8vw; will-change: transform; transform: translateX(var(--tx, 0px)); }
.intro-card { flex: none; width: min(42vw, 640px); display: flex; flex-direction: column; justify-content: space-between; padding-block: 2vh; }
.intro-card h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 112px); line-height: .98; letter-spacing: -.025em; }
.intro-card .hint { display: flex; align-items: center; gap: 12px; color: var(--mute); }
.intro-card .hint svg { width: 34px; height: 12px; }
.card { flex: none; width: min(74vw, 1080px); display: grid; grid-template-rows: auto auto; gap: 22px; scroll-margin-top: 0; }
.card .ph { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--ink); max-width: 100%; }
.card .ph img, .card .ph video { position: absolute; inset: -4% -8%; width: 116%; height: 108%; max-width: none; object-fit: cover; transform: translateX(var(--px, 0px)) scale(1.02); transition: transform .9s var(--ease); }
.card:hover .ph img, .card:hover .ph video { transform: translateX(var(--px, 0px)) scale(1.06); }
.card .ph .mono { position: absolute; left: 16px; top: 14px; color: #fff; mix-blend-mode: difference; }
.card .txt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 4vw; align-items: end; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -.02em; }
.card p { margin: 6px 0 0; color: #3a3a37; font-size: clamp(16px, 1.25vw, 19px); max-width: 44ch; }
.exp .progress { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); height: 1px; background: var(--paper-2); }
.exp .progress i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--ep, 0)); transform-origin: 0 50%; }

/* ---------- 05 · ADN ---------- */
.adn { position: relative; background: var(--paper); padding-block: 22vh 22vh; overflow: hidden; }
.trail { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.trail img { position: absolute; width: clamp(120px, 14vw, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 4px; transform: translate(-50%, -50%) scale(.6); opacity: 0; animation: pop 1.1s var(--ease) forwards; }
@keyframes pop { 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); } }
.adn .inner { position: relative; z-index: 1; display: grid; gap: 6vh; justify-items: center; text-align: center; }
.adn .mono { color: var(--mute); }
.adn h2 { width: fit-content; max-width: 100%; text-align: center; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.4vw, 140px); line-height: 1.02; letter-spacing: -.025em; }
.adn h2 .free { display: inline-block; }
.adn h2 .free span { display: inline-block; font-style: italic; transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)); transition: transform .8s var(--ease); }
.adn h2 .sq { position: relative; display: inline-block; width: 1.48em; height: 1.48em; vertical-align: baseline; margin: .14em 0 .06em; cursor: default; outline-offset: 6px; }
.adn h2 .sq::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scale(var(--sqs, 1)); will-change: transform; }
.adn h2 .sq b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: max(11px, .1em); letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  pointer-events: none; opacity: var(--sqt, 1); }
.adn .foot-row { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.adn .foot-row p { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.4vw, 21px); }

/* ---------- 06 · Références ---------- */
.refs { background: var(--paper); padding-block: 4vh 18vh; }
.refs .head { display: flex; justify-content: center; text-align: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--paper-2); padding-top: 26px; margin-bottom: 7vh; }
.refs h2 { margin: 0; font-weight: 400; color: var(--mute); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .run { display: flex; width: max-content; transform: translateX(var(--mx, 0px)); }
.marquee ul { display: flex; align-items: center; gap: 9vw; list-style: none; margin: 0; padding: 0 4.5vw; }
.lg { display: block; height: clamp(44px, 5vw, 78px); aspect-ratio: var(--ar); background: #8e8e89; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; transition: background .4s; }
.lg:hover { background: var(--ink); }

/* ---------- 07 · Parlons projet + footer découvert ---------- */
main { position: relative; z-index: 2; background: var(--paper); }
.cta { background: var(--ink); color: var(--white); padding-block: 22vh 16vh; border-radius: 0 0 clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px); }
.cta h2 { margin: 0 0 7vh; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 176px); line-height: .95; letter-spacing: -.03em; text-wrap: balance; }
.cta h2 em { color: var(--mute-dark); }
.cta .row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.cta .row p { margin: 0; max-width: 46ch; color: var(--mute-dark); font-size: clamp(17px, 1.3vw, 20px); }
.foot { position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; background: var(--paper); color: var(--ink); padding-block: 9vh calc(24px + env(safe-area-inset-bottom, 0px)); }
.foot.static { position: relative; }
.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot h3 { margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .todo { color: var(--mute); }
.foot .big { margin-top: 8vh; }
.foot .big img { width: 100%; height: auto; }
.foot .legal { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .top nav a.lnk, .top nav .btn { display: none; }
  .burger { display: inline-block; }
  .half { top: auto; transform: none; left: 0; right: 0; text-align: center; font-size: clamp(40px, 13vw, 72px); }
  .half.l { right: 0; bottom: calc(50% + var(--fh, 30vw) / 2 + 3vh); }
  .half.r { left: 0; top: calc(50% + var(--fh, 30vw) / 2 + 3vh); }
  .why .stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 5vh; }
  .intro-card { width: 78vw; }
  .card { width: 84vw; }
  .card .txt { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf .ratio { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mask > span { transform: none !important; }
  .dot { animation: none; }
  .trail { display: none; }
}
