/* ==========================================================================
   stakema.com — feuille de style unique
   Palette de marque : #1474E1 (accent) · #FFFFFF · #182D38 · #0F212D (fond)
   Les valeurs dérivées sont calculées en OKLch, jamais estimées à l'œil.
   ========================================================================== */

/* --- Polices auto-hébergées (Google Fonts, woff2 sous-ensembles latin) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-700-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-600-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-700-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;
}

/* --- Jetons ---------------------------------------------------------------- */
:root {
  --bg: #0F212D;
  --surface: #182D38;
  --fg: #FFFFFF;
  --muted: #A8BECC;
  --border: #26414F;
  --accent: #1474E1;

  /* dérivés OKLch */
  --surface-hi: #1F3947;
  --border-soft: #1E333F;
  --border-strong: #35576A;
  --accent-text: #6EAEFB;
  --accent-press: #0160C1;
  --accent-soft: #ACD5FF;
  --muted-dim: #8295A1;
  --ok: #2FBF71;
  --warn: #E9B949;
  --danger: #F47B74;
  --accent-12: rgba(20, 116, 225, 0.12);
  --accent-20: rgba(20, 116, 225, 0.2);
  --shadow-card: 0 18px 40px rgba(4, 14, 20, 0.45);
  --shadow-pop: 0 30px 80px rgba(3, 10, 15, 0.65);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --band: clamp(44px, 6vw, 76px);
}

/* --- Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.1vw, 34px); font-weight: 700; margin-top: 0; }
h3 { font-size: clamp(19px, 2.1vw, 23px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--fg); }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--accent-text); }

hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Mise en page ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { padding-top: 60px !important; padding-bottom:60px !important; }
.band--tight { padding: calc(var(--band) * 0.62) 0; }
.band--alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head { max-width: 860px; margin-bottom: 26px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* --- Boutons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-press);
  border-color: var(--accent-press);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
  color: var(--fg);
  text-decoration: none;
}

.btn--ghost {
  background: var(--accent-12);
  color: var(--accent-soft);
  border-color: var(--accent-20);
}
.btn--ghost:hover {
  background: var(--accent-20);
  border-color: var(--accent-text);
  color: #fff;
  text-decoration: none;
}

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0 0;
}

/* --- En-tête --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(15, 33, 45, 0.93);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 90px; height: auto; filter: brightness(100); }
.brand-name {
  display: none;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
}
.main-nav a:hover {
  background: var(--surface-hi);
  color: var(--fg);
  text-decoration: none;
}
.main-nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger:hover { background: var(--surface-hi); }
.burger-bars { display: block; width: 20px; height: 2px; background: var(--fg); position: relative; }
.burger-bars::before,
.burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--fg);
}
.burger-bars::before { top: -6px; }
.burger-bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger-bars { background: transparent; }
.burger[aria-expanded="true"] .burger-bars::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars::after { top: 0; transform: rotate(-45deg); }

/* --- Fil d'Ariane ---------------------------------------------------------- */
.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted-dim);
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "-"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs [aria-current="page"] { color: var(--muted-dim); }

/* --- Héros ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(26px, 4vw, 44px) 0 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 88% -10%, rgba(20, 116, 225, 0.26) 0%, rgba(20, 116, 225, 0) 58%),
    linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 62%, #142833 100%);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3.4vw, 44px);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(20, 116, 225, 0.15) 46%, rgba(20, 116, 225, 0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.hero-panel--slim { padding: clamp(24px, 3vw, 38px); }
.hero-panel--slim .hero-copy { max-width: 820px; }

.hero h1 { margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: clamp(16.5px, 1.45vw, 18.5px); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.hero-badges li {
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(15, 33, 45, 0.6);
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 44px rgba(3, 12, 18, 0.55);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.hero-facts li { margin: 0; }
.hero-facts dt,
.hero-facts .fact-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  font-family: var(--font-display);
}
.hero-facts .fact-value {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--fg);
}

/* --- Sommaire -------------------------------------------------------------- */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 26px 0;
  overflow: hidden;
}
.toc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary:hover { background: var(--surface-hi); }
.toc > summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--accent-text);
}
.toc[open] > summary::after { content: "–"; }
.toc-body { padding: 4px 20px 20px; border-top: 1px solid var(--border-soft); }
.toc-body ol {
  margin: 16px 0 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 32px;
}
.toc-body li { break-inside: avoid; margin-bottom: 8px; }
.toc-body a { color: var(--muted); font-size: 15.5px; }
.toc-body a:hover { color: var(--accent-soft); }

/* --- Prose ----------------------------------------------------------------- */
.prose { max-width: 900px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 26px; }
.prose > * + h2 { margin-top: 40px; }
.prose > * + h3 { margin-top: 28px; }

.prose ul, .prose ol { padding-left: 24px; }

.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.check-list--cross li::before { background: var(--muted-dim); }

.steps { list-style: none; padding-left: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-12);
  border: 1px solid var(--accent-20);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

/* --- Requêtes fréquentes --------------------------------------------------- */
.query-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0 !important;
  margin: 22px 0 0;
}
.query-list li { margin: 0; }
.query-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
}
.query-list a:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
  color: var(--fg);
  text-decoration: none;
}

/* --- Tableaux -------------------------------------------------------------- */
.table-scroll {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 15.5px;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-soft);
}
th, td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
thead th {
  background: var(--surface-hi);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody td { color: var(--fg); font-variant-numeric: tabular-nums; }
tbody tr:hover { background: rgba(31, 57, 71, 0.55); }

/* --- Figures --------------------------------------------------------------- */
figure { margin: 24px 0; }
.figure-link { display: block; border-radius: var(--radius); }
.figure-link picture { display: block; }
figure picture img,
.prose picture img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.figure-link img { transition: transform 180ms ease, border-color 180ms ease; }
.figure-link:hover img { transform: translateY(-2px); border-color: var(--accent); }
figure.portrait img { max-width: 460px; margin: 0 auto; }
figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-dim);
}

/* --- Cartes ---------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .card-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* --- Encadré --------------------------------------------------------------- */
.note {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 116, 225, 0.08) 0%, rgba(20, 116, 225, 0) 100%);
  padding: 20px 22px;
  margin: 24px 0;
}
.note-title {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.note p { color: var(--muted); margin-bottom: 10px; }
.note p:last-child { margin-bottom: 0; }
.note--warn { border-color: rgba(233, 185, 73, 0.45); background: linear-gradient(180deg, rgba(233, 185, 73, 0.09) 0%, rgba(233, 185, 73, 0) 100%); }
.note--warn .note-title { color: var(--warn); }

/* --- FAQ ------------------------------------------------------------------- */
.faq { margin-top: 24px; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  position: relative;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--fg);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--surface-hi); }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--accent-text);
}
.faq-item[open] > summary::after { content: "–"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: 16px; font-size: 16px; }

/* --- Auteur ---------------------------------------------------------------- */
.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  margin: 0 0 var(--band);
}
.author-avatar {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-press) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.author-role {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.author-box h3 { margin-bottom: 8px; }
.author-box p { color: var(--muted); font-size: 15.5px; }
.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted-dim);
}
.author-meta li { margin: 0; }

/* --- Colonne latérale (rail) ----------------------------------------------- */
.rail { display: none; }

.rail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.rail-card--cta { position: relative; overflow: hidden; border-color: var(--accent-20); }
.rail-card--cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 82%);
}

.rail-tag {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.rail-card--cta .rail-tag { margin-bottom: 10px; }

.rail-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

.rail-text { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.rail-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.rail-note a { color: var(--accent-text); }
.rail-note a:hover { color: var(--fg); }

.rail-facts { margin: 0; }
.rail-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
}
.rail-facts > div:first-child { padding-top: 0; border-top: 0; }
.rail-facts > div:last-child { padding-bottom: 0; }
.rail-facts dt { color: var(--muted); font-size: 14px; }
.rail-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  text-align: right;
}

.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li { margin: 0; }
.rail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px -9px;
  padding: 9px;
  border-radius: 10px;
  color: var(--fg);
  font-size: 14.5px;
}
.rail-links a::after { content: "\2192"; color: var(--accent-text); font-size: 14px; }
.rail-links a:hover { background: var(--surface-hi); color: var(--fg); text-decoration: none; }

/* --- Pied de page ---------------------------------------------------------- */
.site-footer {
  background: #0B1A24;
  border-top: 1px solid var(--border);
  padding: var(--band) 0 0;
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}
.footer-brand img { width: 132px; margin-bottom: 16px; filter: brightness(100); }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--fg); }

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-row li { margin: 0; }
.trust-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(24, 45, 56, 0.7);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.trust-row a:hover {
  background: var(--surface-hi);
  border-color: var(--accent);
  color: var(--fg);
  text-decoration: none;
}
.trust-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-12);
  border: 1px solid var(--accent-20);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pay-row li { margin: 0; }
.pay-row span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.footer-block { padding: 30px 0 0; margin-top: 30px; border-top: 1px solid var(--border-soft); }

.contact-list { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.contact-list li { margin-bottom: 9px; display: flex; gap: 9px; }
.contact-list .contact-label { color: var(--muted-dim); min-width: 104px; }

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted-dim);
}
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--warn);
  color: var(--warn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.legal-note { max-width: 780px; }
.legal-note p { margin: 0 0 8px; }

/* --- Dock mobile + modale -------------------------------------------------- */
.cta-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 26, 36, 0.97);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.cta-dock .btn {
  min-height: 40px;
  padding: 0px 10px;
  min-height: 40px;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 20, 0.72);
  border: 0;
  cursor: pointer;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  padding: 45px 26px 26px;
  text-align: center;
}
.modal-card h2 { font-size: 26px; margin-bottom: 10px; }
.modal-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-hi); color: var(--fg); }
.modal-actions { display: grid; gap: 11px; }
.modal-footnote { margin: 16px 0 0; font-size: 13px; color: var(--muted-dim); }

/* --- Colonne latérale : uniquement sur les grands écrans ------------------- */
@media (min-width: 1240px) {
  .band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 262px;
    gap: 34px;
    align-items: start;
  }

  .rail {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 96px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms;
  }
  .rail.is-live {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 240ms ease, transform 240ms ease;
  }
}

/* --- Tablette / desktop ---------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media img { max-width: 660px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

    .header-inner { min-height: 66px; }

  .brand img {
    width: 70px;
  }
  
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px var(--gutter) 20px;
    display: none;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { margin-bottom: 4px; }
  .main-nav a { display: block; padding: 8px 12px; font-size: 14px; }
  .burger { display: inline-flex; margin-left: auto; }

  .header-actions .btn { display: none; }
}

@media (max-width: 900px) {

  body { padding-bottom: 70px; }
  .toc-body ol { columns: 1; }
  .author-box { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .table-scroll { border-radius: var(--radius-sm); }
}

@media (min-width: 901px) {
  .cta-dock { display: none; }
}

@media (max-width: 560px) {
  .prose ul, .prose ol {
    padding-left: 0;
  }
  .hero-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-badges {
    display: none;
  }
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
  }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 18px; }
  .hero-badges li { font-size: 12.5px; }
  .card { padding: 18px; }
  .modal-card { padding: 60px 18px 22px; }
  .breadcrumbs ol { font-size: 13px; }
  .trust-row { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}


.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}