/* Le Radar du Placement
   Concept : un écran radar nocturne (en-tête, simulateur, pied de page) posé sur un journal clair et aéré.
   Chaque thème a sa couleur : garanti (sarcelle), assurance-vie (bleu), immobilier (brique), fiscalité (ocre). */
:root {
  color-scheme: light;
  --paper: #f2f5f6;
  --surface: #ffffff;
  --ink: #0f1d24;
  --muted: #566670;
  --rule: #d9e1e4;
  --accent: #0a6c72;
  --accent-ink: #ffffff;
  --signal: #c2621a;
  --soft: #e4eff0;
  --warn-bg: #fcf1e6;
  --night: #0a1d27;
  --night-2: #10303d;
  --night-ink: #e6f2f1;
  --phos: #6fe3d2;
  --amber: #f4b062;
  --c-garanti: #0b8676;
  --c-av: #2d61b5;
  --c-immo: #bf5b27;
  --c-fisc: #9a760c;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 68ch;
  --r: 14px;
}



* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.page-pad { padding-block: 48px 64px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .45em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 1.7em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .35em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-data); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 1em; }
.eyebrow-phos { color: var(--phos); }
.eyebrow i, .stamp i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 var(--amber); display: inline-block; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent); text-decoration: none; }
.btn-phos { background: var(--phos); color: #072027; }
.btn-ghost { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--night-ink) 45%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--night-ink) 10%, transparent); }
.btn-small { padding: 10px 18px; font-size: .92rem; }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand-name small { display: block; font-family: var(--font-data); font-weight: 400; font-size: .64rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; align-items: center; font-family: var(--font-display); font-size: .96rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--accent); }
.nav .cta-link { background: var(--ink); color: var(--paper); font-weight: 600; margin-left: 6px; }
.nav .cta-link:hover { background: var(--accent); color: var(--accent-ink); }

/* Bandeau relevé défilant */
.releve { background: var(--night); color: var(--night-ink); border-bottom: 1px solid color-mix(in srgb, var(--phos) 18%, transparent); }
.releve-in { display: flex; align-items: center; gap: 18px; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stamp { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-data); font-size: .74rem; color: var(--amber); padding-block: 10px; text-transform: uppercase; letter-spacing: .06em; }
.ticker { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; }
.tk { font-family: var(--font-data); font-size: .8rem; padding: 10px 22px 10px 0; display: inline-flex; gap: 6px; align-items: baseline; }
.tk em { font-style: normal; color: color-mix(in srgb, var(--night-ink) 65%, transparent); }
.tk strong { color: var(--phos); font-weight: 500; }
.tk small { color: color-mix(in srgb, var(--night-ink) 40%, transparent); font-size: .68rem; }
.tk::after { content: "◆"; color: color-mix(in srgb, var(--phos) 35%, transparent); font-size: .5rem; margin-left: 16px; }
.dup { display: inline-flex; }

/* Accueil : écran radar */
.hero { background:
    radial-gradient(70% 90% at 80% 40%, color-mix(in srgb, var(--phos) 12%, transparent), transparent 60%),
    linear-gradient(color-mix(in srgb, var(--phos) 5%, transparent) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, color-mix(in srgb, var(--phos) 5%, transparent) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--night);
  color: var(--night-ink); padding-block: 56px 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: .98; margin: 0 0 .35em; color: #fff; }
.hero .hl { color: var(--phos); position: relative; white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; background: linear-gradient(90deg, var(--phos), transparent); opacity: .5; border-radius: 2px; }
.hero .lead { font-size: 1.16rem; color: color-mix(in srgb, var(--night-ink) 78%, transparent); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-proof { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid color-mix(in srgb, var(--phos) 18%, transparent); }
.hero-proof li { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.hero-proof strong { font-family: var(--font-display); color: #fff; font-size: .98rem; }
.hero-proof span { color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.hero-radar { margin: 0; }
.hero-radar figcaption { font-size: .74rem; line-height: 1.5; color: color-mix(in srgb, var(--night-ink) 55%, transparent); max-width: 62ch; margin: 4px auto 0; text-align: center; }
.radar { display: block; width: 100%; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: color-mix(in srgb, var(--phos) 24%, transparent); stroke-width: 1; }
.radar .rim { fill: none; stroke: color-mix(in srgb, var(--phos) 55%, transparent); stroke-width: 1.5; }
.radar .spoke { stroke: color-mix(in srgb, var(--phos) 9%, transparent); stroke-width: 1; }
.radar .zone-gar { fill: color-mix(in srgb, var(--phos) 6%, transparent); }
.radar .divider { stroke: color-mix(in srgb, var(--phos) 40%, transparent); stroke-dasharray: 3 6; }
.radar .ring-lbl { font-family: var(--font-data); font-size: 11px; fill: color-mix(in srgb, var(--phos) 70%, transparent); }
.radar .zone-lbl { font-family: var(--font-data); font-size: 12px; letter-spacing: .08em; fill: var(--phos); }
.radar .zone-lbl.risk { fill: var(--amber); }
.radar .sweep-line { stroke: var(--phos); stroke-width: 2; opacity: .8; }
.radar .b-lbl { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: #f2fbfa; paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
.radar .b-val { font-family: var(--font-data); font-size: 14px; paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
.radar .gar .dot, .radar .gar .b-val { fill: var(--phos); }
.radar .gar .halo { fill: var(--phos); opacity: .18; }
.radar .risk .dot, .radar .risk .b-val, .radar .hollow .b-val { fill: var(--amber); }
.radar .risk .halo, .radar .hollow .halo { fill: var(--amber); opacity: .16; }
.radar .hollow .dot { fill: var(--night); stroke: var(--amber); stroke-width: 2.5; }

/* Chiffres clés */
.kpis { margin-top: -58px; position: relative; z-index: 2; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 18px 40px -28px rgba(6, 25, 35, .45); }
.kpi-v { font-family: var(--font-data); font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--theme); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-v small { font-size: .5em; margin-left: 3px; }
.kpi-l { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.kpi-s { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Brief du jour */
.brief { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 36px; }
.brief-head { display: flex; gap: 16px; align-items: flex-start; }
.brief-day { font-family: var(--font-display); font-weight: 800; font-size: 5rem; line-height: .82; color: var(--signal); letter-spacing: -0.05em; }
.brief-month { font-family: var(--font-data); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.brief h2 { margin: .15em 0 .3em; font-size: 1.7rem; }
.brief-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.brief ol { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; }
.brief li { counter-increment: b; position: relative; padding: 14px 0 14px 54px; border-bottom: 1px dashed var(--rule); }
.brief li:last-child { border-bottom: 0; }
.brief li::before { content: counter(b); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-data); font-size: .95rem; color: var(--signal); background: color-mix(in srgb, var(--signal) 12%, transparent); }
.brief li strong { font-family: var(--font-display); font-weight: 700; display: block; font-size: 1.06rem; margin-bottom: 2px; }
.brief li a { white-space: nowrap; font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* Sections */
.sec { margin-top: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* Cartes d'articles */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cards-feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(6, 25, 35, .55); }
.card-media { display: block; line-height: 0; }
.thumb { width: 100%; height: auto; aspect-ratio: 600 / 280; display: block; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.18; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--theme); }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card .meta { font-family: var(--font-data); font-size: .72rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.tag { font-family: var(--font-data); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--theme, var(--accent)); }
.cards-feature .card-feature { grid-row: 1 / span 3; }
.cards-feature .card-feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cards-feature .card-feature p { font-size: 1.02rem; }
.cards-feature .card:not(.card-feature) { flex-direction: row; }
.cards-feature .card:not(.card-feature) .card-media { width: 38%; flex: none; }
.cards-feature .card:not(.card-feature) .thumb { height: 100%; aspect-ratio: auto; }
.cards-feature .card:not(.card-feature) p { display: none; }
.cards-feature .card:not(.card-feature) h3 { font-size: 1.04rem; }

/* Thèmes */
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.theme-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--theme) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--theme) 25%, transparent); transition: background .2s ease, transform .2s ease; min-height: 170px; }
.theme-tile:hover { background: color-mix(in srgb, var(--theme) 18%, var(--surface)); transform: translateY(-2px); text-decoration: none; }
.tt-k { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--theme); letter-spacing: -0.02em; }
.tt-t { font-size: .95rem; line-height: 1.45; }
.tt-r { margin-top: auto; font-family: var(--font-data); font-size: .7rem; letter-spacing: .03em; color: var(--muted); }

/* Simulateur */
.sim { margin-top: 72px; background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--phos) 12%, transparent), transparent 60%), var(--night); color: var(--night-ink); border-radius: calc(var(--r) + 6px); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center; }
.sim h2 { color: #fff; margin: 0 0 .4em; }
.sim-intro p { color: color-mix(in srgb, var(--night-ink) 72%, transparent); }
.sim .eyebrow { color: var(--phos); }
.money { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.money output { font-family: var(--font-data); font-size: 2rem; color: var(--phos); letter-spacing: -0.02em; }
input[type="range"] { width: 100%; accent-color: var(--phos); }
.sim .field { color: var(--night-ink); }
.sim-res { display: grid; gap: 10px; }
.res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 9%, transparent); }
.res-n { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.res-n small { font-weight: 400; color: color-mix(in srgb, var(--night-ink) 60%, transparent); font-size: .8rem; }
.res-v { font-family: var(--font-data); font-size: 1.15rem; color: var(--phos); text-align: right; white-space: nowrap; }
.res-v i { font-style: normal; color: color-mix(in srgb, var(--night-ink) 50%, transparent); font-size: .8rem; }
.res-h { grid-column: 1 / -1; font-size: .8rem; color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.sr-cap { grid-column: 1 / -1; font-size: .76rem; color: var(--amber); font-family: var(--font-data); }
.sim-note { grid-column: 1 / -1; font-size: .76rem; color: color-mix(in srgb, var(--night-ink) 55%, transparent); margin: 0; }

/* Newsletter */
.news { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--r) + 6px); background: var(--soft); }
.news h2 { margin: 0 0 .3em; }
.news .eyebrow { color: var(--accent); }
.news p { color: var(--muted); margin: 0; }
.nl-form { display: grid; gap: 12px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.nl-msg { font-size: .9rem; background: var(--surface); padding: 10px 14px; border-radius: 10px; margin: 0; }

/* Encart bilan */
.bilan-band { margin-block: 72px 24px; border-radius: calc(var(--r) + 6px); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; color: #fff;
  background: radial-gradient(80% 140% at 0% 100%, color-mix(in srgb, var(--phos) 30%, transparent), transparent 60%), linear-gradient(135deg, #0a6c72, #0a3d52); }
.bilan-band h2 { margin: 0 0 .25em; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.bilan-band p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 60ch; }
.bilan-band .btn { background: #fff; color: #0a3d52; }

/* Pages article */
.art-hero { background: color-mix(in srgb, var(--theme) 10%, var(--paper)); border-bottom: 1px solid color-mix(in srgb, var(--theme) 20%, transparent); padding-block: 44px; }
.art-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.crumb { font-family: var(--font-data); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--theme); margin-bottom: 1em; }
.crumb a { color: inherit; }
.crumb span { opacity: .5; margin: 0 4px; }
.art-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.03em; }
.standfirst { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.thumb-big { border-radius: var(--r); box-shadow: 0 24px 50px -34px rgba(6, 25, 35, .6); background: var(--surface); }
.byline { font-family: var(--font-data); font-size: .74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.byline .verified { color: var(--c-garanti); }
.byline .verified::before { content: "✓ "; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 44px 0; align-items: start; }
.article { max-width: var(--measure); min-width: 0; }
.article h2 { scroll-margin-top: 90px; }
.answer { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 24px 18px; margin: 0 0 1.6em; font-size: 1.04rem; }
.answer-k { position: absolute; top: -12px; left: 20px; background: var(--ink); color: var(--paper); font-family: var(--font-data); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.answer p:last-child { margin-bottom: 0; }
.art-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; }
.aside-card h2, .toc h2 { font-size: .74rem; font-family: var(--font-data); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.fiche { margin: 0; display: grid; gap: 0; }
.fiche div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.fiche div:last-child { border-bottom: 0; }
.fiche dt { color: var(--muted); }
.fiche dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.fiche dd.f-ok { color: var(--c-garanti); }
.fiche dd.f-risk { color: var(--signal); }
.toc { display: flex; flex-direction: column; padding: 0 4px; }
.toc a { font-family: var(--font-display); font-size: .92rem; color: var(--ink); text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--rule); }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.aside-cta { background: var(--night); color: var(--night-ink); border-radius: var(--r); padding: 20px; }
.aside-cta p { font-family: var(--font-display); font-weight: 600; margin: 0 0 12px; }
.aside-cta .btn { background: var(--phos); color: #072027; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-display); font-weight: 600; background: var(--soft); }
td.num, th.num { text-align: right; white-space: nowrap; font-family: var(--font-data); font-variant-numeric: tabular-nums; }
td.num { color: var(--accent); }
caption { caption-side: bottom; text-align: left; font-size: .78rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--rule); }
.risk { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); padding: 16px 18px 16px 52px; border-radius: var(--r); margin: 1.6em 0; font-size: .95rem; position: relative; }
.risk::before { content: "!"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: #fff; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.risk strong { color: var(--signal); font-family: var(--font-display); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7em 0 0; color: var(--muted); }
.sources { font-size: .86rem; color: var(--muted); padding-left: 18px; }
.sources li { margin-bottom: 5px; }
.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 2em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Baromètre : barres à l'échelle */
.bars { margin: 1.6em 0 2em; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px 22px 14px; display: grid; gap: 12px; }
.bar-row, .bar-axis { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; }
.bar-l { font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.bar-l small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .76rem; }
.bar-track { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 999px; background: var(--theme); }
.bar-v { font-family: var(--font-data); text-align: right; color: var(--theme); font-size: .95rem; }
.bar-axis .ticks { position: relative; height: 18px; }
.bar-axis i { white-space: nowrap; position: absolute; transform: translateX(-50%); font-style: normal; font-family: var(--font-data); font-size: .68rem; color: var(--muted); }
.bar-axis i:first-child { transform: none; }
.bar-axis i:last-child { transform: translateX(-100%); }
.bars figcaption { font-size: .76rem; color: var(--muted); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: .92rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-family: var(--font-body); font-weight: 400; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; margin-bottom: 1em; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: .88rem; align-items: start; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.notice { font-size: .85rem; color: var(--muted); }
.confirm { background: var(--soft); border-radius: var(--r); padding: 22px; }

/* Pied de page */
.site-footer { background: var(--night); color: color-mix(in srgb, var(--night-ink) 70%, transparent); font-size: .88rem; margin-top: 72px; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; gap: 24px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--phos) 15%, transparent); }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand p { max-width: 32ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h3 { font-family: var(--font-data); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--phos); margin: 0 0 4px; font-weight: 500; }
.site-footer nav a { color: var(--night-ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--phos); }
.footer-legal { max-width: 95ch; font-size: .8rem; margin: 0; }
.foot-copy { font-family: var(--font-data); font-size: .72rem; margin: 0; color: color-mix(in srgb, var(--night-ink) 45%, transparent); }

/* Responsive */
@media (max-width: 980px) {
  .hero-in, .art-hero-in, .art-layout, .sim, .news { grid-template-columns: minmax(0, 1fr); }
  .art-aside { position: static; }
  .kpi-grid, .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-hero .thumb-big { max-width: 460px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-block: 36px 84px; }
  .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-proof span { display: none; }
  .hero-proof strong { font-size: .84rem; line-height: 1.2; }
  .radar .b-lbl { font-size: 19px; } .radar .b-val { font-size: 17px; } .radar .zone-lbl { font-size: 15px; } .radar .ring-lbl { font-size: 13px; }
  .brief { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 16px; }
  .cards, .cards-feature { grid-template-columns: minmax(0, 1fr); }
  .cards-feature .card-feature { grid-row: auto; }
  .bilan-band, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row, .bar-axis { grid-template-columns: minmax(0, 1fr) 56px; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-axis { display: none; }
  .nav { width: 100%; }
}
@media (max-width: 460px) {
  .kpi-grid, .theme-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cards-feature .card:not(.card-feature) .card-media { width: 34%; }
}

/* Mouvement */
@media (prefers-reduced-motion: no-preference) {
  .sweep { transform-origin: 20px 20px; animation: spin 6s linear infinite; }
  .sweep-big { transform-box: view-box; transform-origin: 300px 300px; animation: spin 7s linear infinite; }
  .blip .halo { transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; animation-delay: var(--d); }
  .ticker-track { animation: marquee 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .eyebrow i, .stamp i { animation: beacon 2s ease-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes ping { 0% { transform: scale(.5); opacity: .5; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
  @keyframes marquee { to { transform: translateX(-50%); } }
  @keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  .dup { display: none; }
  .ticker { overflow-x: auto; }
}

/* Couleurs des nouvelles rubriques */
:root { --c-bourse: #1f7a4c; --c-marches: #5b4bb0; }



/* Radar : cercle d'inflation */
.radar .infl-ring { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 2 6; opacity: .9; }
.radar .infl-lbl { font-family: var(--font-data); font-size: 12px; fill: var(--amber); paint-order: stroke; stroke: var(--night); stroke-width: 4px; }

/* Experts : accueil */
.exp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.exp { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.exp p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.exp-src { font-family: var(--font-data); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-marches); }
.exp-big { font-family: var(--font-data); font-size: 2.1rem !important; color: var(--ink) !important; letter-spacing: -0.03em; line-height: 1.1; }
.exp-big small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

/* Experts : page */
.debate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.side { border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--rule); background: var(--surface); }
.side h3 { margin: 0 0 10px; font-size: 1.15rem; }
.side-a { border-top: 4px solid var(--c-garanti); }
.side-b { border-top: 4px solid var(--c-av); }
.side ul { margin: 0 0 10px; padding-left: 18px; }
.side li { margin-bottom: 8px; }
.side-src { font-size: .78rem; color: var(--muted); margin: 0; }
.xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.xcard p { margin: 0; font-size: .93rem; line-height: 1.55; }
.xcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.xdate { font-family: var(--font-data); font-size: .7rem; color: var(--muted); }
.xkeep { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: .88rem !important; }
.xkeep strong { display: block; font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.xlink { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .9rem; text-decoration: none; }
.press { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.press li { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.press li:last-child { border-bottom: 0; }
.pdate { font-family: var(--font-data); font-size: .76rem; color: var(--muted); }
.pmedia { font-family: var(--font-display); font-weight: 700; color: var(--c-marches); }
.ptxt { font-size: .95rem; }
.ptxt a { font-family: var(--font-display); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 980px) { .exp-grid, .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .exp-grid, .xgrid, .debate { grid-template-columns: minmax(0, 1fr); }
  .press li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Vert réservé à l'écran radar d'accueil ; tout le reste sur fond blanc */
:root { --paper: #ffffff; --soft: #f3f5f7; --rule: #e1e6e9; }
.sim { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 20px 44px -34px rgba(15, 29, 36, .35); }
.sim h2 { color: var(--ink); }
.sim-intro p, .sim-note, .res-h, .res-n small, .res-v i { color: var(--muted); }
.sim .eyebrow { color: var(--accent); }
.sim .field { color: var(--ink); }
.money output, .res-v { color: var(--accent); }
.sim input[type="range"] { accent-color: var(--accent); }
.res { background: var(--soft); border: 1px solid var(--rule); }
.sr-cap { color: var(--signal); }
.bilan-band { background: var(--soft); color: var(--ink); border: 1px solid var(--rule); }
.bilan-band h2 { color: var(--ink); }
.bilan-band p { color: var(--muted); }
.bilan-band .btn { background: var(--accent); color: var(--accent-ink); }
.art-hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.aside-cta { background: var(--soft); color: var(--ink); border: 1px solid var(--rule); }
.aside-cta .btn { background: var(--accent); color: var(--accent-ink); }
.site-footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--rule); }
.foot-grid { border-bottom-color: var(--rule); }
.foot-brand .brand { color: var(--ink); }
.site-footer h3 { color: var(--accent); }
.site-footer nav a { color: var(--ink); }
.site-footer nav a:hover { color: var(--accent); }
.foot-copy { color: var(--muted); }

/* ---------- Interactivité ---------- */
.radar-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 6px; }
.radar-tools button { font: inherit; font-family: var(--font-display); font-size: .82rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--night-ink); border: 1px solid color-mix(in srgb, var(--phos) 35%, transparent); }
.radar-tools button[aria-pressed="true"] { background: var(--phos); color: #072027; border-color: var(--phos); }
.radar .blip { cursor: pointer; transition: opacity .25s ease; outline: none; }
.radar .blip.dim { opacity: .14; }
.radar .blip.on .dot, .radar .blip:focus-visible .dot { stroke: #fff; stroke-width: 3; }
.radar .blip.on .halo { opacity: .4; }
.radar.show-infl .infl-ring { stroke-width: 3; opacity: 1; }
.radar-info { min-height: 64px; margin: 4px auto 10px; max-width: 520px; background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, var(--phos) 25%, transparent); border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: var(--night-ink); display: flex; flex-direction: column; gap: 4px; }
.radar-info strong { font-family: var(--font-display); color: #fff; }
.radar-info span { color: color-mix(in srgb, var(--night-ink) 80%, transparent); }
.radar-info a { color: var(--phos); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.sim-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-line { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-line:hover { background: var(--soft); }

/* Filtres articles */
.filterbar { display: grid; gap: 12px; margin: 8px 0 10px; }
.filterbar input[type="search"] { font: inherit; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-family: var(--font-display); font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { font-family: var(--font-data); font-size: .78rem; color: var(--muted); margin: 6px 0 14px; }
.empty { color: var(--muted); }
.card[hidden] { display: none; }
#art-list .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Tableaux triables */
.hint { font-size: .82rem; color: var(--muted); margin: 0 0 -6px; }
table.sortable th button { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
table.sortable th button::after { content: "↕"; font-size: .8em; color: var(--muted); }
table.sortable th[aria-sort="ascending"] button::after { content: "↑"; color: var(--accent); }
table.sortable th[aria-sort="descending"] button::after { content: "↓"; color: var(--accent); }
td.gap-neg { color: var(--signal) !important; }
td.gap-pos { color: var(--c-garanti) !important; }

/* Comparateur */
.cmp-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--soft); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; margin: 10px 0 6px; font-family: var(--font-display); font-size: .92rem; }
.tgl { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.tgl input { width: 18px; height: 18px; accent-color: var(--accent); }
.field-inline { display: inline-flex; gap: 8px; align-items: center; }
.field-inline select { font: inherit; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.cmp-table th[scope="row"] a { color: var(--ink); font-family: var(--font-display); text-decoration: none; }
.cmp-table th[scope="row"] { background: transparent; }
.cmp-table tr[hidden] { display: none; }
.cmp-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pill { display: inline-block; font-size: .78rem; font-family: var(--font-display); font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill-ok { background: color-mix(in srgb, var(--c-garanti) 14%, transparent); color: var(--c-garanti); }
.pill-risk { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); }
.risk-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.risk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.risk-dots.r1 i:nth-child(-n+1), .risk-dots.r2 i:nth-child(-n+2), .risk-dots.r3 i:nth-child(-n+3) { background: var(--signal); }
.risk-dots.r1 i:first-child { background: var(--c-garanti); }
.cmp-panel { margin-top: 24px; }
.cmp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.cmp-card { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--r); padding: 18px; }
.cmp-card h3 { margin: 0 0 10px; }
.cmp-card dl { margin: 0 0 10px; }
.cmp-card dl div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.cmp-card dt { color: var(--muted); }
.cmp-card dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.cmp-card a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* Simulateur de projection */
.proj { background: var(--surface); border: 1px solid var(--rule); border-radius: calc(var(--r) + 6px); padding: clamp(18px, 3vw, 32px); margin-top: 18px; }
.proj-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.proj-ctrl { display: grid; gap: 18px; }
.proj-ctrl .field output { font-family: var(--font-data); font-size: 1.4rem; color: var(--accent); font-weight: 500; }
.proj-ctrl input[type="range"] { accent-color: var(--accent); }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-family: var(--font-display); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.proj-chart svg { width: 100%; height: auto; display: block; }
.capnote { font-family: var(--font-data); color: var(--signal); font-size: .7rem; display: block; }

/* Quiz */
.quiz { margin-top: 48px; background: var(--soft); border: 1px solid var(--rule); border-radius: calc(var(--r) + 6px); padding: clamp(20px, 3vw, 36px); }
.quiz h2 { margin-top: 0; }
.quiz-form { display: grid; gap: 16px; }
.quiz fieldset { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); padding: 14px 18px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.quiz legend { font-family: var(--font-display); font-weight: 700; padding: 0 6px; }
.quiz fieldset label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: .95rem; }
.quiz input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; }
.quiz .btn { justify-self: start; }
.quiz-res { margin-top: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; }
.quiz-p { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 6px; }
.quiz-p strong { color: var(--accent); }
.quiz-warn { background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; color: var(--ink); }

@media (max-width: 980px) {
  #art-list .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-in { grid-template-columns: minmax(0, 1fr); }
  .cmp-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) { #art-list .cards { grid-template-columns: minmax(0, 1fr); } }

/* Navigation mobile : une seule ligne défilante */
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; padding-block: 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; margin-inline: -4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; padding: 7px 11px; font-size: .9rem; }
}

/* ================= Couche premium : mouvement, finitions, mobile ================= */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-sm: 0 1px 2px rgba(15, 29, 36, .05), 0 2px 6px -2px rgba(15, 29, 36, .06);
  --shadow-md: 0 1px 2px rgba(15, 29, 36, .04), 0 12px 32px -16px rgba(15, 29, 36, .22);
  --shadow-lg: 0 2px 4px rgba(15, 29, 36, .04), 0 28px 60px -28px rgba(15, 29, 36, .32);
}

/* Mobile natif */
html { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; }
a, button, .chip, .btn, input, select, label, summary, .blip { touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1em); }
p, li { text-wrap: pretty; }

/* Typographie de précision */
.kpi-v, .exp-big, .res-v, .val, .bar-v, td.num, output { font-feature-settings: "tnum" 1, "zero" 1; }
.hero h1 { text-wrap: balance; }

/* Boutons : retour tactile */
.btn, .chip, .radar-tools button, .nav a, .cta-link { transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn:active, .chip:active, .radar-tools button:active, .nav a:active { transform: scale(0.97); }
.btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
  .btn:active { transform: scale(0.97); }
}

/* Cartes : profondeur et survol réservé à la souris */
.card, .kpi, .exp, .xcard, .aside-card, .cmp-card, .faq details, .table-wrap, .answer, .proj, .form-grid { box-shadow: var(--shadow-sm); }
.card { transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.card:hover { transform: none; box-shadow: var(--shadow-sm); }
.card .thumb { transition: transform 600ms var(--ease-out); }
.theme-tile { transition: background-color 200ms ease, transform 240ms var(--ease-out); }
.theme-tile:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .card:hover .thumb { transform: scale(1.03); }
  .theme-tile:hover { transform: translateY(-2px); }
}
.card:active { transform: scale(0.99); }

/* En-tête qui prend de la profondeur au défilement */
.site-header { transition: box-shadow 200ms ease, background-color 200ms ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--rule), 0 10px 30px -20px rgba(15, 29, 36, .35); }

/* Chiffres clés : liseré de thème */
.kpi { position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--theme), color-mix(in srgb, var(--theme) 0%, transparent)); }

/* Panneau d'info du radar : transition douce entre deux placements */
.radar-info { transition: filter 180ms ease, opacity 180ms ease; }
.radar-info.swap { filter: blur(2px); opacity: .6; }
.radar .blip .dot { transition: r 200ms var(--ease-out), stroke-width 200ms ease; }
.radar .blip.on .dot { r: 9; }
.radar .blip.dim { transition: opacity 220ms ease; }

/* Comparaison : entrée des cartes */
.cmp-card { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .cmp-card { opacity: 0; transform: translateY(6px) scale(0.98); } }
.quiz-res, .radar-info { @starting-style { opacity: 0; } }
.quiz-res { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .quiz-res { opacity: 0; transform: translateY(6px); } }

/* FAQ : ouverture fluide */
.faq summary::after { transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Sélection et défilement */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.nav, .table-wrap { scrollbar-width: thin; }

/* Entrée de la page d'accueil : cascade courte, une seule fois */
@media (prefers-reduced-motion: no-preference) {
  .hero-txt > *, .hero-radar, .kpi { animation: rise 560ms var(--ease-out) both; }
  .hero-txt > :nth-child(1) { animation-delay: 0ms; }
  .hero-txt > :nth-child(2) { animation-delay: 60ms; }
  .hero-txt > :nth-child(3) { animation-delay: 120ms; }
  .hero-txt > :nth-child(4) { animation-delay: 180ms; }
  .hero-txt > :nth-child(5) { animation-delay: 240ms; }
  .hero-radar { animation-delay: 120ms; animation-duration: 800ms; }
  .kpi:nth-child(1) { animation-delay: 260ms; } .kpi:nth-child(2) { animation-delay: 300ms; }
  .kpi:nth-child(3) { animation-delay: 340ms; } .kpi:nth-child(4) { animation-delay: 380ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .reveal { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .reveal.pending { opacity: .001; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
  .radar-info, .quiz-res, .cmp-card { transition: opacity 150ms ease !important; }
}

/* =====================================================================
   Habillage « page produit » : système, blanc, tuiles gris clair, titres XXL
   Mise en page : sections centrées, une idée par écran, tuiles arrondies 28px
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --link: #0066cc;
  --soft: #f5f5f7;
  --signal: #bf4800;
  --warn-bg: #fff6ed;
  --night: #000000;
  --night-ink: #f5f5f7;
  --phos: #5ee6cf;
  --amber: #ffb35c;
  --c-garanti: #00856f;
  --c-av: #0071e3;
  --c-immo: #c4511c;
  --c-fisc: #9a6a00;
  --c-bourse: #1e7a45;
  --c-marches: #6a4fd0;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-data: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  --r-xl: 28px;
  --measure: 66ch;
}
body { font-family: var(--font-body); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; color: var(--ink); background: #fff; font-feature-settings: "tnum" 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.eyebrow { font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--signal); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; color: var(--muted); letter-spacing: -0.02em; }
.num, td.num, .data, .kpi-v, .exp-big, .res-v, .bar-v, output, .val { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Lien « En savoir plus › » */
.link-more { color: var(--link); font-size: 1.05rem; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .link-more:hover::after { transform: translate(3px, -1px); } }

/* Boutons pilule bleus */
.btn { background: var(--accent); color: #fff; font-family: var(--font-body); font-weight: 400; font-size: 1.02rem; letter-spacing: -0.01em; padding: 12px 22px; border-radius: 980px; box-shadow: none; }
.btn:hover { background: #0077ed; box-shadow: none; text-decoration: none; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-line { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn-line:hover { background: rgba(0, 113, 227, .06); }
.btn-phos { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--link); box-shadow: none; }

/* Barre de navigation translucide */
.site-header { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.site-header .wrap { max-width: 1024px; padding-block: 6px; min-height: 48px; }
.site-header.scrolled { box-shadow: none; }
body::before { background: rgba(255, 255, 255, .72); }
.brand svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name small { display: none; }
.nav { font-family: var(--font-body); font-size: .8rem; gap: 2px 4px; }
.nav a { color: rgba(0, 0, 0, .8); padding: 6px 10px; border-radius: 980px; letter-spacing: -0.01em; }
.nav a:hover { background: transparent; color: #000; text-decoration: none; }
.nav a[aria-current="page"] { background: transparent; color: #000; font-weight: 600; }
.nav .cta-link { background: var(--accent); color: #fff; font-weight: 400; padding: 5px 12px; margin-left: 8px; }
.nav .cta-link:hover { background: #0077ed; color: #fff; }

/* Bandeau des taux : fin, noir */
.releve { background: #000; border: 0; }
.stamp { color: var(--amber); font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.tk { font-family: var(--font-body); font-size: .78rem; }
.tk em { color: #a1a1a6; }
.tk strong { color: #fff; font-weight: 600; }
.tk small { color: #6e6e73; }
.tk::after { color: #424245; }

/* HÉROS : noir, centré, titre géant */
.hero { background: radial-gradient(60% 50% at 50% 70%, rgba(94, 230, 207, .14), transparent 70%), #000; padding-block: clamp(56px, 9vw, 110px) 120px; text-align: center; }
.hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; max-width: 1024px; }
.hero-txt { display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { color: var(--amber); justify-content: center; font-size: .9rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.8rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: #f5f5f7; margin: 0 0 .28em; }
.hero .hl { background: linear-gradient(100deg, #5ee6cf 0%, #2fb7ff 55%, #7d8bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.hero .hl::after { display: none; }
.hero .lead { color: #a1a1a6; max-width: 34ch; margin-inline: auto; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.hero-cta { justify-content: center; align-items: center; gap: 28px; margin: 30px 0 34px; }
.hero .link-more { color: #2997ff; }
.hero-proof { border-top: 0; max-width: 720px; margin-inline: auto; gap: 24px; padding-top: 0; }
.hero-proof li { align-items: center; text-align: center; }
.hero-proof strong { color: #f5f5f7; font-weight: 600; font-size: 1rem; }
.hero-proof span { color: #86868b; }
.hero-radar { width: min(100%, 860px); margin-top: 18px; }
.hero-radar figcaption { color: #86868b; font-size: .78rem; }
.radar .b-lbl { font-family: var(--font-display); font-weight: 600; stroke: #000; }
.radar .b-val, .radar .ring-lbl, .radar .zone-lbl, .radar .infl-lbl { font-family: var(--font-display); stroke: #000; }
.radar .zone-lbl { letter-spacing: .04em; }
.radar-tools { margin-bottom: 14px; }
.radar-tools button { font-family: var(--font-body); font-size: .85rem; border-color: rgba(255, 255, 255, .22); color: #f5f5f7; padding: 8px 16px; }
.radar-tools button[aria-pressed="true"] { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.radar-info { background: rgba(255, 255, 255, .07); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); text-align: left; }
.radar-info a { color: #2997ff; }

/* Chiffres clés : tuiles géantes */
.kpis { margin-top: -64px; }
.kpi-grid { max-width: 1024px; margin-inline: auto; gap: 16px; }
.kpi { background: var(--tile); border: 0; border-radius: var(--r-xl); padding: 28px 24px 26px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); text-align: center; align-items: center; }
.kpi::before { display: none; }
.kpi-v { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(180deg, var(--theme), color-mix(in srgb, var(--theme) 65%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-l { font-weight: 600; font-size: 1.02rem; }
.kpi-s { font-size: .85rem; }

/* Sections : titres centrés en deux tons */
.wrap { max-width: 1024px; }
main > .wrap, .page-pad { padding-block: 64px 80px; }
.sec { margin-top: clamp(80px, 10vw, 130px); }
.sec-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 36px; }
.sec-head h2 { max-width: 22ch; }
.sec-head h2 span { color: var(--muted); }
.sec-head a { font-family: var(--font-body); font-weight: 400; }

/* Brief : tuile claire, date géante */
.brief { margin-top: clamp(80px, 10vw, 120px); background: var(--tile); border: 0; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); box-shadow: none; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.brief-day { font-family: var(--font-display); font-weight: 700; font-size: 6rem; letter-spacing: -0.06em; background: linear-gradient(180deg, #ff9f0a, #ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brief-month { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.brief h2 { font-size: 2rem; }
.brief li { border-bottom-color: rgba(0, 0, 0, .08); border-bottom-style: solid; }
.brief li::before { background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.brief li strong { font-weight: 600; font-size: 1.08rem; }
.brief li a { font-family: var(--font-body); font-weight: 400; }

/* Tuiles d'articles : sans bordure, gris clair, grands arrondis */
.cards { gap: 20px; }
.card { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; }
.card .thumb { background: transparent; }
.card-body { padding: 22px 26px 26px; gap: 8px; }
.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; }
.cards-feature .card-feature h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tag { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .78rem; }
.card .meta { font-family: var(--font-body); font-size: .78rem; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: scale(1.012); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35); }
  .card:hover .thumb { transform: scale(1.04); }
}

/* Experts : chiffres XXL */
.exp-grid { gap: 20px; }
.exp, .xcard { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; padding: 30px; text-align: left; }
.exp-src { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.exp-big { font-size: 3rem !important; font-weight: 700; letter-spacing: -0.045em; }

/* Thèmes */
.theme-tile { border: 0; border-radius: var(--r-xl); background: var(--tile); min-height: 200px; padding: 28px; }
.theme-tile:hover { background: #ececf0; }
.tt-k { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.tt-r { font-family: var(--font-body); font-size: .8rem; }

/* Simulateur, newsletter, bilan : tuiles centrées */
.sim { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; padding: clamp(28px, 5vw, 56px); margin-top: clamp(80px, 10vw, 130px); }
.sim h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sim .eyebrow { color: var(--signal); }
.money output { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.04em; color: var(--ink); }
input[type="range"] { accent-color: var(--accent); }
.res { background: #fff; border: 0; border-radius: var(--r); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.res-v { color: var(--ink); font-weight: 600; }
.news { background: var(--tile); border-radius: var(--r-xl); border: 0; margin-top: 24px; padding: clamp(28px, 5vw, 56px); }
.news .eyebrow { color: var(--signal); }
.nl-row input { border-color: var(--rule); border-radius: 12px; }
.bilan-band { background: var(--tile); border: 0; border-radius: var(--r-xl); text-align: center; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: clamp(40px, 7vw, 80px) 24px; margin-block: 24px 24px; }
.bilan-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.bilan-band p { margin-inline: auto; font-size: 1.15rem; max-width: 46ch; }

/* Pages intérieures */
.art-hero { background: #fff; border: 0; padding-block: 56px 24px; }
.art-hero-in { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: 36px; }
.art-hero-txt { display: flex; flex-direction: column; align-items: center; }
.art-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -0.04em; max-width: 20ch; }
.standfirst { margin-inline: auto; font-size: 1.25rem; color: var(--muted); }
.crumb { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.byline { font-family: var(--font-body); justify-content: center; }
.thumb-big { width: min(100%, 900px); border-radius: var(--r-xl); box-shadow: none; }
.art-layout { gap: 48px; }
.answer { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; padding: 30px 28px 22px; font-size: 1.08rem; }
.answer-k { background: var(--ink); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.aside-card, .aside-cta { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; }
.aside-card h2, .toc h2 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; }
.table-wrap { border: 0; border-radius: var(--r); box-shadow: none; background: var(--tile); }
th { background: transparent; font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .82rem; }
th, td { border-bottom-color: rgba(0, 0, 0, .08); }
td.num { color: var(--ink); font-weight: 500; }
caption { border-top-color: rgba(0, 0, 0, .08); }
.risk { background: var(--warn-bg); border: 0; border-radius: var(--r); }
.faq details { background: var(--tile); border: 0; border-radius: var(--r); box-shadow: none; }
.faq summary::after { font-family: var(--font-body); color: var(--link); }
.form-grid, .proj, .quiz, .cmp-filters, .bars, .confirm { background: var(--tile); border: 0; border-radius: var(--r-xl); box-shadow: none; }
.quiz fieldset { background: #fff; border: 0; border-radius: var(--r); }
.cmp-card, .side { background: var(--tile); border: 0; border-radius: var(--r-xl); }
.press { background: var(--tile); border: 0; border-radius: var(--r-xl); }
.chip { border-color: transparent; background: var(--tile); }
.chip[aria-pressed="true"] { background: var(--ink); }
.filterbar input[type="search"] { background: var(--tile); border: 0; }
.field input, .field select, .field textarea { background: #fff; border-color: var(--rule); border-radius: 12px; }

/* Pied de page à la manière d'une page produit */
.site-footer { background: var(--tile); border-top: 0; font-size: .76rem; color: var(--muted); margin-top: 80px; }
.site-footer .wrap { padding-block: 36px 28px; }
.foot-grid { border-bottom: 1px solid var(--rule); }
.site-footer h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); font-size: .78rem; }
.site-footer nav a { color: #424245; font-size: .78rem; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand .brand-name { font-size: .9rem; }
.foot-copy { font-family: var(--font-body); }

/* Apparition au défilement façon page produit : titres qui montent */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec-head h2, .bilan-band h2, .brief-head { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes lift { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    .hero-radar svg { animation: radar-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes radar-in { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, body::before { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .radar-info { background: #1d1d1f; backdrop-filter: none; }
}

@media (max-width: 980px) {
  .brief { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-proof strong { font-size: .82rem; }
  .hero-cta { flex-direction: column; gap: 16px; }
  .site-header .wrap { padding-block: 8px; }
  .kpi { padding: 22px 18px; }
  .exp-big { font-size: 2.4rem !important; }
}
.radar .zone-lbl, .radar .ring-lbl { stroke: none; }
.radar .zone-lbl { font-size: 13px; font-weight: 600; }
@media (max-width: 460px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 18px 12px; border-radius: 22px; }
  .kpi-v { font-size: 2.2rem; }
  .kpi-s { display: none; }
}

/* =====================================================================
   Tableau de bord : panneau sombre, cartes en verre, globe de particules
   ===================================================================== */
.dash { background: radial-gradient(70% 40% at 20% 0%, rgba(94,230,207,.13), transparent 70%), radial-gradient(50% 40% at 90% 30%, rgba(100,120,255,.10), transparent 70%), #05080a; color: #e8eef0; padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.dash-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.dash-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.dash-crumb { margin: 0 0 6px; font-size: .85rem; color: #7f8b90; } .dash-crumb span { margin: 0 4px; }
.dash h1 { color: #f5f7f8; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 0; letter-spacing: -0.035em; }
.dash-sub { margin: 6px 0 0; color: #8d999e; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #b9c6ca; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #5ee6cf; box-shadow: 0 0 0 0 rgba(94,230,207,.6); }
@media (prefers-reduced-motion: no-preference) { .live i { animation: pulse 2.2s ease-out infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,230,207,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(94,230,207,0); } }
.live.sm { padding: 4px 10px; font-size: .74rem; }
.sw { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: #d5dee1; cursor: pointer; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-ui { width: 38px; height: 22px; border-radius: 999px; background: #2a3236; position: relative; transition: background 200ms var(--ease-out); }
.sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-out); }
.sw input:checked + .sw-ui { background: #1fae95; } .sw input:checked + .sw-ui::after { transform: translateX(16px); }
.sw input:focus-visible + .sw-ui { outline: 2px solid #5ee6cf; outline-offset: 2px; }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 40px -24px rgba(0,0,0,.8); min-width: 0; }
.gc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gc-k { font-size: .9rem; font-weight: 600; color: #dfe7ea; }
.gc-note { font-size: .76rem; color: #7f8b90; }
.gc-s { color: #8d999e; font-size: .86rem; margin: 4px 0 0; line-height: 1.4; }
.gc-foot { color: #6f7b80; font-size: .74rem; margin: 10px 0 0; line-height: 1.45; }

.globe-card { grid-column: span 7; position: relative; overflow: hidden; background: radial-gradient(80% 70% at 60% 60%, rgba(60,90,220,.28), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.gc-big { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 600; letter-spacing: -0.04em; margin: 4px 0 0; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.gc-big small { font-size: .38em; color: #8d999e; letter-spacing: 0; font-weight: 500; }
#globe { display: block; width: min(100%, 440px); aspect-ratio: 1; margin: -6px auto 0; touch-action: none; cursor: grab; }
#globe:active { cursor: grabbing; }
.gc-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gc-legend button { font: inherit; font-size: .8rem; color: #cfd8db; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 6px 12px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; transition: background 160ms var(--ease-out), transform 120ms var(--ease-out); }
.gc-legend button:active { transform: scale(.97); }
.gc-legend button[aria-pressed="true"] { background: rgba(94,230,207,.16); border-color: rgba(94,230,207,.5); color: #fff; }
.gc-legend i { width: 8px; height: 8px; border-radius: 50%; }
.lg-beat { background: #5ee6cf; } .lg-under { background: #7888ff; } .lg-gar { background: transparent; box-shadow: inset 0 0 0 2px #5ee6cf; }
.gc-tip { text-align: center; font-size: .82rem; color: #9fb0b4; min-height: 1.4em; margin: 10px 0 0; } .gc-tip strong { color: #fff; }

.dk-col { grid-column: span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.dk-col .gauge-card { grid-column: 1 / -1; }
.dk { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.dk-h { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: .82rem; color: #b9c6ca; }
.chip { font-style: normal; font-size: .72rem; padding: 2px 7px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.pos { background: rgba(94,230,207,.14); color: #5ee6cf; } .chip.neg { background: rgba(255,122,89,.14); color: #ff9a7f; }
.dk-v { font-size: 1.9rem; font-weight: 600; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dk-s { font-size: .76rem; color: #7f8b90; line-height: 1.35; min-height: 2.7em; }
.dk-bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); margin-top: 6px; }
.dk-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 40%, transparent), var(--t)); }
.dk-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #ffb35c; border-radius: 2px; }

.chart-card { grid-column: span 12; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-chart .gl { stroke: rgba(255,255,255,.06); } .dash-chart .gl.z { stroke: rgba(255,255,255,.22); }
.dash-chart .ax { fill: #6f7b80; font-size: 11px; }
.dash-chart .bv { fill: #e8eef0; font-size: 11px; font-variant-numeric: tabular-nums; }
.dash-chart .bn { fill: #9fb0b4; font-size: 11px; }
.dash-chart .ng { opacity: .78; }
.dash-chart .infl { stroke: #ffb35c; stroke-dasharray: 5 5; stroke-width: 1.5; } .dash-chart .infl-t { fill: #ffb35c; font-size: 11px; }
.dash-chart a:hover rect { filter: brightness(1.25); }
@media (prefers-reduced-motion: no-preference) {
  .dash-chart .bar-g { animation: barIn 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); transform-box: fill-box; transform-origin: bottom; }
  @keyframes barIn { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }
}

.gauge-card { text-align: center; padding-bottom: 14px; }
.gauge-card .gauge { width: min(100%, 210px); }
.gauge-card .gc-h { justify-content: flex-start; }
.gauge { width: min(100%, 240px); margin: 6px auto 0; display: block; }
.g-bg, .g-fg { fill: none; stroke-width: 14; stroke-linecap: round; } .g-bg { stroke: rgba(255,255,255,.07); }
.g-fg { stroke: url(#gg); stroke-dasharray: var(--p) 100; }
.g-mid { stroke: rgba(255,255,255,.35); stroke-width: 2; }
.ga-v { font-size: 2.4rem; font-weight: 600; color: #ff9a7f; margin: -46px 0 0; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ga-v small { font-size: .45em; color: #8d999e; }
.gauge-card .gc-s { margin-top: 14px; }
.ga-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; text-align: left; }
.ga-cells div { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.ga-cells span { font-size: .72rem; color: #7f8b90; } .ga-cells strong { font-size: .86rem; color: #e8eef0; font-weight: 600; }

.flux-card { grid-column: span 5; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.fx:first-of-type { border-top: 0; }
.fx-n { font-size: .9rem; color: #e8eef0; font-weight: 600; line-height: 1.25; } .fx-n small { display: block; font-weight: 400; color: #7f8b90; font-size: .72rem; }
.fx-tr { position: relative; height: 10px; background: rgba(255,255,255,.05); border-radius: 6px; }
.fx-tr::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(255,255,255,.3); }
.fx-tr i { position: absolute; top: 0; bottom: 0; border-radius: 6px; } .fx-tr i.up { background: linear-gradient(90deg, rgba(94,230,207,.3), #5ee6cf); } .fx-tr i.dn { background: linear-gradient(270deg, rgba(255,122,89,.3), #ff7a59); }
.fx-v { font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .fx-v.pos { color: #5ee6cf; } .fx-v.neg { color: #ff9a7f; }

.feed-card { grid-column: span 7; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.06); }
.feed li:first-child { border-top: 0; }
.fd-dot { width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--t) 30%, #0b1013); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 60%, transparent); }
.feed a { color: #e8eef0; font-size: .9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed a:hover { color: #5ee6cf; text-decoration: none; }
.fd-tag { font-size: .72rem; color: #7f8b90; white-space: nowrap; }

.heat-card { grid-column: span 12; }
.heat-wrap { overflow-x: auto; }
.heat { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .8rem; min-width: 640px; }
.heat th, .heat td { border: 0; background: none; padding: 8px 10px; text-align: left; }
.heat thead th { color: #7f8b90; font-weight: 500; font-size: .74rem; }
.heat tbody th a { color: #e8eef0; font-weight: 600; } .heat tbody th a:hover { color: #5ee6cf; text-decoration: none; }
.heat td.h { border-radius: 8px; color: #e8eef0; white-space: nowrap; }
.heat tbody tr:hover td.h { filter: brightness(1.25); }
.heat .r0 { background: rgba(255,255,255,.05); }
.heat .r1 { background: rgba(70,110,255,.16); } .heat .r2 { background: rgba(70,110,255,.28); } .heat .r3 { background: rgba(70,140,255,.42); } .heat .r4 { background: rgba(90,170,255,.58); } .heat .r5 { background: rgba(120,200,255,.72); color: #04121a; }
.heat .g5 { background: rgba(94,230,207,.5); color: #03140f; } .heat .g2 { background: rgba(94,230,207,.14); } .heat .g1 { background: rgba(255,122,89,.18); }
.heat .k1 { background: rgba(94,230,207,.5); color: #03140f; } .heat .k2 { background: rgba(255,179,92,.3); } .heat .k3 { background: rgba(255,122,89,.36); }

@media (max-width: 980px) {
  .globe-card, .dk-col, .chart-card, .gauge-card, .flux-card, .feed-card { grid-column: span 12; }
}
@media (max-width: 520px) {
  .dk-col { grid-template-columns: 1fr 1fr; gap: 10px; } .dk { padding: 12px; } .dk-v { font-size: 1.5rem; }
  .dash-actions { width: 100%; }
  .fd-tag { display: none; } .feed li { grid-template-columns: auto minmax(0, 1fr); }
  .fx { grid-template-columns: minmax(0, 1fr) auto; } .fx-tr { grid-column: 1 / -1; grid-row: 2; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formulaire de bilan : choix du moyen de contact */
fieldset.canal { border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
fieldset.canal legend { padding: 0 6px; font-weight: 600; }
fieldset.canal label { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.field[hidden] { display: none !important; }
