/* ============================================================
   OPERATIONAL — feuille de style
   Palette et typographie fidèles au prototype Claude Design,
   réécrites en CSS responsive (mobile → desktop).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --fg: #EDECE8;
  --fg-soft: #8F8D88;
  --fg-dim: #57554F;
  --line: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .12);
  --gold: #C2A878;
  --gold-hover: #E0B830;
  --gold-soft: rgba(194, 168, 120, .3);
  --gold-halo: rgba(194, 168, 120, .05);
  --nav-bg: rgba(10, 10, 10, .92);
  --input-border: rgba(255, 255, 255, .08);
  --done: #3A7D44;

  --pad-x: 48px;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Switzer', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #FAF9F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F2EE;
  --fg: #161513;
  --fg-soft: #6E6B64;
  --fg-dim: #A29E95;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .16);
  --gold: #A8895A;
  --gold-hover: #C29A54;
  --gold-soft: rgba(168, 137, 90, .35);
  --gold-halo: rgba(168, 137, 90, .07);
  --nav-bg: rgba(250, 249, 247, .92);
  --input-border: rgba(0, 0, 0, .12);
  --done: #2F6B39;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

::selection { background: var(--gold); color: var(--bg); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Éléments fixes ---------- */
#flow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 80;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 90;
  pointer-events: none;
}

/* ---------- Utilitaires ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}

.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-soft);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex: none;
  animation: opPulse 2.4s ease-in-out infinite;
}

@keyframes opPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(194, 168, 120, .5); }
  50% { opacity: .7; box-shadow: 0 0 0 5px rgba(194, 168, 120, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  text-align: center;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--bg);
  padding: 17px 32px;
  font-size: 14px;
}
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 14px 26px; font-size: 13.5px; }

/* ============================================================
   BARRE STATUT
   ============================================================ */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px var(--pad-x);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-soft);
  position: relative;
  z-index: 60;
}
.statusbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.statusbar__loc { white-space: nowrap; flex: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__logo {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--fg);
}
.nav__logo .dot,
.footer .dot { color: var(--gold); }

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.nav__link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--gold); }

.nav__lang {
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11.5px;
  white-space: nowrap;
}

.nav__actions { display: flex; align-items: center; gap: 16px; }

.nav__theme {
  background: none;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--fg-soft);
  transition: border-color .2s ease, color .2s ease;
  flex: none;
}
.nav__theme:hover { border-color: var(--gold); color: var(--gold); }

.nav__cta { padding: 11px 22px; font-size: 12.5px; letter-spacing: .05em; }
.nav__cta-inline { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform .3s ease, opacity .3s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-dim);
  position: relative;
  z-index: 1;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--gold); }

/* ============================================================
   STRUCTURE DE SECTION
   ============================================================ */
.section { padding: 72px var(--pad-x); border-bottom: 1px solid var(--line); position: relative; }
.section--flush { border-bottom: none; }

.h1 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
}
.h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px var(--pad-x) 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 55% at 25% 0%, var(--gold-halo), transparent 70%);
  overflow: hidden;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero__eyebrow { max-width: 60%; }
.hero__stats {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11.5px;
  color: var(--fg-soft);
  text-align: right;
  line-height: 2.1;
  white-space: nowrap;
}
.hero__stats .up { color: var(--gold); }
.hero__stats .down { color: var(--fg); }
.hero__title {
  position: relative;
  font-size: clamp(48px, 9vw, 104px);
  line-height: .96;
  max-width: 1100px;
}
.hero__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 52px;
  flex-wrap: wrap;
  gap: 32px;
}
.hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 480px;
}
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__actions .btn--gold { padding: 17px 32px; }

/* ---------- 3 PÔLES (accueil) ---------- */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.pole {
  padding: 44px var(--pad-x);
  border-right: 1px solid var(--line);
  cursor: pointer;
  background: none;
  text-align: left;
  color: var(--fg);
  transition: background .3s ease;
}
.pole:last-child { border-right: none; }
.pole:hover { background: var(--bg-card-hover); }
.pole__num { color: var(--gold); font-weight: 500; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
.pole__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.pole__desc { font-size: 14px; line-height: 1.6; color: var(--fg-soft); }

/* ---------- DÉMOS SYSTÈMES ---------- */
.demos__lead { font-size: 16px; color: var(--fg-soft); margin: 8px 0 40px; max-width: 640px; }
.demos__heading { margin-top: 16px; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tab:hover { border-color: var(--gold); }
.tab.is-active { border-color: var(--gold); color: var(--gold); background: var(--gold-halo); }

.demo {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: stretch;
}
.demo__card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo__card-name { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--gold); }
.demo__card-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.demo__card-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.demo__card-desc { font-size: 14px; line-height: 1.65; color: var(--fg-soft); flex: 1; }
.demo__card-outcome { text-transform: uppercase; letter-spacing: .15em; font-size: 11.5px; color: var(--gold); }
.demo__replay {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  background: transparent;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: border-color .2s ease, color .2s ease;
}
.demo__replay:hover { border-color: var(--gold); color: var(--gold); }

.demo__screen {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px 32px;
  min-height: 340px;
}
.demo__screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10.5px;
  color: var(--fg-dim);
}
.demo__live { display: inline-flex; align-items: center; gap: 6px; }
.demo__live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transition: background .3s ease; }

/* feed */
.demo__feed { display: flex; flex-direction: column; gap: 10px; }
.feed-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card-hover);
  border-radius: 12px;
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.feed-row.is-on { opacity: 1; transform: none; }
.feed-row__tag {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex: none;
}
.feed-row__title { font-size: 14px; flex: 1; min-width: 0; }
.feed-row__status {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
  text-align: right;
  transition: color .3s ease;
}
.feed-row.is-on .feed-row__status { color: var(--gold); }

/* barres */
.demo__bars { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.bar__head {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.bar__val { color: var(--fg); }
.bar__track { height: 8px; background: var(--line-strong); border-radius: 99px; overflow: hidden; }
.bar__fill { height: 8px; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* planning */
.demo__grid-head,
.demo__grid-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.demo__grid-head {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10px;
  color: var(--fg-dim);
  text-align: center;
}
.demo__grid-cells { grid-auto-rows: 52px; }
.cell {
  background: var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9.5px;
  color: var(--fg-dim);
  text-align: center;
  padding: 2px;
  transition: background .4s ease, color .4s ease;
}

/* ---------- MÉTHODE STRIP (accueil) ---------- */
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px 26px;
}
.step__num { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; margin-bottom: 16px; }
.step__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step__desc { font-size: 13px; line-height: 1.6; color: var(--fg-soft); }

/* ---------- CTA blocks ---------- */
.cta {
  padding: 96px var(--pad-x);
  text-align: center;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, var(--gold-halo), transparent 70%);
}
.cta__eyebrow { margin-bottom: 24px; }
.cta__title {
  font-family: var(--font-display);
  margin: 0 0 36px;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
}
.cta--sm { padding: 72px var(--pad-x); }
.cta--sm .cta__title { font-size: clamp(30px, 5vw, 44px); margin-bottom: 32px; }
.cta .btn--gold { padding: 19px 42px; font-size: 15px; }

/* ============================================================
   PAGE SERVICES
   ============================================================ */
.page-head { padding: 80px var(--pad-x) 56px; border-bottom: 1px solid var(--line); }
.page-head__eyebrow { margin-bottom: 24px; }
.page-head .h1 { font-size: clamp(44px, 8vw, 84px); }

.pole-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.pole-row__main { padding: 56px var(--pad-x); border-right: 1px solid var(--line); }
.pole-row__num { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; margin-bottom: 20px; }
.pole-row__title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.pole-row__desc { font-size: 16px; line-height: 1.65; color: var(--fg-soft); max-width: 440px; }
.pole-row__items {
  padding: 56px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.item { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.item .dash { color: var(--fg-dim); font-size: 12px; flex: none; }

.systemes { padding: 72px var(--pad-x); border-bottom: 1px solid var(--line); }
.systemes__title { margin: 16px 0 44px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.syscard {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px 28px;
  transition: background .3s ease;
}
.syscard:hover { background: var(--bg-card-hover); }
.syscard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.syscard__name { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--gold); }
.syscard__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.syscard__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.syscard__desc { font-size: 13.5px; line-height: 1.6; color: var(--fg-soft); margin-bottom: 16px; }
.syscard__outcome { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; color: var(--gold); }
.systemes__link { display: inline-block; margin-top: 36px; }

/* ============================================================
   PAGE MÉTHODE
   ============================================================ */
.method-row {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.method-row__num {
  padding: 52px var(--pad-x);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
  color: var(--gold);
}
.method-row__body { padding: 52px var(--pad-x); border-right: 1px solid var(--line); }
.method-row__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.method-row__desc { font-size: 15px; line-height: 1.65; color: var(--fg-soft); }
.method-row__items {
  padding: 52px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.method-row__items .item { color: var(--fg-soft); font-size: 14.5px; }

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.contact__info { padding: 80px var(--pad-x); border-right: 1px solid var(--line); }
.contact__eyebrow { margin-bottom: 24px; }
.contact__title { font-family: var(--font-display); margin: 0 0 28px; font-size: clamp(42px, 7vw, 72px); line-height: .98; font-weight: 800; letter-spacing: -.03em; }
.contact__lead { font-size: 16px; line-height: 1.65; color: var(--fg-soft); max-width: 420px; margin-bottom: 44px; }
.contact__coords { text-transform: uppercase; letter-spacing: .15em; font-size: 12.5px; color: var(--fg-soft); line-height: 2.2; }
.contact__coords a:hover { color: var(--gold); }

.contact__form-wrap { padding: 80px var(--pad-x); }

.form { display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.field { display: flex; flex-direction: column; }
.field__label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.field__input,
.field__textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--fg);
  padding: 15px 16px;
  font-size: 14.5px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s ease;
}
.field__textarea { resize: vertical; min-height: 116px; }
.field__input::placeholder,
.field__textarea::placeholder { color: var(--fg-dim); }
.field__input:focus,
.field__textarea:focus { border-color: var(--gold); }
.field.has-error .field__input,
.field.has-error .field__textarea { border-color: #B34A3A; }

.form__submit { padding: 17px; }
.form__submit:disabled { opacity: .6; cursor: default; }
.form__hint { font-size: 12px; color: var(--fg-dim); }
.form__hint.is-error { color: #B34A3A; }

.success {
  background: var(--bg-card);
  border: 1px solid var(--gold-soft);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 480px;
}
.success__badge { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; color: var(--gold); margin-bottom: 18px; }
.success__title { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.01em; }
.success__text { font-size: 14.5px; line-height: 1.65; color: var(--fg-soft); }

/* ============================================================
   REVEAL AU SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
[data-reveal].reveal-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .demo { grid-template-columns: 320px 1fr; }
}

@media (max-width: 960px) {
  :root { --pad-x: 28px; }

  .section { padding: 56px var(--pad-x); }
  .hero { padding: 72px var(--pad-x) 56px; }

  .demo { grid-template-columns: 1fr; }
  .demo__card { flex-direction: column; }

  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .method-row { grid-template-columns: 200px 1fr; }
  .method-row__items { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .method-row__body { border-right: none; }
}

@media (max-width: 720px) {
  /* --- Nav en menu déroulant --- */
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--pad-x) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav__lang { padding: 14px 4px; }
  .nav__cta-inline { display: inline-flex; margin-top: 10px; padding: 15px; font-size: 14px; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* --- Grilles empilées --- */
  .poles-grid { grid-template-columns: 1fr; }
  .pole { border-right: none; border-bottom: 1px solid var(--line); }
  .pole:last-child { border-bottom: none; }

  .pole-row { grid-template-columns: 1fr; }
  .pole-row__main { border-right: none; border-bottom: 1px solid var(--line); }

  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .method-row { grid-template-columns: 1fr; }
  .method-row__num { border-right: none; padding-bottom: 0; }
  .method-row__body { padding-top: 20px; padding-bottom: 20px; }

  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__info { border-right: none; border-bottom: 1px solid var(--line); }

  .hero__stats { text-align: left; }
  .hero__eyebrow { max-width: 100%; }
  .strip-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; }

  body { font-size: 15px; }
  .statusbar { font-size: 10px; letter-spacing: .1em; }
  .section { padding: 48px var(--pad-x); }
  .hero { padding: 56px var(--pad-x) 44px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; min-width: 100%; }
  .demo__card, .demo__screen { padding: 24px 20px; }
  .demo__screen { min-height: 0; }
  .feed-row { flex-wrap: wrap; gap: 8px 12px; }
  .feed-row__title { flex-basis: 100%; order: 3; }
  .cta { padding: 72px var(--pad-x); }
  .contact__info, .contact__form-wrap { padding: 56px var(--pad-x); }
}

/* ============================================================
   MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .feed-row { opacity: 1; transform: none; transition: none; }
  .bar__fill { transition: none; }
  #scroll-progress { display: none; }
}

/* ============================================================
   AJOUTS — piliers, aperçu des branches, démonstration interactive
   ============================================================ */

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 680px;
  margin: 22px 0 44px;
}
.manifesto__title { margin-top: 16px; }

/* Aperçu des branches en cartes (accueil) */
.poles-grid--flat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-bottom: none;
  margin-top: 8px;
}
.poles-grid--flat .pole {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 32px 28px;
}
.poles-grid--flat .pole:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

/* Cartes d'exemples (page Nos branches) */
.syscard--light { padding: 26px 24px; }
.syscard--light .syscard__desc { margin-bottom: 0; }

/* ---------- Démonstration interactive ---------- */
.auto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 20px;
}
.auto-chip {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-soft);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.auto-chip:hover { border-color: var(--gold); color: var(--fg); }
.auto-chip.is-active { border-color: var(--gold); color: var(--gold); background: var(--gold-halo); }

.auto {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
}
.auto-stage {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: stretch;
}
.auto-col { display: flex; flex-direction: column; gap: 10px; }
.auto-col__label {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.auto-col__badge {
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9.5px;
  letter-spacing: .12em;
}
.auto-tokens { display: flex; flex-direction: column; gap: 8px; }
.auto-token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.3;
}
.auto-token__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: none;
}
.auto-token--before { background: var(--bg-card-hover); color: var(--fg-dim); }
.auto-token--before .auto-token__mark { background: rgba(179, 74, 58, .16); color: #C06B5C; }
.auto-token--after {
  background: var(--gold-halo);
  color: var(--fg);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s ease, transform .5s ease;
}
.auto-token--after .auto-token__mark { background: var(--gold-soft); color: var(--gold); }
.auto-col--after.is-revealed .auto-token--after { opacity: 1; transform: none; }
.auto-col--after.is-revealed .auto-token--after:nth-child(2) { transition-delay: .08s; }
.auto-col--after.is-revealed .auto-token--after:nth-child(3) { transition-delay: .16s; }
.auto-col--after.is-revealed .auto-token--after:nth-child(4) { transition-delay: .24s; }

.auto-flux { position: relative; display: flex; align-items: center; justify-content: center; }
.auto-flux__track {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line-strong);
}
.auto-flux__dot {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  box-shadow: 0 0 10px 2px var(--gold-soft);
}
.auto-flux.is-running .auto-flux__dot { animation: fluxDown 1s ease-in-out; }
@keyframes fluxDown {
  0% { opacity: 0; top: 26px; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 26px); }
}

.auto-result {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.auto-metric { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.auto-metric__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gold);
  line-height: 1;
}
.auto-metric__label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: var(--fg-soft);
}
.auto-solution {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 640px;
  margin: 14px 0 0;
}
.auto-note {
  font-size: 12.5px;
  color: var(--fg-dim);
  margin: 14px 0 0;
}

/* Responsive de la démonstration */
@media (max-width: 720px) {
  .poles-grid--flat { grid-template-columns: 1fr; }

  .auto { padding: 24px; }
  .auto-stage { grid-template-columns: 1fr; gap: 4px; }
  .auto-flux { height: 44px; }
  .auto-flux__track { top: 50%; bottom: auto; left: 14%; right: 14%; width: auto; height: 1px; transform: translateY(-50%); }
  .auto-flux__dot { top: 50%; left: 14%; margin-left: 0; margin-top: -3.5px; }
  .auto-flux.is-running .auto-flux__dot { animation: fluxRight 1s ease-in-out; }
  .auto-token--after { transform: translateY(-10px); }
  .auto-col--after.is-revealed .auto-token--after { transform: none; }
}
@keyframes fluxRight {
  0% { opacity: 0; left: 14%; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; left: 86%; }
}
@media (max-width: 480px) {
  .auto { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .auto-token--after { opacity: 1; transform: none; transition: none; }
  .auto-flux__dot { display: none; }
}
