/* ============================================================
   BINAIRE – v3, direction « Cerebrium »
   Fond charbon, typographie légère et serrée, libellés mono en
   capitales, cartes bordées, lueur d'accent, canvas three.js,
   révélations GSAP. Couleurs : Bleu Binaire + accent (Or, rose en octobre).
   ============================================================ */

/* Polices de repli ajustées aux métriques d'Inter et de JetBrains Mono : pas de décalage à l'arrivée des webfonts */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Consolas"), local("Courier New"); size-adjust: 103%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --bg: #0B0F1C;
  --bg-2: #10162A;
  --bg-3: #161D33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink-rgb: 255, 255, 255;      /* couleur des filets et surfaces translucides */
  --bg-rgb: 11, 15, 28;
  --surface-rgb: 16, 22, 42;
  --photo-opacity: .42;
  --photo-filter: saturate(.7) contrast(1.05);
  --text: #EEF2F7;
  --muted: #8C98B8;
  --muted-2: #8591AD;

  --primary: #0070BC;
  --primary-soft: #4DA3E6;
  --primary-rgb: 0, 112, 188;
  --accent: #F0B429;
  --accent-rgb: 240, 180, 41;
  --accent-2: #F6D06A;
  --dark: #060A1A;
  --dark-rgb: 6, 10, 26;

  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Mono Fallback", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 14px;
  --nav-h: 4.5rem;
}
html.octobre-rose { --accent: #FF4D8D; --accent-rgb: 255, 77, 141; --accent-2: #E33ADB; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 100; padding: .6rem 1rem; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

/* Libellés mono en capitales (style Cerebrium) */
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: .6rem; vertical-align: middle; box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Voile d'ouverture ---------- */
.veil { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
html.no-js .veil, .veil.is-done { display: none; }
.veil { animation: veil-failsafe 0s 5s forwards; }
@keyframes veil-failsafe { to { visibility: hidden; } }
.veil-mark { display: flex; align-items: center; gap: .9rem; font-weight: 600; letter-spacing: .08em; opacity: 0; }
.veil-mark img { width: 56px; height: 56px; }

/* ---------- Barre de progression ---------- */
.progress-bar { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ---------- Transition d'ambiance en cercle ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; } ::view-transition-new(root) { z-index: 2; }
html, body, .live, .channel, .faq-list details, .clock, .combo, .sheet-deliver { transition: background-color .5s, border-color .5s, color .5s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.3rem; border-radius: 8px; border: 1px solid transparent;
  font: 500 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .3s var(--ease), transform .15s var(--ease);
}
.btn-accent { background: var(--accent); color: var(--dark); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-2); box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), .9); transform: translateY(-1px); }
.btn-accent:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(var(--ink-rgb), .02); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: rgba(var(--ink-rgb), .4); background: rgba(var(--ink-rgb), .06); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover, .btn-light:focus-visible { background: #F3F6FA; transform: translateY(-1px); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; pointer-events: none; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-120%); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav > .wrap > * { pointer-events: auto; }
.nav .brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); font-weight: 600; letter-spacing: .06em; }
.nav .brand img { width: 38px; height: 38px; }
.nav .pill {
  display: flex; gap: .25rem; align-items: center; margin: 0; padding: .3rem; list-style: none;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--surface-rgb), .55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-solid .pill { background: rgba(var(--surface-rgb), .85); border-color: var(--line-2); box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); }
.nav .link { display: inline-block; padding: .55rem .95rem; border-radius: 999px; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.nav .link:hover, .nav .link:focus-visible { color: var(--text); }
.nav .link.is-active { color: var(--text); background: rgba(var(--ink-rgb), .08); }
.nav .right { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.nav .burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(var(--surface-rgb), .7); color: var(--text); cursor: pointer; padding: 0; }
.nav .burger svg { width: 22px; height: 22px; }
.nav .burger .close { display: none; }
.nav.is-open .burger .open { display: none; }
.nav.is-open .burger .close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 0; overflow: hidden; }
.hero .photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: var(--photo-opacity); filter: var(--photo-filter); animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
.hero canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .6) 50%, rgba(var(--bg-rgb), .35) 100%),
              linear-gradient(to bottom, rgba(var(--bg-rgb), .5), rgba(var(--bg-rgb), 0) 30%, rgba(var(--bg-rgb), .9) 100%),
              radial-gradient(60% 50% at 80% 60%, rgba(var(--accent-rgb), .16), transparent 70%); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; padding-bottom: 5rem; min-width: 0; }
.hero .copy, .hero .cover { min-width: 0; max-width: 100%; }
.hero .copy { display: grid; gap: 1.6rem; max-width: 64ch; }
.hero .copy .label { margin-bottom: .2rem; }
.hero .notice { display: none; }
html.octobre-rose .hero .notice { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; max-width: 100%; flex-wrap: wrap; box-sizing: border-box; padding: .45rem .9rem .45rem .5rem; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 999px; background: rgba(var(--accent-rgb), .1); color: var(--text); text-decoration: none; font: 500 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s; }
html.octobre-rose .hero .notice b { display: inline-block; white-space: nowrap; padding: .3rem .55rem; border-radius: 999px; background: var(--accent); color: var(--dark); font-weight: 500; }
html.octobre-rose .hero .notice:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .18); }
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
h2 .w > span { display: inline-block; }
html.js h2[data-split].is-split:not(.is-in) .w > span { transform: translateY(110%) rotate(4deg); animation: reveal-failsafe 0s 6s forwards; }
h2 .w { perspective: 600px; }
html.js h2[data-split].is-in .w > span { transform: none; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); font-weight: 300; max-width: 12ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; will-change: transform; }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 50ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero .cover { display: none; }
.hero .cover-text { display: none; }
html.octobre-rose .hero .grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
html.octobre-rose .hero .cover { display: block; margin: 0; justify-self: end; width: min(100%, 380px); perspective: 1200px; }
html.octobre-rose .hero .cover img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid rgba(var(--ink-rgb), .14); box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 80px -20px rgba(var(--accent-rgb), .55); transform-style: preserve-3d; }
.hero .scroll { position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); font: 500 .62rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero .scroll i { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Halo qui suit le curseur */
.glow { position: fixed; left: 0; top: 0; z-index: 0; width: 600px; height: 600px; margin: -300px 0 0 -300px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .07), transparent 60%); opacity: 0; transition: opacity .6s; }
body.has-glow .glow { opacity: 1; }
main, .hero, .footer { position: relative; z-index: 1; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 0 3rem; margin-top: -1.5rem; }
.stats > div { display: grid; gap: .2rem; padding-left: 1rem; border-left: 1px solid rgba(var(--ink-rgb), .18); }
.stats b { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats b i { font-style: normal; color: var(--accent); margin: 0 .05em; }
.stats span { font: 500 .66rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Rail : les douze services défilent */
.rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(var(--bg-rgb), .6); backdrop-filter: blur(8px); overflow: hidden; }
.rail .track { display: flex; width: max-content; }
.rail:hover .track { animation-play-state: paused; }
.rail ul { display: flex; list-style: none; margin: 0; padding: 1rem 0; gap: 0; }
.rail li { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rail li::after { content: "/"; color: var(--accent); opacity: .7; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.head h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-top: 1rem; }
.head p { color: var(--muted); font-size: 1.05rem; max-width: 50ch; }
.head p strong { color: var(--text); font-weight: 500; }

/* ---------- Cartes vivantes ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.live { container: live / inline-size; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto; gap: .9rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease); }
.live:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-3px); }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.live-head .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.live > p { color: var(--muted); font-size: .92rem; }
.pulse { display: inline-flex; align-items: center; gap: .5rem; font: 500 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pulse i { width: 8px; height: 8px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: beat 2s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.6); } 70% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
.dots { display: inline-flex; gap: .3rem; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--ink-rgb), .14); }
.dots i:first-child { background: #E5533D; } .dots i:nth-child(2) { background: var(--accent); } .dots i:last-child { background: #2FBF71; }
.count-chip { white-space: nowrap; flex: none; font: 500 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .6rem; }
.clock { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); min-height: 150px; align-content: center; }
.clock b { font: 300 3rem/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.clock span { font: 500 .62rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.term { padding: 1rem 1.1rem; border-radius: 10px; background: var(--dark); color: #DCE4F0; border: 1px solid rgba(255,255,255,.08); font: 400 .78rem/1.7 var(--mono); min-height: 150px; }
.term .prompt { color: var(--accent); }
.term .cmd::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: .15em; vertical-align: -.15em; background: #DCE4F0; animation: blink 1s steps(2) infinite; }
.term.done .cmd::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.term-steps { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .15rem; }
.term-steps li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; color: rgba(220,228,240,.72); transition: color .3s; }
.term-steps li span { min-width: 0; }
.term-steps li em { flex: none; white-space: nowrap; }
.term-steps li em { font-style: normal; color: rgba(220,228,240,.62); }
.term-steps li.run { color: #DCE4F0; } .term-steps li.run em { color: var(--accent); }
.term-steps li.ok { color: #DCE4F0; } .term-steps li.ok em { color: #2FBF71; }
.combo { display: grid; gap: .7rem; padding: 1.2rem 1.3rem; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); min-height: 150px; align-content: center; }
.combo-row { display: flex; align-items: center; gap: .5rem .6rem; flex-wrap: wrap; }
.combo-b { display: inline-flex; align-items: center; gap: .6rem; }
.combo .chip { display: inline-block; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 500; font-size: .88rem; line-height: 1.2; white-space: nowrap; }
.combo .op, .combo .arrow { font-family: var(--mono); color: var(--accent); }
.combo-out { display: flex; align-items: flex-start; gap: .6rem; }
.combo-out .arrow { flex: none; line-height: 1.5; }
.combo-out strong { font-weight: 500; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.combo .swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@container live (max-width: 360px) {
  .term { font-size: .72rem; padding: .9rem 1rem; }
  .term .term-line { overflow-wrap: anywhere; }
  .combo { padding: 1rem 1.1rem; min-height: 0; }
  .combo .chip { font-size: .82rem; padding: .4rem .65rem; }
  .combo-out strong { font-size: .95rem; }
}

/* ---------- Bento (À propos) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: opacity;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .14), transparent 60%); }
.card:hover { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--accent-rgb), .1); }
.card:hover::after { opacity: 1; }
.card figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.card figure img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; filter: saturate(.85); transition: filter .4s; }
.card:hover figure img { filter: saturate(1); }
.card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg-2) 100%); }
.card .body { padding: 1.3rem 1.4rem 1.6rem; }
.card h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }
.bento .card:nth-child(1), .bento .card:nth-child(6) { grid-column: span 2; }
.bento .card:nth-child(1) figure, .bento .card:nth-child(6) figure { aspect-ratio: 21 / 9; }

/* ---------- Services : tuiles ---------- */
.services { overflow: hidden; }
.tiles { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tiles > li { flex: 0 0 300px; }
.services .progress { position: relative; height: 1px; margin-top: 2rem; background: var(--line); }
.services .progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--primary-soft)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.services .count { display: flex; justify-content: space-between; margin-top: .8rem; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.tile {
  position: relative; display: grid; gap: 1.4rem; min-height: 230px; height: 100%; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), .03), rgba(var(--ink-rgb), 0)); color: var(--text); text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.tile svg { width: 1.9rem; height: 1.9rem; color: var(--primary-soft); transition: color .3s, transform .3s var(--ease); }
.tile i { font-size: .72rem; color: var(--muted-2); }
.tile span { align-self: end; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; display: grid; gap: .35rem; }
.tile small { font-weight: 400; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.tile i { position: absolute; top: 1.1rem; right: 1.1rem; font: 500 .66rem/1 var(--mono); letter-spacing: .12em; color: var(--muted-2); font-style: normal; text-transform: uppercase; }
.tile:hover, .tile:focus-visible { border-color: rgba(var(--accent-rgb), .5); background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), rgba(var(--ink-rgb), 0)); transform: translateY(-3px); }
.tile:hover svg, .tile:focus-visible svg { color: var(--accent); transform: translateY(-2px); }
.services .cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.services .cta p { color: var(--muted); max-width: 44ch; }

/* ---------- PDG ---------- */
.pdg .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.pdg figure { margin: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.pdg .frame { position: relative; border-radius: var(--r); padding: 1px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .9), rgba(var(--primary-rgb), .9) 60%, transparent); }
.pdg .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r) - 1px); display: block; }
.pdg figcaption { margin-top: 1.4rem; }
.pdg figcaption strong { display: block; font-weight: 500; font-size: 1.05rem; }
.pdg figcaption span { font: 500 .7rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pdg blockquote { margin: 1rem 0 2rem; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; }
.pdg blockquote .grad { font-weight: 400; }
.pdg .letter p { color: var(--muted); max-width: 62ch; }
.pdg .letter p + p { margin-top: 1rem; }
.pdg .letter strong { color: var(--text); font-weight: 500; }
.pdg .btn { margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 70% at 80% 50%, rgba(var(--primary-rgb), .25), transparent 70%), radial-gradient(40% 50% at 15% 80%, rgba(var(--accent-rgb), .12), transparent 70%); }
.contact .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-top: 1rem; }
.contact .intro { color: var(--muted); margin-top: 1.4rem; max-width: 50ch; }
.contact .intro strong { color: var(--text); font-weight: 500; }
.channels { display: grid; gap: 1rem; }
.channel { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--surface-rgb), .6); backdrop-filter: blur(10px); }
.channel svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: .2rem; }
.channel small { display: block; font: 500 .68rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.channel a { display: inline-block; color: var(--text); text-decoration: none; font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.01em; padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px; transition: background-size .3s var(--ease); }
.channel a:hover, .channel a:focus-visible { background-size: 100% 2px; }
/* Octobre Rose : fond rose, écrits blancs (choix validé) */
html.octobre-rose .contact { background: var(--accent); color: #fff; }
html.octobre-rose .contact::before { display: none; }
html.octobre-rose .contact .label, html.octobre-rose .contact .intro, html.octobre-rose .contact .intro strong, html.octobre-rose .contact h2 { color: #fff; }
html.octobre-rose .contact .label::before { background: #fff; box-shadow: none; }
html.octobre-rose .channel { border-color: rgba(var(--ink-rgb), .35); background: rgba(var(--ink-rgb), .1); }
html.octobre-rose .channel svg, html.octobre-rose .channel small, html.octobre-rose .channel a { color: #fff; }
html.octobre-rose .channel a { background-image: linear-gradient(var(--dark), var(--dark)); }
html.octobre-rose .contact .btn-accent { background: #fff; color: var(--dark); }
html.octobre-rose .contact :focus-visible { outline-color: #fff; }


/* ---------- Pour qui ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.who { position: relative; overflow: hidden; padding: 1.4rem 1.6rem 1.8rem; min-height: 280px; display: grid; grid-template-rows: auto 1fr auto auto; align-content: end; gap: .8rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease); }
.who::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, rgba(var(--primary-rgb), .35), transparent); opacity: .6; transition: opacity .4s, transform .6s var(--ease); }
.who:nth-child(2)::before { background: radial-gradient(closest-side, rgba(var(--accent-rgb), .3), transparent); }
.who:nth-child(3)::before { background: radial-gradient(closest-side, rgba(var(--ink-rgb), .18), transparent); }
.who:hover { border-color: var(--line-2); transform: translateY(-3px); }
.who:hover::before { opacity: 1; transform: scale(1.15); }
.who .label { position: static; margin-bottom: auto; padding-right: 7rem; }
.who h3 { align-self: end; margin-top: 2rem; }
.who h3 { font-size: 1.7rem; font-weight: 400; letter-spacing: -0.02em; }
.who p { color: var(--muted); font-size: .95rem; }
.who ul { margin: .4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.who li { font: 500 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Méthode : quatre étapes et une ligne qui se trace ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; padding-top: 2.5rem; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps .line { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--primary-soft)); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.step { position: relative; display: grid; gap: .7rem; }
.step::before { content: ""; position: absolute; top: calc(-2.5rem - 4px); left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .3s, box-shadow .3s; }
.step.is-on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .9); }
.step .n { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; color: var(--muted-2); }
.step h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: .95rem; }


/* ---------- Projets ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; color: var(--text); text-decoration: none; position: relative;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.project:hover, .project:focus-visible { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), 0 0 40px -20px rgba(var(--accent-rgb), .5); }
.project .shot { position: relative; margin: 0; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.project .bar { display: flex; gap: .35rem; align-items: center; height: 26px; padding: 0 .8rem; border-bottom: 1px solid var(--line); background: rgba(var(--ink-rgb), .03); }
.project .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--ink-rgb), .14); }
.project .bar span { margin-left: .6rem; font: 400 .6rem/1 var(--mono); letter-spacing: .06em; color: var(--muted-2); }
.project .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; transition: transform .8s var(--ease); }
.project:hover .shot img { transform: scale(1.03); }
.project .shot::after { content: ""; position: absolute; inset: 26px 0 0; background: linear-gradient(to bottom, transparent 70%, rgba(var(--surface-rgb), .9)); pointer-events: none; }
.project .body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.project .label { margin-bottom: .2rem; }
.project h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.project p { color: var(--muted); font-size: .95rem; }
.project .go { margin-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.project .go svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.project:hover .go svg { transform: translate(2px, -2px); }
.project .go b { font-weight: 400; color: var(--muted-2); letter-spacing: .04em; text-transform: none; }
/* Carte d'appel : fond accentué, pas de capture */
.project-cta { grid-template-rows: 1fr; background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(var(--primary-rgb), .14) 60%, var(--bg-2)); border-color: rgba(var(--accent-rgb), .35); }
.project-cta .body { padding: 2.2rem 2rem; align-content: center; gap: .9rem; }
.project-cta h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; letter-spacing: -0.02em; }
.project-cta p { font-size: 1rem; }
.project-cta ul { margin: .3rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.project-cta li { font: 500 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .4rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; }
.project-cta .go { margin-top: .8rem; padding: .85rem 1.3rem; border-radius: 8px; background: var(--accent); color: var(--dark); width: max-content; }
.project-cta:hover .go svg { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .6rem; max-width: 60rem; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .3s; }
.faq-list details[open] { border-color: rgba(var(--accent-rgb), .45); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-family: var(--mono); color: var(--muted); transition: transform .3s var(--ease), color .2s, border-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); border-color: rgba(var(--accent-rgb), .6); }
.faq-list p { padding: 0 1.4rem 1.3rem; color: var(--muted); max-width: 70ch; }
.faq-list a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .7); text-underline-offset: .2em; }
.footer address { font-style: normal; }
.footer address a { color: inherit; text-decoration: none; }
.footer address a:hover { color: var(--text); }

/* ---------- Bandeau final ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 100%, rgba(var(--accent-rgb), .22), transparent 70%), radial-gradient(40% 40% at 20% 0%, rgba(var(--primary-rgb), .18), transparent 70%); }
.cta-band .wrap { display: grid; justify-items: center; gap: 1.2rem; max-width: 60rem; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 16ch; }
.cta-band p:not(.label) { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .6rem; }
.btn { position: relative; overflow: hidden; }
.btn[data-magnetic] { transition: background .2s, border-color .2s, color .2s, box-shadow .3s var(--ease); }
.btn[data-magnetic]:hover, .btn[data-magnetic]:focus-visible { transform: none; }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 120%; }

/* ---------- Fiches (modales) ---------- */
.tile .more, .step .more { font: 500 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; font-style: normal; }
.tile .more { position: absolute; right: 1.1rem; bottom: 1.2rem; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.tile:hover .more, .tile:focus-visible .more { opacity: 1; transform: none; }
.step .more { display: inline-block; margin-top: .3rem; padding-bottom: 2px; background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 1px; transition: background-size .3s var(--ease); }
.step .more:hover, .step .more:focus-visible { background-size: 100% 1px; }
.who[data-sheet] { cursor: pointer; }
.who[data-sheet]::after { content: "Approfondir ↗"; position: absolute; right: 1.4rem; top: 1.45rem; font: 500 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity .25s; }
.who[data-sheet]:hover::after, .who[data-sheet]:focus-visible::after { opacity: 1; }

.sheet { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: transparent; display: grid; place-items: center; overflow: hidden; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(6, 10, 26, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet-card { opacity: 1; width: min(960px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); box-shadow: 0 60px 120px -40px rgba(0,0,0,.7); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem 1rem 1.6rem; background: rgba(var(--bg-rgb), .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sheet-meta { display: flex; align-items: center; gap: 1rem; }
.sheet-pos { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; color: var(--muted-2); }
.sheet-nav { display: flex; gap: .4rem; }
.sheet-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; padding: 0; transition: border-color .2s, background .2s, transform .15s var(--ease); }
.sheet-btn:hover, .sheet-btn:focus-visible { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.sheet-btn:active { transform: scale(.94); }
.sheet-btn[disabled] { opacity: .3; cursor: default; }
.sheet-btn svg { width: 18px; height: 18px; }
.sheet-body { padding: 2rem 1.6rem 1.5rem; }
.sheet-body h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -0.03em; }
.sheet-tag { margin-top: .6rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; margin-top: 1.8rem; }
.sheet-desc { color: var(--muted); font-size: 1.02rem; }
.sheet-who { margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--text); font-size: .95rem; }
.sheet-who:empty { display: none; }
.sheet-deliver { padding: 1.2rem 1.3rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.sheet-deliver ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.sheet-deliver li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.sheet-deliver li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .7); }
.sheet-rel { margin-top: 1.8rem; }
.sheet-rel > div { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.sheet-rel button { font: 500 .78rem/1 var(--sans); padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.sheet-rel button:hover, .sheet-rel button:focus-visible { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); transform: translateY(-1px); }
.sheet-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: rgba(var(--bg-rgb), .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sheet-hint { font: 400 .66rem/1.4 var(--mono); letter-spacing: .08em; color: var(--muted-2); }
body.sheet-open { overflow: hidden; }
@media (max-width: 760px) {
  .sheet { place-items: end center; }
  .sheet-card { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .sheet-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .sheet-hint { display: none; }
  .tile .more { opacity: 1; transform: none; position: static; margin-top: .2rem; }
  .who[data-sheet]::after { opacity: 1; }
}

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; color: var(--muted); }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer .brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 600; letter-spacing: .06em; text-decoration: none; }
.footer .brand img { width: 40px; height: 40px; }
.footer .top p { margin-top: 1rem; max-width: 36ch; font-size: .95rem; }
.footer h3 { font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer ul a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer ul a:hover, .footer ul a:focus-visible { color: var(--text); }
.footer .social { display: flex; gap: .7rem; }
.footer .social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.footer .social a:hover, .footer .social a:focus-visible { color: var(--accent); border-color: rgba(var(--accent-rgb), .6); transform: translateY(-2px); }
.footer .social svg { width: 17px; height: 17px; }
.footer .wordmark { margin-top: 3rem; font-size: clamp(4.5rem, 19vw, 17rem); font-weight: 600; line-height: .8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .14); user-select: none; white-space: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.4rem; font: 400 .7rem/1.6 var(--mono); letter-spacing: .08em; color: var(--muted-2); }


/* ---------- Ambiance claire (par défaut) : le sombre est activé par data-theme="dark" ---------- */
html:not([data-theme="dark"]) {
  --bg: #FFFFFF; --bg-2: #F5F7FB; --bg-3: #EAEEF5;
  --line: rgba(11, 15, 28, .09); --line-2: rgba(11, 15, 28, .18);
  --text: #0B0F1C; --muted: #4B5872; --muted-2: #5A6782;
  --ink-rgb: 11, 15, 28; --bg-rgb: 255, 255, 255; --surface-rgb: 245, 247, 251;
  --primary-soft: #0070BC;
  --accent: #D99A12; --accent-2: #E5731F;
  --photo-opacity: .9; --photo-filter: saturate(.85);
}
html:not([data-theme="dark"]).octobre-rose { --accent: #F0458F; --accent-rgb: 240, 69, 143; --accent-2: #D43FC2; }
html:not([data-theme="dark"]) .btn-accent { color: #fff; }
html:not([data-theme="dark"]) .btn-accent:hover, html:not([data-theme="dark"]) .btn-accent:focus-visible { color: #fff; }
html:not([data-theme="dark"]) .hero { color: var(--text); }
html:not([data-theme="dark"]) .hero::before {
  background: linear-gradient(to right, rgba(255,255,255,.96) 0%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.45) 100%),
              linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,0) 30%, rgba(255,255,255,.95) 100%),
              radial-gradient(60% 50% at 80% 60%, rgba(var(--accent-rgb), .12), transparent 70%); }
html:not([data-theme="dark"]) .hero h1 .grad, html:not([data-theme="dark"]) .pdg blockquote .grad { background-image: linear-gradient(90deg, var(--primary), var(--accent)); }
html:not([data-theme="dark"]) .card:hover, html:not([data-theme="dark"]) .project:hover { box-shadow: 0 30px 60px -40px rgba(11,15,28,.35); }
html:not([data-theme="dark"]) .project .shot::after { background: linear-gradient(to bottom, transparent 70%, rgba(245,247,251,.9)); }
html:not([data-theme="dark"]) .footer .wordmark { -webkit-text-stroke-color: rgba(11,15,28,.16); }
html:not([data-theme="dark"]) .nav .pill { background: rgba(255,255,255,.7); }
html:not([data-theme="dark"]) .nav.is-solid .pill { background: rgba(255,255,255,.9); }
html:not([data-theme="dark"]) .label::before { box-shadow: none; }
html:not([data-theme="dark"]) .skip-link { background: var(--dark); color: #fff; }

/* Bouton de bascule d'ambiance */
.nav .theme { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(var(--surface-rgb), .92); color: var(--text); box-shadow: 0 2px 10px -4px rgba(var(--dark-rgb), .35); cursor: pointer; padding: 0; transition: border-color .2s, transform .2s var(--ease), background .3s; }
.nav .theme:hover, .nav .theme:focus-visible { border-color: rgba(var(--accent-rgb), .6); transform: rotate(15deg); }
.nav .theme svg { width: 18px; height: 18px; }
.nav .theme .sun { display: none; }
html:not([data-theme="dark"]) .nav .theme .sun { display: block; }
html:not([data-theme="dark"]) .nav .theme .moon { display: none; }

/* ---------- Révélations (état initial, animé par GSAP) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); animation: reveal-failsafe 0s 6s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
html.js-failed [data-reveal], html.js-failed h2[data-split] .w > span { opacity: 1 !important; transform: none !important; animation: none; }
html.js-failed .veil { display: none; }
html.js [data-reveal]:not(.is-in) { transition: none !important; }
html.js .is-in[data-reveal], html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card:nth-child(1), .bento .card:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav .wrap { display: flex; justify-content: space-between; }
  .nav .pill { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem; padding: 0 2rem; border: 0; border-radius: 0; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  /* Ruban des services : animation CSS (compositeur), pas de JavaScript */
  .rail .track { animation: rail-move 60s linear infinite; will-change: transform; }
  @keyframes rail-move { to { transform: translate3d(-50%, 0, 0); } }
  .track-m { overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .nav .pill, html:not([data-theme="dark"]) .nav .pill, .nav.is-solid .pill { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nav.is-open .pill { opacity: 1; visibility: visible; }
  .nav .link { font-size: 1.3rem; letter-spacing: .06em; padding: .6rem 0; }
  .nav .link.is-active { background: none; color: var(--accent); }
  .nav .burger { display: inline-grid; place-items: center; }
  /* Barre mobile : fond opaque dès que l'on quitte le haut de page (le contenu ne passe plus derrière le logo et les boutons) */
  .nav { transition: background-color .3s, box-shadow .3s; }
  .nav.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav.is-open { background: var(--bg); }
  .nav, .nav .wrap { overflow: visible; }
  .nav .wrap { width: calc(100% - 2rem); }
  .nav .brand { min-width: 0; }
  .nav .right { flex: none; position: relative; z-index: 2; }
  .nav .theme, .nav .burger { width: 44px; height: 44px; }
  .nav .right .btn { display: none; }
  .hero .grid, html.octobre-rose .hero .grid, .head, .pdg .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .who-grid, .projects-grid, .live-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero .scroll { display: none; }
  /* Méthode : ligne verticale le long des étapes */
  .steps { grid-template-columns: 1fr; gap: 2.2rem; margin-top: 2.5rem; padding-top: 0; padding-left: 2rem; }
  .steps::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps .line { left: 4px; width: 1px; height: 100%; transform: scaleY(var(--p, 0)); transform-origin: top; background: linear-gradient(180deg, var(--accent), var(--primary-soft)); }
  .step::before { top: .45rem; left: -2rem; }
  /* Services : carrousel tactile */
  .tiles { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 1.25rem 1rem; margin: 0 calc(50% - 50vw); max-width: 100vw; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles > li { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
  .tile { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 1rem; min-height: 240px; padding: 1.4rem 1.3rem 1.2rem; }
  .tile svg { width: 2.2rem; height: 2.2rem; }
  .tile i { top: 1.2rem; right: 1.2rem; }
  .tile span { align-self: start; }
  .tile .more { position: static; opacity: 1; transform: none; margin-top: .2rem; }
  .services .count { display: none; }
  html.octobre-rose .hero .cover { justify-self: end; width: min(100%, 300px); perspective: none; }
  html.octobre-rose .hero .cover img { transform: none !important; }
  .pdg figure { position: static; max-width: 380px; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card:nth-child(1), .bento .card:nth-child(6) { grid-column: auto; }
  .bento .card:nth-child(1) figure, .bento .card:nth-child(6) figure { aspect-ratio: 3 / 2; }
  .tile { min-height: 0; }
  .footer .top { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 90svh; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; }
}

/* ---------- Optimisations tactiles et petits écrans ---------- */
@media (hover: none), (max-width: 900px) {
  .hero .photo { animation: none; }
  .glow { display: none; }
  .veil { display: none; }
  .card::after { display: none; }
  .card:hover { transform: none; }
  .live:hover, .who:hover, .project:hover, .tile:hover { transform: none; }
  .btn::after { display: none; }
  .nav .pill, .nav.is-solid .pill, .sheet-head, .sheet-foot, .channel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-solid .pill { background: var(--bg); }
  .sheet::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 10, 26, .7); }
}
@media (min-width: 721px) and (max-width: 900px) {
  html.octobre-rose .hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 2rem; align-items: center; }
  .hero .copy { max-width: none; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }
}
@media (max-width: 720px) {
  .section { padding: clamp(3.5rem, 12vw, 5rem) 0; }
  .head { margin-bottom: 2.2rem; gap: 1rem; }
  .head h2 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 3.2rem); max-width: none; overflow-wrap: anywhere; hyphens: auto; }
  .hero .copy, .hero .copy > * { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .hero .lead { max-width: none; }
  .hero .grid { gap: 2rem; padding-bottom: 2.5rem; }
  /* Octobre Rose : l'affiche entière, pleine largeur, sous les boutons */
  html.octobre-rose .hero .cover { width: 100%; max-width: 100%; min-width: 0; justify-self: stretch; perspective: none; display: flex; justify-content: center; overflow: hidden; }
  html.octobre-rose .hero .cover picture { display: block; max-width: 100%; }
  html.octobre-rose .hero .cover img { width: auto; max-width: 100%; height: auto; max-height: 72svh; max-height: 72vh; border-radius: 14px; transform: none !important; }
  html.octobre-rose .hero .cover-text { display: none; }
  html.octobre-rose .hero .notice { display: inline-flex; font-size: .62rem; }
  .hero .grid { gap: 1.4rem; }
  .stats { padding-bottom: 2rem; }
  .cta-band h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .live { grid-template-rows: auto auto auto auto; }
  .clock b { font-size: 2.6rem; }
  .footer .wordmark { font-size: 22vw; }
}

.track-dots, .track-hint { display: none; }

/* ---------- Pistes horizontales sur mobile et tablette ----------
   Les cartes ne s'empilent plus : elles défilent à l'horizontale, plein bord,
   avec accroche au défilement, carte active mise en avant, points de progression. */
@media (max-width: 900px) {
  .track-m {
    display: flex !important; grid-template-columns: none !important; gap: .9rem !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: .6rem 1.25rem 1.2rem; margin: 0 calc(50% - 50vw); max-width: 100vw;
    scroll-padding: 0 1.25rem;
  }
  .track-m::-webkit-scrollbar { display: none; }
  .track-m > * { flex: 0 0 min(84vw, 420px); scroll-snap-align: center; scroll-snap-stop: always; transform: scale(.94); opacity: .88; transition: transform .35s ease-out, opacity .35s ease-out; backface-visibility: hidden; }
  .track-m > .is-active { transform: scale(1); opacity: 1; }
  .track-m > *:last-child { margin-right: 1.25rem; }
  .track-m .live { min-height: 100%; }
  .track-m .project { height: 100%; }
  .track-m .who { min-height: 300px; }
  html.js .track-m > [data-reveal] { opacity: .88; transform: scale(.94); }
  html.js .track-m > [data-reveal].is-active { opacity: 1; transform: scale(1); }
  .track-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .2rem; }
  .track-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--ink-rgb), .18); transition: width .4s var(--ease), background .3s; }
  .track-dots i.on { width: 22px; border-radius: 3px; background: var(--accent); }
  /* Pistes liées au défilement vertical : la section s'épingle, les cartes défilent au rythme de la page */
  .track-stage { position: relative; }
  .track-sticky { position: sticky; top: var(--stick-top, calc(var(--nav-h) + .5rem)); }
  .track-stage .track-m { scroll-snap-type: none; }
  .track-hint { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-top: .6rem; transition: opacity .4s; font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
  .track-hint i { width: 26px; height: 1px; background: currentColor; position: relative; }
  .track-hint i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
}
@media (max-width: 600px) {
  .projects-grid.track-m { grid-template-columns: none !important; }
  .projects-grid.track-m > * { flex-basis: 86vw; }
  .bento .card:nth-child(1), .bento .card:nth-child(6) { grid-column: auto; }
}

/* ---------- Moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rail .track { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .track-m > * { transform: none; opacity: 1; }
  .hero h1 .w > span { transform: none !important; }
  .hero canvas { display: none; }
  .glow { display: none; }
  .veil { display: none; }
  .hero .photo { animation: none; }
  html.js [data-reveal] { filter: none; }
  .pulse i { animation: none; }
  .term .cmd::after { animation: none; }
  .steps .line, .services .progress i { transform: none; }
  html.js h2[data-split] .w > span { transform: none; }
  .rail .track { transform: none !important; }
}
