:root {
  --ink: #0b0e08;
  --ink-2: #12170d;
  --cream: #f1ecdc;
  --cream-dim: rgba(241, 236, 220, .62);
  --line: rgba(241, 236, 220, .14);
  --olive: #c6f432;
  --pimento: #ef3b3f;
  --accent: #c6f432;
  --gut: clamp(16px, 4vw, 56px);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--cream); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--display); background: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--olive); color: var(--ink); }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,4%)} }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55)); }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
              radial-gradient(50% 40% at 10% 90%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }

/* Curseur */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: difference; pointer-events: none; transition: width .3s, height .3s, margin .3s; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* En-tête */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); font-size: 14px; mix-blend-mode: difference; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand em { font-family: var(--serif); font-weight: 400; font-size: 18px; opacity: .6; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { opacity: .75; transition: opacity .2s; }
.top nav a:hover { opacity: 1; }
.pill { border: 1px solid currentColor; border-radius: 99px; padding: 8px 16px; opacity: 1 !important; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 41; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Index latéral façon chapitres */
.index { position: fixed; left: var(--gut); bottom: 28px; z-index: 30; display: grid; gap: 1px; font-size: 15px; line-height: 1.05;
  font-weight: 700; letter-spacing: -.02em; min-width: 170px; }
.index a { display: flex; justify-content: space-between; gap: 18px; color: var(--cream); opacity: .28; transition: opacity .3s, color .3s; }
.index a span { font-family: var(--serif); font-weight: 400; font-size: 13px; }
.index a:hover { opacity: .7; }
.index a.on { opacity: 1; color: var(--accent); }
.index .sep { height: 8px; }
@media (max-width: 1100px) { .index { display: none; } }

/* Héros */
.hero { position: relative; height: 330vh; z-index: 3; }
.hero .stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: end center; padding-bottom: 7vh; overflow: hidden; }
.hero .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--cream-dim); text-align: center; }
.hero .kicker b { color: var(--accent); font-weight: 500; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero .lines { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero .lines p { position: absolute; font-family: var(--serif); font-size: clamp(28px, 4.6vw, 72px); line-height: 1.02; text-align: center;
  max-width: 14ch; opacity: 0; letter-spacing: -.01em; }
.hero .lines p em { color: var(--accent); }
.no-gl .hero .fallback { display: block; }
.hero .fallback { display: none; position: absolute; inset: 15vh 0 auto; margin: auto; width: min(60vw, 520px); }

/* Interludes : texte géant */
.interlude { position: relative; z-index: 3; min-height: 120vh; display: grid; align-content: center; padding: 20vh var(--gut) 20vh calc(var(--gut) + 220px); }
.interlude .act { font-family: var(--mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 3vh; }
.interlude h2 { font-size: clamp(56px, 11.5vw, 220px); line-height: .84; letter-spacing: -.055em; font-weight: 800; }
.interlude h2 .serif, .serif, .w.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.interlude h2 .w { white-space: nowrap; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.interlude h2 .c { display: inline-block; }
.interlude p.lead { margin-top: 5vh; max-width: 46ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; color: var(--cream-dim); }
@media (max-width: 1100px) { .interlude { padding-left: var(--gut); } }

/* Chapitres */
.chapter { position: relative; z-index: 3; height: 320vh; }
.chapter .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 3.5vw; align-items: center; padding: 90px var(--gut) 60px calc(var(--gut) + 220px); }
.chapter.flip .stage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.chapter.flip .copy { order: 2; }
.media { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 70vh; border-radius: 4px; }
.media.tall { aspect-ratio: 4 / 5; max-height: 76vh; justify-self: center; width: auto; height: 76vh; }
.media img.base { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.media .sticker { height: auto; }
.media.gl-on img { opacity: 0; }
.media .sticker { position: absolute; z-index: 4; width: 36%; top: -14%; left: 2%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); pointer-events: none; }
.media .sticker.screen { mix-blend-mode: screen; width: 46%; }
.chapter.flip .media .sticker { left: auto; right: 2%; }
.media .fg { position: absolute; z-index: 3; height: 100%; width: auto; bottom: -8%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); pointer-events: none; }
.media .fg.right { right: -2%; }
.media .fg.left { left: -2%; }
.media .fg.joe { height: 86%; right: -7%; }
.media .fg.small { height: 52%; bottom: -10%; }
.cta.off { background: transparent; color: var(--cream-dim); border: 1px dashed var(--line); cursor: default; }
.cta.off:hover { transform: none; box-shadow: none; }
.media .tag { position: absolute; left: 0; bottom: -30px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }
.copy { position: relative; min-width: 0; }
.copy .num { font-family: var(--serif); font-size: 22px; color: var(--accent); display: flex; align-items: center; gap: 14px; }
.copy .num::after { content: ""; height: 1px; width: 80px; background: currentColor; opacity: .5; }
.copy .plat { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim); margin-top: 14px; }
.copy .title { font-size: clamp(54px, 8.2vw, 156px); line-height: .82; letter-spacing: -.06em; font-weight: 800; margin: 2.2vh 0 2.6vh; }
.copy .title .w { white-space: nowrap; display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .08em 0; }
.copy .title .c { display: inline-block; will-change: transform; }
.copy .pitch { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 36px); line-height: 1.08; max-width: 22ch; }
.copy .pitch em { color: var(--accent); }
.copy .body { margin-top: 2.2vh; max-width: 44ch; font-size: 15.5px; line-height: 1.55; color: var(--cream-dim); }
.feats { list-style: none; margin-top: 2.6vh; display: grid; gap: 9px; max-width: 48ch; }
.feats li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--cream); }
.feats li::before { content: "◆"; color: var(--accent); font-size: 10px; padding-top: 4px; }
.feats b { font-weight: 700; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2.6vh; }
.stack span { font-family: var(--mono); font-size: 11px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--cream-dim); }
.cta { margin-top: 3.2vh; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; background: var(--accent); color: var(--ink);
  padding: 14px 22px; border-radius: 99px; transition: transform .25s, box-shadow .25s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px var(--accent); }
.cta svg { width: 16px; height: 16px; }
.cta.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); margin-left: 8px; }
.big-num { position: absolute; right: var(--gut); top: 70px; font-family: var(--serif); font-size: clamp(120px, 22vw, 380px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; z-index: -1; }
.chapter.flip .big-num { right: auto; left: calc(var(--gut) + 200px); }

@media (max-width: 1100px) {
  .media .fg { height: 80%; bottom: -6%; }
  .media .sticker { width: 36%; top: -12%; }
  .chapter .stage, .chapter.flip .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 76px var(--gut) 28px; gap: 3vh; align-content: start; }
  .chapter.flip .copy { order: 0; }
  .chapter .media { order: -1; max-height: 34vh; aspect-ratio: 16/9; }
  .media.tall { height: 34vh; aspect-ratio: 4/5; }
  .copy .title { font-size: clamp(46px, 13vw, 96px); margin: 1.2vh 0 1.4vh; }
  .copy .pitch { font-size: 21px; }
  .copy .body { display: none; }
  .feats { margin-top: 1.6vh; gap: 6px; }
  .feats li { font-size: 13px; }
  .feats li:nth-child(n+3) { display: none; }
  .stack { display: none; }
  .cta { margin-top: 2vh; padding: 12px 18px; }
  .big-num { display: none; }
  .media .tag { display: none; }
}

/* Chiffres */
.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; padding: 18vh var(--gut) 18vh calc(var(--gut) + 220px); }
.stats div { border-top: 1px solid var(--line); padding-top: 20px; }
.stats b { display: block; font-size: clamp(54px, 7vw, 120px); letter-spacing: -.05em; line-height: .9; font-weight: 800; color: var(--accent); }
.stats span { font-family: var(--serif); font-size: 22px; color: var(--cream-dim); }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; padding-left: var(--gut); row-gap: 6vh; } }

/* Boîte à idées */
.ideas { position: relative; z-index: 3; padding: 18vh var(--gut) 14vh calc(var(--gut) + 220px); }
.ideas header { display: flex; justify-content: space-between; align-items: end; gap: 4vw; flex-wrap: wrap; margin-bottom: 5vh; }
.ideas h2 { font-size: clamp(56px, 9vw, 170px); line-height: .84; letter-spacing: -.055em; font-weight: 800; }
.ideas header p { max-width: 36ch; color: var(--cream-dim); font-size: 16px; line-height: 1.5; }
.ideas header p b { color: var(--accent); font-weight: 600; }
.table { position: relative; height: 1200px; border: 1px dashed var(--line); border-radius: 20px; overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(241,236,220,.035) 79px 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(241,236,220,.035) 79px 80px); }
.table::after { content: "glisse, lance, clique pour retourner"; position: absolute; right: 18px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--cream-dim); }
.card { position: absolute; left: 0; top: 0; width: 200px; height: 262px; perspective: 900px; cursor: grab; touch-action: none; user-select: none; }
.card.drag { cursor: grabbing; }
.card .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card.flip .in { transform: rotateY(180deg); }
.card .f, .card .b { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; overflow: hidden; background: #1a2012; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.card .f img { width: 100%; height: 66%; object-fit: cover; pointer-events: none; }
.card .f .ph { height: 66%; display: grid; place-items: center; font-size: 74px; background: radial-gradient(circle at 50% 40%, #2b351c, #12170d); }
.card .f div.t { padding: 12px 14px; }
.card .f h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1; }
.card .f small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card .b { transform: rotateY(180deg); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--cream); color: var(--ink); }
.card .b p { font-family: var(--serif); font-size: 21px; line-height: 1.12; }
.card .b a, .card .b span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.card .b a { text-decoration: underline; }
@media (max-width: 1100px) { .ideas { padding-left: var(--gut); } .card { width: 160px; height: 220px; } .card .f h3 { font-size: 17px; } .card .f .ph { font-size: 48px; } .card .b p { font-size: 16px; } .table { height: 1100px; } }

/* Fin */
.outro { position: relative; z-index: 3; min-height: 100vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 16vh var(--gut) 8vh; gap: 4vh; }
.outro h2 { font-size: clamp(64px, 14vw, 260px); line-height: .82; letter-spacing: -.06em; font-weight: 800; }
.outro h2 .serif { color: var(--accent); font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.outro h2 .w { white-space: nowrap; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.outro h2 .c { display: inline-block; }
.outro p { max-width: 50ch; color: var(--cream-dim); font-size: 17px; line-height: 1.5; }
.outro .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot { position: relative; z-index: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px var(--gut); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); }

/* Avant que les polices arrivent */
html:not(.ready) [data-split] { visibility: hidden; }
.no-gl .media img { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
.hero .lines .l1 { top: 10vh; opacity: 1; font-size: clamp(26px, 3.4vw, 54px); max-width: 20ch; }
.hero .lines .l2 { top: 77vh; max-width: 24ch; font-size: clamp(24px, 3.2vw, 50px); }
.hero .lines .l3 { top: 42vh; font-size: clamp(40px, 7vw, 120px); max-width: 12ch; }

.copy .title.long { font-size: clamp(46px, 5.4vw, 104px); }
.media .sticker.screen { width: 34%; top: -14%; }
@media (min-width: 1101px) and (max-height: 960px) {
  .copy .title { font-size: clamp(54px, 7vw, 130px); margin: 1.6vh 0 2vh; }
  .copy .title.long { font-size: clamp(44px, 4.8vw, 92px); }
  .copy .body { font-size: 14.5px; }
  .feats li { font-size: 13px; }
  .stack { display: none; }
}

@media (max-width: 760px) {
  .top { padding: 14px var(--gut); }
  .top nav a:not(.pill) { display: none; }
  .pill { padding: 7px 13px; font-size: 13px; white-space: nowrap; }
  .brand em { display: none; }
  .media .sticker { display: none; }
  .hero .lines .l1 { top: 12vh; }
}

.media .sticker.wide { width: 62%; top: 34%; left: 19% !important; right: auto !important; }
.media .fg.car { height: 52%; bottom: -10%; right: -6%; }
.media .fg.tueur { height: 74%; bottom: 4%; right: 30%; }
.chapter + .chapter { margin-top: -60vh; }

/* Chapitre à la une : les clones d'Ulti */
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; background: var(--accent); color: var(--ink);
  padding: 5px 10px; border-radius: 99px; order: 2; }
.chapter.une .copy .num::after { order: 1; }
.chapter.une .title .serif { color: var(--accent); font-style: italic; }
.chapter.une .title.long { font-size: clamp(50px, 6.2vw, 118px); }
.chapter.une .media { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 40px 120px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
.chapter.une .media.gl-on { box-shadow: none; }
.defile { margin-top: 2.4vh; max-width: min(52ch, 100%); 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); }
.defile div { display: flex; gap: 8px; width: max-content; animation: defile 38s linear infinite; }
.defile span { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 99px; color: var(--cream); white-space: nowrap; }
@keyframes defile { to { transform: translateX(calc(-50% - 4px)); } }
@media (prefers-reduced-motion: reduce) { .defile div { animation: none; } }
.index a.une { font-size: 17px; }
@media (min-width: 1101px) and (max-height: 960px) { .chapter.une .title.long { font-size: clamp(46px, 5.4vw, 100px); } .defile { margin-top: 1.8vh; } }
@media (max-width: 1100px) { .defile { margin-top: 1.6vh; } .chapter.une .title.long { font-size: clamp(42px, 11vw, 88px); } }
