/* ═══════════════════════════════════════════════════════════
   PULSE+ — Une énergie pour chaque effort
   Signature : « Le Pouls » — ligne ECG, zones cardiaques Z2→Z5
   ═══════════════════════════════════════════════════════════ */

:root {
  --orange: #FF4D00;
  --orange-soft: #FF6A26;
  --black: #0A0908;
  --white: #FAF6EF;

  /* thème d'acte (réécrit par [data-act]) */
  --ink: #FAF6EF;
  --ink-dim: rgba(250, 246, 239, 0.62);
  --panel: rgba(10, 9, 8, 0.55);
  --panel-line: rgba(250, 246, 239, 0.16);
  --accent: var(--orange);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --hud-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── thèmes par acte ─────────────────────────────── */
body[data-act="hero"]      { --ink:#FAF6EF; --ink-dim:rgba(250,246,239,.62); --panel:rgba(12,8,4,.55); --panel-line:rgba(250,246,239,.16); }
body[data-act="miel"]      { --ink:#3B2A18; --ink-dim:rgba(59,42,24,.66);   --panel:rgba(250,244,232,.72); --panel-line:rgba(59,42,24,.18); }
body[data-act="fruits"]    { --ink:#4A222B; --ink-dim:rgba(74,34,43,.66);   --panel:rgba(252,242,242,.74); --panel-line:rgba(74,34,43,.18); }
body[data-act="cacao"]     { --ink:#F4E9DC; --ink-dim:rgba(244,233,220,.6); --panel:rgba(18,13,10,.6);  --panel-line:rgba(244,233,220,.16); }
body[data-act="gingembre"] { --ink:#F6EEDD; --ink-dim:rgba(246,238,221,.6); --panel:rgba(8,7,5,.62);    --panel-line:rgba(246,238,221,.16); }
body[data-act="gamme"]     { --ink:#F4E9DC; --ink-dim:rgba(244,233,220,.6); --panel:rgba(20,15,11,.6);  --panel-line:rgba(244,233,220,.14); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--orange); color: #fff; }

img { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══════════ LOADER ═══════════ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(560px, 84vw); text-align: center; }
.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--white);
}
.loader__brand span { color: var(--orange); }
.loader__ecg { width: 100%; height: 60px; margin: 2rem 0 1.4rem; }
.loader__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250, 246, 239, 0.55);
}
.loader__pct { color: var(--orange); }

/* ═══════════ HUD ═══════════ */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.1rem, 3.5vw, 2.6rem);
  color: var(--ink);
  transition: color 0.6s;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud__logo {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.04em;
  color: inherit; text-decoration: none;
}
.hud__logo span { color: var(--orange); }
.hud__monitor {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.45rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.6s, border-color 0.6s;
}
.hud__ecg { width: 120px; height: 36px; }
.hud__readout { display: flex; align-items: baseline; gap: 0.4rem; font-family: var(--font-mono); }
.hud__bpm { font-size: 1.3rem; font-weight: 500; color: var(--orange); min-width: 2.2ch; text-align: right; }
.hud__bpm-unit { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--ink-dim); }
.hud__zone {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
  border-left: 1px solid var(--panel-line);
  padding-left: 0.6rem; margin-left: 0.2rem;
  white-space: nowrap;
}
.hud__cart {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--panel-line);
  border-radius: 50%;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.6s, border-color 0.6s, transform 0.2s;
}
.hud__cart:hover { transform: scale(1.06); }
.hud__cart svg { width: 20px; height: 20px; }
.hud__cart-count[hidden] { display: none; }
.hud__cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem;
  border-radius: 999px; padding: 0 4px;
}

/* ═══════════ RAIL ═══════════ */
.rail {
  position: fixed; right: clamp(0.9rem, 2.4vw, 2rem); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
}
.rail__dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink-dim);
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.rail__dot.is-on { background: var(--orange); border-color: var(--orange); transform: scale(1.3); }
.rail__tip {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 0.3rem 0.55rem; border-radius: 4px;
  white-space: nowrap; opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rail__dot:hover .rail__tip, .rail__dot:focus-visible .rail__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ═══════════ TRANSITION « SYSTOLE » ═══════════
   Pas de graphique par-dessus l'image : le cadre lui-même se
   contracte (systole) puis relâche (diastole), pendant qu'un
   voile périphérique pulse discrètement. */
.beat {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 118% 118% at 50% 50%, transparent 58%, rgba(5, 3, 2, 0.5) 92%),
    radial-gradient(ellipse 140% 140% at 50% 50%, transparent 72%, rgba(255, 77, 0, 0.1) 100%);
}
.beat.is-firing { animation: systole-veil 0.55s ease-out; }
@keyframes systole-veil {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
body.is-beating .act__stage,
body.is-beating .console__stage { animation: systole-frame 0.55s cubic-bezier(0.3, 0, 0.2, 1); }
@keyframes systole-frame {
  0% { transform: scale(1); }
  28% { transform: scale(0.9855); }
  62% { transform: scale(1.0035); }
  100% { transform: scale(1); }
}

/* ═══════════ ACTES (scroll scrubbing) ═══════════ */
.act { position: relative; height: 560vh; }
.act--hero { height: 460vh; }
.act__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.act__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.act__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 34%); }

/* séquences texte pilotées au scroll */
.seq {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.4rem, 6vw, 7rem);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1vw, 0.74rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.eyebrow--center { text-align: center; }

.mega {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 17vw, 15rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.mega__plus { color: var(--orange); }
.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.claim {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.claim em { font-style: normal; color: var(--orange); }

.seq--hero-cue { justify-content: flex-end; padding-bottom: 16vh; }
.cue-line {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  transition: opacity 0.5s;
}
.scroll-cue svg { width: 14px; height: 20px; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.scroll-cue.is-hidden { opacity: 0; }

/* intro d'acte */
.act-marker {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1vw, 0.76rem);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.act-marker__zone {
  color: var(--orange);
  border: 1px solid currentColor;
  padding: 0.28em 0.6em; border-radius: 3px;
  margin-right: 0.5em;
}
.giant {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.18);
}
.act-product {
  margin-top: 1.3rem;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-dim);
}

/* matière / ingrédients */
.matter__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.15);
}
.matter__body {
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--orange);
  padding: 1.3rem 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* data card */
.datacard {
  display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
  border-radius: 12px; overflow: hidden;
  max-width: 420px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.datacard > div { background: var(--panel); padding: 1.1rem 1.3rem; }
.datacard dt {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 0.4rem;
}
.datacard dd {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--orange);
}

/* effort card */
.effortcard {
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.effortcard__label {
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.7rem;
}
.effortcard__body { font-size: clamp(0.95rem, 1.4vw, 1.12rem); line-height: 1.6; color: var(--ink); }

/* ═══════════ LA CONSOLE D'EFFORT ═══════════ */
.console { position: relative; height: 100vh; height: 100svh; }
.console__stage { position: relative; height: 100%; overflow: hidden; }
.console__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.console__video.is-active { opacity: 1; }
.console__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 42%); }
body[data-act="miel"] .console__veil,
body[data-act="fruits"] .console__veil { background: linear-gradient(to top, rgba(255, 252, 246, 0.14), transparent 38%); }

/* sélecteur de zones */
.console__zones {
  position: absolute; top: calc(var(--hud-h) + 0.6rem); left: 50%; z-index: 6;
  transform: translateX(-50%);
  display: flex; gap: 3px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: calc(100% - 1.6rem);
}
.console__zone {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.console__zone:hover { color: var(--ink); }
.console__zone[aria-selected="true"] { background: var(--orange); color: #fff; }
.console__zone-band { font-weight: 500; }
.console__zone[aria-selected="true"] .console__zone-band { color: #fff; }

/* panneaux produit */
.console__panel {
  position: absolute; z-index: 4;
  left: clamp(1.2rem, 4.5vw, 4.5rem); right: clamp(1.2rem, 4.5vw, 4.5rem);
  bottom: 108px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2.2rem);
  align-items: end;
  pointer-events: none;
}
.console__panel[hidden] { display: none; }
.console__panel .btn--add { pointer-events: auto; margin-top: 0.9rem; }
.console__col { display: grid; gap: 0.9rem; align-content: end; min-width: 0; }
.cblock {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.cblock.is-shown { opacity: 1; transform: none; }
.console .giant { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.console .act-marker { margin-bottom: 0.8rem; }
.console .act-product { margin-top: 0.7rem; font-size: clamp(0.85rem, 1.3vw, 1.05rem); }
.console .matter__title { font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-bottom: 0.7rem; }
.console .matter__body { font-size: clamp(0.85rem, 1.2vw, 0.98rem); line-height: 1.55; padding: 1rem 1.15rem; }
.console .datacard { max-width: none; }
.console .datacard > div { padding: 0.8rem 1rem; }
.console .datacard dd { font-size: clamp(1.05rem, 1.8vw, 1.5rem); }
.console .effortcard { max-width: none; padding: 1.1rem 1.25rem; }
.console .effortcard__body { font-size: clamp(0.85rem, 1.2vw, 0.98rem); }

/* timeline ECG à chapitres */
.console__timeline {
  position: absolute; z-index: 6;
  left: 50%; bottom: 1.1rem;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 2.4rem));
  padding: 0.75rem 1rem 0.55rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.console__progress {
  position: relative;
  height: 2px;
  background: var(--panel-line);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.console__progress-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.8);
}
.console__chapters { display: flex; justify-content: space-between; }
.console__chapter {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.3rem 0.45rem;
  transition: color 0.25s;
}
.console__chapter:hover { color: var(--ink); }
.console__chapter.is-on { color: var(--orange); }

/* ═══════════ FINALE · LA GAMME ═══════════ */
.gamme {
  position: relative;
  background:
    radial-gradient(1200px 500px at 50% -140px, rgba(255, 77, 0, 0.14), transparent 70%),
    linear-gradient(180deg, #0A0908 0%, #14100C 55%, #0A0908 100%);
  padding: clamp(6rem, 12vh, 9rem) clamp(1.4rem, 5vw, 4rem) 0;
  color: #F4E9DC;
}
.gamme__head { text-align: center; max-width: 760px; margin: 0 auto clamp(3.4rem, 7vh, 5rem); }
.gamme__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.gamme__sub { color: rgba(244, 233, 220, 0.65); line-height: 1.7; font-size: clamp(0.95rem, 1.4vw, 1.1rem); margin-bottom: 2rem; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 6px 28px rgba(255, 77, 0, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(255, 77, 0, 0.5); }
.btn--add {
  background: transparent; color: var(--orange);
  border: 1px solid rgba(255, 77, 0, 0.55);
  width: 100%;
}
.btn--add:hover { background: var(--orange); color: #fff; }
.btn--ghost { width: auto; }

.gamme__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1380px; margin: 0 auto;
}
.product {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(244, 233, 220, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.product:hover { transform: translateY(-6px); border-color: rgba(255, 77, 0, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.product__media { aspect-ratio: 16 / 10; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { padding: 1.3rem 1.4rem 1.5rem; }
.product__zone {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.55rem;
}
.product__name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.01em; margin-bottom: 0.25rem; }
.product__tag { color: rgba(244, 233, 220, 0.6); font-style: italic; margin-bottom: 0.9rem; }
.product__price { font-family: var(--font-mono); font-size: 1.05rem; color: #F4E9DC; margin-bottom: 1.1rem; }
.product__price span { display: block; font-size: 0.66rem; color: rgba(244, 233, 220, 0.45); margin-top: 0.3rem; letter-spacing: 0.04em; }

.gamme__offers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 900px; margin: clamp(3rem, 6vh, 4.5rem) auto 0;
}
.offer {
  border: 1px solid rgba(244, 233, 220, 0.14);
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}
.offer--sub { border-color: rgba(255, 77, 0, 0.45); background: rgba(255, 77, 0, 0.06); }
.offer__title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; }
.offer__body { color: rgba(244, 233, 220, 0.6); font-size: 0.95rem; margin-bottom: 1rem; }
.offer__price { font-family: var(--font-mono); font-size: 1.5rem; color: var(--orange); margin-bottom: 1.2rem; }
.offer__price span { font-size: 0.8rem; color: rgba(244, 233, 220, 0.5); }

.gamme__proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1200px; margin: clamp(3.5rem, 7vh, 5rem) auto 0;
}
.proof {
  border-top: 2px solid var(--orange);
  padding-top: 1.2rem;
}
.proof blockquote { font-size: 1.02rem; line-height: 1.65; color: rgba(244, 233, 220, 0.85); margin-bottom: 0.9rem; }
.proof figcaption { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 233, 220, 0.45); }

.footer {
  margin-top: clamp(4rem, 9vh, 7rem);
  border-top: 1px solid rgba(244, 233, 220, 0.1);
  padding: 3rem 0 3.4rem;
  text-align: center;
}
.footer__brand { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.8rem; }
.footer__brand span { color: var(--orange); }
.footer__line { color: rgba(244, 233, 220, 0.55); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer__line a { color: var(--orange); text-decoration: none; }
.footer__line a:hover { text-decoration: underline; }
.footer__legal { font-size: 0.72rem; color: rgba(244, 233, 220, 0.32); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ═══════════ QUIZ ═══════════ */
.quiz[hidden] { display: none; }
.quiz {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.2rem;
}
.quiz__panel {
  position: relative;
  width: min(560px, 100%);
  background: #131009;
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  color: #F4E9DC;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 77, 0, 0.08);
  animation: quiz-in 0.45s var(--ease-out);
}
@keyframes quiz-in { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.quiz__close {
  position: absolute; top: 0.9rem; right: 1.1rem;
  font-size: 1.7rem; color: rgba(244, 233, 220, 0.5);
  transition: color 0.2s;
}
.quiz__close:hover { color: var(--orange); }
.quiz__q { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0.9rem 0 1.5rem; line-height: 1.1; }
.quiz__opts { display: grid; gap: 0.7rem; }
.quiz__opt {
  text-align: left;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(244, 233, 220, 0.18);
  border-radius: 10px;
  font-size: 0.98rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.quiz__opt:hover { border-color: var(--orange); background: rgba(255, 77, 0, 0.08); transform: translateX(4px); }
.quiz__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.8rem; }
.quiz__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 233, 220, 0.2); transition: background 0.3s; }
.quiz__dot.is-on { background: var(--orange); }
.quiz__result { text-align: center; }
.quiz__verdict { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(244, 233, 220, 0.5); margin: 0.8rem 0 1rem; }
.quiz__img { width: min(340px, 80%); margin: 0 auto 1.1rem; border-radius: 12px; }
.quiz__reco { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.3rem; }
.quiz__tagline { color: var(--orange); font-style: italic; margin-bottom: 1.6rem; }
.quiz__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.quiz__actions .btn--ghost { border: 1px solid rgba(244, 233, 220, 0.25); color: rgba(244, 233, 220, 0.7); }
.quiz__actions .btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; z-index: 90;
  transform: translateX(-50%) translateY(20px);
  background: #131009; color: #F4E9DC;
  border: 1px solid rgba(255, 77, 0, 0.5);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ═══════════ ACCESSIBILITÉ / FOCUS ═══════════ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 860px) {
  .hud__zone { display: none; }
  .hud__ecg { width: 80px; }
  .rail { right: 0.55rem; gap: 0.85rem; }
  .rail__tip { display: none; }
  .act--hero { height: 400vh; }
  .console__zone { padding: 0.45rem 0.7rem; }
  .console__zone-name { display: none; }
  .console__panel {
    grid-template-columns: 1fr;
    top: calc(var(--hud-h) + 3.4rem);
    bottom: 96px;
    overflow-y: auto;
    align-items: start; align-content: end;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .console__panel .datacard { grid-template-columns: repeat(2, 1fr); }
  .console .giant { font-size: clamp(2rem, 9vw, 3rem); }
  .console__chapter { letter-spacing: 0.08em; padding: 0.3rem 0.2rem; }
}

@media (max-width: 560px) {
  .hud__monitor { gap: 0.5rem; padding: 0.35rem 0.7rem; }
  .hud__ecg { width: 56px; height: 28px; }
  .hud__bpm { font-size: 1.05rem; }
  .mega { font-size: clamp(4rem, 22vw, 6rem); }
  .giant { font-size: clamp(2.9rem, 15vw, 4.6rem); }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
  .beat.is-firing .beat__path, .beat.is-firing .beat__flash { animation: none; }
  .beat { display: none; }
  .quiz__panel { animation: none; }
  .cblock { transition: none; }
  .console__video { transition: none; }
}
