/* Fanali — style commun du site.
   Reprise exacte de la maquette de l'accueil validée le 21/11/2026 (accueil-maquette.html),
   puis, en fin de fichier, les extensions pour les autres pages (index, cas, pages simples, 404). */

/* ---------- Polices hébergées par le site (Open Font License, voir polices/LICENCE.txt) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("polices/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("polices/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("polices/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("polices/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --ink: #0b1526;
  --ink-2: #3a4659;
  --mute: #5f6b7d;
  --faint: #8a94a3;
  --line: #e7ebf0;
  --line-strong: #d2d9e2;
  --wash: #f6f8fa;
  --amber: #f2a33a;
  --amber-soft: #fdf1de;
  --amber-ink: #8f4f00;
  --nav-bg: #ffffff;
  --on-ink: #ffffff;
  --ink-hover: #1c2a40;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --nav-h: 64px;
  --gap: 24px;
  --sec-pad: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: var(--amber-ink);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--nav-bg);
}
::selection { background: var(--amber-soft); color: var(--ink); }
html { scrollbar-color: var(--line-strong) var(--bg); scrollbar-width: thin; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; font-size: 14px;
}
.skip:focus-visible { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- Bandes et grille ---------- */
.wrap {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.inner {
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: clamp(0px, 3.4vw - 13px, 36px);
}
.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.cols > * { min-width: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 18px; letter-spacing: -0.015em;
  flex: none;
}
.brand svg { display: block; }
.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 14.5px;
}
.nav-links a {
  text-decoration: none; color: var(--ink-2);
  padding: 6px 0;
  background: linear-gradient(var(--amber), var(--amber)) left calc(100% - 1px) / 0 1px no-repeat;
  transition: color 0.25s var(--ease), background-size 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); background-size: 100% 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em;
  border-radius: 4px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint);
  transition: background-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover .dot, .btn:focus-visible .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.22); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav .btn { flex: none; }

.menu-btn {
  display: none;
  width: 40px; height: 40px; margin-right: -8px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  border-radius: 4px; flex: none;
}
.menu-btn span { display: block; width: 18px; height: 1px; background: currentColor; margin: 5px auto; transition: transform 0.35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-panel { display: none; }

/* ---------- Héros ---------- */
.hero .inner { padding-top: clamp(32px, 4.4vw, 64px); padding-bottom: clamp(48px, 5vw, 72px); }
.hero .cols { grid-template-rows: auto auto; }
.hero-text { grid-column: 1 / span 5; grid-row: 1; align-self: end; position: relative; z-index: 2; }
.hero-note-wrap { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
.hero-art { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: center; position: relative; }
.over {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--mute);
  margin-bottom: 28px;
}
.over i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.18);
}
h1 {
  font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  margin-bottom: 28px;
}
h1 .l2 { display: block; color: var(--ink); }
h1 .l1 { display: block; color: var(--ink-2); }
.hero-lead { font-size: 18.5px; line-height: 1.58; color: var(--ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.link {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0;
  background: linear-gradient(var(--line-strong), var(--line-strong)) left calc(100% - 6px) / 100% 1px no-repeat;
  transition: background 0.3s var(--ease);
}
.link:hover { background-image: linear-gradient(var(--amber), var(--amber)); }
.link svg { transition: transform 0.4s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.hero-note {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--mute); max-width: 34em;
}
.brain {
  position: relative;
  width: 100%;
  aspect-ratio: 1.14 / 1;
}
.brain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Bandeau ---------- */
.proof-band { border-top: 1px solid var(--line); }
.proof-band .inner { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.band-line {
  grid-column: 1 / span 4;
  font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 400;
  text-wrap: balance;
}
.band-line em { font-style: normal; color: var(--mute); }
.figs {
  grid-column: 5 / span 8;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fig { min-width: 0; padding: 4px 20px 0; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig-n { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; line-height: 1; }
.fig-n .pre { font-size: 13px; color: var(--mute); font-family: var(--mono); }
.fig-n .num { font-size: clamp(1.75rem, 1.1rem + 1.4vw, 2.5rem); letter-spacing: -0.04em; font-weight: 400; }
.fig.key .num { color: var(--amber-ink); }
.fig p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.band-note { grid-column: 5 / span 8; margin-top: 40px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

/* ---------- Sections ---------- */
.sec { border-top: 1px solid var(--line); }
.sec > .wrap > .inner { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.sec-head { grid-column: 1 / span 4; align-self: start; }
.sec-body { grid-column: 6 / span 7; }
.sec-head.wide { grid-column: 1 / span 7; }
.sec-full { grid-column: 1 / -1; }
h2 {
  font-size: clamp(1.875rem, 1.2rem + 1.9vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 400;
}
.intro { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.sec-head .intro { margin-top: 24px; font-size: 17px; }
h3 { font-weight: 500; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.01em; }
.body-txt { color: var(--ink-2); }

/* Schéma de flux */
.flow {
  grid-column: 1 / -1;
  margin-top: clamp(56px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 0.9fr);
  align-items: center;
}
.flow > * { min-width: 0; }
.node {
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 18px 20px; background: var(--bg);
  font-size: 15.5px; line-height: 1.4;
}
.node-list { display: grid; gap: 0; padding: 6px 20px; }
.node-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.node-list li:first-child { border-top: 0; }
.node-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); flex: none; }
.node-core {
  border-color: var(--ink);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 18px;
  font-size: 17px;
}
.core-mark { width: 30px; height: 30px; }
.node-stack { display: grid; gap: 14px; }
.node-log { font-size: 17px; }
.node-log .mono { display: block; font-size: 12px; color: var(--mute); margin-top: 10px; letter-spacing: 0.01em; text-wrap: balance; }
.arrow { position: relative; height: 24px; }
.arrow::before {
  content: ""; position: absolute; left: 8px; right: 10px; top: 50%; height: 1px; background: var(--line-strong);
}
.arrow::after {
  content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid var(--mute); border-right: 1px solid var(--mute);
  transform: translateY(-50%) rotate(45deg);
}

.pillars {
  grid-column: 1 / -1;
  margin-top: clamp(64px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px;
}
.pillars > li { min-width: 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.pillars h3 { margin-bottom: 10px; }
.pillars p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* Journée */
.ruler { grid-column: 1 / -1; margin-top: clamp(56px, 6vw, 88px); margin-bottom: 56px; }
.track {
  position: relative; height: 44px;
  border-bottom: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(to right, var(--ink-2) 0 1px, transparent 1px 12.5%) left bottom / 100% 18px no-repeat,
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px calc(100% / 96)) left bottom / 100% 6px no-repeat;
}
.track::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: 18px; background: var(--ink-2); }
.ev {
  position: absolute; bottom: 24px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.16);
}
.ticks { position: relative; height: 22px; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: 13px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.lg-s { width: 1px; height: 6px; background: var(--faint); }
.lg-t { width: 1px; height: 14px; background: var(--ink-2); }
.lg-d { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.day { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.day > * { min-width: 0; }
.timeline { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.timeline li > * { min-width: 0; }
.timeline time, .timeline .when { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); padding-top: 1px; }
.timeline .when { color: var(--amber-ink); }
.timeline p { color: var(--ink-2); }
.timeline .rec { border-top: 0; }
.day-aside { grid-column: 1 / span 4; align-self: end; }
.day-note { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--mute); max-width: 34em; margin-bottom: 32px; }
.day-end {
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-2);
  text-wrap: balance;
}
.day-end strong { color: var(--ink); font-weight: 500; }

/* Commencer */
.doors { grid-column: 1 / -1; margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.door { min-width: 0; padding: 32px 0 0; border-top: 1px solid var(--ink); }
.door h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.door p { color: var(--ink-2); max-width: 30em; }
.procs { grid-column: 1 / -1; margin-top: clamp(64px, 7vw, 104px); }
.procs-title { font-family: var(--mono); font-size: 12.5px; color: var(--mute); margin-bottom: 18px; letter-spacing: 0.02em; }
.procs dl { border-top: 1px solid var(--line); }
.procs .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 24px 0; border-bottom: 1px solid var(--line); }
.procs dt { grid-column: 1 / span 4; font-weight: 500; min-width: 0; }
.procs dd { grid-column: 6 / span 7; color: var(--ink-2); min-width: 0; }

/* Preuves */
.proofs { border-top: 1px solid var(--line); }
.proofs li {
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px;
}
.proofs li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; margin-top: 0.62em;
  background: var(--line-strong);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.proofs li:hover::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.18); }
.proofs b { font-weight: 500; color: var(--ink); }
.note { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

/* Garanties */
.guar { border-top: 1px solid var(--line); }
.guar .row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guar dt { font-weight: 500; min-width: 0; }
.guar dd { color: var(--ink-2); min-width: 0; }
.who { margin-top: 72px; }
.who h3, .engines h3 { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--mute); letter-spacing: 0.02em; margin-bottom: 18px; }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 3px; }
.who-grid > div { min-width: 0; padding: 24px 24px 26px; }
.who-grid > div + div { border-left: 1px solid var(--line-strong); }
.who-grid h4 { font-weight: 500; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.who-grid h4 i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.who-grid > div:last-child h4 i { background: var(--amber); }
.who-grid p { color: var(--ink-2); font-size: 16.5px; }
.engines { margin-top: 56px; }
.engines p { color: var(--ink-2); }
.engines p + p { margin-top: 12px; }

/* Méthode */
.steps { grid-column: 1 / -1; margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.step { min-width: 0; border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 18px; }
.meta { display: grid; gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--mute); }
.meta dd { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.meta dd small { font-family: var(--sans); font-size: 13px; color: var(--mute); margin-right: 4px; }
.step p { color: var(--ink-2); font-size: 16px; }
.price-line {
  grid-column: 1 / -1; margin-top: clamp(56px, 6vw, 80px);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.4;
}
.price-line span { color: var(--mute); }

/* Maison */
.house { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; margin-top: 48px; }
.house > div { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.house h3 { margin-bottom: 8px; }
.house p { color: var(--ink-2); font-size: 16px; }
.house a { color: var(--ink); text-decoration-color: var(--line-strong); transition: text-decoration-color 0.3s var(--ease); }
.house a:hover { text-decoration-color: var(--amber); }
.why {
  margin-top: 56px; padding: 28px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start;
  border-radius: 3px;
}
.why > * { min-width: 0; }
.why h3 { font-size: 15px; margin-bottom: 6px; }
.why p { color: var(--ink-2); font-size: 16px; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 20px; align-items: center;
  padding: 22px 0; font-size: 18px; font-weight: 400; letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }
.faq summary:focus-visible { outline-offset: -2px; }
.pm { position: relative; width: 14px; height: 14px; justify-self: end; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform 0.45s var(--ease), background-color 0.3s; }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq summary:hover .pm::before, .faq summary:hover .pm::after { background: var(--amber-ink); }
.faq .ans { padding: 0 40px 26px 0; color: var(--ink-2); max-width: 40em; }

/* Diagnostic */
.cta { background: var(--wash); border-top: 1px solid var(--line); }
.cta > .wrap > .inner { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.cta .sec-head .intro { font-size: 19px; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; color: var(--ink); }
input, textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--faint); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber-soft); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.status { font-size: 15px; color: var(--ink); display: none; align-items: center; gap: 10px; }
.status.on { display: inline-flex; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

/* Pied */
footer .inner { padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; color: var(--mute); }
footer .brand { font-size: 15px; }
footer .sep { color: var(--line-strong); }
footer .mono { font-size: 12.5px; }

/* ---------- Grand écran : titres collants ---------- */
@media (min-width: 1024px) {
  .sec-head.stick { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px); }
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .flow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .menu-btn { display: block; }
  .menu-panel {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--nav-bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .menu-panel.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
  .menu-panel ul { padding: 8px 0 20px; }
  .menu-panel a { display: block; padding: 12px 0; text-decoration: none; font-size: 17px; border-top: 1px solid var(--line); }
  .menu-panel li:first-child a { border-top: 0; }

  .hero .cols { grid-template-rows: none; }
  .hero-text, .hero-art, .hero-note-wrap { grid-row: auto; }
  .hero-note-wrap .hero-note { margin-top: 32px; }
  .hero-text, .hero-art, .hero-note-wrap, .band-line, .figs, .band-note, .sec-head, .sec-head.wide, .sec-body, .timeline, .day-aside { grid-column: 1 / -1; }
  .hero-art { margin-top: 36px; }
  .brain { aspect-ratio: 1.2 / 1; max-width: 720px; margin-inline: auto; }
  .figs { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .sec-body { margin-top: 48px; }
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .arrow { height: 36px; }
  .arrow::before { left: 50%; right: auto; top: 6px; bottom: 8px; width: 1px; height: auto; }
  .arrow::after { right: auto; left: 50%; top: auto; bottom: 8px; margin-left: -3px; transform: rotate(135deg); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-aside { margin-top: 48px; }
  .procs .row { row-gap: 8px; }
  .procs dt, .procs dd { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-n { margin-bottom: 16px; }
  .step { max-width: 40em; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .brand { font-size: 17px; }
  .nav .inner { gap: 12px; }
  .btn-sm { padding: 0 14px; font-size: 13.5px; }
  .hero-lead { font-size: 17.5px; }
  .actions { gap: 8px 24px; }
  .brain { aspect-ratio: 1.02 / 1; }
  .figs { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fig, .fig:nth-child(3) { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .fig:first-child { border-top: 0; padding-top: 0; }
  .band-note { margin-top: 24px; }
  .pillars, .doors, .house, .who-grid { grid-template-columns: minmax(0, 1fr); }
  .who-grid > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .guar .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .proofs li { font-size: 17px; }
  .ticks .d { display: none; }
  .faq summary { font-size: 17px; }
  .faq .ans { padding-right: 0; }
  form { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 14px; }
}
@media (max-width: 379px) {
  .nav .btn { display: none; }
  .menu-btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =====================================================================
   Extensions du site (au-delà de la maquette) : mêmes couleurs, mêmes
   filets, même grille. Ajoutées par le socle T0 du 21/11/2026.
   ===================================================================== */

.nav-links a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.menu-panel a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Pied de page : liens réels */
footer a { color: var(--mute); text-decoration: none; transition: color 0.25s var(--ease); }
footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); }

/* Accueil : lien vers l'index sous les quatre processus */
.procs-more { margin-top: 28px; }
/* Titres des quatre processus : liens sobres, soulignés au survol, focus visible (règle :focus-visible commune) */
.procs-lien { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); text-underline-offset: 0.28em; transition: text-decoration-color 0.25s var(--ease); }
.procs-lien:hover { text-decoration-color: var(--amber); }

/* Formulaire : piège à robots, phrase de confidentialité, message d'erreur */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form { position: relative; }
.form-note { flex-basis: 100%; font-size: 13.5px; color: var(--mute); max-width: 40em; }
.form-note a { color: var(--ink-2); text-decoration-color: var(--line-strong); }
.form-note a:hover { text-decoration-color: var(--amber); }
.status.is-err i { background: var(--ink-2); }
.status a { color: var(--ink); }
.btn:disabled { cursor: progress; opacity: 0.72; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--amber-ink); }

/* En-tête des pages intérieures */
.page-head .inner { padding-top: clamp(32px, 4.4vw, 64px); padding-bottom: clamp(56px, 6vw, 88px); }
.page-head-text { grid-column: 1 / span 8; }
.page-head h1 { font-size: clamp(2.25rem, 1.3rem + 2.8vw, 3.75rem); }
.page-head .hero-lead { max-width: 38em; }
.page-head .over { margin-bottom: 22px; }

/* Fil d'Ariane */
.fil { margin-bottom: 36px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--mute); }
.fil ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.fil li { display: inline-flex; align-items: center; min-width: 0; }
.fil li + li::before { content: "›"; margin: 0 10px; color: var(--faint); }
.fil a { color: var(--mute); text-decoration: none; }
.fil a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); }
.fil [aria-current="page"] { color: var(--ink-2); overflow-wrap: anywhere; }

/* Statut d'un cas : l'ambre pour ce qui tourne en production, un cercle vide pour l'intégration */
.statut { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--mute); }
.statut i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.statut-production { color: var(--amber-ink); }
.statut-production i { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 163, 58, 0.18); }
.statut-integration i { background: transparent; box-shadow: none; border: 1px solid var(--mute); width: 7px; height: 7px; }
.note-brouillon { display: block; width: fit-content; max-width: 100%; margin-bottom: 22px; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 3px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.badge-brouillon { margin-left: 12px; padding: 1px 6px; border: 1px dashed var(--line-strong); border-radius: 3px; font-family: var(--mono); font-size: 11px; color: var(--mute); }

/* Sections plus serrées pour les pages longues */
.sec-tight > .wrap > .inner { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.sec-tight .sec-head .intro { margin-top: 16px; font-size: 16px; }

/* Cartes de l'index et des cas voisins */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-content: start; }
.cards-3 { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.card { position: relative; min-width: 0; padding-top: 22px; border-top: 1px solid var(--ink); }
.card-statut { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.card h3 { margin-bottom: 10px; }
.card h3 a { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) left 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a, .card h3 a:focus-visible { background-size: 100% 1px; }
.card h3 a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 2px solid var(--amber-ink); outline-offset: 6px; border-radius: 2px; }
.card p:not(.card-statut) { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.voir-tout { grid-column: 1 / -1; margin-top: 40px; }

/* Page de cas */
.paroles li { font-size: 18px; }
/* Liens dans les textes des cas ([texte](adresse)) : sobres, soulignés, ambre au survol */
.lien-texte { color: var(--ink); text-decoration-color: var(--line-strong); }
.lien-texte:hover { text-decoration-color: var(--amber); }
.io { border-top: 1px solid var(--line); }
.io-row { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.io-row dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--mute); padding-top: 4px; }
.io-row dd { color: var(--ink); font-size: 17px; }
.etapes { margin: 0; }
.etapes + .io { border-top: 0; }
.etapes li { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.etapes li > * { min-width: 0; }
.etape-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--amber-ink); padding-top: 1px; }
.etapes h3 { margin-bottom: 6px; }
.etapes p { color: var(--ink-2); }
.noms { display: flex; flex-wrap: wrap; gap: 10px; }
.noms li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 15px; color: var(--ink); }
/* « Vos logiciels » : jusqu'à deux blocs titrés, branché en production / interface documentée */
.logiciels-bloc { padding-top: 18px; border-top: 1px solid var(--line); }
.logiciels-bloc + .logiciels-bloc { margin-top: 32px; }
.logiciels-titre { margin-bottom: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; letter-spacing: 0.02em; color: var(--mute); }
.sec-body > .over { margin-bottom: 16px; }
/* Index : légende des statuts sous l'introduction, une ligne par statut, même pastille que sur les cartes */
.legende-statuts { margin-top: 28px; display: grid; gap: 10px; max-width: 46em; }
.legende-statuts li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.legende-statuts .statut { vertical-align: baseline; }
/* La preuve tient souvent en trois ou quatre phrases : corps de texte, pas chapeau (19 px y faisait un bloc de 11 lignes) */
.intro.preuve { font-size: 17px; line-height: 1.65; max-width: 38em; }

/* Appel au diagnostic (index, cas) */
.cta-court > .wrap > .inner { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.cta-court .actions { margin-top: 28px; }

/* Légende des statuts */
.legende-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legende-band .inner { padding-top: 28px; padding-bottom: 28px; }
.legende-txt { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.legende b { font-weight: 500; color: var(--ink-2); }

/* Pages simples (mentions légales, confidentialité) */
.sec-simple > .wrap > .inner { padding-top: 0; padding-bottom: clamp(72px, 8vw, 120px); }
.doc { grid-column: 1 / span 10; }
.doc dd p + p { margin-top: 10px; }
.doc a { color: var(--ink); text-decoration-color: var(--line-strong); }
.doc a:hover { text-decoration-color: var(--amber); }
.doc-maj { grid-column: 1 / -1; }

/* 404 */
.page-404 .inner { padding-bottom: clamp(88px, 10vw, 152px); }

@media (max-width: 1023px) {
  .page-head-text, .doc { grid-column: 1 / -1; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cards, .cards-3 { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .io-row, .etapes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fil { margin-bottom: 28px; }
  .paroles li { font-size: 17px; }
}
.status i { align-self: flex-start; margin-top: 0.62em; }
@media (max-width: 640px) {
  footer .inner { gap: 6px 18px; }
  footer .sep { display: none; }
}
/* Correctif d'un défaut de la maquette : le panneau du menu mobile héritait de la hauteur fixe (64 px) et du
   centrage de la barre (.nav .inner) ; la liste débordait vers le haut, sur la page, sans fond. */
.nav .menu-panel .inner { height: auto; display: block; }
