/* ==========================================================================
   Factur-Ready — feuille de style partagée
   Thème sombre / navy, fintech B2B éditoriale
   Tokens en haut, puis base, layout, composants, pages, responsive.
   ========================================================================== */

:root {
  /* Couleurs */
  --bg: #0F1B2D;
  --surface: #16263E;
  --panel: #1B2E49;
  --text: #EAF0F7;
  --muted: #93A4BD;
  --border: #25395A;
  --accent: #3B5BFF;
  --accent-700: #2C45CC;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  /* Typo */
  --font-title: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Échelle d'espacement (4/8) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Rayons & ombres (sobres) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);

  --maxw: 1140px;
}

/* --------------------------------------------------------------------------
   Reset léger
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 var(--s-4);
  color: var(--text);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--s-4); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.3em; }
li { margin-bottom: var(--s-2); }

code, .mono {
  font-family: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  font-size: .9em;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Conteneur
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-7); }

.eyebrow {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 var(--s-3);
  display: inline-block;
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 60ch;
}

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 27, 45, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand strong { color: var(--accent); font-weight: 700; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: var(--s-2) var(--s-3);
  color: var(--muted);
  font-size: .96rem;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.nav__link:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--text); background: var(--panel); }

.nav__toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

.btn--success { background: var(--success); color: #04231a; }
.btn--success:hover { filter: brightness(1.06); }

.btn--sm { padding: 9px 14px; font-size: .9rem; }
.btn--block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Cartes & panneaux
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.card--panel { background: var(--panel); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

/* Tag / pill */
.tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag--accent { color: var(--accent); border-color: rgba(59,91,255,.4); background: rgba(59,91,255,.08); }
.tag--success { color: var(--success); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.tag--warning { color: var(--warning); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.32);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  color: #f6e6c0;
  font-size: .94rem;
}
.disclaimer svg { flex: 0 0 auto; margin-top: 2px; color: var(--warning); }
.disclaimer strong { color: var(--warning); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: var(--s-8) var(--s-6);
  margin-top: var(--s-9);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
}
.site-footer h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: var(--text); font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
}
.site-footer__brand p { color: var(--muted); max-width: 38ch; font-size: .95rem; }

/* --------------------------------------------------------------------------
   HERO éditorial asymétrique (index)
   -------------------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 12% -10%, rgba(59,91,255,.18), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(52,211,153,.06), transparent 55%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-9);
}
.hero__title { margin-bottom: var(--s-5); }
.hero__title span { color: var(--accent); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.hero__metric strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: var(--text);
}
.hero__metric span { color: var(--muted); font-size: .9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Encart échéancier dans le hero */
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow);
}
.hero-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-5);
}
.hero-panel__head h2 { font-size: 1.15rem; margin: 0; }
.timeline-mini { list-style: none; padding: 0; margin: 0; }
.timeline-mini li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px dashed var(--border);
  align-items: start;
}
.timeline-mini li:first-child { border-top: 0; }
.timeline-mini time {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--accent);
  font-size: .95rem;
}
.timeline-mini .t-title { font-weight: 600; display: block; }
.timeline-mini .t-sub { color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Bandeau échéancier pleine largeur
   -------------------------------------------------------------------------- */
.timeline-band { background: var(--surface); border-block: 1px solid var(--border); }
.timeline-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  position: relative;
}
.timeline-step {
  position: relative;
  padding-top: var(--s-6);
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}
.timeline-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-step.is-warning::after { border-color: var(--warning); }
.timeline-step time {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: var(--s-1);
}
.timeline-step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   Grilles diverses
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.3fr .7fr; }

/* Liste de risques / faits */
.factlist { list-style: none; padding: 0; margin: 0; }
.factlist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.factlist li:first-child { border-top: 0; }
.factlist svg { margin-top: 3px; }
.ic-danger { color: var(--danger); }
.ic-ok { color: var(--success); }
.ic-accent { color: var(--accent); }

/* Outils — cartes différenciées */
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .16s ease, transform .16s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tool-card__num {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--accent);
  font-size: .85rem;
  letter-spacing: .1em;
}
.tool-card h3 { margin: var(--s-3) 0 var(--s-2); }
.tool-card p { color: var(--muted); flex: 1; }
.tool-card .btn { margin-top: var(--s-4); align-self: flex-start; }

/* Étapes "comment ça marche" */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.step__num {
  counter-increment: step;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.step__num::before { content: counter(step); }
.step h3 { margin: 0 0 var(--s-1); font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-title);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 var(--s-5) var(--s-5); margin: 0; color: var(--muted); }

/* CTA lead capture */
.cta-band {
  background:
    linear-gradient(120deg, rgba(59,91,255,.16), rgba(59,91,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}
.cta-band .split { align-items: center; }

/* Formulaires (général) */
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--text);
}
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #314a73; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,91,255,.25);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393A4BD' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
::placeholder { color: #5e729a; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: 0 0 var(--s-5);
}
legend {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 var(--s-3);
  color: var(--text);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }

.error-text { color: var(--danger); font-size: .85rem; margin-top: var(--s-1); }

/* Tableau lignes facture */
.linetable { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); }
.linetable th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.linetable td { padding: var(--s-2) var(--s-3); vertical-align: top; }
.linetable input { padding: 8px 10px; }
.linetable .col-num { width: 110px; }
.linetable .col-tva { width: 96px; }
.linetable .col-act { width: 44px; }
.line-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: grid; place-items: center;
}
.line-remove:hover { border-color: var(--danger); color: var(--danger); }

/* Totaux */
.totals {
  margin-left: auto;
  max-width: 340px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); margin: 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-title); }
.totals .grand dt, .totals .grand dd {
  font-size: 1.25rem; color: var(--text); font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: var(--s-3); margin-top: var(--s-2);
}

/* Aperçu code */
.code-preview {
  background: #0b1422;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  overflow: auto;
  max-height: 460px;
}
.code-preview pre { margin: 0; }
.code-preview code {
  color: #cdd9ec;
  white-space: pre;
  font-size: .82rem;
  line-height: 1.5;
  display: block;
}

/* --------------------------------------------------------------------------
   Vérificateur — rapport
   -------------------------------------------------------------------------- */
.score-ring {
  display: grid;
  place-items: center;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--pct, 0) * 1%), var(--border) 0);
  position: relative;
  margin: 0 auto var(--s-3);
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
}
.score-ring__val {
  position: relative;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.7rem;
}
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) var(--s-2);
  border-top: 1px solid var(--border);
}
.report-list li:first-child { border-top: 0; }
.report-list .r-ico { margin-top: 2px; }
.report-list .r-label { font-weight: 600; }
.report-list .r-detail { color: var(--muted); font-size: .88rem; display: block; font-weight: 400; }
.report-list .r-status { font-size: .78rem; font-weight: 700; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .05em; }
.r-pass .r-ico, .r-pass .r-status { color: var(--success); }
.r-fail .r-ico, .r-fail .r-status { color: var(--danger); }
.r-warn .r-ico, .r-warn .r-status { color: var(--warning); }

/* --------------------------------------------------------------------------
   Calendrier outil
   -------------------------------------------------------------------------- */
.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}
.seg button {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { color: var(--text); background: var(--surface); }

.countdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.countdown {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.countdown h3 { margin-bottom: var(--s-2); }
.countdown .cd-date { color: var(--accent); font-family: var(--font-title); font-weight: 600; }
.cd-clock { display: flex; gap: var(--s-4); margin: var(--s-5) 0 var(--s-3); }
.cd-unit { text-align: center; }
.cd-unit strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cd-unit span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.cd-done { color: var(--success); font-weight: 600; font-family: var(--font-title); }

.obligations-table { width: 100%; border-collapse: collapse; }
.obligations-table th, .obligations-table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
}
.obligations-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.obligations-table td { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Annuaire PDP
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: var(--s-4);
  align-items: end;
}
.pdp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.pdp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
}
.pdp-card__top { display: flex; justify-content: space-between; align-items: start; gap: var(--s-3); }
.pdp-card h3 { margin: 0 0 var(--s-1); font-size: 1.2rem; }
.pdp-card .pdp-sector { color: var(--muted); font-size: .9rem; }
.pdp-card .pdp-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--success);
  white-space: nowrap;
}
.pdp-card .pdp-price small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; text-align: right; }
.pdp-card p { color: var(--muted); margin: var(--s-3) 0; flex: 1; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.pdp-card__foot { display: flex; gap: var(--s-3); align-items: center; }
.no-results { color: var(--muted); padding: var(--s-7); text-align: center; border: 1px dashed var(--border); border-radius: var(--r-md); }

/* --------------------------------------------------------------------------
   Guide — sommaire ancré
   -------------------------------------------------------------------------- */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-8); align-items: start; }
.toc { position: sticky; top: 88px; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 12px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  font-size: .92rem;
}
.toc a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.guide-body section { padding-bottom: var(--s-7); margin-bottom: var(--s-7); border-bottom: 1px solid var(--border); scroll-margin-top: 88px; }
.guide-body section:last-child { border-bottom: 0; }
.guide-body h2 { margin-top: 0; }

.compare-table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: .94rem; }
.compare-table th, .compare-table td { padding: var(--s-3); border: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--panel); color: var(--text); }
.compare-table th[scope="row"] { background: var(--surface); color: var(--muted); font-weight: 600; }

/* Page légale */
.legal { max-width: 760px; }
.legal h2 { margin-top: var(--s-7); }
.legal h3 { margin-top: var(--s-5); }
.legal address { font-style: normal; color: var(--muted); }

/* Notes / aria-live */
.note {
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
  border: 1px solid var(--border);
}
.note--ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.4); color: #bdeedd; }
.note--err { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.4); color: #f6cccc; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Page-head générique (pages internes) */
.page-head { border-bottom: 1px solid var(--border); padding-block: var(--s-8) var(--s-7); background: radial-gradient(800px 300px at 8% 0%, rgba(59,91,255,.12), transparent 60%); }
.page-head .lead { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   Emplacements publicitaires (monétisation CPM/RPM)
   Placeholder discret, dans le thème navy. Hauteur réservée = pas de layout shift.
   Coller le code AdSense / Ezoic à l'intérieur du conteneur.
   -------------------------------------------------------------------------- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  margin-inline: auto;
  padding: var(--s-3);
  background: rgba(255, 255, 255, .015);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  overflow: hidden;
}
.ad-slot .ad-label {
  font-family: var(--font-title);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5e729a;
}
/* L'annonce réelle (iframe/ins AdSense) prend toute la largeur disponible */
.ad-slot > ins,
.ad-slot > iframe,
.ad-slot .adsbygoogle { display: block; width: 100%; max-width: 100%; }

/* Variantes de format */
.ad-slot--leaderboard { min-height: 90px; max-width: 970px; }      /* bandeau large responsive */
.ad-slot--rectangle   { min-height: 250px; max-width: 336px; }     /* in-content 300x250 / 336x280 */
.ad-slot--inarticle   { min-height: 200px; max-width: 720px; }     /* fluide in-article */

/* Espacement vertical autour d'un slot inséré dans le flux d'une page */
.ad-zone { margin-block: var(--s-7); }
.ad-zone--tight { margin-block: var(--s-6); }

/* Rectangle latéral (guide desktop) : colle sous le sommaire sticky */
.ad-rail { position: sticky; top: 360px; margin-top: var(--s-6); }

/* --------------------------------------------------------------------------
   Maillage interne — "À lire aussi" / "Autres outils"
   -------------------------------------------------------------------------- */
.related { border-top: 1px solid var(--border); background: var(--surface); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.related__head h2 { margin: 0; font-size: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  color: var(--text);
  transition: border-color .16s ease, transform .16s ease;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.related-card__kicker { font-family: var(--font-title); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }
.related-card h3 { font-size: 1.1rem; margin: 0 0 var(--s-2); }
.related-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.related-card__more { margin-top: var(--s-3); font-family: var(--font-title); font-weight: 600; font-size: .9rem; color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .toc a { border-left: 0; border: 1px solid var(--border); border-radius: var(--r-sm); }
  .ad-rail { position: static; top: auto; margin-top: var(--s-7); }
}

@media (max-width: 820px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .2s ease; }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; padding: var(--s-4); gap: var(--s-1); }
  .nav__link { padding: var(--s-3) var(--s-4); font-size: 1.05rem; }
  .nav__toggle { display: inline-flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: var(--s-6); }
  .timeline-rail { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .pdp-grid { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-7); }
  .wrap { padding-inline: var(--s-4); }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .timeline-rail { grid-template-columns: 1fr; }
  .cta-band, .card, .panel { padding: var(--s-5); }
  .linetable, .linetable thead, .linetable tbody, .linetable th, .linetable td, .linetable tr { display: block; }
  .linetable thead { display: none; }
  .linetable tr { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3); margin-bottom: var(--s-3); }
  .linetable td { padding: var(--s-2) 0; }
  .linetable td::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
  .linetable .col-act { text-align: right; }
  .totals { max-width: none; }
}

@media (max-width: 360px) {
  .wrap { padding-inline: var(--s-3); }
  .hero__meta { gap: var(--s-4); }
  .cd-unit strong { font-size: 1.9rem; }
}
