/* ==========================================================================
   Prevoya — Design system
   Courtier expert en prévoyance des indépendants et dirigeants
   1 accent + neutres chauds · system fonts · dark mode · mobile-first
   ========================================================================== */

/* ---------- Tokens ----------
   Trois couches : échelles (typo, espace, rayons, ombres, mouvement) puis couleurs.
   Les contrastes ont été vérifiés au ratio WCAG : aucun texte sous 4,5:1. */
:root {
  color-scheme: light;   /* thème clair unique : les contrôles natifs suivent */

  /* Typographie fluide, 375 px → 1280 px */
  --step--2: clamp(0.75rem,   0.73rem + 0.09vw, 0.80rem);
  --step--1: clamp(0.875rem,  0.85rem + 0.11vw, 0.9375rem);
  --step-0:  clamp(1rem,      0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem,  1.07rem + 0.24vw, 1.25rem);
  --step-2:  clamp(1.3125rem, 1.22rem + 0.40vw, 1.5rem);
  --step-3:  clamp(1.5rem,    1.34rem + 0.70vw, 1.875rem);
  --step-4:  clamp(1.75rem,   1.44rem + 1.33vw, 2.4rem);
  --step-5:  clamp(2.05rem,   1.55rem + 2.14vw, 3.1rem);
  --step-6:  clamp(2.4rem,    1.63rem + 3.30vw, 4rem);

  /* Espacement, base 4 px */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-section: clamp(3rem, 1.6rem + 5.6vw, 6rem);

  /* Rayons : progression 4/8/12/16/24 */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --radius: var(--r-md);       /* alias historiques */
  --radius-sm: var(--r-sm);

  /* Ombres : lumière directionnelle + ambiante, teintées de brun chaud */
  --sh-hue: 30 14% 10%;
  --sh-a: .045;
  --sh-1: 0 1px 1px hsl(var(--sh-hue) / calc(var(--sh-a) * 1)),
          0 2px 4px -1px hsl(var(--sh-hue) / calc(var(--sh-a) * .9));
  --sh-2: 0 1px 1px hsl(var(--sh-hue) / calc(var(--sh-a) * .9)),
          0 2px 4px -1px hsl(var(--sh-hue) / var(--sh-a)),
          0 6px 12px -3px hsl(var(--sh-hue) / calc(var(--sh-a) * 1.1));
  --sh-3: 0 1px 1px hsl(var(--sh-hue) / calc(var(--sh-a) * .7)),
          0 3px 6px -1px hsl(var(--sh-hue) / var(--sh-a)),
          0 10px 20px -5px hsl(var(--sh-hue) / calc(var(--sh-a) * 1.3)),
          0 20px 32px -14px hsl(var(--sh-hue) / calc(var(--sh-a) * 1.2));
  --sh-4: 0 1px 1px hsl(var(--sh-hue) / calc(var(--sh-a) * .6)),
          0 4px 8px -2px hsl(var(--sh-hue) / var(--sh-a)),
          0 14px 28px -8px hsl(var(--sh-hue) / calc(var(--sh-a) * 1.4)),
          0 32px 52px -22px hsl(var(--sh-hue) / calc(var(--sh-a) * 1.6));
  --sh-inset-light: inset 0 1px 0 rgb(255 255 255 / .70);
  --sh-inset-well: inset 0 1px 2px hsl(var(--sh-hue) / .09);
  --sh-ring-accent: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent);
  --shadow: var(--sh-2);       /* alias historique */

  /* Mouvement : la durée suit la distance parcourue, jamais l'importance */
  --dur-instant: 60ms; --dur-fast: 140ms; --dur-base: 220ms;
  --dur-slow: 340ms;   --dur-slower: 520ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-out-soft: cubic-bezier(.25, 1, .5, 1);

  --bw-1: 1px; --bw-2: 1.5px; --bw-3: 2px; --bw-bar: 4px;
  --o-disabled: .42;

  /* Couleurs — mode clair */
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3f0ea;
  --surface-3: #ebe7de;
  --ink: #1f1c17;
  --ink-2: #55504a;
  --ink-3: #6f6a61;            /* 5,07:1 sur le fond — conforme AA */
  --border: #e6e1d8;
  --border-2: #d5cfc3;
  --border-field: #a8a094;     /* 3:1 — seuil des composants d'interface */
  --accent: #14532b;
  --accent-strong: #0e3d20;
  --accent-soft: #e8f2ec;
  --accent-ink: #ffffff;
  --warn-bg: #fdf3e4;
  --warn-border: #ecd9b7;
  --warn-ink: #6b4a09;
  --danger: #a12c22;
  --danger-bg: #fbecea;
  --ok: #14532b;
  --mid: #8a6310;              /* 5,42:1 avec du blanc — conforme AA */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  --maxw: 76rem;
  --maxw-text: 46rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); margin: .4em 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 1.8em 0 .6em; letter-spacing: -.01em; }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.25rem); margin: 1.5em 0 .5em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }
.content { max-width: var(--maxw-text); }
main { padding-bottom: 3rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.mt-2 { margin-top: 2rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; flex-wrap: wrap; }
@media (min-width: 1080px) {
  /* Au-delà du point de bascule, la barre tient sur une seule ligne : si elle
     débordait, ce serait un défaut à corriger, jamais à masquer par un retour
     à la ligne qui double la hauteur de l’en-tête. */
  .site-header .container { flex-wrap: nowrap; }
}
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo svg { flex: none; }
.logo .logo-tag { display: none !important; font-size: .72rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
/* Baseline retirée de l’en-tête : elle ne tenait dans aucune largeur. */
.nav-toggle { margin-left: auto; background: none; border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: .4rem .6rem; font-size: 1rem; color: var(--ink); cursor: pointer; }
.site-nav { display: none; width: 100%; padding-bottom: .8rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.site-nav a { display: block; white-space: nowrap; padding: .45rem .6rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; }
.site-nav a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; margin-left: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: .2rem; }
  .site-nav a.nav-cta { margin-left: .5rem; padding-block: var(--sp-3); padding-inline: .9rem; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin: 1rem 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 .35rem; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }

/* ==========================================================================
   Hero de conversion (accueil et pages piliers)
   ========================================================================== */
.hero-lead {
  position: relative;
  background:
    radial-gradient(58rem 26rem at 12% -10%, var(--accent-soft) 0%, transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
}
.hero-lead .container { padding-top: 2.6rem; padding-bottom: 2.4rem; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr); gap: 3rem; }
  .hero-lead .container { padding-top: 3.4rem; padding-bottom: 3rem; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid var(--border-2); border-radius: 99px; padding: .32rem .8rem; margin: 0 0 1rem;
}
.eyebrow svg { flex: none; }

.hero-title {
  font-size: clamp(1.95rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em;
  margin: 0 0 .8rem; font-weight: 800; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.19rem); line-height: 1.55; color: var(--ink-2);
  max-width: 34rem; margin: 0 0 1.5rem;
}
.hero-sub strong { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; font-size: .87rem; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.hero-trust svg { flex: none; color: var(--accent); }

/* Carte latérale du hero : accroche l'outil ou les preuves */
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.3rem 1.4rem; box-shadow: 0 2px 6px rgba(31, 28, 23, .06), 0 18px 40px -22px rgba(31, 28, 23, .35);
}
.hero-card h2 { margin: 0 0 .2rem; font-size: 1.08rem; }
.hero-card .hero-card-sub { font-size: .9rem; color: var(--ink-3); margin: 0 0 1rem; }
.hero-card .field { margin-bottom: .8rem; }
.hero-card .btn { width: 100%; text-align: center; }
.hero-card-foot { font-size: .8rem; color: var(--ink-3); margin: .7rem 0 0; text-align: center; }

/* Bandeau de chiffres sous le hero */
.hero-stats {
  display: grid; gap: .1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--border); margin-top: 2rem;
}
.hero-stats div { background: var(--surface); padding: .9rem 1.1rem; }
.hero-stats b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.hero-stats span { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.35; margin-top: .2rem; }
.hero-stats .stat-alert b { color: var(--danger); }

/* ---------- Hero / lede ---------- */
.hero { padding: 1.6rem 0 .4rem; }
.lede {
  font-size: 1.15rem; line-height: 1.6; color: var(--ink);
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--maxw-text);
}
.lede p:last-child { margin-bottom: 0; }

/* ---------- Byline ---------- */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem;
  font-size: .85rem; color: var(--ink-3); margin: .8rem 0 0;
}
.byline .byline-author { font-weight: 600; color: var(--ink-2); }
.byline a { color: var(--ink-2); }

/* ---------- Key figure ---------- */
.kpi-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin: 1.4rem 0; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
/* La valeur et le libellé acceptent les classes dédiées ou, à défaut, <strong> + <span>. */
.kpi .kpi-value, .kpi > strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); display: block; }
.kpi .kpi-label, .kpi > span { font-size: .85rem; color: var(--ink-2); line-height: 1.35; display: block; margin-top: .15rem; }
.kpi.kpi-danger .kpi-value, .kpi.kpi-danger > strong { color: var(--danger); }

.chiffre-cle {
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; box-shadow: var(--shadow);
  max-width: var(--maxw-text);
}
.chiffre-cle .cc-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; font-weight: 700; color: var(--accent); display: block; margin-bottom: .2rem; }
.chiffre-cle p:last-child { margin-bottom: 0; }

/* ---------- Notes / warnings ---------- */
.note, .warn, .danger-box {
  border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.2rem 0;
  border: 1px solid var(--border); background: var(--surface-2);
  max-width: var(--maxw-text); font-size: .98rem;
}
.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.warn strong, .warn a { color: inherit; }
.danger-box { background: var(--danger-bg); border-color: var(--danger); }
.note p:last-child, .warn p:last-child, .danger-box p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
caption { text-align: left; font-weight: 600; padding: .8rem 1rem .3rem; color: var(--ink-2); font-size: .9rem; caption-side: top; }
th, td { padding: .6rem .9rem; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); border-top: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-note { font-size: .82rem; color: var(--ink-3); padding: .4rem 1rem .8rem; margin: 0; }

/* ---------- Gauge ---------- */
.gauge { margin: 1rem 0; max-width: var(--maxw-text); }
.gauge-track { background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; height: 1.4rem; overflow: hidden; }
.gauge-fill { background: var(--accent); height: 100%; border-radius: 99px; min-width: 2%; transition: width .5s ease; display: flex; align-items: center; justify-content: flex-end; color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding-right: .5rem; }
.gauge-fill.low { background: var(--danger); }
.gauge-fill.mid { background: #b07f1a; }
.gauge-caption { font-size: .85rem; color: var(--ink-2); margin-top: .3rem; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--maxw-text); margin: 1.5rem 0; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: .6rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--accent); flex: none; font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 1.1rem .9rem; color: var(--ink-2); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: .6rem 1.3rem; }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn-lg { font-size: 1.06rem; padding: .85rem 1.7rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* Panneau de conversion (après un résultat de simulateur) */
.cta-panel {
  margin: 2rem 0 .5rem; padding: 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
}
.cta-panel h3 { margin: 0 0 .4rem; color: var(--accent-ink); font-size: 1.25rem; }
.cta-panel p { color: var(--accent-ink); opacity: .92; margin-bottom: 1rem; max-width: 40rem; }
.cta-panel-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-panel .btn { background: var(--accent-ink); color: var(--accent-strong); }
.cta-panel .btn:hover { background: var(--surface-2); color: var(--accent-strong); }
.cta-panel .btn-ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid rgba(255, 255, 255, .5); }
.cta-panel .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--accent-ink); border-color: var(--accent-ink); }
.cta-panel-trust { font-size: .82rem; opacity: .85; margin: .9rem 0 0; }
.cta-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 2rem 0; box-shadow: var(--shadow); max-width: var(--maxw-text);
}
.cta-box h2, .cta-box h3 { margin-top: 0; }
.cta-box .btn { margin-top: .4rem; margin-right: .6rem; }
.cta-inline { font-size: .95rem; }

/* ---------- Cards / listing ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.4rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31, 28, 23, .06), 0 14px 28px -18px rgba(31, 28, 23, .4); }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.card .card-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* Cartes produit : une porte d'entrée par besoin */
.product-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); margin: 1.6rem 0; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1.4rem 1.3rem; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 3px 6px rgba(31, 28, 23, .07), 0 20px 36px -22px rgba(31, 28, 23, .45); }
@media (prefers-reduced-motion: reduce) { .product-card:hover { transform: none; } }
.product-card .pc-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: .9rem;
}
.product-card h3 { margin: 0 0 .35rem; font-size: 1.16rem; letter-spacing: -.01em; }
.product-card h3 a { text-decoration: none; color: var(--ink); }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card h3 a:hover { color: var(--accent); }
.product-card > p { margin: 0 0 1rem; font-size: .94rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.product-card .pc-points { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: .89rem; color: var(--ink-2); }
.product-card .pc-points li { display: flex; gap: .45rem; margin-bottom: .35rem; line-height: 1.4; }
.product-card .pc-points li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.product-card .pc-cta { font-weight: 700; color: var(--accent); font-size: .95rem; text-decoration: none; margin-top: auto; }
.product-card .pc-cta::after { content: " →"; }
.product-card.pc-featured { border-color: var(--accent); border-width: 1.5px; }
.product-card .pc-badge {
  position: absolute; top: -.7rem; right: 1.1rem; background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 99px;
}

/* Cartes d'outils : mise en avant des simulateurs */
.tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.6rem 0; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: .45rem;
  border-radius: 14px; padding: 1.3rem 1.35rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .tool-card:hover { transform: none; } }
.tool-card .tc-top { display: flex; align-items: center; gap: .6rem; }
.tool-card .tc-icon { width: 2.1rem; height: 2.1rem; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.tool-card .tc-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tool-card h3 { margin: .1rem 0 0; font-size: 1.08rem; color: var(--ink); }
.tool-card p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.tool-card .tc-meta { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }
.tool-card .tc-go { font-weight: 700; color: var(--accent); font-size: .93rem; margin-top: .5rem; }
.tool-card .tc-go::after { content: " →"; }

/* ==========================================================================
   Barre d'action persistante (mobile) et rappel latéral (desktop)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: -8rem; z-index: 60;
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px -12px rgba(31, 28, 23, .35);
  transition: bottom .22s ease;
}
.sticky-cta.is-visible { bottom: 0; }
.sticky-cta .sc-text { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.3; color: var(--ink-2); }
.sticky-cta .sc-text b { display: block; color: var(--ink); font-size: .93rem; }
.sticky-cta .btn { flex: none; padding: .6rem 1.05rem; font-size: .93rem; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (min-width: 62rem) { .sticky-cta { display: none; } }

/* Encart d'appel latéral, inséré dans le flux des articles longs */
.aside-cta {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; margin: 2rem 0; max-width: var(--maxw-text); box-shadow: var(--shadow);
}
.aside-cta h3 { margin: 0 0 .35rem; font-size: 1.06rem; }
.aside-cta p { margin: 0 0 .9rem; font-size: .93rem; color: var(--ink-2); }
.aside-cta .btn { font-size: .95rem; }
.aside-cta .ac-trust { font-size: .78rem; color: var(--ink-3); margin: .7rem 0 0; }

/* ---------- Forms / simulators ---------- */
.sim {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin: 1.5rem 0; box-shadow: var(--shadow);
}
.sim h2, .sim h3 { margin-top: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: .25rem; }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .6rem .8rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.checkbox-field { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.checkbox-field input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }

.sim-result { border-top: 2px solid var(--accent); margin-top: 1.4rem; padding-top: 1.2rem; }
.sim-result[hidden] { display: none; }
.result-punch {
  font-size: 1.25rem; font-weight: 700; line-height: 1.4;
  background: var(--danger-bg); border-left: 4px solid var(--danger);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0;
}
.result-punch.ok { background: var(--accent-soft); border-color: var(--accent); }

/* Verdict du simulateur : le chiffre qui frappe */
.verdict {
  text-align: center; padding: 1.6rem 1.2rem; border-radius: var(--radius);
  margin: 1.2rem 0 1.6rem; border: 1px solid var(--border);
}
.verdict-alert { background: var(--danger-bg); border-color: var(--danger); }
.verdict-ok { background: var(--accent-soft); border-color: var(--accent); }
.verdict-lead { margin: 0; font-size: 1rem; color: var(--ink-2); }
.verdict-figure {
  margin: .1em 0; font-size: clamp(3.2rem, 13vw, 5rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.verdict-alert .verdict-figure { color: var(--danger); }
.verdict-ok .verdict-figure { color: var(--accent); }
.verdict-sub { margin: .4rem auto 0; max-width: 34rem; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }

/* Champs repliés (options avancées) */
.field-advanced { margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.field-advanced > summary { cursor: pointer; padding: .6rem .9rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.field-advanced[open] > summary { border-bottom: 1px solid var(--border); }
.field-advanced .field { padding: .9rem; margin: 0; }

/* Multi-step form */
.msf-progress { background: var(--surface-2); border-radius: 99px; height: .55rem; margin: 1rem 0 1.5rem; overflow: hidden; }
.msf-progress-fill { background: var(--accent); height: 100%; border-radius: 99px; transition: width .3s ease; }
.msf-step[hidden] { display: none; }
.msf-step h2 { margin-top: 0; font-size: 1.3rem; }
.msf-nav { display: flex; gap: .8rem; margin-top: 1.4rem; }
.msf-nav .btn-back { background: transparent; color: var(--ink-2); border: 1px solid var(--border-2); }
.msf-options { display: grid; gap: .6rem; margin: 1rem 0; }
.msf-options button {
  text-align: left; padding: .85rem 1.1rem; font-size: 1rem; font-family: inherit; font-weight: 600;
  background: var(--surface); color: var(--ink); border: 2px solid var(--border-2); border-radius: var(--radius-sm); cursor: pointer;
}
.msf-options button:hover, .msf-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- SVG chart ---------- */
.chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1.4rem 0; box-shadow: var(--shadow); overflow-x: auto; }
.chart-wrap svg { display: block; min-width: 34rem; width: 100%; }
.chart-wrap figcaption { font-size: .92rem; font-weight: 600; color: var(--ink-2); margin-bottom: .6rem; }
.chart-coverage { margin: 1.6rem 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; font-size: .85rem; color: var(--ink-2); margin: .6rem 0 0; }
.chart-legend .lg { display: inline-block; width: .95rem; height: .95rem; border-radius: 3px; vertical-align: -2px; margin-right: .35rem; }
.chart-legend .lg-fill { background: var(--accent); opacity: .45; border: 1px solid var(--accent); }
.chart-legend .lg-gap { background: var(--danger-bg); border: 1px solid var(--danger); }
.chart-wrap text { font-family: var(--font); fill: var(--ink-2); }
.chart-wrap .axis { stroke: var(--border-2); }
.chart-wrap .curve { stroke: var(--accent); fill: none; stroke-width: 2.5; }
.chart-wrap .area-neg { fill: var(--danger-bg); }
.chart-wrap .zero { stroke: var(--danger); stroke-dasharray: 4 3; }

/* ---------- TOC / sommaire ---------- */
.toc { background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.4rem 0; max-width: var(--maxw-text); font-size: .95rem; }
.toc strong { display: block; margin-bottom: .4rem; }
.toc ol { margin: 0; }

/* ---------- Sources ---------- */
.sources { font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1rem; max-width: var(--maxw-text); }
.sources h2, .sources h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--ink-2); }
.sources ul { margin: 0; }
.sources a { color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.2rem 0 2.6rem; font-size: .9rem; color: var(--ink-2); }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .6rem; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-legal { border-top: 1px solid var(--border); margin-top: 1.8rem; padding-top: 1.2rem; font-size: .8rem; color: var(--ink-3); }
.footer-legal p { margin-bottom: .4rem; }

/* ---------- Print (baromètre) ---------- */
@media print {
  .site-header, .site-footer, .breadcrumb, .cta-box, .btn, .nav-toggle, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-wrap { border: 1px solid #999; box-shadow: none; overflow: visible; }
  table { min-width: 0; }
  a { color: #000; text-decoration: none; }
}

/* ==========================================================================
   Finitions transverses (accessibilité, lisibilité des chiffres, tableaux)
   ========================================================================== */

/* Les montants doivent s'aligner verticalement : chiffres à chasse fixe */
.kpi-value, .kpi > strong, .verdict-figure, .hero-stats b,
td.num, th.num, .chiffre-cle strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Respect du réglage système « animations réduites » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Sur mobile, la première colonne d'un tableau reste visible pendant le défilement */
@media (max-width: 44.9rem) {
  .table-wrap tbody th[scope="row"] {
    position: sticky; left: 0; z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--border);
  }
  .table-wrap tbody tr:hover th[scope="row"] { background: var(--surface-2); }
}

/* Ligne « votre cas » dans les tableaux de barèmes */
tbody tr.is-yours { background: var(--accent-soft); }
tbody tr.is-yours td, tbody tr.is-yours th { font-weight: 600; }

/* La barre d'action persistante ne doit jamais masquer la fin du contenu */
@media (max-width: 61.9rem) {
  body { padding-bottom: 4.2rem; }
}

/* Libellé accessible masqué visuellement */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* En-tête des pages outils : accroche + repères chiffrés */
.tool-hero { padding-top: 1.2rem; }
.tool-hero .eyebrow { margin-bottom: .8rem; }
.tool-hero .hero-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: .6rem; }
.tool-stats { margin-top: 1.4rem; margin-bottom: .5rem; }
.tool-stats b { font-size: 1.3rem; }

/* Kicker de la carte de qualification du hero */
.hero-card-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .35rem;
}
.hero-card h2 { font-size: 1.22rem; letter-spacing: -.015em; margin-bottom: .3rem; }
