/* Fenryr — vitrine fenryr.fr.
   Direction artistique : noir profond, métal, typographie éditoriale monumentale, accent unique et rare.
   Le moment signature (section « rise ») est piloté par --p (0..1) posé par /js/fenryr.js. */

:root {
  --bg: #f3f1ec;
  --bg-2: #ebe8e1;
  --panel: #ffffff;
  --panel-2: #f7f6f2;
  --line: #dcd8cf;
  --line-2: #c9c4b9;
  --text: #121316;
  --muted: #5c6068;
  --faint: #9a9ea6;
  --steel: #6f747c;
  --acc: #1f7a4d;
  --acc-dim: rgba(31, 122, 77, 0.12);
  --warn: #a3741f;
  --err: #b9502f;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1360px;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Jeu de couleurs des zones sombres (hero, scène du loup). */
.dark, .rise { color: var(--text); --bg: #07080a; --bg-2: #0b0c0f; --panel: #0e1013; --panel-2: #13161a; --line: #1b1e24; --line-2: #2a2e36; --text: #ebe8e1; --muted: #9a9ea6; --faint: #6a6e76; --steel: #b4b8bf; --acc: #79c69a; --acc-dim: rgba(121, 198, 154, 0.14); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: var(--text); color: #fff; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---- Typographie ---- */
.tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.tag__dot--on { background: var(--acc); }
.h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 0.96; letter-spacing: -0.035em; margin-top: 22px; }
.h2--md { font-size: clamp(2rem, 4.4vw, 4.1rem); }
.h2--sm { font-size: clamp(1.9rem, 3.6vw, 3.2rem); text-transform: none; letter-spacing: -0.025em; line-height: 1.04; }
.dim { color: var(--faint); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.22rem); max-width: 54ch; margin-top: 28px; }

/* ---- Révélation ---- */
.reveal { transition: opacity 0.55s cubic-bezier(.16, 1, .3, 1), transform 0.55s cubic-bezier(.16, 1, .3, 1), clip-path 0.7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .h2.reveal, .js .case__t.reveal, .js .system__claim.reveal { opacity: 1; transform: none; clip-path: inset(0 0 99.5% 0); }
.js .h2.reveal.is-in, .js .case__t.reveal.is-in, .js .system__claim.reveal.is-in { clip-path: inset(-5% 0 -12% 0); }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; border-radius: 2px; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease; }
.btn--primary { background: #121316; color: #f3f1ec; border-color: #121316; }
.btn--primary:hover { background: #2a2d33; border-color: #2a2d33; }
.btn--primary:active { transform: translateY(1px); }
.btn--line { color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); }
.btn--lg { padding: 20px 36px; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---- Navigation ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gut); transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(243, 241, 236, 0.94); border-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.34em; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 2px; transition: border-color 0.15s ease; white-space: nowrap; }
.nav__cta:hover { border-color: var(--text); }

/* ================= 1. LA PROMESSE ================= */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 88px; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(24px, 4vh, 44px); align-content: center; padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(32px, 5vh, 64px); }
.hero__tag { grid-column: 1 / -1; }
.hero__title { grid-column: 1 / 12; margin-top: -6px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.8rem, 7.4vw, 7.2rem); line-height: 0.88; letter-spacing: -0.045em; }
.hero__title span { display: block; clip-path: inset(0 0 100% 0); transform: translateY(0.25em); transition: clip-path 0.8s cubic-bezier(.16, 1, .3, 1), transform 0.8s cubic-bezier(.16, 1, .3, 1); }
.hero.is-ready .hero__title span { clip-path: inset(-5% 0 -12% 0); transform: none; }
.hero.is-ready .hero__title span:nth-child(2) { transition-delay: 0.06s; }
.hero.is-ready .hero__title span:nth-child(3) { transition-delay: 0.12s; }
.hero.is-ready .hero__title span:nth-child(4) { transition-delay: 0.2s; }
.hero__alt { color: var(--acc); }
.hero__small { margin-top: 0.3em; font-size: 0.36em; letter-spacing: -0.025em; line-height: 1.05; color: var(--muted); text-transform: none; }
.hero__aside { grid-column: 6 / 13; opacity: 0; transform: translateY(10px); transition: opacity 0.6s cubic-bezier(.16, 1, .3, 1) 0.3s, transform 0.6s cubic-bezier(.16, 1, .3, 1) 0.3s; }
.hero.is-ready .hero__aside { opacity: 1; transform: none; }
.hero__lead { color: var(--muted); font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 22px; color: var(--faint); font-size: 0.88rem; max-width: 52ch; }
.hero__note a { color: var(--muted); }
.hero__foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); }
.hero__foot .tag { color: var(--faint); }
.hero__scroll { flex-direction: row-reverse; }
.hero__scroll::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--muted), transparent); }
.no-js .hero__title span, .no-js .hero__aside { opacity: 1; transform: none; clip-path: none; }

/* ================= 2. LE COÛT DU FONCTIONNEMENT MANUEL ================= */
.ops { position: relative; background: var(--bg-2); }
.ops__stage-wrap { height: 230vh; }
.ops__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ops__words { position: absolute; inset: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; pointer-events: none; }
.ops__w { position: absolute; max-width: min(58vw, 760px); color: var(--faint); will-change: opacity, transform;
  opacity: clamp(0, min(calc((var(--p) - var(--in)) / 0.07), calc((var(--out) - var(--p)) / 0.1)), 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - var(--in)) / 0.12, 1)) * 24px)) translateX(calc(clamp(0, (var(--p) - var(--out) + 0.1) / 0.1, 1) * -16px)); }
/* Chaque mot a sa place, sa taille, sa fenêtre d'apparition. Ils se superposent par moments. */
.ops__w--1 { --in: 0.02; --out: 0.56; left: 6%;  top: 12%; font-size: clamp(1.5rem, 3.8vw, 3.8rem); color: #b9b5ac; }
.ops__w--2 { --in: 0.1;  --out: 0.6;  left: 44%; top: 28%; font-size: clamp(1.3rem, 3vw, 3rem); color: #a6a29a; }
.ops__w--3 { --in: 0.18; --out: 0.64; left: 8%;  top: 42%; font-size: clamp(1.7rem, 4.6vw, 4.6rem); color: #8f8b84; }
.ops__w--4 { --in: 0.26; --out: 0.68; left: 40%; top: 58%; font-size: clamp(1.4rem, 3.4vw, 3.4rem); color: #76736d; }
.ops__w--5 { --in: 0.34; --out: 0.7;  left: 14%; top: 72%; font-size: clamp(1.3rem, 3vw, 3rem); color: #55534f; }
.ops__w--6 { --in: 0.42; --out: 0.74; left: 50%; top: 8%;  font-size: clamp(1.2rem, 2.6vw, 2.6rem); color: var(--text); }
.ops__copy { position: absolute; inset: 0; display: grid; align-content: end; padding-bottom: clamp(56px, 12vh, 140px); gap: 20px; pointer-events: none;
  opacity: clamp(0, calc((var(--p) - 0.7) / 0.12), 1); transform: translateY(calc((1 - clamp(0, (var(--p) - 0.7) / 0.16, 1)) * 30px)); }
.ops__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: 0.92; letter-spacing: -0.04em; }
.ops__text { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 30ch; }
.ops__hire { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; padding: clamp(56px, 8vh, 110px) var(--gut) clamp(80px, 12vh, 150px); border-top: 1px solid var(--line); }
.ops__hire-head { grid-column: 1 / 7; }
.ops__hire-head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.ops__hire-body { grid-column: 7 / 13; display: grid; gap: 18px; color: var(--muted); font-size: 1.05rem; }
.ops__hire-body strong { color: var(--text); font-weight: 600; }
.ops--static .ops__stage-wrap { height: auto; }
.ops--static .ops__stage { position: relative; height: auto; }
.ops--static .ops__words { position: relative; inset: auto; padding: clamp(80px, 12vh, 140px) var(--gut) 0; display: flex; flex-direction: column; gap: 0.05em; }
.ops--static .ops__w { position: static; opacity: 1; transform: none; max-width: none; font-size: clamp(1.3rem, 5.6vw, 2.6rem); line-height: 1.05; }
.ops--static .ops__w:nth-child(even) { margin-left: 8%; }
.ops--static .ops__words { gap: 0.35em; }
.ops--static .ops__copy { position: relative; inset: auto; opacity: 1; transform: none; padding-top: 56px; padding-bottom: clamp(80px, 12vh, 140px); }

/* ================= 3. LES CHAÎNES CÈDENT ================= */
/* Deux photographies de la même sculpture : enchaînée, puis libre. Au défilement, la lumière monte, la caméra
   se rapproche, un éclat marque la rupture et les chaînes se dissolvent depuis le point de rupture (masque radial). */
.rise { position: relative; height: 300vh; background: #000; color: #ebe8e1; }
.rise__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #020203; }
/* Tout ce qui bouge est composé par le GPU : transform, opacity, clip-path. Aucun filtre ni masque animé. */
.rise__stage { contain: strict; }
.rise__scene { position: absolute; inset: 0; transform: scale(calc(1.02 + var(--p) * 0.08)); transform-origin: 78% 42%; will-change: transform; }
.rise__frame { position: absolute; inset: 0; }
.rise__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.rise__frame--free { clip-path: circle(calc(clamp(0, (var(--p) - 0.5) / 0.3, 1) * 125%) at 78% 42%); will-change: clip-path; }
.rise__dark { position: absolute; inset: 0; background: #020203; opacity: calc(0.7 - var(--p) * 0.7); pointer-events: none; will-change: opacity; }
.rise__light { position: absolute; inset: 0; pointer-events: none; opacity: calc(0.3 + var(--p) * 0.7);
  background: radial-gradient(70% 90% at 82% 12%, rgba(255, 252, 245, 0.14), rgba(255, 252, 245, 0.04) 40%, transparent 70%); }
.rise__flare { position: absolute; left: 58%; top: 12%; width: 40%; height: 60%; pointer-events: none; will-change: opacity, transform;
  opacity: clamp(0, min(calc((var(--p) - 0.46) / 0.05), calc((0.72 - var(--p)) / 0.14)), 1);
  transform: scale(calc(0.8 + clamp(0, (var(--p) - 0.46) / 0.2, 1) * 0.6));
  background: radial-gradient(closest-side at 50% 50%, rgba(255, 248, 235, 0.7), rgba(255, 248, 235, 0.14) 45%, transparent 72%); }
.rise__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
              linear-gradient(rgba(2, 2, 3, 0.9), transparent 14%, transparent 70%, rgba(2, 2, 3, 0.95)); }
.rise__copy { position: absolute; inset: 0; z-index: 3; display: grid; align-content: end; padding-bottom: clamp(56px, 10vh, 120px); pointer-events: none; }
.rise__tag { position: absolute; top: clamp(90px, 14vh, 140px); left: var(--gut); }
.rise__step { grid-area: 1 / 1; }
.rise__pre { color: #9a9ea6; font-size: 1.1rem; max-width: 42ch; }
.rise__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 6.2vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; }
.rise__sub { margin-top: 22px; color: #b4b8bf; font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 46ch; }
.rise__system { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-family: var(--mono); font-size: clamp(0.8rem, 1.1vw, 1rem); letter-spacing: 0.22em; text-transform: uppercase; color: #ebe8e1; }
.rise__system li { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.rise__system li + li::before { content: ""; width: clamp(20px, 4vw, 64px); height: 1px; background: #b4b8bf; }
.rise__step--1 { opacity: clamp(0, min(calc((var(--p) - 0.06) / 0.08), calc((0.46 - var(--p)) / 0.08)), 1); }
.rise__step--4 { opacity: clamp(0, min(calc((var(--p) - 0.58) / 0.08), calc((0.9 - var(--p)) / 0.06)), 1); transform: translateY(calc(clamp(0, (0.66 - var(--p)) / 0.08, 1) * 24px)); }
.rise__step--5 { opacity: clamp(0, calc((var(--p) - 0.9) / 0.07), 1); transform: translateY(calc(clamp(0, (0.94 - var(--p)) / 0.08, 1) * 16px)); }
/* Statique (mobile, réduction des mouvements) : état final, sculpture libre. */
.rise--static { height: auto; }
.rise--static .rise__stage { position: relative; height: auto; min-height: 92svh; }
.rise--static .rise__scene { transform: none; }
.rise--static .rise__frame--chained { display: none; }
.rise--static .rise__frame--free { clip-path: none; }
.rise--static .rise__dark { display: none; }
.rise--static .rise__flare { display: none; }
.rise--static .rise__copy { position: relative; min-height: 92svh; padding-top: clamp(100px, 16vh, 160px); gap: 28px; align-content: end; }
.rise--static .rise__tag { position: static; }
.rise--static .rise__step { grid-area: auto; opacity: 1 !important; transform: none !important; }
.rise--static .rise__step--1 { display: none; }
.rise--static .rise__vignette { background: linear-gradient(rgba(2, 2, 3, 0.35), transparent 22%, rgba(2, 2, 3, 0.45) 48%, rgba(2, 2, 3, 0.9) 72%, #020203); }

/* ================= 4. UN SYSTÈME EN ACTION ================= */
.system { padding: clamp(96px, 14vh, 180px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.system__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.system__head .tag { grid-column: 1 / -1; }
.system__head .h2 { grid-column: 1 / 9; }
.system__head .lead { grid-column: 8 / 13; align-self: end; margin-top: 0; }
.system__note { grid-column: 8 / 13; margin-top: 18px; color: var(--faint); font-size: 0.9rem; }

.cockpit { margin-top: clamp(48px, 7vh, 88px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 90px -60px rgba(18, 19, 22, 0.35); }
.cockpit__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.cockpit__demo { color: var(--warn); }
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.pipe__st { position: relative; padding: 18px 20px 20px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.pipe__st:last-child { border-right: 0; }
.pipe__n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--faint); }
.pipe__t { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.pipe__s { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.pipe__s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pipe__st[data-state="done"] .pipe__s::after { content: "terminé"; }
.pipe__st[data-state="done"] .pipe__s::before { background: var(--steel); }
.pipe__st[data-state="run"] .pipe__s::after { content: "en cours"; }
.pipe__st[data-state="run"] .pipe__s { color: var(--acc); }
.pipe__st[data-state="run"] .pipe__s::before { background: var(--acc); box-shadow: 0 0 0 4px var(--acc-dim); }
.pipe__st[data-state="run"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--acc); }
.pipe__st[data-state="wait"] .pipe__s::after { content: "en attente"; }

.cockpit__body { display: grid; grid-template-columns: 0.9fr 1.3fr 0.8fr; }
.cockpit__in, .cockpit__out, .cockpit__side { padding: 20px; display: grid; gap: 14px; align-content: start; }
.cockpit__in, .cockpit__out { border-right: 1px solid var(--line); }
.raw { font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 14px; overflow: auto; white-space: pre; }
.sheet { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 12px; }
.sheet__h { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sheet__t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.sheet__p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.sheet__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sheet__specs div { border-top: 1px solid var(--line); padding-top: 8px; }
.sheet__specs dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.sheet__specs dd { font-size: 0.9rem; margin-top: 2px; }
.sheet__f { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet__ok { color: var(--acc); }
.kpi { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kpi strong { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; font-weight: 700; }
.log { font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; color: var(--muted); display: grid; gap: 7px; }
.log li { display: flex; gap: 10px; }
.log li span { color: var(--faint); flex: none; }
.log em { color: var(--warn); font-style: normal; }


/* Résultats mesurés : typographie monumentale, contexte lisible. */
.stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(56px, 8vh, 96px); padding-top: 36px; border-top: 1px solid var(--line); }
.stat { grid-column: span 5; display: grid; gap: 10px; align-content: start; }
.stat strong { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 8vw, 8rem); line-height: 0.9; letter-spacing: -0.045em; }
.stat strong small { font-size: 0.32em; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.stat__sep { color: var(--faint); margin: 0 0.04em; }
.stat__l { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; max-width: 26ch; }
.stat__note { grid-column: 1 / 10; color: var(--faint); font-size: 0.92rem; max-width: 90ch; }
.rules { display: grid; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.rules li { display: flex; gap: 10px; align-items: flex-start; }
.rules li span { flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--acc); }
.sheet__warn { color: var(--warn); }
.sheet__err { color: var(--err); }
.log b { color: var(--err); font-weight: 500; }
.system__claim { margin-top: clamp(48px, 7vh, 80px); font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 34ch; }
.system__next { display: block; margin-top: 24px; color: var(--faint); font-size: 0.92rem; max-width: 80ch; }

/* ================= 5. CE QUE NOUS POUVONS TRANSFORMER ================= */
.cases { padding: clamp(96px, 14vh, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.cases__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.cases__head .tag { grid-column: 1 / -1; }
.cases__head .h2 { grid-column: 1 / 9; }
.cases__head .lead { grid-column: 8 / 13; align-self: end; margin-top: 0; }
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; padding: clamp(48px, 7vh, 80px) 0; border-top: 1px solid var(--line); margin-top: clamp(48px, 7vh, 80px); }
.case:first-of-type { margin-top: clamp(56px, 8vh, 96px); }
.case__n { grid-column: 1 / 2; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--faint); }
.case__body { grid-column: 2 / 8; }
.case__t { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 20ch; }
.case__p { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.flow { grid-column: 8 / 13; align-self: center; display: grid; gap: 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.flow li { position: relative; padding: 12px 0 12px 26px; }
.flow li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transform: translateY(-50%); }
.flow li::after { content: ""; position: absolute; left: 3px; top: calc(50% + 7px); bottom: calc(-50% + 7px); width: 1px; background: var(--line-2); }
.flow li:last-child::after { display: none; }
.flow li:first-child::before, .flow li:last-child::before { background: var(--steel); }
.flow__h { color: var(--text); }
.flow__h::before { background: var(--acc) !important; box-shadow: 0 0 0 4px var(--acc-dim); }
.case--alt .case__n { grid-column: 12 / 13; justify-self: end; }
.case--alt .case__body { grid-column: 6 / 12; grid-row: 1; }
.case--alt .flow { grid-column: 1 / 5; grid-row: 1; }

/* ================= 6. NOUS NE VOUS LAISSONS PAS SEUL ================= */
.method { padding: clamp(96px, 14vh, 180px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.method__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.method__head .tag { grid-column: 1 / -1; }
.method__head .h2 { grid-column: 1 / 8; }
.method__head .lead { grid-column: 8 / 13; align-self: end; margin-top: 0; }
.shift { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; margin-top: clamp(56px, 8vh, 96px); border: 1px solid var(--line-2); background: var(--panel); }
.shift__col { padding: 26px 24px 28px; display: grid; gap: 18px; align-content: start; }
.shift__col p { color: var(--muted); font-size: 0.95rem; }
.shift__arrow { position: relative; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.shift__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1px solid var(--steel); border-right: 1px solid var(--steel); transform: translate(-60%, -50%) rotate(45deg); }
.shift__scatter { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 96px; align-content: flex-start; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.shift__scatter li:nth-child(3n) { margin-left: 18px; }
.shift__scatter li:nth-child(4n) { margin-top: 10px; }
.shift__pipe { display: flex; align-items: center; min-height: 96px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); flex-wrap: wrap; gap: 6px 0; }
.shift__pipe li { display: flex; align-items: center; }
.shift__pipe li + li::before { content: ""; width: 18px; height: 1px; background: var(--steel); margin: 0 8px; }
.shift__loop { display: flex; align-items: center; gap: 14px; min-height: 96px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.shift__loop em { flex: 1; height: 26px; border: 1px solid var(--acc); border-radius: 13px; position: relative; opacity: 0.8; }
.shift__loop em::before, .shift__loop em::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border-top: 1px solid var(--acc); border-right: 1px solid var(--acc); }
.shift__loop em::before { right: 40%; transform: translateY(-50%) rotate(45deg) translateY(-13px); }
.shift__loop em::after { left: 40%; transform: translateY(-50%) rotate(-135deg) translateY(-13px); }
.method__grid { display: grid; grid-template-columns: 7fr 4fr; column-gap: clamp(32px, 5vw, 96px); row-gap: 40px; margin-top: clamp(56px, 8vh, 96px); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.questions { padding-top: 30px; border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 48px); align-self: start; }
.questions ol { counter-reset: q; display: grid; gap: 14px; margin-top: 18px; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--acc); padding-top: 4px; font-weight: 400; }
.questions__note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.step { padding: 30px 0 8px; display: grid; gap: 12px; align-content: start; }
.step:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
.step:nth-child(n+3) { border-top: 1px solid var(--line); }
.step__n { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--faint); }
.step h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ================= 9. CONTACT ================= */
.contact { padding: clamp(96px, 14vh, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.contact__head { grid-column: 1 / 7; }
.contact__head .tag a { color: var(--text); text-decoration: none; text-transform: none; letter-spacing: 0.04em; }
.contact__head .tag { margin-top: 22px; }
.form { grid-column: 7 / 13; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.9rem; font-weight: 500; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 1.05rem; border-radius: 0; transition: border-color 0.15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.trap { position: absolute; left: -9999px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.86rem; }
.consent input { margin-top: 4px; accent-color: var(--acc); }
.form__error { padding: 12px 14px; background: rgba(163, 116, 31, 0.1); border: 1px solid rgba(163, 116, 31, 0.5); border-radius: 3px; font-size: 0.92rem; }
.form .btn { justify-self: start; }

.contact__meta { margin-top: 36px; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.contact__meta p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.contact__meta .tag { display: block; margin-bottom: 6px; }
.contact__meta a { color: var(--text); }
.contact__head > .tag { margin-top: 0; }

/* ---- Pied de page ---- */
.footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--text); }
.footer__brand .tag a { color: var(--muted); text-decoration: none; text-transform: none; letter-spacing: 0.04em; }
.footer__brand .tag a:hover { color: var(--text); }

/* ---- Pages secondaires (merci, mentions légales) ---- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 24px var(--gut); border-bottom: 1px solid var(--line); }
.header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.34em; }
.header__link { color: var(--muted); text-decoration: none; }
.header__link:hover { color: var(--text); }
.button { display: inline-block; padding: 14px 26px; background: #121316; border: 1px solid #121316; border-radius: 2px; color: #f3f1ec; font-weight: 600; text-decoration: none; }
.button:hover { background: #2a2d33; }
.page { max-width: 760px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 24px) 96px; }
.page h1 { margin-bottom: 32px; font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.page h2 { margin: 32px 0 8px; font-family: var(--display); font-size: 1.3rem; }
.page p { color: var(--muted); }
.page a { color: var(--text); }
.page a.button { color: #f3f1ec; text-decoration: none; }

/* ---- Préférences & responsive ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .nav, .hero__title span, .hero__aside { transition: none; }
  .js .reveal, .js .h2.reveal, .js .case__t.reveal, .js .system__claim.reveal { opacity: 1; transform: none; clip-path: none; }
  .hero__title span { clip-path: none; transform: none; }
}

@media (max-width: 1100px) {
  .cockpit__body { grid-template-columns: 1fr 1fr; }
  .cockpit__side { grid-column: 1 / -1; border-top: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .cockpit__side .log { grid-column: 1 / -1; }
  .cockpit__out { border-right: 0; }
  .shift { grid-template-columns: 1fr; }
  .shift__arrow { height: 48px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .shift__arrow::before { transform: translate(-50%, -60%) rotate(135deg); }
  .method__grid { grid-template-columns: 1fr; }
  .questions { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .ops__hire-head, .ops__hire-body { grid-column: 1 / -1; }
  .system__head .h2, .cases__head .h2, .method__head .h2 { grid-column: 1 / -1; }
  .system__head .lead, .cases__head .lead, .method__head .lead { grid-column: 1 / 11; margin-top: 28px; }
  .system__note { grid-column: 1 / 11; }
  .stat { grid-column: span 6; }
  .stat__note { grid-column: 1 / -1; }
  .case, .case--alt { grid-template-columns: 1fr; }
  .case__n, .case--alt .case__n { grid-column: 1; justify-self: start; }
  .case__body, .case--alt .case__body, .flow, .case--alt .flow { grid-column: 1; grid-row: auto; }
  .contact__head, .form { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 14px var(--gut); }
  .nav__cta { display: none; }
  .hero { padding-top: 72px; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .hero__foot .tag:nth-child(2) { display: none; }
  .ops__stage-wrap { height: auto; }
  .rise { height: auto; }
  .cockpit__body { grid-template-columns: 1fr; }
  .cockpit__bar .tag { font-size: 0.62rem; letter-spacing: 0.12em; }
  .cockpit__in { border-right: 0; border-bottom: 1px solid var(--line); }
  .cockpit__side { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .pipe__st { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 36px 1fr auto; align-items: center; padding: 14px 20px; }
  .pipe__st:last-child { border-bottom: 0; }
  .pipe__st[data-state="run"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .sheet__specs { grid-template-columns: 1fr 1fr; }
  .stat { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { border-left: 0; padding-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .footer__grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .hero__actions .btn, .form .btn { width: 100%; justify-content: center; }
  .cockpit__side { grid-template-columns: 1fr; }
}
