
:root {
  /* Kapiry : vert forêt et vert Kapiry pour la confiance, or pour le rendement et le surligneur, blancs légèrement verts. */
  --bg: #FFFFFF;
  --bg-2: #F3F7F5;
  --bg-3: #E6EEEA;
  --sand: #F3F7F5;
  --ink: #0E1F18;
  --ink-2: #2B3A34;
  --muted: #5A6A63;
  --faint: #95A39D;
  --line: #E1E9E5;
  --line-2: #CCD8D2;
  --brand: #0E6B4E;
  --brand-2: #0A5840;
  --brand-soft: #E2F1E9;
  --brand-ink: #FFFFFF;
  --gold: #F5C451;
  --gold-ink: #8A6100;
  --hl: rgba(245,196,81,.62);
  --accent: #E0A526;
  --accent-ink: #8A6100;
  --accent-soft: #FCF1D6;
  --forest: #0A2A21;
  --forest-3: #071F18;
  --hero: #0A2A21;
  --hero-2: #103529;
  --hero-ink: #EEF5F1;
  --hero-muted: #9CB4AA;
  --hero-line: #1E4537;
  --pos: #12805C;
  --neg: #C8402F;
  --warn: #B7791F;
  --gA: #12805C; --gB: #6BA539; --gC: #DDA326; --gD: #E27B30; --gE: #CF4638;
  --d1: #0E6B4E; --d2: #3F9A78; --d3: #9ACDB7; --d4: #E0A526; --d5: #F0C871; --d6: #5A6A63; --d7: #B8C7C0; --d8: #DCE6E1;
  --shadow: 0 1px 2px rgba(10,42,33,.05), 0 8px 24px rgba(10,42,33,.07);
  --shadow-lg: 0 2px 4px rgba(10,42,33,.05), 0 24px 56px rgba(10,42,33,.14);
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --serif: var(--display);
  --wrap: 1180px;
  color-scheme: light;
}



* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); border-bottom: 1px solid var(--line); }
.top.on-hero { background: color-mix(in srgb, var(--hero) 78%, transparent); border-bottom-color: var(--hero-line); color: var(--hero-ink); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -0.045em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.logo-mark svg { display: block; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: inherit; opacity: .78; }
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 7%, transparent); }
.nav a[aria-current="page"] { opacity: 1; }
.top-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; }
.top.on-hero .icon-btn { border-color: var(--hero-line); }
@media (max-width: 900px) {
  .nav { display: none; }
  .top .wrap { height: 58px; gap: 12px; }
}
@media (min-width: 901px) { .only-mobile { display: none !important; } }
@media (max-width: 900px) { .only-desk { display: none !important; } }

/* ---------- Thème clair / sombre ---------- */
.theme-btn .th-sun { display: none; }


.theme-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--bg-3); }
.theme-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.theme-seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 4px; }

html.theme-anim, html.theme-anim * { transition: background-color .25s ease, border-color .25s ease, color .25s ease !important; }

/* ---------- Produits ---------- */
.prod { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, currentColor 7%, transparent); }
.prod a { padding: 5px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; opacity: .7; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.prod a:hover { opacity: 1; }
.prod a[aria-current="page"] { opacity: 1; background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.top.on-hero .prod a[aria-current="page"] { background: var(--hero-ink); color: var(--hero); }
.soon { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); letter-spacing: 0; }
.top.on-hero .soon { background: color-mix(in srgb, var(--brand) 30%, transparent); color: #C9D3FF; }
@media (max-width: 1100px) { .nav a[data-nav="fiscalite"] { display: none; } }
@media (max-width: 1060px) { .prod .soon { display: none; } .top .wrap { gap: 18px; } }
@media (max-width: 900px) { .prod { display: none; } }
.sheet .sheet-prod { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 10px; }
.sheet .sheet-prod a { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; white-space: nowrap; }
.sheet .sheet-prod a[aria-current="page"] { border-color: var(--brand); color: var(--brand); }

/* ---------- Capital gelé ---------- */
.gel { margin: 8px 0 56px; }
.gel-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.gel-h h2 { font-size: clamp(22px, 2.6vw, 28px); }
.gel-h p { color: var(--muted); max-width: 46em; margin-top: 8px; }
.gel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .gel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gel-grid { grid-template-columns: 1fr; } }
.gel-card { text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--bg); display: grid; gap: 14px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.gel-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.gel-card .hd { display: flex; gap: 12px; align-items: center; }
.gel-card .n { font-weight: 600; }
.gel-card .s { font-size: 13px; color: var(--muted); }
.gel-card .nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.gel-card .nums b { display: block; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gel-card .nums span { font-size: 12px; color: var(--muted); }
.gel-bar { position: relative; height: 10px; border-radius: 6px; background: var(--bg-3); }
.gel-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--warn); }
.gel-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); text-decoration: none; }
.gel-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; gap: 8px; }
.f-score.gel-score { display: grid; gap: 2px; }
.f-score.gel-score .lbl { white-space: nowrap; }
.gel-note { border-left: 3px solid var(--warn); padding: 4px 0 4px 14px; color: var(--ink-2); }

/* ---------- Page assurance-vie ---------- */
.av-hero { padding: 56px 0 8px; }
.av-hero h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 15em; }
.av-hero p.lead { color: var(--muted); font-size: 18px; max-width: 38em; margin-top: 16px; }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .av-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .av-grid { grid-template-columns: 1fr; } }
.av-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); }
.av-card .gi { margin-bottom: 14px; }
.av-card h3 { font-size: 17px; margin-bottom: 6px; }
.av-card p { color: var(--muted); font-size: 14.5px; }
.av-card .pts { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 12px; display: block; }
.av-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .av-two { grid-template-columns: 1fr; } }
.av-list { display: grid; gap: 12px; margin-top: 14px; }
.av-list div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.av-list .ico { color: var(--brand); margin-top: 2px; }
.av-list b { display: block; }
.av-list span { color: var(--muted); font-size: 14.5px; }
.home-prod { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.home-prod h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.home-prod p { color: var(--muted); margin-top: 6px; max-width: 46em; }
@media (max-width: 700px) { .home-prod { grid-template-columns: 1fr; } }

/* ---------- Parcours guidé ---------- */
.intent-label { font-size: 14px; color: var(--hero-muted); margin-top: 30px; font-weight: 500; }
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; max-width: 580px; }
.intent button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--hero-ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; transition: background .15s, border-color .15s, transform .15s; min-width: 0; }
.intent button:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.intent .gi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; flex: none; }
.intent small { display: block; font-weight: 400; color: var(--hero-muted); font-size: 12.5px; margin-top: 1px; }
@media (max-width: 420px) { .intent { grid-template-columns: 1fr; } }
.search.compact { margin-top: 14px; }
.search.compact .search-box { height: 50px; border-radius: 14px; box-shadow: none; }
.hero-alt { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 14.5px; color: var(--hero-muted); }
.hero-alt .lnk { color: var(--hero-ink); font-weight: 600; background: none; border: 0; padding: 0; display: inline-flex; gap: 7px; align-items: center; }
.hero-alt .lnk:hover { color: #C9D3FF; }
.adv-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; white-space: nowrap; }
.top.on-hero .adv-link { border-color: var(--hero-line); }
@media (max-width: 1240px) { .adv-link span { display: none; } .adv-link { width: 40px; padding: 0; justify-content: center; } }

/* Comment ça marche */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: how; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.how-step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.how-step .num { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; }
.how-step h3 { font-size: 19px; margin-top: 6px; }
.how-step p { color: var(--muted); font-size: 14.5px; }
.how-step .act { margin-top: auto; padding-top: 8px; }
.mock { border-radius: 14px; background: var(--bg-2); padding: 14px; display: grid; gap: 8px; margin: 4px 0 6px; font-size: 13.5px; }
.mock .chip-m { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; }
.mock .chip-m.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mock .chip-m .ico { color: var(--brand); }
.mock .row-m { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.mock .row-m b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mock .call { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.mock .call .gi { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.mock .call small { display: block; color: var(--muted); }

/* Les risques, avec de vrais cas */
.risks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .risks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .risks { grid-template-columns: 1fr; } }
.risk { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.risk .big { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--neg); line-height: 1; margin-top: 4px; }
.risk h3 { font-size: 17px; }
.risk p { font-size: 14.5px; color: var(--muted); }
.risk .case { font-size: 13.5px; color: var(--ink-2); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; margin-top: auto; }
.risk .case a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Glossaire */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; padding: 0; cursor: help; flex: none; }
.tip:hover, .tip[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.tip-pop { position: absolute; z-index: 90; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-lg); }
.tip-pop b { display: block; margin-bottom: 3px; font-size: 14px; }
.tip-pop[hidden] { display: none; }

/* Votre argent, décomposé */
.dec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dec-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; gap: 3px; }
.dec-bar > div { display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; min-width: 0; }
.dec-bar .f { background: color-mix(in srgb, var(--warn) 18%, var(--bg)); color: var(--warn); border-radius: 12px 0 0 12px; }
.dec-bar .k { background: var(--brand); color: #fff; flex: 1; border-radius: 0 12px 12px 0; justify-content: flex-end; }
.dec-bar .f:empty { padding: 0; }
.dec-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.dec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 640px) { .dec-grid { grid-template-columns: 1fr; } }
.dec-grid > div { background: var(--bg-2); border-radius: 14px; padding: 14px; }
.dec-grid b { display: block; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dec-grid span { font-size: 13px; color: var(--muted); }
.dec-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Test : réactions et sélection */
.react { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; animation: rise .35s ease; }
.react .ico { color: var(--brand); margin-top: 2px; flex: none; }
.react.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.react.warn .ico { color: var(--warn); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .react { animation: none; } }
.est { border-radius: 14px; background: var(--bg-2); padding: 12px 14px; }
.est b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.est span { display: block; font-size: 12.5px; color: var(--muted); }
.alloc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 22px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: var(--bg); }
@media (max-width: 900px) { .alloc { grid-template-columns: 1fr; gap: 18px; padding: 18px; } }
.alloc h2 { font-size: 24px; }
.alloc .stack { height: 16px; margin: 16px 0 12px; }
.alloc-rows { display: grid; gap: 8px; }
.alloc-rows div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-size: 14.5px; }
.alloc-rows i { width: 12px; height: 12px; border-radius: 4px; }
.alloc-rows b { font-variant-numeric: tabular-nums; }
.alloc-rows em { font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.alloc-out { background: var(--hero); color: var(--hero-ink); border-radius: 18px; padding: 22px; display: grid; gap: 6px; }
.alloc-out .bignum { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.alloc-out .l { color: var(--hero-muted); font-size: 14px; }
.alloc-out .btn { margin-top: 12px; }

/* Rappel par un conseiller */
.modal-bg { position: fixed; inset: 0; z-index: 95; background: rgba(5,7,12,.5); backdrop-filter: blur(3px); }
.modal { position: fixed; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--bg); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.modal[hidden], .modal-bg[hidden] { display: none; }
/* Texte net : centrage sans demi-pixel (17/11/2026) */
@media (min-width: 601px) { .modal { left: 0; right: 0; top: 0; bottom: 0; margin: auto; height: fit-content; transform: none; } }
.modal .sub { color: var(--ink-2); }
@media (max-width: 600px) { .modal { top: auto; bottom: 0; left: 0; transform: none; width: 100%; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.modal h2 { font-size: 24px; padding-right: 40px; }
.modal .sub { color: var(--muted); margin-top: 6px; }
.modal .pros { display: grid; gap: 8px; margin: 16px 0 18px; font-size: 14.5px; }
.modal .pros div { display: flex; gap: 10px; align-items: flex-start; }
.modal .pros .ico { color: var(--pos); margin-top: 2px; flex: none; }
.modal form { display: grid; gap: 10px; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .modal .two { grid-template-columns: 1fr; } }
.modal .lab { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.modal .chips { flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: var(--ink-2); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn.light:hover { background: var(--bg-2); }
.btn.glass { background: rgba(255,255,255,.08); color: var(--hero-ink); border-color: rgba(255,255,255,.14); }
.btn.glass:hover { background: rgba(255,255,255,.14); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.txt-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0; }
.txt-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Chips, badges, grade ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tag.pos { color: var(--pos); background: color-mix(in srgb, var(--pos) 10%, transparent); }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.tag.brand { color: var(--brand); background: var(--brand-soft); }
.grade { display: inline-flex; align-items: center; gap: 8px; }
.grade b { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; background: var(--g); letter-spacing: 0; }
.grade span { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.grade span small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.grade.lg b { width: 52px; height: 52px; border-radius: 14px; font-size: 28px; }
.grade.lg span { font-size: 26px; letter-spacing: -0.03em; }
.avatar { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; background: var(--av-bg); color: var(--av-ink); flex: none; }
.avatar.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 19px; }
.avatar.has-logo { background: var(--logo-bg, #FFFFFF); border: 1px solid var(--line); overflow: hidden; }
.avatar.has-logo.full, .avatar.has-logo.dark { border-color: transparent; }
.avatar.has-logo.full img { width: 100%; height: 100%; object-fit: cover; }
.avatar.has-logo img { width: 78%; height: 78%; object-fit: contain; display: block; }
.avatar.has-logo .ini { display: none; }
.avatar.has-logo.broken { background: var(--av-bg); border-color: transparent; }
.avatar.has-logo.broken img { display: none; }
.avatar.has-logo.broken .ini { display: block; }
.verify { font-size: 11.5px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.dotsep::before { content: "·"; margin: 0 6px; color: var(--faint); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero); color: var(--hero-ink); overflow: hidden; margin-top: -64px; padding-top: 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(640px 360px at 78% 8%, rgba(43,80,255,.42), transparent 70%),
  radial-gradient(420px 260px at 8% 100%, rgba(43,80,255,.16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero .wrap > * { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--hero-muted); }
.hero-badge i { font-style: normal; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 72px); letter-spacing: -0.05em; line-height: 1.0; margin-top: 22px; }
.hero h1 .soft { color: var(--hero-muted); }
.hero .lead { font-size: 18px; color: var(--hero-muted); max-width: 33em; margin-top: 20px; line-height: 1.55; }
.search { position: relative; margin-top: 30px; max-width: 560px; }
.search-box { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 18px; border-radius: 16px; background: #fff; color: #0B0D12; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.search-box input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: #0B0D12; }
.search-box input::placeholder { color: #8A91A0; }
.search-box .btn { height: 44px; }
.search-results { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; max-height: 360px; overflow: auto; }
.search-results[hidden] { display: none; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; width: 100%; background: none; border: 0; text-align: left; }
.sr-item:hover, .sr-item.active { background: var(--bg-2); }
.sr-item .n { font-weight: 600; }
.sr-item .s { font-size: 13px; color: var(--muted); }
.sr-item .grade { margin-left: auto; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--hero-muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--brand); stroke-width: 2.2; }
.hero-card { background: var(--hero-2); border: 1px solid var(--hero-line); border-radius: var(--r-lg); padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-card-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px; font-size: 13.5px; color: var(--hero-muted); }
.hero-card-h b { color: var(--hero-ink); font-weight: 600; }
.hc-row { display: grid; grid-template-columns: 22px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid transparent; width: 100%; text-align: left; color: var(--hero-ink); }
.hc-row + .hc-row { margin-top: 6px; }
.hc-row:hover { border-color: var(--hero-line); background: rgba(255,255,255,.06); }
.hc-row .rk { color: var(--hero-muted); font-weight: 600; font-size: 14px; }
.hc-row .n { font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; }
.hc-row .s { font-size: 12.5px; color: var(--hero-muted); }
.hc-row .bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 7px; overflow: hidden; }
.hc-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.hc-row .td { font-weight: 600; font-size: 16px; text-align: right; }
.hc-row .td small { display: block; font-size: 11.5px; color: var(--hero-muted); font-weight: 500; }
.hero-card-f { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-size: 13px; color: var(--hero-muted); }
@media (max-width: 900px) {
  .hero { margin-top: -58px; padding-top: 58px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; padding-bottom: 48px; }
  .hero .lead { font-size: 16.5px; }
  .search-box { height: 54px; }
  .search-box .btn span { display: none; }
  .hero-trust { gap: 10px 18px; font-size: 13px; }
}

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg-2); }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.045em; }
.sec-h p { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 36em; }
.kicker { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 10px; display: block; }
@media (max-width: 900px) { .sec { padding: 60px 0; } .sec-h { margin-bottom: 22px; } }

/* ---------- Ranking list / table ---------- */
.rank-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.rank-tools .chips { flex: 1 1 auto; }
.select { height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); padding: 0 34px 0 12px; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.rtable { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.rhead, .rrow { display: grid; grid-template-columns: 44px minmax(220px, 2.2fr) 110px repeat(4, minmax(84px, 1fr)) 110px 36px; align-items: center; gap: 8px; padding: 0 16px; }
.rhead { height: 44px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rhead .r { text-align: right; }
.rrow { min-height: 72px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: var(--bg-2); }
.rrow .c-rank { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rrow .c-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rrow .c-name a { font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; display: block; }
.rrow .c-name .s { font-size: 13px; line-height: 1.35; color: var(--muted); white-space: normal; overflow: visible; }
.rrow .c-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.rrow .c-num.strong { font-weight: 600; font-size: 16px; }
.rrow .c-meta { display: none; }
.rrow .c-cmp { display: flex; justify-content: end; }
.cmp-btn { height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.cmp-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.c-go { color: var(--faint); display: flex; justify-content: end; }
@media (max-width: 900px) {
  .rhead { display: none; }
  .rrow { grid-template-columns: 22px 1fr auto; grid-template-areas: "rk nm gr" "rk mt mt"; gap: 6px 10px; padding: 14px; min-height: 0; }
  .rrow .c-rank { grid-area: rk; align-self: start; padding-top: 10px; font-size: 14px; }
  .rrow .c-name { grid-area: nm; }
  .rrow .c-grade { grid-area: gr; }
  .rrow .c-num, .rrow .c-go { display: none; }
  .rrow .c-meta { grid-area: mt; display: flex; gap: 6px; flex-wrap: wrap; padding-left: 52px; align-items: center; }
  .rrow .c-cmp { display: none; }
  .rrow .c-meta .cmp-btn { height: 26px; font-size: 12px; margin-left: auto; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.tile h3 { font-size: 21px; letter-spacing: -0.03em; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .viz { margin-top: auto; padding-top: 14px; }
.t-2 { grid-column: span 2; } .t-3 { grid-column: span 3; } .t-4 { grid-column: span 4; }
.tile.dark { background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }
.tile.dark p { color: var(--hero-muted); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-2, .t-3, .t-4 { grid-column: auto; } .tile { min-height: 0; } }
.vbar { display: grid; gap: 10px; }
.vbar-row { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; font-size: 14px; }
.vbar-row .t { height: 10px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.vbar-row .t i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--brand)); }
.vbar-row .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.stack i { display: block; height: 100%; }
.legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.bignum { font-size: 52px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.qtr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qtr div { border-radius: 10px; padding: 10px; background: rgba(255,255,255,.06); font-size: 13px; color: var(--hero-muted); }
.qtr div b { display: block; color: var(--hero-ink); font-weight: 600; font-size: 15px; }
.qtr div.on { background: var(--brand); color: #DCE3FF; }
.qtr div.on b { color: #fff; }
.qtr-tile { cursor: pointer; }
.qtr-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.qtr-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.qtr-form { margin-top: 16px; cursor: default; }

/* ---------- Objectifs ---------- */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.goal { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.goal:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.goal .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.goal h3 { font-size: 19px; margin-top: 6px; }
.goal p { font-size: 14.5px; color: var(--muted); }
.goal .go { margin-top: auto; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1000px) { .goals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; } .goal { min-height: 0; flex-direction: row; align-items: center; } .goal p, .goal .go { display: none; } .goal h3 { margin: 0; flex: 1; } .goal::after { content: "›"; font-size: 24px; color: var(--faint); } }

/* ---------- Mini simulateur ---------- */
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.mini-in { padding: 28px; display: grid; gap: 20px; }
.mini-out { padding: 28px; background: var(--hero); color: var(--hero-ink); display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mini-out .bignum { font-size: clamp(48px, 7vw, 72px); }
.mini-out .l { color: var(--hero-muted); font-size: 15px; }
.mini-out .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hero-line); }
.mini-out .sub b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-out .sub span { font-size: 13px; color: var(--hero-muted); }
@media (max-width: 900px) { .mini { grid-template-columns: 1fr; } .mini-in, .mini-out { padding: 22px; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field .lab { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.field .lab .v, .field > label .v { color: var(--brand); font-variant-numeric: tabular-nums; }
.input { height: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); padding: 0 14px; font-size: 16px; width: 100%; font-variant-numeric: tabular-nums; }
.input:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23687080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 24px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; }
.seg button { height: 38px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,18,.12); }
/* Libellé long sur téléphone : le bouton grandit au lieu de déborder (29/11/2026) */
.seg button { height: auto; min-height: 38px; padding-top: 5px; padding-bottom: 5px; line-height: 1.2; }
.help { font-size: 13px; color: var(--muted); }

/* ---------- Lead (discret) ---------- */
.lead-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 20px; display: grid; gap: 14px; }
.lead-box.soft { background: var(--bg-2); border-color: transparent; }
.lead-h { display: flex; gap: 14px; align-items: start; }
.lead-h .gi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.lead-h .t { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.lead-h .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.lead-box form { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-box form .input { flex: 1 1 180px; height: 46px; font-size: 15px; }
.lead-box .legal { font-size: 12px; color: var(--faint); }
.lead-box .err { font-size: 13px; color: var(--neg); }
.lead-done { display: grid; gap: 12px; }
.lead-done .ok { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.lead-done .ok .ico { color: var(--pos); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0 20px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- CTA band ---------- */
.band { background: var(--hero); color: var(--hero-ink); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 280px at 100% 0%, rgba(245,196,81,.22), transparent 70%); }
.band > * { position: relative; }
.band h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.045em; }
.band p { color: var(--hero-muted); margin-top: 12px; font-size: 17px; }
.band .lead-box { background: rgba(255,255,255,.05); border-color: var(--hero-line); color: var(--hero-ink); }
.band .lead-box .input { background: rgba(255,255,255,.07); border-color: var(--hero-line); color: var(--hero-ink); }
.band .lead-box .input::placeholder { color: var(--hero-muted); }
.band .lead-h .gi { background: rgba(255,255,255,.08); color: #fff; }
.band .lead-h .s, .band .lead-box .legal { color: var(--hero-muted); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 22px; gap: 24px; } }

/* ---------- Page header ---------- */
.ph { padding: 44px 0 26px; }
.ph h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.05em; }
.ph p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 40em; }
.ph .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0; margin-bottom: 18px; }
.crumb:hover { color: var(--ink); }
@media (max-width: 900px) { .ph { padding: 28px 0 18px; } }

/* ---------- Weights panel ---------- */
.wpanel { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; background: var(--bg); }
.wpanel-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wpanel-h b { font-size: 16px; }
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
@media (max-width: 800px) { .wgrid { grid-template-columns: 1fr; } }

/* ---------- Fiche ---------- */
.f-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.geo-bref { margin: 20px 0 0; max-width: 74ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.geo-bref b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .geo-bref { font-size: 15.5px; margin-top: 16px; } }
.f-id { display: flex; gap: 16px; align-items: center; }
.f-id h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.05em; }
.f-id .s { color: var(--muted); margin-top: 4px; }
.f-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.f-score { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); }
.f-score .l { font-size: 13px; color: var(--muted); }
.f-score .lbl { font-weight: 600; }
.f-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .f-hero { grid-template-columns: 1fr; } .f-score { justify-self: stretch; } .f-actions .btn { flex: 1 1 0; } .f-actions .btn:first-child { flex: 1 1 100%; } }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 22px 0; }
.stat { background: var(--bg-2); border-radius: 14px; padding: 16px; }
.stat .v { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 13px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; margin-bottom: 26px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,18,.12); }
@media (max-width: 900px) { .tabs { top: 66px; } }
.f-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-bottom: 56px; }
.f-side { display: grid; gap: 14px; position: sticky; top: 140px; }
@media (max-width: 1000px) { .f-grid { grid-template-columns: 1fr; } .f-side { position: static; } }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--bg); }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 22px; letter-spacing: -0.035em; margin-bottom: 16px; }
.panel h3 { font-size: 15px; letter-spacing: -0.01em; margin: 22px 0 12px; }
.panel .intro { color: var(--muted); margin: -8px 0 16px; font-size: 15px; }
@media (max-width: 560px) { .panel { padding: 18px; } }
.score-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .score-wrap { grid-template-columns: 1fr; gap: 18px; } }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .c b { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; display: block; }
.ring .c span { font-size: 13px; color: var(--muted); }
.dims { display: grid; gap: 14px; }
.dim-h { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; }
.dim-h span { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.dim-t { height: 8px; border-radius: 5px; background: var(--bg-3); margin-top: 7px; overflow: hidden; }
.dim-t i { display: block; height: 100%; border-radius: 5px; background: var(--brand); }
.dim .why { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .pv { grid-template-columns: 1fr; } }
.pv-col { border-radius: 14px; padding: 18px; background: var(--bg-2); }
.pv-col h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pv-col.plus h3 .ico { color: var(--pos); }
.pv-col.minus h3 .ico { color: var(--warn); }
.pv-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pv-col li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.pv-col li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin: 8px 0 0 4px; background: var(--c); }
.pv-col.plus li { --c: var(--pos); }
.pv-col.minus li { --c: var(--warn); }
.forwho-n { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.forwho { margin-top: 14px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 15px; }
.forwho b { display: block; margin-bottom: 2px; }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th, .kv td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { font-weight: 500; color: var(--muted); width: 44%; padding-right: 16px; }
.kv td { font-variant-numeric: tabular-nums; font-weight: 500; }
.kv tr.em td { font-weight: 650; }
.callout { border-radius: 14px; padding: 16px 18px; background: var(--brand-soft); font-size: 15px; margin-top: 14px; }
.callout.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.callout b { display: block; margin-bottom: 2px; }
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
@media (max-width: 560px) { .donut-wrap { grid-template-columns: 1fr; justify-items: start; } }
.donut { width: 170px; height: 170px; }
.dl { display: grid; gap: 8px; width: 100%; }
.dl div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.dl i { width: 10px; height: 10px; border-radius: 3px; }
.dl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge { position: relative; height: 44px; margin-top: 8px; }
.gauge .rail { position: absolute; left: 0; right: 0; top: 16px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--pos) 55%, transparent), var(--bg-3) 50%, color-mix(in srgb, var(--neg) 55%, transparent)); }
.gauge .mid { position: absolute; left: 50%; top: 10px; width: 2px; height: 22px; background: var(--faint); border-radius: 1px; }
.gauge .mk { position: absolute; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); transform: translateX(-50%); box-shadow: var(--shadow); }
.gauge-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 16px; position: relative; font-size: 15px; }
.tl li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin: 6px 0 0 6px; }
.tl li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.sim-list { display: grid; gap: 8px; }
.sim-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); width: 100%; text-align: left; }
.sim-item:hover { background: var(--bg-2); }
.sim-item .n { font-weight: 600; }
.sim-item .s { font-size: 13px; color: var(--muted); }
.sim-item .grade { margin-left: auto; }

/* ---------- Comparer ---------- */
.cmp-pick { display: grid; grid-template-columns: 220px repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.cmp-pick .lab { align-self: center; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .cmp-pick { grid-template-columns: 1fr; } .cmp-pick .lab { display: none; } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pe-tbl { min-width: 920px; }
.pe-tbl th[scope="row"], .pe-tbl td { vertical-align: top; text-align: left; }
.pe-tbl .hcell { display: flex; gap: 10px; align-items: flex-start; }
.tbl { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
.tbl th, .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { background: var(--bg); position: sticky; top: 0; }
.tbl thead .hcell { display: flex; align-items: center; gap: 10px; }
.tbl thead .hcell a { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.tbl tbody th { font-weight: 500; color: var(--muted); position: sticky; left: 0; background: var(--bg); width: 220px; min-width: 170px; }
.tbl tr.grp th, .tbl tr.grp td { background: var(--bg-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding-top: 10px; padding-bottom: 10px; }
.tbl td { font-variant-numeric: tabular-nums; font-weight: 500; }
.tbl td.best { color: var(--pos); font-weight: 650; }
.tbl td.best::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); margin-left: 8px; vertical-align: middle; }

/* ---------- Simulateur ---------- */
.simg { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; padding-bottom: 56px; }
@media (max-width: 1000px) { .simg { grid-template-columns: 1fr; } }
.simg .panel { display: grid; gap: 20px; }
.res-hero { background: var(--hero); color: var(--hero-ink); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.res-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 100% 0%, rgba(245,196,81,.2), transparent 70%); }
.res-hero > * { position: relative; }
.res-hero .l { color: var(--hero-muted); font-size: 15px; }
.res-hero .bignum { font-size: clamp(48px, 7vw, 68px); margin: 6px 0; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hero-line); }
.res-grid b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.res-grid span { font-size: 13px; color: var(--hero-muted); }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.chart svg { width: 100%; height: auto; display: block; }
.chart svg text { font-family: var(--font); font-size: 11px; fill: var(--muted); }

/* ---------- Tunnel ---------- */
.tun { max-width: 720px; margin: 0 auto; padding: 40px 0 70px; }
.tun-prog { height: 6px; border-radius: 4px; background: var(--bg-3); overflow: hidden; margin: 22px 0 30px; }
.tun-prog i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s ease; }
.tun .step { font-size: 14px; color: var(--muted); font-weight: 500; }
.tun h1 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.045em; margin-top: 8px; }
.tun .help { margin-top: 8px; font-size: 15px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
@media (max-width: 600px) { .opts { grid-template-columns: 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 68px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-2); background: var(--bg-2); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt .gi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); flex: none; }
.opt[aria-pressed="true"] .gi { background: var(--brand); color: #fff; }
.opt .t { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.opt .s { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.opt .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.opt[aria-pressed="true"] .ck { background: var(--brand); border-color: var(--brand); color: #fff; }
.tun-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.tun-res { max-width: var(--wrap); }
.answers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.answers button { min-height: 34px; height: auto; padding: 6px 13px; line-height: 1.3; white-space: normal; text-align: left; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13.5px; font-weight: 500; }
.answers button:hover { border-color: var(--ink-2); }
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 1000px) { .top3 { grid-template-columns: 1fr; } }
.mcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mcard.first { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mcard-h { display: flex; gap: 12px; align-items: center; }
.mcard-h .n { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.mcard-h .s { font-size: 13px; color: var(--muted); }
.match { margin-left: auto; text-align: right; }
.match b { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; display: block; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.match span { font-size: 12px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.ticks li .ico { color: var(--pos); margin-top: 1px; }
.ticks li.w .ico { color: var(--warn); }
.mcard .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 900px) { .rest { grid-template-columns: 1fr; } }

/* ---------- Transmettre / méthode ---------- */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .cards2 { grid-template-columns: 1fr; } }
.icard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--bg); display: grid; gap: 12px; align-content: start; }
.icard .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icard h3 { font-size: 20px; }
.icard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.icard li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; color: var(--ink-2); }
.icard li .ico { color: var(--brand); margin-top: 2px; }
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.two-res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-res > div { border-radius: 16px; padding: 20px; background: var(--bg-2); }
.two-res > div.win { background: var(--hero); color: var(--hero-ink); }
.two-res .l { font-size: 13.5px; color: var(--muted); }
.two-res .win .l { color: var(--hero-muted); }
.two-res b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .two-res { grid-template-columns: 1fr; } }
.m-axis { display: grid; grid-template-columns: 1fr 70px; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.m-axis h3 { font-size: 19px; }
.m-axis .pts { text-align: right; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.m-axis p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.m-axis ul { grid-column: 1 / -1; margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14.5px; color: var(--ink-2); }
.grades-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cal div { border-radius: 14px; background: var(--bg-2); padding: 16px; font-size: 14px; color: var(--muted); }
.cal b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
@media (max-width: 700px) { .cal { grid-template-columns: 1fr 1fr; } }
.src { list-style: none; margin: 0; padding: 0; }
.src li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.src a { color: var(--brand); }
@media (max-width: 600px) { .src li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Leads démo ---------- */
.pill { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 700; }
.pill.hot { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.pill.warm { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.cold { background: var(--bg-2); color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot h4, .foot h2.foot-h { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 12px; }
.foot nav { display: grid; gap: 8px; }
.foot nav a, .foot nav button { background: none; border: 0; padding: 0; text-align: left; font-weight: 500; }
.foot nav a:hover, .foot nav button:hover { color: var(--brand); }
.foot .legal { color: var(--muted); font-size: 13px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } .foot { padding-bottom: 110px; } }

/* ---------- Mobile tab bar, tray, sheet, toast ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a.main { color: var(--bg); }
.tabbar a.main .bubble { width: 44px; height: 32px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; color: #fff; margin-top: -2px; }
.tabbar a.main span:last-child { color: var(--ink); }
@media (min-width: 901px) { .tabbar { display: none; } }
@media (max-width: 900px) { body { padding-bottom: 70px; } }
.tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 55; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.tray[hidden] { display: none; }
.tray .names { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .btn { background: var(--brand); color: #fff; height: 38px; }
@media (max-width: 900px) { .tray { bottom: 82px; } }
.sheet-bg { position: fixed; inset: 0; background: rgba(11,13,18,.45); z-index: 70; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
.sheet[hidden], .sheet-bg[hidden] { display: none; }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet nav { display: grid; }
.sheet nav a, .sheet nav button { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border: 0; background: none; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 16px; text-align: left; }
.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 80; box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ================= Identité Kapiry ================= */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
h1, h2, h3, .logo, .bignum, .mani-q, .stat .v, .fee-total b, .fcmp-res .bignum, .alloc-out .bignum, .grade b, .risk .big, .mani-nums b, .about-nums b, .pillars .n, .how-step .num, .est b { font-family: var(--display); }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; font-variation-settings: "opsz" 72; }
h3 { font-weight: 650; letter-spacing: -0.02em; font-variation-settings: "opsz" 24; }
.kicker { color: var(--brand); letter-spacing: 0; }
/* Le surligneur : motif de la marque, on lit les bulletins et on surligne l'essentiel */
.it, h1 em, h2 em { font: inherit; font-style: normal; color: inherit; letter-spacing: inherit; padding: 0 .06em; margin: 0 -.03em;
  background-image: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%); background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .25s; }
.rv:not(.in) .it, .rv:not(.in) h1 em, .rv:not(.in) h2 em { background-size: 0% 100%; }
.hero .it, .mani .it, .band .it, .alloc-out .it, .fee-total .it { color: var(--gold); background-image: linear-gradient(transparent 90%, var(--gold) 90%, var(--gold) 95%, transparent 95%); }
.mani .kicker, .band .kicker { color: var(--gold); }
/* Logo */
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.045em; font-variation-settings: "opsz" 48; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.logo-mark svg { display: block; }
@keyframes draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
/* Héro vert forêt */
.hero { background: radial-gradient(820px 460px at 88% -6%, rgba(245,196,81,.17), transparent 62%), radial-gradient(760px 480px at -8% 108%, rgba(61,186,140,.2), transparent 62%), var(--hero); color: var(--hero-ink); }
.hero::before, .hero::after { display: none; }
.hero .wrap { padding-bottom: 176px; }
.hero h1 { color: #FFFFFF; }
.hero .lead { color: var(--hero-muted); }
.hero-badge { background: rgba(255,255,255,.06); border-color: var(--hero-line); color: var(--hero-muted); }
.hero-badge i { background: var(--gold); color: var(--forest); }
.intent-label { color: var(--hero-muted); }
.search-box { background: rgba(255,255,255,.07); border: 1px solid var(--hero-line); color: var(--hero-ink); box-shadow: none; }
.search-box .ico { color: var(--hero-muted); }
.search-box input { color: var(--hero-ink); }
.search-box input::placeholder { color: var(--hero-muted); }
.hero-alt { color: var(--hero-muted); }
.hero-alt .lnk { color: #FFFFFF; }
.hero-alt .lnk:hover { color: var(--gold); }
.hero-card { background: var(--bg); color: var(--ink); border: 0; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hero-card-h, .hero-card-f { color: var(--muted); }
.hero-card-h b { color: var(--ink); }
.hero-card-f a { color: var(--brand); }
.hc-row { background: var(--bg-2); color: var(--ink); }
.hc-row:hover { background: var(--bg); border-color: var(--line-2); }
.hc-row .rk, .hc-row .s, .hc-row .td small { color: var(--muted); }
.hc-row .bar { background: var(--bg-3); }
.top.on-hero { background: color-mix(in srgb, var(--hero) 84%, transparent); color: var(--hero-ink); border-bottom-color: var(--hero-line); }
.top.on-hero .icon-btn, .top.on-hero .adv-link { border-color: var(--hero-line); }
.top.on-hero .btn { background: var(--gold); color: var(--forest); }
.top.on-hero .btn:hover { background: #FFD46E; }
.top.on-hero .soon { background: rgba(245,196,81,.18); color: var(--gold); }
/* Silhouette de ville : les fenêtres s'allument */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 136px; pointer-events: none; z-index: 0; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
.skyline svg { width: 100%; height: 100%; display: block; }
.sk-b { fill: #0E3A2E; } .sk-b2 { fill: #124637; } .sk-w { fill: #1B5A47; } .sk-g { fill: #3DBA8C; } .sk-gs { fill: #1C6A51; } .sk-a { fill: var(--gold); } .sk-gr { fill: var(--bg); }
.sk-w.lit { animation: lit 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes lit { 0%, 18% { fill: #1B5A47; } 26%, 78% { fill: #F5C451; } 90%, 100% { fill: #1B5A47; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .hero .wrap { padding-bottom: 120px; } .skyline { height: 92px; } }
/* Cartes de choix (héro) */
.intent { gap: 12px; max-width: 600px; }
.intent button { display: grid; grid-template-columns: 50px 1fr 18px; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 18px; background: var(--bg); color: var(--ink); border: 1px solid transparent; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.intent button:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.3); background: var(--bg); border-color: transparent; }
.intent .pic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.intent button:hover .pic { transform: rotate(-6deg) scale(1.06); }
.intent .pic svg { width: 32px; height: 32px; }
.intent b { display: block; font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.intent small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.intent .hint { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.intent .go { color: var(--faint); transition: transform .25s, color .25s; }
.intent button:hover .go { transform: translateX(3px); color: var(--brand); }
/* Cartes de choix (test) */
.opts { gap: 12px; }
.opt { min-height: 76px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s; position: relative; }
.opt:hover { border-color: var(--brand); background: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt .pic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.opt[aria-pressed="true"] .pic { background: var(--bg); }
.opt .pic svg { width: 32px; height: 32px; }
.opt .t { font-family: var(--display); font-weight: 700; font-size: 17px; }
.opt .s { font-size: 13.5px; }
.opt .meter { display: flex; gap: 3px; margin-left: auto; align-items: flex-end; flex: none; }
.opt .meter i { width: 6px; border-radius: 3px; background: var(--line-2); }
.opt .meter i.on { background: var(--brand); }
.opt .meter i.au { background: var(--gold); }
.opt[aria-pressed="true"]::after { content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.opt .ck { display: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
/* Étapes numérotées */
.how-step .num { width: auto; height: auto; background: none; color: var(--brand); font-weight: 800; font-size: 40px; line-height: 1; display: inline-block; font-style: normal; font-variation-settings: "opsz" 96; }
/* Manifeste */
.mani { background: radial-gradient(520px 320px at 100% 100%, rgba(245,196,81,.16), transparent 70%), var(--hero); color: var(--hero-ink); border-radius: 28px; padding: 52px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.mani-q { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.mani-l { list-style: none; padding: 0; margin: 26px 0 22px; display: grid; gap: 12px; color: var(--hero-muted); font-size: 15.5px; }
.mani-l li { padding-left: 26px; position: relative; }
.mani-l li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 4px; background: var(--gold); transform: rotate(45deg); }
.mani-l b { color: var(--hero-ink); }
.mani .txt-link { color: var(--gold); }
.mani-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.mani-nums div { background: var(--hero-2); border: 1px solid var(--hero-line); border-radius: 18px; padding: 18px; }
.mani-nums b { display: block; font-weight: 800; font-size: 44px; line-height: 1; color: var(--gold); letter-spacing: -0.04em; font-variation-settings: "opsz" 96; }
.mani-nums span { display: block; font-size: 13.5px; color: var(--hero-muted); margin-top: 8px; }
@media (max-width: 900px) { .mani { grid-template-columns: 1fr; padding: 28px; gap: 28px; border-radius: 22px; } .mani-nums b { font-size: 36px; } }
/* Comparateur de frais */
.fcmp { display: grid; grid-template-columns: 1fr 1.35fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.fcmp-in { padding: 28px; display: grid; gap: 18px; align-content: start; }
.fcmp-out { padding: 28px; background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.fcmp-res .l { color: var(--muted); font-size: 14px; display: block; }
.fcmp-res .bignum { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 4px 0; }
.fcr { display: grid; gap: 8px; }
.fcr-h { display: flex; align-items: center; gap: 12px; }
.fcr-h span { min-width: 0; }
.fcr-h small { display: block; color: var(--muted); font-size: 12.5px; }
.fcr-h strong { margin-left: auto; font-size: 20px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fee-stack { height: 14px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.fcmp-note { font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 12px; }
@media (max-width: 900px) { .fcmp { grid-template-columns: 1fr; } .fcmp-in, .fcmp-out { padding: 20px; } }
/* Frais sur la durée (fiche) */
.fee-ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.fee-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
@media (max-width: 700px) { .fee-grid { grid-template-columns: 1fr; } }
.fee-total { background: var(--hero); color: var(--hero-ink); border-radius: 18px; padding: 18px; display: grid; gap: 4px; }
.fee-total b { font-size: 34px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-weight: 800; }
.fee-total .l { color: var(--hero-muted); font-size: 13.5px; }
.fee-total strong { color: var(--gold); }
.fee-total .tip { background: transparent; border-color: var(--hero-line); color: var(--hero-muted); }
.fee-rows { display: grid; gap: 10px; margin-top: 14px; }
.fee-rows > div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start; font-size: 14.5px; }
.fee-rows i { width: 12px; height: 12px; border-radius: 4px; margin-top: 4px; }
.fee-rows small { display: block; color: var(--muted); font-size: 12.5px; }
.fee-rows b { font-variant-numeric: tabular-nums; }
.fee-curve { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; align-items: end; }
.fee-curve .fc { display: grid; gap: 6px; justify-items: center; background: none; border: 0; padding: 0; color: var(--muted); }
.fee-curve .bar { width: 100%; height: 90px; display: flex; align-items: flex-end; background: var(--bg-2); border-radius: 10px; overflow: hidden; }
.fee-curve .bar i { width: 100%; background: var(--d3); border-radius: 10px 10px 0 0; transform-origin: bottom; animation: growY .8s cubic-bezier(.2,.7,.2,1) both; }
.fee-curve .fc.on .bar i { background: var(--brand); }
.fee-curve .v { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fee-curve .n { font-size: 12.5px; }
/* Qui sommes-nous */
.about-hero { padding: 64px 0 32px; max-width: 900px; }
.about-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; }
.about-hero .lead { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 40em; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.about-row .panel + .panel { margin-top: 0; }
@media (max-width: 900px) { .about-row { grid-template-columns: 1fr; } }
.about-row h2 { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 12px; }
.about-row p { color: var(--ink-2); }
.about-nums { display: grid; gap: 12px; margin: 18px 0 10px; }
.about-nums div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.about-nums b { font-weight: 800; font-size: 36px; line-height: 1; color: var(--brand); white-space: nowrap; letter-spacing: -0.04em; }
.about-nums span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 520px) { .about-nums div { grid-template-columns: 1fr; gap: 4px; } }
.pillars { display: grid; gap: 18px; margin-top: 8px; }
.pillars > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.pillars .n { font-weight: 800; font-size: 32px; line-height: 1; color: var(--brand); }
.pillars b { display: block; font-size: 17px; margin-bottom: 2px; }
.pillars span span { color: var(--muted); font-size: 14.5px; }
.engage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 56px; }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .engage { grid-template-columns: 1fr; } }
.engage > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); }
.engage b { display: block; font-size: 17px; margin: 10px 0 4px; letter-spacing: -0.02em; }
.engage span { color: var(--muted); font-size: 14px; }
.engage .ico { color: var(--brand); }
/* Avertissements de risque */
.riskbar { background: var(--forest-3); color: #D9E6E0; font-size: 12.5px; line-height: 1.4; padding: 7px 0; }
.riskbar .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.riskbar .ico { color: var(--gold); flex: none; }
.riskbar a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.riskbar .short { display: none; }
@media (max-width: 700px) { .riskbar .long { display: none; } .riskbar .short { display: inline; } .riskbar .wrap { justify-content: flex-start; text-align: left; } }
.perf-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.perf-note .ico { color: var(--warn); flex: none; margin-top: 1px; }
.perf-note b { color: var(--ink-2); font-weight: 600; }
.hero-card .perf-note { margin: 4px 14px 6px; }
.mini-out .perf-note, .alloc-out .perf-note, .res-hero .perf-note { color: var(--hero-muted); }
.mini-out .perf-note b, .alloc-out .perf-note b, .res-hero .perf-note b { color: var(--hero-ink); }
.risk-list { display: grid; gap: 12px; }
.risk-list > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-2); }
.risk-list .gi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.risk-list b { display: block; }
.risk-list span { color: var(--muted); font-size: 14.5px; }
/* Menu des produits */
.prodm { position: relative; }
.prod-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: 11px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; color: inherit; white-space: nowrap; }
.prod-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.prod-btn .ico { transition: transform .2s; }
.prod-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.top.on-hero .prod-btn { border-color: var(--hero-line); }
.prod-pop { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; animation: popIn .2s cubic-bezier(.2,.7,.2,1); }
.prod-pop[hidden] { display: none; }
.prod-pop a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.prod-pop a:hover, .prod-pop a[aria-current="page"] { background: var(--bg-2); }
.prod-pop .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.prod-pop b { display: block; font-size: 15px; }
.prod-pop small { display: block; color: var(--muted); font-size: 12.5px; }
.prod-pop .soon, .prod-pop .live { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.prod-pop .live { background: var(--brand-soft); color: var(--brand); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .prodm { display: none; } }
.sheet .sheet-prod { grid-template-columns: 1fr 1fr; }
/* Animations : apparitions, barres, compteurs */
#app > * { animation: pageIn .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#app.same > *, #app.same .hc-row .bar i, #app.same .dim-t i, #app.same .vbar-row .t i, #app.same .gel-bar i { animation: none !important; }
.rv { opacity: 0; transform: translateY(12px); transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.rv.in { opacity: 1; transform: none; }
.hc-row .bar i, .dim-t i, .vbar-row .t i, .gel-bar i { transform-origin: left; animation: growX 1s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero .intent button, .hero-card .hc-row { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .intent button:nth-child(2) { animation-delay: .07s; } .hero .intent button:nth-child(3) { animation-delay: .14s; } .hero .intent button:nth-child(4) { animation-delay: .21s; }
.hero-card .hc-row:nth-of-type(2) { animation-delay: .1s; } .hero-card .hc-row:nth-of-type(3) { animation-delay: .2s; } .hero-card .hc-row:nth-of-type(4) { animation-delay: .3s; }
.opts .opt { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.opts .opt:nth-child(2) { animation-delay: .05s; } .opts .opt:nth-child(3) { animation-delay: .1s; } .opts .opt:nth-child(4) { animation-delay: .15s; } .opts .opt:nth-child(5) { animation-delay: .2s; } .opts .opt:nth-child(6) { animation-delay: .25s; } .opts .opt:nth-child(7) { animation-delay: .3s; } .opts .opt:nth-child(8) { animation-delay: .35s; }
.btn { transition: background .15s, transform .15s, box-shadow .2s; }
.btn:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .rv:not(.in) .it, .rv:not(.in) h1 em, .rv:not(.in) h2 em { background-size: 100% 100%; }
}
.pg { fill: var(--brand); } .py { fill: var(--gold); } .ps { fill: none; stroke: var(--brand); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 .it { animation: hlIn 1.1s cubic-bezier(.2,.7,.2,1) .35s both; }
@keyframes hlIn { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .soon-grid { grid-template-columns: 1fr; } }
.soon-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--bg); display: grid; gap: 8px; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.soon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.soon-card .pi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.soon-card h3 { font-size: 19px; display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.soon-card p { color: var(--muted); font-size: 14.5px; }
.soon-card .go { color: var(--brand); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }

/* ================= Sous-identités par produit ================= */
html { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M196 206v-96l84-66 84 66v96' fill='none' stroke='%2344685A' stroke-opacity='.18' stroke-width='16' stroke-linejoin='round'/%3E%3Cpath d='M246 206v-50l38-32 56-50' fill='none' stroke='%2344685A' stroke-opacity='.55' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-prod="scpi"][data-prod] { --gold: #F4C1A6; --gold-ink: #9A5338; --hl: rgba(242,135,94,.38); --accent: #F2B08E; --accent-ink: #9A5338; --accent-soft: #FCEBE1; --d4: #F2B08E; --d5: #F8D5C2; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%239A5338' fill-opacity='.17'%3E%3Crect x='40' y='86' width='60' height='120' rx='5'/%3E%3Crect x='110' y='40' width='70' height='166' rx='5'/%3E%3Crect x='190' y='112' width='80' height='94' rx='5'/%3E%3Cpath d='M282 206v-82l46-36 46 36v82z'/%3E%3C/g%3E%3Cg fill='%239A5338' fill-opacity='.55'%3E%3Crect x='124' y='58' width='13' height='11' rx='2'/%3E%3Crect x='151' y='58' width='13' height='11' rx='2'/%3E%3Crect x='124' y='84' width='13' height='11' rx='2'/%3E%3Crect x='151' y='110' width='13' height='11' rx='2'/%3E%3Crect x='54' y='104' width='11' height='10' rx='2'/%3E%3Crect x='76' y='128' width='11' height='10' rx='2'/%3E%3Crect x='206' y='130' width='16' height='12' rx='2'/%3E%3Crect x='318' y='150' width='20' height='56' rx='3'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-prod="assurance-vie"][data-prod] { --gold: #C9C0F1; --gold-ink: #5A4FA0; --hl: rgba(82,199,217,.38); --accent: #B6AAEC; --accent-ink: #5A4FA0; --accent-soft: #EEEBFB; --d4: #B6AAEC; --d5: #DCD6F7; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='none' stroke='%235A4FA0' stroke-width='12' stroke-opacity='.2'%3E%3Cpath d='M116 206a134 134 0 0 1 268 0'/%3E%3Cpath d='M158 206a92 92 0 0 1 184 0'/%3E%3C/g%3E%3Cpath d='M200 206a50 50 0 0 1 100 0' fill='none' stroke='%235A4FA0' stroke-width='12' stroke-opacity='.5'/%3E%3Ccircle cx='250' cy='206' r='18' fill='%235A4FA0' fill-opacity='.7'/%3E%3C/svg%3E"); }
html[data-prod="etf"][data-prod] { --gold: #CDE09B; --gold-ink: #5B6F2C; --hl: rgba(196,232,107,.55); --accent: #BCD47F; --accent-ink: #5B6F2C; --accent-soft: #EFF5DD; --d4: #BCD47F; --d5: #DDEABB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%235B6F2C' fill-opacity='.2'%3E%3Ccircle cx='150' cy='26' r='3.2'/%3E%3Ccircle cx='150' cy='50' r='3.2'/%3E%3Ccircle cx='150' cy='74' r='3.2'/%3E%3Ccircle cx='150' cy='98' r='3.2'/%3E%3Ccircle cx='150' cy='122' r='3.2'/%3E%3Ccircle cx='150' cy='146' r='3.2'/%3E%3Ccircle cx='150' cy='170' r='3.2'/%3E%3Ccircle cx='150' cy='194' r='3.2'/%3E%3Ccircle cx='174' cy='26' r='3.2'/%3E%3Ccircle cx='174' cy='50' r='3.2'/%3E%3Ccircle cx='174' cy='74' r='3.2'/%3E%3Ccircle cx='174' cy='98' r='3.2'/%3E%3Ccircle cx='174' cy='122' r='3.2'/%3E%3Ccircle cx='174' cy='146' r='3.2'/%3E%3Ccircle cx='174' cy='170' r='3.2'/%3E%3Ccircle cx='174' cy='194' r='3.2'/%3E%3Ccircle cx='198' cy='26' r='3.2'/%3E%3Ccircle cx='198' cy='50' r='3.2'/%3E%3Ccircle cx='198' cy='74' r='3.2'/%3E%3Ccircle cx='198' cy='98' r='3.2'/%3E%3Ccircle cx='198' cy='122' r='3.2'/%3E%3Ccircle cx='198' cy='146' r='3.2'/%3E%3Ccircle cx='198' cy='170' r='3.2'/%3E%3Ccircle cx='198' cy='194' r='3.2'/%3E%3Ccircle cx='222' cy='26' r='3.2'/%3E%3Ccircle cx='222' cy='50' r='3.2'/%3E%3Ccircle cx='222' cy='74' r='3.2'/%3E%3Ccircle cx='222' cy='98' r='3.2'/%3E%3Ccircle cx='222' cy='122' r='3.2'/%3E%3Ccircle cx='222' cy='146' r='3.2'/%3E%3Ccircle cx='222' cy='170' r='3.2'/%3E%3Ccircle cx='222' cy='194' r='3.2'/%3E%3Ccircle cx='246' cy='26' r='3.2'/%3E%3Ccircle cx='246' cy='50' r='3.2'/%3E%3Ccircle cx='246' cy='74' r='3.2'/%3E%3Ccircle cx='246' cy='98' r='3.2'/%3E%3Ccircle cx='246' cy='122' r='3.2'/%3E%3Ccircle cx='246' cy='146' r='3.2'/%3E%3Ccircle cx='246' cy='170' r='3.2'/%3E%3Ccircle cx='246' cy='194' r='3.2'/%3E%3Ccircle cx='270' cy='26' r='3.2'/%3E%3Ccircle cx='270' cy='50' r='3.2'/%3E%3Ccircle cx='270' cy='74' r='3.2'/%3E%3Ccircle cx='270' cy='98' r='3.2'/%3E%3Ccircle cx='270' cy='122' r='3.2'/%3E%3Ccircle cx='270' cy='146' r='3.2'/%3E%3Ccircle cx='270' cy='170' r='3.2'/%3E%3Ccircle cx='270' cy='194' r='3.2'/%3E%3Ccircle cx='294' cy='26' r='3.2'/%3E%3Ccircle cx='294' cy='50' r='3.2'/%3E%3Ccircle cx='294' cy='74' r='3.2'/%3E%3Ccircle cx='294' cy='98' r='3.2'/%3E%3Ccircle cx='294' cy='122' r='3.2'/%3E%3Ccircle cx='294' cy='146' r='3.2'/%3E%3Ccircle cx='294' cy='170' r='3.2'/%3E%3Ccircle cx='294' cy='194' r='3.2'/%3E%3Ccircle cx='318' cy='26' r='3.2'/%3E%3Ccircle cx='318' cy='50' r='3.2'/%3E%3Ccircle cx='318' cy='74' r='3.2'/%3E%3Ccircle cx='318' cy='98' r='3.2'/%3E%3Ccircle cx='318' cy='122' r='3.2'/%3E%3Ccircle cx='318' cy='146' r='3.2'/%3E%3Ccircle cx='318' cy='170' r='3.2'/%3E%3Ccircle cx='318' cy='194' r='3.2'/%3E%3Ccircle cx='342' cy='26' r='3.2'/%3E%3Ccircle cx='342' cy='50' r='3.2'/%3E%3Ccircle cx='342' cy='74' r='3.2'/%3E%3Ccircle cx='342' cy='98' r='3.2'/%3E%3Ccircle cx='342' cy='122' r='3.2'/%3E%3Ccircle cx='342' cy='146' r='3.2'/%3E%3Ccircle cx='342' cy='170' r='3.2'/%3E%3Ccircle cx='342' cy='194' r='3.2'/%3E%3Ccircle cx='366' cy='26' r='3.2'/%3E%3Ccircle cx='366' cy='50' r='3.2'/%3E%3Ccircle cx='366' cy='74' r='3.2'/%3E%3Ccircle cx='366' cy='98' r='3.2'/%3E%3Ccircle cx='366' cy='122' r='3.2'/%3E%3Ccircle cx='366' cy='146' r='3.2'/%3E%3Ccircle cx='366' cy='170' r='3.2'/%3E%3Ccircle cx='366' cy='194' r='3.2'/%3E%3Ccircle cx='390' cy='26' r='3.2'/%3E%3Ccircle cx='390' cy='50' r='3.2'/%3E%3Ccircle cx='390' cy='74' r='3.2'/%3E%3Ccircle cx='390' cy='98' r='3.2'/%3E%3Ccircle cx='390' cy='122' r='3.2'/%3E%3Ccircle cx='390' cy='146' r='3.2'/%3E%3Ccircle cx='390' cy='170' r='3.2'/%3E%3Ccircle cx='390' cy='194' r='3.2'/%3E%3C/g%3E%3Cpath d='M132 176l58-40 40 18 60-72 40 12 52-64' fill='none' stroke='%235B6F2C' stroke-opacity='.7' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-prod="private-equity"][data-prod] { --gold: #DEC7A9; --gold-ink: #7A6047; --hl: rgba(180,155,255,.4); --accent: #8E6CF2; --accent-ink: #7A6047; --accent-soft: #F5ECE1; --d4: #8E6CF2; --d5: #E9DAC7; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%237A6047'%3E%3Ccircle cx='172' cy='168' r='14' fill-opacity='.3'/%3E%3Ccircle cx='226' cy='138' r='24' fill-opacity='.26'/%3E%3Ccircle cx='298' cy='100' r='42' fill-opacity='.2'/%3E%3Ccircle cx='376' cy='50' r='62' fill-opacity='.15'/%3E%3C/g%3E%3Cpath d='M172 168 226 138 298 100 376 50' fill='none' stroke='%237A6047' stroke-opacity='.6' stroke-width='4' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E"); }


/* En-têtes de page aux couleurs du produit */
.ph, .av-hero { position: relative; overflow: hidden; margin-top: 22px; padding: 44px 44px 40px; border-radius: 26px; color: var(--hero-ink);
  background: var(--motif) right -12px bottom -2px / auto 96% no-repeat, radial-gradient(620px 300px at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%), var(--hero); }
.ph h1, .av-hero h1 { color: #FFFFFF; max-width: 15em; position: relative; }
.ph p, .av-hero p.lead { color: var(--hero-muted); position: relative; }
.ph .it, .av-hero .it { color: var(--gold); background-image: linear-gradient(transparent 90%, var(--gold) 90%, var(--gold) 95%, transparent 95%); }
.av-hero .kicker, .ph .kicker { color: var(--gold); }
.ph .btn:not(.light):not(.dark) { background: var(--gold); color: var(--forest); }
.ph .btn.light { background: rgba(255,255,255,.08); color: var(--hero-ink); border-color: var(--hero-line); }
.ph .btn.light:hover { background: rgba(255,255,255,.14); }
.ph .txt-link { color: var(--gold); }
.ph .grade span, .ph .grade small { color: var(--hero-ink); }
.ph .grade small { opacity: .7; }
.ph .row, .ph .grades-row { position: relative; }
.ph-tag { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--hero-line); font-size: 12.5px; font-weight: 600; color: var(--hero-ink); margin-bottom: 16px; position: relative; }
.ph-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 700px) { .ph, .av-hero { padding: 26px 22px; border-radius: 20px; background-size: auto 60%, auto, auto; } }
.prod-pop a[data-prod="scpi"] .pi { background: #FCEBE1; color: #9A5338; }
.prod-pop a[data-prod="assurance-vie"] .pi { background: #EEEBFB; color: #5A4FA0; }
.prod-pop a[data-prod="etf"] .pi { background: #EFF5DD; color: #5B6F2C; }
.prod-pop a[data-prod="private-equity"] .pi { background: #F5ECE1; color: #7A6047; }
.soon-card[href="#assurance-vie"] .pi { background: #EEEBFB; color: #5A4FA0; }
.soon-card[href="#etf"] .pi { background: #EFF5DD; color: #5B6F2C; }
.soon-card[href="#private-equity"] .pi { background: #F5ECE1; color: #7A6047; }
.sheet .sheet-prod a[data-prod="scpi"] { border-left: 4px solid #F4C1A6; }
.sheet .sheet-prod a[data-prod="assurance-vie"] { border-left: 4px solid #C9C0F1; }
.sheet .sheet-prod a[data-prod="etf"] { border-left: 4px solid #BCD47F; }
.sheet .sheet-prod a[data-prod="private-equity"] { border-left: 4px solid #8E6CF2; }

/* ================= Base pastel : une teinte douce par univers ================= */
:root { --page: #EAF5EE; --page-2: #D8ECE0; }
html[data-prod="scpi"] { --page: #FDF1EA; --page-2: #F7DED1; }
html[data-prod="assurance-vie"] { --page: #E8F6F8; --page-2: #D0EBF0; }
html[data-prod="etf"] { --page: #F2F8E3; --page-2: #E1EEC8; }
html[data-prod="private-equity"] { --page: #F1EEFD; --page-2: #E0D9FA; }
html[data-prod="fiscalite"] { --page: #FCEEF4; --page-2: #F6DAE6; }

body { background: var(--page); transition: background-color .35s ease; }
.lead-box.soft { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }
.top { background: color-mix(in srgb, var(--page) 84%, transparent); }
.tabbar { background: color-mix(in srgb, var(--page) 92%, transparent); }
.sec.alt, .foot { background: var(--page-2); }
.tabs { background: color-mix(in srgb, var(--page-2) 75%, var(--bg)); }
.rtable, .fcmp, .mini, .tile { box-shadow: 0 1px 2px rgba(10,42,33,.04); }


/* ================= Sous-identité Fiscalité (pivoine) ================= */
html[data-prod="fiscalite"][data-prod] { --gold: #EEB6CB; --gold-ink: #9C4466; --hl: rgba(247,161,196,.45); --accent: #E9A3BE; --accent-ink: #9C4466; --accent-soft: #FBE9F0; --d4: #E9A3BE; --d5: #F5D2DF; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%239C4466' fill-opacity='.13'%3E%3Cellipse cx='300' cy='192' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='172' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='152' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='132' rx='56' ry='15'/%3E%3Cellipse cx='196' cy='192' rx='46' ry='13'/%3E%3Cellipse cx='196' cy='174' rx='46' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%239C4466' stroke-opacity='.3' stroke-width='9' stroke-linecap='round'%3E%3Ccircle cx='332' cy='38' r='15'/%3E%3Ccircle cx='386' cy='96' r='15'/%3E%3Cpath d='M392 28 326 106'/%3E%3C/g%3E%3C/svg%3E"); }

.prod-pop a[data-prod="fiscalite"] .pi { background: #FBE9F0; color: #9C4466; }
.sheet .sheet-prod a[data-prod="fiscalite"] { border-left: 4px solid #E9A3BE; }
[data-fam="enveloppe"] { --fc: #1F9A6E; }
[data-fam="deduction"] { --fc: #8E6CF2; }
[data-fam="reduction"] { --fc: #E9A3BE; }
[data-fam="credit"] { --fc: #E0A526; }

/* Bandeau d'accueil */
.fx-band { display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; border-radius: 26px; padding: 34px 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%239C4466' fill-opacity='.2'%3E%3Cellipse cx='300' cy='192' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='172' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='152' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='132' rx='56' ry='15'/%3E%3Cellipse cx='196' cy='192' rx='46' ry='13'/%3E%3Cellipse cx='196' cy='174' rx='46' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%239C4466' stroke-opacity='.62' stroke-width='9' stroke-linecap='round'%3E%3Ccircle cx='332' cy='38' r='15'/%3E%3Ccircle cx='386' cy='96' r='15'/%3E%3Cpath d='M392 28 326 106'/%3E%3C/g%3E%3C/svg%3E") right -6px bottom -4px / auto 112% no-repeat, linear-gradient(120deg, #FBE9F0, #FCEEF4 60%); color: #3A1527; border: 1px solid #F5C6DA; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.fx-band:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(163,36,94,.12); }
.fx-band > div { max-width: 40em; }
.fx-band .kicker { color: #9C4466; }
.fx-band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.04em; color: #3A1527; }
.fx-band h2 .it { color: #3A1527; background-image: linear-gradient(transparent 62%, rgba(229,96,155,.35) 62%, rgba(229,96,155,.35) 92%, transparent 92%); }
.fx-band p { color: #6B3A50; margin-top: 10px; font-size: 16px; }
.fx-band .btn { background: #9C4466; color: #FFFFFF; }




@media (max-width: 640px) { .fx-band { padding: 26px 22px; background-size: auto 70%, auto; } }

/* En-tête */
.fx-hstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 780px; position: relative; }
.fx-hstats div { border: 1px solid var(--hero-line); border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.04); }
.fx-hstats b { display: block; font-family: var(--display); font-size: 26px; color: #FFFFFF; letter-spacing: -0.03em; font-weight: 600; }
.fx-hstats span { font-size: 13px; color: var(--hero-muted); }
@media (max-width: 640px) { .fx-hstats { grid-template-columns: 1fr; } .fx-hstats div { padding: 10px 14px; } .fx-hstats b { font-size: 22px; } }

/* Avertissements */
.fx-warn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.fx-warn > div { border-radius: 18px; padding: 18px 20px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); }
.fx-warn b { display: flex; gap: 8px; align-items: center; font-size: 15.5px; }
.fx-warn b .ico { color: var(--accent-ink); }
.fx-warn p { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
@media (max-width: 860px) { .fx-warn { grid-template-columns: 1fr; } }

/* Comprendre en une minute */
.fx-fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fx-fam-t { text-align: left; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-top: 4px solid var(--fc); border-radius: var(--r-lg); padding: 20px; background: var(--bg); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.fx-fam-t:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fx-fam-t .gi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--fc) 14%, var(--bg)); color: var(--fc); }
.fx-fam-t h3 { font-size: 18px; margin-top: 4px; }
.fx-fam-t p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fx-fam-t .n { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
@media (max-width: 960px) { .fx-fams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fx-fams { grid-template-columns: 1fr; } }
.fx-capbox { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 14px; border-radius: var(--r-lg); padding: 24px; background: var(--bg); border: 1px solid var(--line); }
.fx-capbox h3 { font-size: 20px; }
.fx-capbox p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.fx-capbar { display: grid; grid-template-columns: 10fr 8fr; gap: 4px; margin-top: 18px; }
.fx-capbar span { border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); }
.fx-capbar b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.fx-capbar .a { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.fx-capbar .b { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0 8px, color-mix(in srgb, var(--accent) 6%, var(--bg)) 8px 16px); }
.fx-caplist { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.fx-caplist .lab { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fx-caplist a { font-size: 13.5px; font-weight: 550; padding: 5px 10px; border-radius: 8px; background: var(--bg-2); }
.fx-caplist a:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
@media (max-width: 800px) { .fx-capbox { grid-template-columns: 1fr; } }

/* Catalogue */
.fx-filters { display: grid; gap: 10px; margin-bottom: 18px; }
.fx-chiprow { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-chiprow .chip { background: var(--bg); }
.fx-chiprow .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); display: inline-block; }
.fx-count { margin-bottom: 12px; }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1020px) { .fx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px 20px; background: var(--bg); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.fx-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--fc); }
.fx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.fx-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-fam { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fx-fam i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); }
.fx-soon { font-size: 12px; font-weight: 600; color: var(--warn); display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 12%, transparent); }
.fx-card h3 { font-size: 22px; letter-spacing: -0.035em; }
.fx-acc { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fx-big { border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--fc) 10%, var(--bg)); }
.fx-big b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; color: var(--ink); font-weight: 600; }
.fx-big span { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; line-height: 1.4; }
.fx-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.fx-meta dt { font-size: 12px; color: var(--muted); }
.fx-meta dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 550; line-height: 1.35; }
.fx-risk { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-risk span { font-size: 12px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--neg) 8%, var(--bg)); color: var(--ink-2); }
.fx-go { margin-top: auto; padding-top: 4px; color: var(--accent-ink); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; }
.fx-go .ico:last-child { transition: transform .2s; }
.fx-card:hover .fx-go .ico:last-child { transform: translateX(3px); }

/* Calendrier et dispositifs fermés */
.fx-cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.fx-perm { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 10px; }
.fx-perm > div { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--bg); }
.fx-perm .lab { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.fx-perm a { font-size: 13.5px; font-weight: 550; padding: 5px 10px; border-radius: 8px; background: var(--bg-2); }
.fx-perm a:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
@media (max-width: 760px) { .fx-perm { grid-template-columns: 1fr; } }
.fx-cal > div { border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 8px; background: var(--bg); }
.fx-cal > div.now { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.fx-cal h3 { font-size: 26px; letter-spacing: -0.04em; }
.fx-cal .sub { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 8px; }
.fx-cal a { display: block; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 14.5px; font-weight: 600; }
.fx-cal a:hover { color: var(--accent-ink); }
.fx-cal a small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
@media (max-width: 860px) { .fx-cal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fx-cal { grid-template-columns: 1fr 1fr; } }
.fx-closed-h { margin: 26px 0 12px; }
.fx-closed-h h3 { font-size: 19px; }
.fx-closed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-closed > div { border-radius: 16px; padding: 16px; background: var(--page-2); }
.fx-closed b { font-size: 15px; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--neg) 60%, transparent); text-decoration-thickness: 2px; }
.fx-closed .d { font-size: 12.5px; color: var(--neg); font-weight: 600; margin: 4px 0; display: block; }
.fx-closed p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 900px) { .fx-closed { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fx-closed, .fx-cal { grid-template-columns: 1fr; } }

/* Bons réflexes, méthode */
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.fx-two > .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .fx-two { grid-template-columns: 1fr; } }
.fx-h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.fx-h3 .ico { color: var(--accent-ink); }
.fx-ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.fx-ul li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fx-ul li > .ico { flex: none; margin-top: 4px; color: var(--accent-ink); }
.fx-a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fx-quizcta { display: flex; gap: 16px; align-items: center; border-radius: var(--r-lg); padding: 24px; background: var(--hero); color: var(--hero-ink); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.fx-quizcta:hover { transform: translateY(-3px); }
.fx-quizcta .gi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--forest); flex: none; }
.fx-quizcta b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -0.03em; color: #FFFFFF; font-weight: 600; }
.fx-quizcta > span > span { font-size: 14.5px; color: var(--hero-muted); }
.fx-quizcta > .ico { margin-left: auto; color: var(--gold); flex: none; }
.fx-method { padding: 56px 0; }
.fx-method .wrap { max-width: var(--wrap); padding: 0 20px !important; }
.fx-mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fx-mgrid > div { border-radius: 18px; padding: 18px; background: var(--bg); }
.fx-mgrid b { font-size: 15.5px; }
.fx-mgrid p { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
@media (max-width: 960px) { .fx-mgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fx-mgrid { grid-template-columns: 1fr; } }

/* Fiche dispositif */
.fx-dh h1 { max-width: 18em; }
.fx-hero { background-size: auto 56%, auto, auto; background-position: right 8px top 22px, 0 0, 0 0; }
.fx-dh { background-size: auto 50%, auto, auto; background-position: right 8px top 14px, 0 0, 0 0; }
@media (max-width: 700px) { .fx-hero, .fx-dh { background-size: 0 0, auto, auto; } }
.fx-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; position: relative; }
.fx-chips div { border: 1px solid var(--hero-line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.05); }
.fx-chips span { display: block; font-size: 12px; color: var(--hero-muted); }
.fx-chips b { font-size: 15px; color: #FFFFFF; font-weight: 600; line-height: 1.3; display: block; margin-top: 2px; }
@media (max-width: 860px) { .fx-chips { grid-template-columns: 1fr 1fr; } }
.fx-mw { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 22px; }
.fx-mw .ico { color: var(--warn); flex: none; margin-top: 3px; }
.fx-dgrid { padding-bottom: 40px; }
.fx-main { min-width: 0; }
.fx-main > .panel h2 { font-size: 22px; letter-spacing: -0.03em; }
.fx-simp { border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.fx-sim-h { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.fx-sim-h .gi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--accent-ink); flex: none; }
.fx-sim-h .help { margin-top: 2px; }
.fx-in { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fx-in .field { align-content: start; gap: 7px; }
.fx-in .field.wide { grid-column: 1 / -1; }
.fx-in .lab { font-weight: 600; font-size: 14px; }
.fx-num { position: relative; }
.fx-num .input { padding-right: 38px; }
.fx-num span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-weight: 500; }
.fx-seg { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.fx-seg button { height: auto; min-height: 38px; padding: 7px 8px; white-space: normal; line-height: 1.2; }
@media (max-width: 640px) { .fx-in { grid-template-columns: 1fr; } }
.fx-res { margin-top: 22px; }
.fx-res::before { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--gold) 32%, transparent), transparent 70%); }
.fx-res .bignum { font-size: clamp(40px, 6vw, 58px); font-family: var(--display); letter-spacing: -0.04em; font-weight: 600; }
.fx-notes { margin: 12px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.fx-disc { margin-top: 12px; line-height: 1.5; }
.fx-rk { border-color: color-mix(in srgb, var(--neg) 28%, var(--line)); }
.fx-rk h2 { display: flex; gap: 10px; align-items: center; }
.fx-rk h2 .ico, .fx-rk .fx-ul li > .ico { color: var(--neg); }
.fx-src { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.fx-src a { color: var(--accent-ink); font-weight: 550; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; line-height: 1.4; }

/* Questionnaire */
.fx-picks { display: grid; gap: 12px; margin-top: 22px; }
.fx-pick { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: start; border: 1px solid var(--line); border-left: 4px solid var(--fc); border-radius: var(--r-lg); padding: 20px; background: var(--bg); }
.fx-pick .n { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-size: 21px; font-weight: 600; background: color-mix(in srgb, var(--fc) 14%, var(--bg)); color: var(--ink); }
.fx-pick h3 { font-size: 21px; margin-top: 4px; letter-spacing: -0.03em; }
.fx-pick h3 a:hover { color: var(--accent-ink); }
.fx-pick .fx-ul { margin-top: 10px; gap: 6px; }
.fx-pick .fx-ul li { font-size: 14.5px; }
.fx-pick .vig { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.fx-pick .vig .ico { color: var(--warn); flex: none; margin-top: 2px; }
@media (max-width: 640px) { .fx-pick { grid-template-columns: 1fr; } .fx-pick .btn { justify-self: start; } }
.fx-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.fx-more .lab { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.fx-excl { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; background: var(--bg); }
.fx-excl summary { cursor: pointer; font-weight: 600; }
.fx-excl ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fx-excl li { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.fx-excl li a { font-weight: 600; min-width: 11em; }
.fx-excl li span { color: var(--muted); }
.fx-qres .callout b { display: block; margin-bottom: 4px; }

/* ================= Palette pastel premium (v2) =================
   Fond ivoire, encre gris-vert, boutons encre, une teinte pastel par univers.
   Plus de jaune vif ni de vert foncé. */
:root {
  --bg: #FFFFFF; --bg-2: #F6F3EE; --bg-3: #ECE7DF; --sand: #F6F3EE;
  --ink: #1D2320; --ink-2: #3A423E; --muted: #66706B; --faint: #9EA59F;
  --line: #E8E3DB; --line-2: #D9D2C7;
  --brand: #1F2523; --brand-2: #000000; --brand-soft: #E5EFE8; --brand-ink: #FFFFFF;
  --gold: #B9D9C6; --gold-ink: #44685A; --hl: rgba(185,217,198,.8);
  --accent: #A9D3BA; --accent-ink: #44685A; --accent-soft: #E7F1EA;
  --forest: #1F2523; --forest-3: #1F2523;
  --hero: #E1EDE5; --hero-2: #D3E5D9; --hero-ink: #1D2320; --hero-muted: #55625C; --hero-line: rgba(29,35,32,.10);
  --pos: #2F8A63; --neg: #C2493A; --warn: #A87318;
  --d1: #6FAF8E; --d2: #A9D3BA; --d3: #D3E8DA; --d4: #A9D3BA; --d5: #D3E8DA; --d6: #8A938E; --d7: #C9CFCA; --d8: #E6E9E6;
  --page: #F7F5F0; --page-2: #EEEAE2;
  --shadow: 0 1px 2px rgba(29,35,32,.04), 0 10px 28px rgba(29,35,32,.06);
  --shadow-lg: 0 2px 4px rgba(29,35,32,.04), 0 28px 60px rgba(29,35,32,.12);
}
/* Mode sombre : anthracite et pastels lumineux */

html[data-prod="scpi"][data-prod] { --gold: #F4C1A6; --gold-ink: #9A5338; --hl: rgba(244,193,166,.8); --accent: #F4C1A6; --accent-ink: #9A5338; --accent-soft: #FCEBE1; --d4: #F2B08E; --d5: #F8D5C2; --hero: #F8DFD1; --hero-2: #F2CFBC; --page: #FBF5F0; --page-2: #F5E5DA; }
html[data-prod="assurance-vie"][data-prod] { --gold: #C9C0F1; --gold-ink: #5A4FA0; --hl: rgba(201,192,241,.8); --accent: #C9C0F1; --accent-ink: #5A4FA0; --accent-soft: #EEEBFB; --d4: #B6AAEC; --d5: #DCD6F7; --hero: #E4DFF7; --hero-2: #D6CFF1; --page: #F7F5FC; --page-2: #EAE6F7; }
html[data-prod="etf"][data-prod] { --gold: #CDE09B; --gold-ink: #5B6F2C; --hl: rgba(205,224,155,.85); --accent: #CDE09B; --accent-ink: #5B6F2C; --accent-soft: #EFF5DD; --d4: #BCD47F; --d5: #DDEABB; --hero: #E6EECE; --hero-2: #DAE6BB; --page: #F7F9EF; --page-2: #EAEFD9; }
html[data-prod="private-equity"][data-prod] { --gold: #DEC7A9; --gold-ink: #7A6047; --hl: rgba(222,199,169,.8); --accent: #DEC7A9; --accent-ink: #7A6047; --accent-soft: #F5ECE1; --d4: #D2B591; --d5: #E9DAC7; --hero: #EFE4D6; --hero-2: #E6D7C4; --page: #F9F6F1; --page-2: #EFE6DA; }
html[data-prod="fiscalite"][data-prod] { --gold: #EEB6CB; --gold-ink: #9C4466; --hl: rgba(238,182,203,.8); --accent: #EEB6CB; --accent-ink: #9C4466; --accent-soft: #FBE9F0; --d4: #E9A3BE; --d5: #F5D2DF; --hero: #F8DEE8; --hero-2: #F1CEDB; --page: #FCF4F7; --page-2: #F5E2EA; }
/* ================= PER, banques, cartes bancaires, liens rémunérés ================= */
html[data-prod="per"][data-prod] { --gold: #F2D49B; --gold-ink: #85601A; --hl: rgba(242,212,155,.8); --accent: #F2D49B; --accent-ink: #85601A; --accent-soft: #FBF2DE; --d4: #EDC57E; --d5: #F7E4BE; --hero: #F8EACB; --hero-2: #F2DEB5; --page: #FCF8EF; --page-2: #F5EBD6; }
html[data-prod="banques"][data-prod] { --gold: #A9CFE8; --gold-ink: #2F5F80; --hl: rgba(169,207,232,.8); --accent: #A9CFE8; --accent-ink: #2F5F80; --accent-soft: #E6F1F9; --d4: #93C1E0; --d5: #CFE4F2; --hero: #DCEBF5; --hero-2: #CCE1F0; --page: #F4F8FB; --page-2: #E3EEF6; }
html[data-prod="cartes"][data-prod] { --gold: #A8DDCF; --gold-ink: #2C6B5C; --hl: rgba(168,221,207,.8); --accent: #A8DDCF; --accent-ink: #2C6B5C; --accent-soft: #E4F5F0; --d4: #8FD2C0; --d5: #CDEDE4; --hero: #D9F0EA; --hero-2: #C8E8DF; --page: #F3FAF8; --page-2: #E1F2ED; }
.prod-pop a[data-prod="per"] .pi { background: #FBF2DE; color: #85601A; }
.prod-pop a[data-prod="banques"] .pi { background: #E6F1F9; color: #2F5F80; }
.prod-pop a[data-prod="cartes"] .pi { background: #E4F5F0; color: #2C6B5C; }
.sheet .sheet-prod a[data-prod="per"] { border-left: 4px solid #EDC57E; }
.sheet .sheet-prod a[data-prod="banques"] { border-left: 4px solid #93C1E0; }
.sheet .sheet-prod a[data-prod="cartes"] { border-left: 4px solid #8FD2C0; }
@media (min-width: 1101px) { .fam4.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fam4.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.pr-c { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.pr-c .pi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; }
.pr-c b { display: block; font-size: 15px; }
.pr-c p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.bk-needs { margin: 6px 0 14px; }
.bk-res { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); padding: 16px; }
.bk-crit { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 12px; line-height: 1.45; }
.bk-crit b { color: var(--ink); }
.bk-crit .ico { flex: none; margin-top: 2px; color: var(--accent-ink); }
.bk-rows { display: grid; gap: 8px; }
.bk-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: inherit; text-decoration: none; transition: border-color .15s; }
.bk-row:hover { border-color: var(--line-2); }
.bk-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.bk-t { min-width: 0; }
.bk-t b { display: block; font-size: 15px; }
.bk-t small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.bk-v { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bk-v > b { font-size: 14.5px; }
.bk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.bk-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: inherit; text-decoration: none; transition: border-color .15s; }
.bk-card:hover { border-color: var(--line-2); }
.bk-card-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bk-card-h b { display: block; font-size: 15px; }
.bk-card-h small { display: block; font-size: 12.5px; color: var(--muted); }
.bk-card-k { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); align-items: center; }
.bk-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cd-rk { font-weight: 600; color: var(--muted); text-align: center; width: 44px; }
.ln-cta { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.ln-code { font-size: 14px; }
.ln-r { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ln-mini { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ln-mini-r { display: block; font-size: 11.5px; color: var(--muted); }
.pe-cb { font-weight: 600; color: var(--ink); }
@media (min-width: 561px) { .chips.bk-needs { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 900px) { .pr-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .pr-4 { grid-template-columns: 1fr; }
  .bk-row { grid-template-columns: auto minmax(0, 1fr); }
  .bk-row .avatar { display: none; }
  .bk-v { grid-column: 2; }
}





/* Bandeau de vigilance : sable doux */
.riskbar { background: #EDE7DE; color: #3A423E; }
.riskbar .ico { color: var(--warn); }
.riskbar a { color: #1D2320; }



/* Boutons : encre, plus de jaune */
.btn:hover { box-shadow: 0 8px 20px rgba(29,35,32,.14); }
 .ph .btn:not(.light):not(.dark), .fx-band .btn { background: var(--ink); color: #FFFFFF; }

.top.on-hero .soon { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--hero-muted); }

/* Blocs « héros » en pastel (mode clair) */



.hero .it, .mani .it, .band .it, .alloc-out .it, .fee-total .it, .ph .it, .av-hero .it { color: inherit; background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); }
.hero-alt .lnk:hover, .mani .txt-link, .ph .txt-link { color: var(--gold-ink); }
.mani .kicker, .band .kicker, .av-hero .kicker, .ph .kicker { color: var(--gold-ink); }
.hero-badge i { background: var(--ink); color: var(--bg); }
.ph-tag i { background: var(--gold-ink); }




.intent .gi { background: var(--gold); color: var(--ink); }








.qtr div.on b { color: inherit; }

.band .lead-h .gi { background: var(--gold); color: var(--ink); }

.mani-nums b, .fee-total strong { color: var(--hero-ink); }

.mani-l li::before { background: var(--gold-ink); }
.res-hero::before { background: radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.55), transparent 70%); }

.ph { background: var(--motif) right -12px bottom -2px / auto 96% no-repeat, radial-gradient(620px 300px at 100% 0%, rgba(255,255,255,.6), transparent 70%), var(--hero); }

.prod-btn .dot { background: var(--gold-ink); }
.opt .meter i.au { background: var(--gold-ink); }
.fcmp-note { border-left-color: var(--gold); }
.py { fill: var(--gold); }

/* Ville du héros d'accueil, version pastel */
  
  
@keyframes lit { 0%, 18% { fill: #E9F2EC; } 26%, 78% { fill: #FFFFFF; } 90%, 100% { fill: #E9F2EC; } }
     

@keyframes litd { 0%, 18% { fill: #2E3833; } 26%, 78% { fill: #B9D9C6; } 90%, 100% { fill: #2E3833; } }

/* Fiscalité sur fond pastel */

.fx-hstats b, .fx-chips b, .fx-quizcta b { color: var(--hero-ink); }
.fx-quizcta .gi { background: var(--ink); color: var(--bg); }
.fx-quizcta > .ico { color: var(--hero-ink); }
.fx-band { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%239C4466' fill-opacity='.14'%3E%3Cellipse cx='300' cy='192' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='172' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='152' rx='56' ry='15'/%3E%3Cellipse cx='300' cy='132' rx='56' ry='15'/%3E%3Cellipse cx='196' cy='192' rx='46' ry='13'/%3E%3Cellipse cx='196' cy='174' rx='46' ry='13'/%3E%3C/g%3E%3Cg fill='none' stroke='%239C4466' stroke-opacity='.32' stroke-width='9' stroke-linecap='round'%3E%3Ccircle cx='332' cy='38' r='15'/%3E%3Ccircle cx='386' cy='96' r='15'/%3E%3Cpath d='M392 28 326 106'/%3E%3C/g%3E%3C/svg%3E") right -6px bottom -4px / auto 112% no-repeat, linear-gradient(120deg, #F8DEE8, #FCF0F5 62%); color: #2A1E24; border-color: #F1CEDB; }
.fx-band h2, .fx-band h2 .it { color: #2A1E24; }
.fx-band h2 .it { background-image: linear-gradient(transparent 58%, rgba(238,182,203,.85) 58%, rgba(238,182,203,.85) 92%, transparent 92%); }
.fx-band p { color: #5E4A54; }
.fx-band .kicker { color: #9C4466; }
.fx-band:hover { box-shadow: 0 18px 40px rgba(156,68,102,.10); }



[data-fam="enveloppe"] { --fc: #7CC3A0; }
[data-fam="deduction"] { --fc: #AE9CEB; }
[data-fam="reduction"] { --fc: #EAA0BC; }
[data-fam="credit"] { --fc: #E9C27A; }
[data-fam="plusvalue"] { --fc: #F2AE8C; }
[data-fam="transmission"] { --fc: #A9C97A; }
.fx-fams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .fx-fams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fx-fams { grid-template-columns: 1fr; } }
.fx-cal { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@media (max-width: 1020px) { .fx-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-cal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .fx-cal { grid-template-columns: 1fr; } }
.fx-fam-t .gi { color: color-mix(in srgb, var(--fc) 55%, var(--ink)); }
.fx-pick .n { background: color-mix(in srgb, var(--fc) 22%, var(--bg)); }
.band::before { background: radial-gradient(500px 280px at 100% 0%, rgba(255,255,255,.55), transparent 70%); }


/* Accents sauge, boutons encre, notes pastel */
:root { --brand: #4E8068; --brand-2: #3F6C57; --gA: #9FD3B6; --gB: #C9E09A; --gC: #F3D58A; --gD: #F5BE9C; --gE: #F0A79C; }

.grade b { color: #1D2320; }
.btn:not(.light):not(.dark):not(.glass) { background: var(--ink); color: var(--bg); }
.btn:not(.light):not(.dark):not(.glass):hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }

.qtr div.on { color: #FFFFFF; }
.fx-hero { background-size: auto 56%, auto, auto; background-position: right 8px top 22px, 0 0, 0 0; }
.fx-dh { background-size: auto 46%, auto, auto; background-position: right 8px top 14px, 0 0, 0 0; }
@media (max-width: 700px) { .fx-hero, .fx-dh { background-size: 0 0, auto, auto; } }
/* Logo « r » : le rendement qui tombe */
.logo-mark { border-radius: 50%; }
.logo-mark .lg-bg { fill: #F6D2BF; }

.logo-mark .lg-dot { transform-box: fill-box; transform-origin: 50% 50%; }
.logo:hover .lg-dot, .logo:focus-visible .lg-dot { animation: lgDrop .75s cubic-bezier(.25,.9,.35,1.15); }
@keyframes lgDrop { 0% { transform: translate(-2.4px,-10px) scale(.55); opacity: .2; } 55% { transform: translate(0,.9px) scale(1.06,.92); opacity: 1; } 78% { transform: translate(0,-.6px) scale(.98,1.03); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo:hover .lg-dot, .logo:focus-visible .lg-dot { animation: none; } }
/* Repères de confiance */
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 64px; }
.trust-row > div { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.trust-row .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.trust-row b { display: block; font-size: 15px; }
.trust-row span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; margin-bottom: 44px; } }

/* Remplissages pastel, sélections à l'encre */
:root { --d1: #8CC2A5; }
.dec-bar .k { background: var(--gold); color: var(--ink); }

.tabbar a.main .bubble { background: var(--ink); color: var(--bg); }
.opt[aria-pressed="true"] { border-color: var(--ink); }
.opt[aria-pressed="true"] .gi, .opt[aria-pressed="true"] .ck { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt[aria-pressed="true"]::after { background-color: var(--ink); }
.qtr div.on { background: var(--ink); color: var(--bg); }
.hc-row .bar i, .dim-t i, .tun-prog i, .fee-curve .fc.on .bar i, .tl li::before { background: var(--d1); }
.vbar-row .t i { background: var(--c, var(--d1)); }
input[type="range"] { accent-color: var(--ink); }
.tray .btn { background: var(--ink); color: var(--bg); }

/* Surligneur jaune pastel (univers Kapiry) */
:root { --hl: rgba(250,224,135,.82); }


/* Collecte T3 2026 (ASPIM) */
.asp { margin: 8px 0 56px; }
.asp-tbl { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.asp-hd, .asp-row { display: grid; grid-template-columns: 44px minmax(0, 2.4fr) minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; }
.asp-hd { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-2); }
.asp-row { border-top: 1px solid var(--line); transition: background .15s; }
.asp-row:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.asp-rk { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.asp-n { display: flex; gap: 12px; align-items: center; min-width: 0; }
.asp-n b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asp-n small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asp-c b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.asp-bar { display: block; height: 6px; border-radius: 4px; background: var(--bg-3); margin-top: 6px; overflow: hidden; }
.asp-bar i { display: block; height: 100%; border-radius: 4px; background: var(--d4); }
.asp-k { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.asp-st { justify-self: start; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bg-2); color: var(--muted); }
.asp-st.on { background: color-mix(in srgb, var(--gA) 40%, var(--bg)); color: var(--ink); }
@media (max-width: 760px) {
  .asp-hd { display: none; }
  .asp-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rk n st" "rk c k"; gap: 6px 12px; }
  .asp-rk { grid-area: rk; } .asp-n { grid-area: n; } .asp-c { grid-area: c; } .asp-k { grid-area: k; justify-self: end; font-size: 13px; } .asp-st { grid-area: st; justify-self: end; }
}

/* Classement spécifique (SCPI fiscales, capital gelé ou fixe) */
.asp-tbl.spec .asp-hd, .asp-tbl.spec .asp-row { grid-template-columns: 44px minmax(0, 2.2fr) minmax(0, 3fr) minmax(0, 1fr); }
.spec-m { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spec-m b { display: block; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.spec-m small { display: block; font-size: 12px; color: var(--muted); }
.asp-tbl.spec .spec-g, .asp-tbl.spec .asp-st { justify-self: end; }
.spec-kv th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.spec-kv td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.spec-sec { margin-top: 8px; }
@media (max-width: 760px) {
  .asp-tbl.spec .asp-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "rk n st" "rk m m"; }
  .asp-tbl.spec .spec-m { grid-area: m; gap: 8px; }
  .asp-tbl.spec .spec-g { grid-area: st; }
}

/* ETF éligibles au PEA */
.etf-kpis { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 900px; }
.etf-kpis > div { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); }
.etf-kpis b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.etf-kpis span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.etf-sec { padding-top: 30px; }
.etf-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.etf-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); max-width: 520px; }
.etf-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; min-width: 0; }
.etf-search:focus-within { border-color: var(--ink); }
.etf-row2 { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.etf-sel { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.etf-sel select { height: 38px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.etf-tgl { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; cursor: pointer; }
.etf-tgl input { width: 16px; height: 16px; accent-color: var(--ink); }
.etf-count { margin: 4px 0 10px; }
.etf-tbl { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.etf-hd, .etf-row { display: grid; grid-template-columns: minmax(0, 3.2fr) repeat(5, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 12px 18px; }
.etf-hd { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-2); }
.etf-hd span:not(:first-child) { text-align: right; }
.etf-row { border-top: 1px solid var(--line); transition: background .15s; }
.etf-row:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.etf-n { display: flex; gap: 12px; align-items: center; min-width: 0; }
.etf-n b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etf-n small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.etf-b { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.etf-b.free { background: color-mix(in srgb, var(--gA) 45%, var(--bg)); color: var(--ink); }
.etf-b.warn { background: color-mix(in srgb, var(--gE) 45%, var(--bg)); color: var(--ink); }
.etf-c { text-align: right; font-variant-numeric: tabular-nums; }
.etf-c b { display: block; font-size: 14.5px; font-weight: 600; }
.etf-c small { display: none; font-size: 11.5px; color: var(--muted); }
.etf-c b.up, .etf-perf td.up, .etf-bar .v.up { color: color-mix(in srgb, #2F7A55 85%, var(--ink)); }
.etf-c b.dn, .etf-perf td.dn, .etf-bar .v.dn { color: color-mix(in srgb, #B5473A 85%, var(--ink)); }


@media (max-width: 860px) {
  .etf-kpis { grid-template-columns: 1fr 1fr; }
  .etf-hd { display: none; }
  .etf-row { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "n n n n" "ter aum a1 v1"; gap: 10px 10px; padding: 14px 16px; }
  .etf-n { grid-area: n; } .etf-ter { grid-area: ter; } .etf-aum { grid-area: aum; } .etf-a1 { grid-area: a1; } .etf-v1 { grid-area: v1; } .etf-a5 { display: none; }
  .etf-c { text-align: left; } .etf-c small { display: block; }
  .etf-n b, .etf-n small { white-space: normal; }
}
.etf-src { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }
.etf-src b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.etf-src ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.etf-learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.etf-learn .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px; }
.etf-learn h3 { font-size: 18px; margin-bottom: 6px; }
.etf-learn p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .etf-learn { grid-template-columns: 1fr; } }
.etf-terbox { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--accent-soft); }
.etf-terbox .big { font-family: var(--display); font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.etf-terbox .l { font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.etf-terbox .s { font-size: 12px; color: var(--muted); }
.etf-warn-tag { background: color-mix(in srgb, var(--gE) 45%, var(--bg)); color: var(--ink); }
.etf-perf { margin-top: 12px; overflow-x: auto; }
.etf-perf table, .etf-courtiers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.etf-perf th, .etf-perf td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etf-perf th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.etf-perf thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.etf-h3 { font-size: 16px; margin: 22px 0 10px; }
.etf-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; }
.etf-bar { display: grid; gap: 6px; justify-items: center; text-align: center; }
.etf-bar .v { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.etf-bar .track { position: relative; width: 100%; max-width: 54px; height: 110px; border-radius: 10px; background: var(--bg-2); overflow: hidden; display: flex; align-items: flex-end; }
.etf-bar .track i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: #9FD3B6; }
.etf-bar .track i.neg { background: #F0A79C; }
.etf-bar .y { font-size: 12px; color: var(--muted); }
.etf-gloss { margin-top: 14px; }
.etf-courtiers { margin-top: 12px; overflow-x: auto; }
.etf-courtiers th, .etf-courtiers td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.etf-courtiers thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.etf-courtiers tbody th b { display: block; font-size: 14.5px; }
.etf-courtiers tbody th small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; max-width: 22em; }
.etf-courtiers td:last-child { color: var(--ink-2); font-size: 13.5px; min-width: 16em; }
.etf-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.etf-st.ok { background: color-mix(in srgb, var(--gB) 40%, var(--bg)); color: var(--ink); }
.etf-st.free { background: color-mix(in srgb, var(--gA) 55%, var(--bg)); color: var(--ink); }
.etf-sim { display: grid; gap: 4px; }
.etf-sim a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.etf-sim a:hover { background: var(--bg-2); }
.etf-sim b { display: block; font-size: 14px; }
.etf-sim small { display: block; font-size: 12px; color: var(--muted); }
.etf-sim .t { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-grid > div, .f-grid > aside { min-width: 0; }
@media (max-width: 560px) { .etf-perf th, .etf-perf td { padding: 8px 6px; font-size: 13.5px; } .etf-courtiers td:last-child { min-width: 13em; } .etf-bars { gap: 6px; } .etf-bar .v { font-size: 11px; } }

/* Calcul de la note et SCPI en attente */
.calc-tbl { margin-top: 14px; overflow-x: auto; }
.calc-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-tbl th, .calc-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.calc-tbl thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.calc-tbl tbody th { font-weight: 500; }
.calc-tbl tbody th small, .calc-tbl td small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.calc-tbl td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.calc-tbl td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-tbl tr.ax th, .calc-tbl tr.ax td { background: var(--bg-2); font-weight: 700; font-size: 13.5px; }
.calc-tbl tr.tot th, .calc-tbl tr.tot td { font-weight: 700; font-size: 15px; border-bottom: 0; border-top: 2px solid var(--ink); }
.cp-src { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.att-tag { background: color-mix(in srgb, var(--gC) 45%, var(--bg)); color: var(--ink); }
.asp-st.att { background: color-mix(in srgb, var(--gC) 40%, var(--bg)); color: var(--ink); }
.att-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--gC) 30%, var(--bg)); }
.att-box b { display: block; font-size: 16px; margin-bottom: 4px; }
.att-box p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.att-item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.att-item > span:nth-child(2) { flex: 1; min-width: 0; }
.etf-st.cat { white-space: normal; }
.att-item b { display: block; font-size: 15px; } .att-item small { display: block; font-size: 12.5px; color: var(--muted); }

/* Simulateurs : vitrine de l'accueil et page dédiée */
[data-fam="scpi"] { --fc: #0E6B4E; }
.sims { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 14px; align-items: stretch; }
.sim-feat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; background: var(--hero); color: var(--hero-ink); border-radius: var(--r-lg); padding: 28px 26px 26px; }
.sim-feat::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,196,81,.22), rgba(245,196,81,0) 70%); pointer-events: none; }
.sim-feat .sim-tag { color: var(--hero-muted); }
.sim-feat .sim-tag i { background: var(--gold); }
.sim-feat h3 { font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -0.04em; line-height: 1.1; }
.sim-feat > p { color: var(--hero-muted); font-size: 15.5px; }
.sim-feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.sim-feat li { display: flex; gap: 9px; align-items: flex-start; }
.sim-feat li .ico { color: var(--brand); flex: none; margin-top: 2px; }
.sim-exf { margin-top: auto; border: 1px solid var(--hero-line); background: rgba(255,255,255,.05); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.sim-exf .in { font-size: 13px; color: var(--hero-muted); }
.sim-exf b { font-family: var(--display); font-size: 34px; letter-spacing: -0.04em; line-height: 1.1; }
.sim-exf .nt { font-size: 12.5px; color: var(--hero-muted); }
.sim-feat .acts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 4px; }
.sim-feat .sim-lnk { color: var(--hero-ink); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; }
.sim-feat .sim-lnk:hover { color: var(--gold); }
.sim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sim-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px 18px; background: var(--bg); color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.sim-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--fc); }
.sim-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.sim-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sim-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); flex: none; }
.sim-card h3 { font-size: 18px; letter-spacing: -0.03em; line-height: 1.25; }
.sim-card .sim-nom { font-size: 13.5px; color: var(--muted); margin-top: -2px; }
.sim-out { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); display: grid; gap: 2px; }
.sim-out .in { font-size: 12.5px; color: var(--muted); }
.sim-out b { font-family: var(--display); font-size: 24px; letter-spacing: -0.035em; line-height: 1.15; }
.sim-out span:last-child { font-size: 13px; color: var(--ink-2); }
.sim-go { font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.sim-go .ico:last-child { transition: transform .2s; }
.sim-card:hover .sim-go .ico:last-child { transform: translateX(3px); }
.sim-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.sim-q { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: var(--bg-2); color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.sim-q:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sim-q .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--brand); flex: none; }
.sim-q b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.sim-q small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sim-q > .ico:last-child { margin-left: auto; color: var(--brand); flex: none; }
.sim-q.all { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sim-q.all small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.sim-q.all .gi { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--gold); }
.sim-q.all > .ico:last-child { color: var(--gold); }
.sim-fine { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 70em; }
.sim-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.sim-chips .n { font-size: 12px; color: var(--muted); margin-left: 2px; }
.sim-chips .chip[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.sim-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sim-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; }




@media (max-width: 1060px) { .sims { grid-template-columns: 1fr; } .sim-feat .acts { flex-direction: row; flex-wrap: wrap; align-items: center; } }
@media (max-width: 900px) { .sim-more, .sim-qs { grid-template-columns: 1fr; } .sim-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .sim-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .sim-grid::-webkit-scrollbar { display: none; }
  .sim-grid .sim-card { flex: 0 0 78%; scroll-snap-align: start; }
  .sim-all { grid-template-columns: 1fr; }
  .sim-feat { padding: 24px 20px 22px; }
}

/* Accueil : nos comparateurs */
[data-pc="scpi"] { --pc: #E9A27E; --pt: #FDF1EA; }
[data-pc="etf"] { --pc: #9DBB55; --pt: #F2F8E3; }
[data-pc="fiscalite"] { --pc: #E08AAE; --pt: #FCEEF4; }
[data-pc="assurance-vie"] { --pc: #9C8FE6; --pt: #EFEDFC; }
[data-pc="private-equity"] { --pc: #8E6CF2; --pt: #F1EEFD; }
.prods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.prod-c { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; border: 1px solid color-mix(in srgb, var(--pc) 35%, var(--line)); border-radius: var(--r-lg); padding: 20px 18px 18px; background: var(--pt); color: var(--ink); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.prod-c:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-c .pc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prod-c .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 26%, #FFFFFF); color: color-mix(in srgb, var(--pc) 45%, #1D2320); }
.prod-c .st { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--bg); color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.prod-c .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.prod-c .st.soon i { background: var(--faint); }
.prod-c h3 { font-size: 19px; letter-spacing: -0.03em; margin-top: 6px; }
.prod-c .big { font-family: var(--display); font-size: 30px; letter-spacing: -0.04em; line-height: 1.05; }
.prod-c .big small { display: block; font-family: var(--font); font-size: 13px; letter-spacing: 0; color: var(--ink-2); font-weight: 500; margin-top: 2px; }
.prod-c p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.prod-c .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.prod-c .go .ico { transition: transform .2s; }
.prod-c:hover .go .ico { transform: translateX(3px); }
.prods-sec .trust-row { margin-bottom: 44px; }



@media (max-width: 1100px) { .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .prods { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .prods::-webkit-scrollbar { display: none; }
  .prod-c { flex: 0 0 72%; scroll-snap-align: start; }
}

.sr-fx { background: color-mix(in srgb, var(--fc) 18%, var(--bg)); color: color-mix(in srgb, var(--fc) 60%, var(--ink)); display: grid; place-items: center; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Rendement / risque */
.rr { --rr-scpi: #D46A3F; --rr-etf: #2F6DB5; --rr-surf: var(--bg); position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); padding: 18px 18px 14px; }

.rr-bar { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rr-bar .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rr-leg { display: flex; gap: 16px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.rr-leg span { display: inline-flex; align-items: center; gap: 7px; }
.rr-leg svg { flex: none; }
.rr-sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); margin: 2px 0 6px; }
.rr-sub .chip { height: 30px; font-size: 13px; }
.rr-plot { position: relative; }
.rr-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.rr-plot .grid line { stroke: var(--line); stroke-width: 1; }
.rr-plot .zero { stroke: var(--line-2); stroke-width: 1.5; }
.rr-plot .tick { font-size: 12px; fill: var(--muted); font-family: var(--font); }
.rr-plot .atitle { font-size: 12.5px; fill: var(--ink-2); font-weight: 600; font-family: var(--font); }
.rr-plot .band { fill: var(--bg-2); }
.rr-pt { cursor: pointer; outline: none; }
.rr-pt .hit { fill: transparent; }
.rr-pt .mk { stroke: var(--rr-surf); stroke-width: 2; transition: opacity .15s; }
.rr-pt[data-t="scpi"] .mk { fill: var(--rr-scpi); fill-opacity: .85; }
.rr-pt[data-t="etf"] .mk { fill: var(--rr-etf); fill-opacity: .8; }
.rr-pt:hover .mk, .rr-pt:focus .mk { fill-opacity: 1; stroke: var(--ink); stroke-width: 2; }
.rr-plot.dim .rr-pt:not(:hover):not(:focus) .mk { opacity: .35; }
.rr-lbl { font-size: 11.5px; fill: var(--ink-2); font-family: var(--font); font-weight: 600; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.rr-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 13px; min-width: 190px; max-width: 260px; }
.rr-tip[hidden] { display: none; }
.rr-tip .n { font-weight: 600; display: block; margin-bottom: 6px; line-height: 1.3; }
.rr-tip .r { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.rr-tip .r b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rr-tip .k { display: inline-block; width: 12px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.rr-tip .go { display: block; margin-top: 6px; color: var(--brand); font-weight: 600; font-size: 12.5px; }
.rr-notes { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: grid; gap: 4px; }
.rr-notes b { color: var(--ink-2); font-weight: 600; }
.rr-cnt { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .rr { padding: 14px 10px 12px; margin: 0 -6px; } .rr-plot .tick { font-size: 11px; } .rr-plot .atitle { font-size: 11.5px; } .rr-tip { min-width: 170px; max-width: 220px; font-size: 12.5px; } }

.calc-tbl tr.adj th, .calc-tbl tr.adj td { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.calc-tbl tr.adj td:last-child { color: var(--muted); font-size: 12.5px; }

.etf-g { flex: none; margin-left: 10px; }
.etf-g .grade b { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.etf-g .grade span { font-size: 13.5px; }
.etf-terbox { display: flex; gap: 14px; align-items: center; }
.etf-ring { display: grid; justify-items: center; gap: 8px; align-content: center; min-width: 140px; }
@media (max-width: 640px) { .etf-g .grade span { display: none; } }

/* ETF : face à face et simulateur */
[data-fam="etf"] { --fc: #5B6F2C; }

.etf-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ecmp-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.ecmp-quick .lab { font-size: 14px; color: var(--muted); margin-right: 4px; }
.ecmp-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; }
.ecmp-hint.ok { background: var(--accent-soft); }
.ecmp-hint .ico { flex: none; margin-top: 3px; }
.ecmp-hint .txt-link { display: inline; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ecmp-tbl .up { color: color-mix(in srgb, #2F7A55 85%, var(--ink)); }
.ecmp-tbl .dn { color: color-mix(in srgb, #B5473A 85%, var(--ink)); }


.ecmp-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.es-chart { position: relative; }
.es-b { outline: none; }
.es-b .hit { fill: transparent; }
.es-chart svg:hover .es-b:not(:hover) rect:not(.hit), .es-chart svg:focus-within .es-b:not(:focus) rect:not(.hit) { opacity: .5; }
.es-b:focus .hit { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.es-tip { position: absolute; z-index: 3; pointer-events: none; display: grid; gap: 2px; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.es-tip .h { font-weight: 600; }
.es-tax { display: grid; gap: 10px; }
.es-tax b { margin-right: 4px; }
#esimNote { display: block; margin-top: 8px; }

/* ================= Kapiry premium : version claire, épurée ================= */
:root, :root[data-theme], html[data-prod][data-prod][data-prod] {
  --display: var(--font); --serif: var(--font);
  --page: #F7F6F2; --page-2: #EFEDE7;
  --hero: #F7F6F2; --hero-2: #FFFFFF; --hero-line: #E4E1D9; --hero-ink: #111513; --hero-muted: #5C655F;
  --bg: #FFFFFF; --bg-2: #F4F3EF; --bg-3: #E9E7E0; --sand: #F4F3EF;
  --ink: #111513; --ink-2: #2B312E; --muted: #5C655F; --faint: #8F9691;
  --line: #E6E3DB; --line-2: #D7D3C9;
  --motif: none;
  --shadow: 0 1px 2px rgba(17,21,19,.04), 0 10px 30px rgba(17,21,19,.05);
  --shadow-lg: 0 24px 60px rgba(17,21,19,.09);
  --r-lg: 20px;
}
body { line-height: 1.6; letter-spacing: -0.006em; }
h1, h2, h3, h4, .logo, .bignum { font-family: var(--font); }
h1, h2 { font-weight: 600; letter-spacing: -0.04em; font-variation-settings: normal; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
/* Titres en deux tons, sans surlignage */
.it, h1 em, h2 em, .hero .it, .hero h1 .it, .ph .it, .av-hero .it, .mani .it, .band .it, .fx-band h2 .it {
  background: none !important; color: var(--faint) !important; animation: none !important; padding: 0 !important; margin: 0 !important; font-style: normal; }
.kicker, .mani .kicker, .band .kicker, .ph .kicker, .av-hero .kicker, .fx-band .kicker, .sim-tag, .sims-sec .kicker {
  font-size: 12px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.sim-tag i { display: none; }

/* Sections : deux fonds seulement ; 64 px en haut et en bas (16/11/2026 : moins de blanc entre les blocs, 104 px auparavant) */
.sec { padding: 64px 0; }
.sec.alt { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { margin-bottom: 36px; }
.sec-h h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.045em; line-height: 1.04; }
.sec-h p { font-size: 17px; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .sec { padding: 40px 0; } .sec-h { margin-bottom: 26px; } .sec-h p { font-size: 16px; } }

/* Bandeau réglementaire : fin et sobre */
.riskbar { background: #111513 !important; color: #C9CFCB !important; font-size: 12px; padding: 6px 0; }
.riskbar .ico { color: #C9CFCB !important; }
.riskbar a { color: #FFFFFF !important; }

/* En-tête */
.top { background: rgba(247,246,242,.86) !important; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }

/* Boutons */
.btn { background: var(--ink); color: #FFFFFF; border-radius: 999px; height: 48px; padding: 0 22px; font-weight: 600; letter-spacing: -0.01em; }
.btn:hover { background: #2B312E; }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.light, .btn.glass, .ph .btn.light { background: #FFFFFF !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; }
.btn.light:hover, .btn.glass:hover { background: var(--bg-2) !important; }
.btn.sm { height: 40px; padding: 0 16px; }
.btn.block { border-radius: 14px; }
.txt-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.txt-link:hover { text-decoration-color: var(--ink); }

/* Héro */
.hero, .hero.hero { background: var(--page) !important; color: var(--ink) !important; }
.hero h1, .hero.hero h1 { color: var(--ink) !important; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.055em; line-height: .98; margin-top: 18px; }
.hero .wrap, .hero.hero .wrap { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 900px) { .hero .wrap, .hero.hero .wrap { padding-top: 44px; padding-bottom: 48px; } }
.hero .lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 28em; margin-top: 22px; }
.hero-badge, .ph-tag { background: none !important; border: 0 !important; padding: 0 !important; height: auto !important; border-radius: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.ph-tag i { width: 6px !important; height: 6px !important; background: var(--ink) !important; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero .search { margin-top: 22px; max-width: 560px; }
.hero .search-box { background: #FFFFFF !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 999px; }
.hero-alt { margin-top: 18px; }
.hero-alt .lnk { color: var(--muted) !important; font-size: 14px; }
.hero-card { background: #FFFFFF !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-lg) !important; border-radius: 22px; }
.skyline { display: none !important; }
@media (max-width: 900px) { .hero .hero-card { display: none; } .hero h1 { font-size: clamp(42px, 12vw, 60px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .05s both; }
.hero .lead { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.hero-cta { animation: rise .9s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero .search, .hero-alt { animation: rise .9s cubic-bezier(.2,.7,.2,1) .32s both; }
.hero-card { animation: rise 1s cubic-bezier(.2,.7,.2,1) .35s both; }

/* En-têtes de page */
.ph, .av-hero { background: none !important; border-radius: 0 !important; padding: 64px 0 34px !important; margin-top: 0 !important; overflow: visible; border-bottom: 1px solid var(--line); }
.ph h1, .av-hero h1 { color: var(--ink) !important; font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.055em; line-height: 1; margin-top: 14px; max-width: 16em; }
.ph p, .av-hero p.lead { color: var(--muted) !important; font-size: 18px; max-width: 40em; margin-top: 16px; }
.ph h1 { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.ph p { animation: rise .8s cubic-bezier(.2,.7,.2,1) .08s both; }
@media (max-width: 760px) { .ph, .av-hero { padding: 40px 0 26px !important; } .ph p, .av-hero p.lead { font-size: 16px; } }

/* Cartes et panneaux : filets fins, pas d'ombres lourdes */
.panel { border-color: var(--line); border-radius: 20px; box-shadow: none; }
.prod-c, .sim-card, .sim-feat, .tile, .icard, .fx-card, .etf-tbl, .rank, .gel-card, .att-item { box-shadow: none !important; }
.prod-c { background: #FFFFFF !important; border-color: var(--line) !important; }
.prod-c:hover, .sim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; border-color: var(--line-2) !important; }
.sim-feat { background: #FFFFFF !important; border: 1px solid var(--line); }
.gi, .prod-c .pi { background: var(--bg-2) !important; color: var(--ink) !important; }
.tile.dark { background: #FFFFFF !important; color: var(--ink) !important; border: 1px solid var(--line); }
.tile.dark h3, .tile.dark p { color: inherit !important; }
.mani, .band { background: #FFFFFF !important; color: var(--ink) !important; border: 1px solid var(--line); }
.mani h2, .band h2, .mani p, .band p { color: inherit !important; }
.perf-note { color: var(--muted); font-size: 12px; }
.perf-note .ico { color: var(--faint); }
.foot { background: var(--page-2) !important; }

/* Section dépliable : petite flèche */
.fold { border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; margin-top: 12px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.fold:hover { border-color: var(--line-2); }
.fold[open] { box-shadow: var(--shadow); }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; -webkit-tap-highlight-color: transparent; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 18px; }
.fold-t b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.fold-t small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; line-height: 1.4; }
.fold-i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s, border-color .2s; }
.fold-i::before { content: ""; position: absolute; left: 50%; top: 44%; width: 8px; height: 8px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.fold > summary:hover .fold-i { background: var(--bg-2); }
.fold[open] > summary .fold-i { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.fold[open] > summary .fold-i::before { border-color: #FFFFFF; }
.fold-c { padding: 0 24px 24px; animation: foldIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes foldIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.fold-c > .panel, .fold-c > div > .panel:first-child { border: 0; padding: 0; background: none; box-shadow: none; }
.fold-c > .panel > h2:first-child, .fold-c > .calc-panel > h2:first-child { display: none; }
.fold-c .sec, .fold-c .sec.alt, .fold-c section { padding: 4px 0 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
.fold-c .wrap { padding: 0 !important; max-width: none !important; }
.fold-c .sec-h .kicker, .fold-c .sec-h h2, .fold-c .gel-h h2 { display: none; }
.fold-c .sec-h { margin-bottom: 16px; }
.fold-c .rv { opacity: 1 !important; transform: none !important; }
.fold-c .mani, .fold-c .band { border: 0; padding-left: 0; padding-right: 0; }
.sec.more .fold { max-width: 920px; }
.f-grid .fold, .fx-main .fold { margin-top: 14px; }
@media (max-width: 760px) { .fold > summary { padding: 18px 18px; } .fold-c { padding: 0 18px 18px; } .fold-t b { font-size: 16.5px; } }

/* Bandeau défilant des chiffres clés */
.ticker { position: relative; overflow: hidden; background: var(--ink); border: 0; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 95s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-g { display: flex; align-items: stretch; }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; white-space: nowrap; font-size: 14px; color: rgba(255,255,255,.66); border-right: 1px solid rgba(255,255,255,.09); text-decoration: none; transition: background .2s; }
a.tk:hover { background: rgba(255,255,255,.07); }
.tk .tk-n { color: #FFFFFF; font-weight: 600; font-size: 14.5px; }
.tk b { color: #FFFFFF; font-weight: 650; font-variant-numeric: tabular-nums; }
.tk > span:not(.tk-n) { font-size: 13px; color: rgba(255,255,255,.62); }
.tk-t { font-style: normal; font-size: 12px; font-weight: 650; line-height: 1; padding: 5px 10px; border-radius: 999px; }
.tk-scpi { background: #F4C1A6; color: #5E2F1C; }
.tk-etf { background: #CDE09B; color: #34441A; }
.tk-av { background: #C9C0F1; color: #352C6E; }
.tk-pe { background: #DEC7A9; color: #4F3B28; }
.tk-fx { background: #EEB6CB; color: #6B2643; }
.tk-mk { background: #F5D17A; color: #4A3608; }
.tk-g { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--g); color: #10231B; font-weight: 700; font-size: 12.5px; }
.tk-note { font-size: 12.5px; color: rgba(255,255,255,.55); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } .ticker-g[aria-hidden] { display: none; } }

/* Apparitions sobres au défilement */
@media (prefers-reduced-motion: reduce) { .hero h1, .hero .lead, .hero-cta, .hero .search, .hero-alt, .hero-card, .ph h1, .ph p, .fold-c { animation: none !important; } }

.trust-row { gap: 28px; margin-bottom: 72px; }
.trust-row > div { background: transparent; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 18px 0 0; }
.trust-row .gi { background: none !important; width: auto; height: auto; padding: 0; color: var(--ink) !important; }
@media (max-width: 760px) { .trust-row { grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 44px; } .trust-row > div { flex-direction: column; gap: 6px; padding-top: 12px; } .trust-row > div > div > span { display: none; } }

.rtable:not(.all) > div.rrow:nth-of-type(n+22) { display: none; }
.r-more { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px; background: #FFFFFF; border: 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.r-more:hover { background: var(--bg-2); }
.r-more .fold-i { width: 30px; height: 30px; }
.rtable.all .r-more .fold-i { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.rtable.all .r-more .fold-i::before { border-color: #FFFFFF; }
.panel .fold, .fold.fold-in { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 18px; box-shadow: none !important; background: none; }
.panel .fold > summary { padding: 16px 0; }
.panel .fold-c { padding: 0 0 4px; }
.panel .fold-t b { font-size: 16px; }

.m-folds .fold-c .m-axis { border: 0; padding: 0; margin: 0; }
.m-ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.grades-row { margin: 28px 0 22px; }

.etf-tbl:not(.all) > a.etf-row:nth-of-type(n+21) { display: none; }
.etf-tbl.all .r-more .fold-i { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.etf-tbl.all .r-more .fold-i::before { border-color: #FFFFFF; }
.fx-folds { max-width: 920px; }
.fx-folds:first-child, .fx-hero + .fx-folds { margin-top: 28px; }
.fx-card .fx-meta { display: none; }
@media (max-width: 760px) { .fx-card .fx-risk, .fx-card .fx-acc { display: none; } }

.ph + .sec, .av-hero + .sec, .etf-sec { padding-top: 44px; }

/* ================= Accueil en format tunnel ================= */
.hero, .hero.hero { overflow: visible !important; position: relative; z-index: 30; }
.hero .search { position: relative; z-index: 40; animation: none !important; }
.search-results { z-index: 60; background: #FFFFFF !important; }
.ticker { z-index: 1; }
.hero .intent-label { margin-top: 30px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hero .intent { margin-top: 12px; }
.hero .intent button { background: #FFFFFF !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.hero .intent button:hover { border-color: var(--line-2) !important; box-shadow: var(--shadow) !important; transform: translateY(-2px); }
.hero .intent .pic { background: var(--bg-2) !important; }
.hero .intent .hint { background: var(--bg-2) !important; color: var(--ink) !important; }
.hero .intent, .hero .intent-label { animation: rise .9s cubic-bezier(.2,.7,.2,1) .22s both; }
.tnav { position: sticky; top: 64px; z-index: 25; background: color-mix(in srgb, var(--page, #F7F6F2) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tnav .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.tnav ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tnav ol::-webkit-scrollbar { display: none; }
.tnav li button { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tnav li button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink); transition: background .2s, color .2s; }
.tnav li button:hover { color: var(--ink); }
.tnav li button.on { color: var(--ink); background: #FFFFFF; border-color: var(--line); }
.tnav li button.on .n, .tnav li button.done .n { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.tnav-cta { flex: none; }
.tnav-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.tnav-bar b { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s linear; }
@media (max-width: 760px) { .tnav { top: 60px; } .tnav .wrap { height: 52px; gap: 8px; } .tnav-cta { display: none; } .tnav li button { padding: 0 10px 0 4px; font-size: 13px; gap: 6px; } .tnav li button .n { width: 24px; height: 24px; } .tnav li button:not(.on) .l { display: none; } }
.tstep { padding: 88px 0 0; }
.tstep .wrap { display: flex; align-items: flex-end; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.tstep-n { font-size: clamp(64px, 9vw, 120px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; }
.tstep-t { display: grid; gap: 4px; padding-bottom: 4px; }
.tstep-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.tstep-t b { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.tstep-s { color: var(--muted); font-size: 16px; max-width: 34em; }
.tstep + .sec, .tstep + section { padding-top: 56px; }
@media (max-width: 760px) { .tstep { padding-top: 56px; } .tstep .wrap { gap: 14px; } .tstep-s { font-size: 14.5px; } .tstep + .sec, .tstep + section { padding-top: 36px; } }
.tnext { padding: 8px 0 24px; }
.tnext-b { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k i" "b i"; align-items: center; text-align: left; gap: 2px 16px; padding: 22px 26px; border-radius: 22px; border: 1px solid var(--line); background: #FFFFFF; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tnext-b:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tnext-k { grid-area: k; font-size: 13px; font-weight: 600; color: var(--muted); }
.tnext-b b { grid-area: b; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tnext-b .fold-i { grid-area: i; width: 44px; height: 44px; background: var(--ink); border-color: var(--ink); }
.tnext-b .fold-i::before { border-color: #FFFFFF; }
.tnext-b:hover .fold-i { transform: translateY(3px); }

/* ================= Aucune capitale espacée : écriture normale ================= */
.kicker, .mani .kicker, .band .kicker, .ph .kicker, .av-hero .kicker, .fx-band .kicker, .sim-tag, .sims-sec .kicker,
.tk-l, .hero .intent-label, .intent-label, .tstep-k, .tnext-k, .fx-caplist .lab, .fx-perm .lab, .hero-badge, .ph-tag {
  text-transform: none !important; letter-spacing: -0.005em !important; }
.kicker, .mani .kicker, .band .kicker, .ph .kicker, .av-hero .kicker, .fx-band .kicker, .sims-sec .kicker { font-size: 15px !important; font-weight: 500 !important; color: var(--muted) !important; margin-bottom: 8px; }
.hero-badge, .ph-tag { display: none !important; }
.hero h1 { margin-top: 0 !important; }
.ph h1, .av-hero h1 { margin-top: 0 !important; }
.sim-tag { font-size: 13.5px !important; font-weight: 500 !important; }
.tstep-k, .tnext-k { font-size: 14px !important; font-weight: 500 !important; }
.hero .intent-label { font-size: 15px !important; font-weight: 500 !important; }
.tk-l { font-size: 13.5px !important; font-weight: 600 !important; }
.fx-caplist .lab, .fx-perm .lab { font-size: 13.5px !important; font-weight: 500 !important; }

/* ================= Surlignage jaune transparent sur la fin des titres ================= */
.it, h1 em, h2 em, .hero .it, .hero h1 .it, .ph .it, .av-hero .it, .mani .it, .band .it, .fx-band h2 .it {
  color: inherit !important; font-style: normal;
  background: linear-gradient(transparent 58%, rgba(247, 201, 72, .4) 58%, rgba(247, 201, 72, .4) 93%, transparent 93%) no-repeat 0 0 / 100% 100% !important;
  padding: 0 .06em !important; margin: 0 -.03em !important;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes hlDraw { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.hero h1 .it, .ph h1 .it { animation: hlDraw .9s cubic-bezier(.2,.7,.2,1) .45s both !important; }
@media (prefers-reduced-motion: reduce) { .hero h1 .it, .ph h1 .it { animation: none !important; } }

/* ================= Barre d'étapes : pilule flottante moderne ================= */
.tnav { position: sticky; top: 72px; z-index: 25; background: none !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 14px 20px 0; pointer-events: none; height: 0; }
.tnav-pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border: 1px solid rgba(17,21,19,.08); box-shadow: 0 10px 30px rgba(17,21,19,.10), 0 1px 2px rgba(17,21,19,.06); }
.tnav ol { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow: visible; }
.tnav li button { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 46px; min-width: 112px; padding: 0 16px; border: 0 !important; border-radius: 999px; background: none; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s; }
.tnav li button:hover { background: rgba(17,21,19,.05); color: var(--ink); }
.tnav li button.on { background: var(--ink) !important; color: #FFFFFF; }
.tnav-lab { display: flex; align-items: baseline; gap: 7px; line-height: 1; }
.tnav-lab .n { width: auto; height: auto; border: 0 !important; background: none !important; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: inherit; opacity: .55; display: inline; }
.tnav li button.on .tnav-lab .n { opacity: .7; }
.tnav-track { display: block; height: 2px; border-radius: 2px; background: rgba(17,21,19,.10); overflow: hidden; }
.tnav-track b { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s linear; }
.tnav li button.on .tnav-track { background: rgba(255,255,255,.22); }
.tnav li button.on .tnav-track b { background: #FFFFFF; }
.tnav li button.done .tnav-track b { transform: scaleX(1) !important; }
.tnav-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: #F7C948; color: #111513; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.tnav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(247,201,72,.45); }
.tnav { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.tnav.vis { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .tnav { top: 66px; padding: 10px 12px 0; }
  .tnav-pill { width: 100%; justify-content: space-between; padding: 5px; }
  .tnav ol { flex: 1; justify-content: space-between; }
  .tnav li { flex: 1; }
  .tnav li button { min-width: 0; width: 100%; height: 42px; padding: 0 8px; font-size: 12.5px; gap: 5px; }
  .tnav-lab .n { display: none; }
  .tnav-cta { display: none; }
}
.tstep { padding-top: 120px; }
/* bandeau défilant : sans séparateurs verticaux */
.tk { border-right: 0 !important; position: relative; padding: 18px 28px; }
.tk::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .35; transform: translateY(-50%); }

.tnav-pill { background: rgba(255,255,255,.94) !important; }
.tnav li button .tnav-lab .n { width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; background: none !important; display: inline !important; color: inherit !important; font-size: 11.5px !important; opacity: .55; }
.tnav li button.on .tnav-lab .n, .tnav li button.done .tnav-lab .n { background: none !important; color: inherit !important; }
.tnav li button .l { display: inline !important; }
@media (max-width: 760px) {
  .tnav li button .tnav-lab .n { display: none !important; }
  .tnav li button { padding: 0 6px !important; font-size: 12.5px !important; justify-content: center; align-items: stretch; }
  .tnav-lab { justify-content: center; }
  .tnav-pill { gap: 0; }
  .tnav ol { gap: 0; width: 100%; }
}

/* Sans numéros d'étapes : un parcours naturel */
.tstep .wrap { align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; border-bottom: 1px solid var(--line-2); }
.tstep-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; }
.tstep-t b { font-size: clamp(30px, 3.6vw, 44px); }
.tstep-s { font-size: 17px; }
.how-step .num { display: none !important; }
.tnav-cta { background: rgba(17,21,19,.06) !important; color: var(--ink) !important; box-shadow: none !important; }
.tnav-cta:hover { background: rgba(17,21,19,.1) !important; transform: none !important; }

/* ================= Survol : le surligneur jaune se dessine ================= */
.foot nav a, .foot nav button, .nav a, .hero-alt .lnk, .txt-link, .prod-c .go, .sim-go, .sim-q b, .att-item b, .etf-sim a b, .ecmp-hint .txt-link {
  background-image: linear-gradient(transparent 58%, rgba(247, 201, 72, .45) 58%, rgba(247, 201, 72, .45) 94%, transparent 94%) !important;
  background-repeat: no-repeat !important; background-position: 0 0 !important; background-size: 0% 100% !important;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1), color .25s, transform .3s cubic-bezier(.2,.7,.2,1) !important;
  text-decoration: none !important; }
.foot nav a:hover, .foot nav button:hover, .nav a:hover, .hero-alt .lnk:hover, .txt-link:hover, .prod-c:hover .go, .sim-card:hover .sim-go, .sim-q:hover b, .att-item:hover b, .etf-sim a:hover b, .ecmp-hint .txt-link:hover,
.foot nav a:focus-visible, .nav a:focus-visible, .txt-link:focus-visible { background-size: 100% 100% !important; }
.foot nav a, .foot nav button { display: inline-block; width: fit-content; }
.foot nav a:hover, .foot nav button:hover { transform: translateX(4px); }
.nav a[aria-current="page"] { background-size: 100% 100% !important; }
@media (prefers-reduced-motion: reduce) { .foot nav a, .foot nav button, .nav a, .hero-alt .lnk, .txt-link { transition: none !important; } .foot nav a:hover, .foot nav button:hover { transform: none; } }

/* ================= Menu mobile : défilement complet et survol animé ================= */
.sheet { max-height: calc(100dvh - 16px); max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@supports (height: 100dvh) { .sheet { max-height: calc(100dvh - 16px); } }
.sheet .grip { position: sticky; top: -10px; }
.sheet nav a, .sheet nav button, .sheet .sheet-prod a, .prod-pop a, .sr-item {
  background-image: linear-gradient(90deg, rgba(247, 201, 72, .32), rgba(247, 201, 72, .32)) !important;
  background-repeat: no-repeat !important; background-position: 0 0 !important; background-size: 0% 100% !important;
  transition: background-size .45s cubic-bezier(.2,.7,.2,1), padding-left .35s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1) !important; }
.sheet nav a:hover, .sheet nav button:hover, .sheet nav a:active, .sheet nav button:active,
.sheet .sheet-prod a:hover, .sheet .sheet-prod a:active, .prod-pop a:hover, .sr-item:hover, .sr-item.active { background-size: 100% 100% !important; }
.sheet nav a:hover, .sheet nav button:hover, .sheet nav a:active, .sheet nav button:active { padding-left: 14px !important; }
@media (prefers-reduced-motion: reduce) { .sheet nav a, .sheet nav button, .sheet .sheet-prod a, .prod-pop a, .sr-item { transition: none !important; } }

/* ================= Pilule : libellés centrés, jauge discrète ================= */
.tnav li button { flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 0 !important; }
.tnav-lab { line-height: 1.25; justify-content: center; }
.tnav-track { position: absolute !important; left: 50%; bottom: 7px; width: 30px; height: 2px; margin: 0; transform: translateX(-50%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tnav li button.on .tnav-track { opacity: 1; }
@media (max-width: 760px) { .tnav-track { bottom: 5px; width: 22px; } }

/* ================= Pied de page : surligneur ligne par ligne ================= */
.foot nav a, .foot nav button { background-image: none !important; }
.foot nav .hl { background-image: linear-gradient(transparent 58%, rgba(247, 201, 72, .45) 58%, rgba(247, 201, 72, .45) 94%, transparent 94%); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; -webkit-box-decoration-break: slice; box-decoration-break: slice; transition: background-size .5s cubic-bezier(.2,.7,.2,1); }
.foot nav a:hover .hl, .foot nav button:hover .hl, .foot nav a:focus-visible .hl, .foot nav button:focus-visible .hl { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .foot nav .hl { transition: none; } }

/* Surligneur ligne par ligne pour tous les liens qui peuvent passer sur deux lignes */
.sim-q b, .att-item b, .etf-sim a b, .txt-link, .hero-alt .lnk, .prod-c .go, .sim-go, .ecmp-hint .txt-link { background-image: none !important; }
.hl { background-image: linear-gradient(transparent 58%, rgba(247, 201, 72, .45) 58%, rgba(247, 201, 72, .45) 94%, transparent 94%); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; -webkit-box-decoration-break: slice; box-decoration-break: slice; transition: background-size .5s cubic-bezier(.2,.7,.2,1); }
.sim-q:hover b .hl, .att-item:hover b .hl, .etf-sim a:hover b .hl, .txt-link:hover .hl, .txt-link:focus-visible .hl, .hero-alt .lnk:hover .hl, .hero-alt .lnk:focus-visible .hl, .prod-c:hover .go .hl, .sim-card:hover .sim-go .hl, .ecmp-hint .txt-link:hover .hl { background-size: 100% 100%; }
.foot nav .hl { color: inherit !important; }
@media (prefers-reduced-motion: reduce) { .hl { transition: none; } }

/* ================= Mon portefeuille ================= */
.pf { padding-bottom: 72px; }
.pf .ph { padding-bottom: 18px; }
.pf-disc { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 14px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.pf-disc .ico { flex: none; margin-top: 3px; color: var(--ink); }
.pf-disc b { color: var(--ink); }
#pfApp { margin-top: 18px; }
.pf-sec { margin-top: 56px; }
.pf-sec:first-child { margin-top: 0; }
.pf-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.pf-sec-h h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.04em; line-height: 1.1; }
.pf-hero { margin-top: 18px; border: 1px solid var(--hero-line); }
.pf-hero::before { display: none; }
.pf-hero .l b { font-weight: 600; }
.pf-hero .pos, .pf .pos { color: var(--pos); }
.pf-hero .neg, .pf .neg { color: var(--neg); }
.pf-kgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-kgrid b { display: block; font-size: 21px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-kgrid span { display: block; font-size: 13px; color: var(--hero-muted); line-height: 1.4; margin-top: 2px; }
@media (max-width: 760px) { .pf-kgrid { grid-template-columns: 1fr 1fr; } }

/* Lignes */
.pf-lines { border-top: 1px solid var(--line); }
.pf-lh, .pf-line { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, .9fr) 92px; gap: 16px; align-items: center; }
.pf-lh { padding: 10px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pf-line { padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.pf-l-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pf-l-id > div { min-width: 0; }
.pf-l-id .n { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pf-l-id .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pf-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-l-v, .pf-l-g, .pf-l-i { min-width: 0; }
.pf-l-v b, .pf-l-g b, .pf-l-i b { display: block; font-size: 16px; }
.pf-l-v span, .pf-l-g span, .pf-l-i span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.pf-l-w { display: flex; align-items: center; gap: 10px; }
.pf-l-w b { font-size: 14px; min-width: 38px; text-align: right; }
.pf-l-a { display: flex; gap: 6px; justify-content: flex-end; }
.pf-l-a .icon-btn { width: 38px; height: 38px; color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.pf-l-a .icon-btn:hover { color: var(--ink); background: var(--bg-2); border-color: var(--line-2); }
.pf-bar { flex: 1; display: block; height: 6px; border-radius: 3px; background: var(--bg-3, #E9E7E0); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.pf .ml { display: none; font-style: normal; }
.pf-fine { margin-top: 14px; max-width: 62em; line-height: 1.55; }
@media (max-width: 900px) {
  .pf-lh { display: none; }
  .pf-line { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 0; }
  .pf-l-id { grid-column: 1 / -1; padding-right: 92px; }
  .pf-l-a { position: absolute; top: 14px; right: 0; }
  .pf-l-w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; align-self: start; }
  .pf .ml { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
  .pf-l-w .ml { grid-column: 1 / -1; margin: 0; }
  .pf-l-w b { min-width: 0; }
}

/* Formulaire */
.pf-form { margin: 0 0 22px; display: grid; gap: 16px; max-width: 720px; }
.pf-form-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-form-h h3, .pf .panel .pf-form-h h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.pf-kseg { max-width: 640px; }
@media (max-width: 600px) { .pf-kseg { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .pf-two { grid-template-columns: 1fr; } }
.pf-unit { position: relative; }
.pf-unit .input { padding-right: 36px; }
.pf-unit > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.pf-form label .pf-optl { font-weight: 400; font-size: 13px; color: var(--muted); }
.pf-unit input::-webkit-outer-spin-button, .pf-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-unit input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pf-hint { margin: -4px 0 0; line-height: 1.5; }
.pf-opt { margin: 0; }
.pf-opt .fold-c { display: grid; gap: 10px; }
.pf-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-form .err { color: var(--neg); font-size: 14px; margin: 0; }

/* Diversification */
.pf-div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .pf-div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pf-div { grid-template-columns: 1fr; } }
.pf .panel h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: -0.015em; }
.pf-bars { display: grid; gap: 10px; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.pf-row .k { color: var(--ink-2); line-height: 1.3; overflow-wrap: anywhere; }
.pf-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-blk .help { margin-top: 12px; line-height: 1.5; }
.pf-vig { margin-top: 14px; }
.pf-vig ul { list-style: none; margin: 0; padding: 0; }
.pf-vig li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pf-vig li:first-child { padding-top: 0; }
.pf-vig li .ico { flex: none; margin-top: 3px; color: var(--muted); }
.pf-vig li.warn .ico { color: var(--warn); }
.pf-vig li b { color: var(--ink); }
.pf-vig .help { margin-top: 12px; }

/* Performances passées */
.pf-past { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.pf-past > *, .pf-div > *, .pf-cta > * { min-width: 0; }
.pf .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 0; border-radius: 0; background: none; }
.pf-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pf-tbl th, .pf-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pf-tbl th:first-child { text-align: left; padding-left: 0; }
.pf-tbl td:last-child, .pf-tbl th:last-child { padding-right: 0; }
.pf-tbl thead th { font-weight: 500; color: var(--muted); font-size: 13px; }
.pf-tbl tbody th { font-weight: 500; }
.pf-tbl tbody th a { color: var(--ink); }
.pf-tbl tfoot th, .pf-tbl tfoot td { font-weight: 600; border-bottom: 0; }
.pf-tbl td.pos { color: var(--pos); }
.pf-tbl td.neg { color: var(--neg); }
.pf-pp .help { margin-top: 12px; line-height: 1.5; }
.pf-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); }
.pf-note .ico { flex: none; margin-top: 3px; }

/* Scénarios */
.pf-hseg { min-width: 260px; }
.pf-warn { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; line-height: 1.55; }
.pf-warn .ico { flex: none; margin-top: 3px; color: var(--warn); }
.pf-warn b { display: inline; }
.pf-chart { position: relative; }
.pf-chart svg { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.pf-chart svg:focus { outline: none; }
.pf-chart svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 8px; }
.pf-chart text { font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pf-chart .gl { stroke: var(--line); }
.pf-chart .band { fill: var(--ink); opacity: .07; }
.pf-chart .edge { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: .35; }
.pf-chart .cen { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; }
.pf-chart .inv { stroke: var(--faint); stroke-width: 1.25; stroke-dasharray: 4 4; }
.pf-chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.pf-chart .cross.on { opacity: .25; }
.pf-chart .el { font-size: 12px; fill: var(--muted); font-weight: 500; }
.pf-chart .ev { font-size: 12.5px; fill: var(--ink-2); font-weight: 600; }
.pf-chart .c { fill: var(--ink); }
.pf-chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.pf-chart .hit:focus-visible { fill: rgba(17,21,19,.05); }
.pf-tip { position: absolute; z-index: 3; display: grid; gap: 2px; min-width: 190px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #FFFFFF; font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; }
.pf-tip[hidden] { display: none; }
@media (max-width: 520px) { .pf-tip { min-width: 0; max-width: 230px; padding: 8px 10px; font-size: 12px; } }
.pf-tip .h { font-weight: 600; margin-bottom: 2px; }
.pf-tip .b { font-weight: 600; }
.pf-tip .m { opacity: .75; }
.pf-chart-p .legend i.lg-c { background: var(--ink); height: 3px; width: 16px; border-radius: 2px; }
.pf-chart-p .legend i.lg-b { background: rgba(17,21,19,.12); width: 16px; }
.pf-chart-p .legend i.lg-i { width: 16px; height: 0; border-top: 1.5px dashed var(--faint); border-radius: 0; }
.pf-scs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
@media (max-width: 760px) { .pf-scs { grid-template-columns: 1fr; } }
.pf-sc { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--bg); display: grid; gap: 2px; }
.pf-sc.on { border-color: var(--ink); }
.pf-sc .l { font-size: 13px; color: var(--muted); }
.pf-sc b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.pf-sc .d { font-size: 13px; color: var(--muted); }
.pf-hyp td, .pf-hyp th { white-space: normal; text-align: left; vertical-align: top; }
.pf-hyp tbody th { min-width: 150px; }
#pfFut .fold { margin-top: 14px; }

/* Conseiller, exemple, annulation, confidentialité */
.pf-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .pf-cta { grid-template-columns: 1fr; } }
.pf-adv { display: grid; gap: 10px; align-content: start; justify-items: start; }
.pf-adv .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.pf-adv p { color: var(--muted); margin: 0; }
.pf-adv .help { line-height: 1.5; }
.pf-exb { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; flex-wrap: wrap; }
.pf-exb > span { flex: 1 1 200px; }
.pf-exb b { display: inline; }
.pf-undo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); margin: 0 0 18px; font-size: 14.5px; }
.pf-undo .ico { color: var(--pos); }
.pf-end { margin-top: 40px; }
.pf-priv { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 62em; }
.pf-priv .ico { flex: none; margin-top: 3px; color: var(--ink); }
.pf-priv b { color: var(--ink); }
.pf .txt-link.arm { color: var(--neg); }

/* État vide */
.pf-empty { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 32px; align-items: center; }
@media (max-width: 860px) { .pf-empty { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
.pf-e-t h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.04em; margin-bottom: 10px; }
.pf-e-t p { color: var(--muted); margin-bottom: 18px; }
.pf-e-t .help { margin: 14px 0 0; }
.pf-e-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pf-e-l li { display: flex; gap: 14px; align-items: flex-start; }
.pf-e-l .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none; }
.pf-e-l b { display: block; }
.pf-e-l small { display: block; color: var(--muted); font-size: 14px; }

/* Cartes du hub et du menu */
.sim-more:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sim-qs:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sim-more:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sim-more:has(> :nth-child(4)), .sim-qs:has(> :nth-child(3)) { grid-template-columns: 1fr; } }

/* ================= Responsive : lignes de classement, ASPIM, cibles tactiles ================= */
/* Noms complets dans les listes ETF et ASPIM : retour à la ligne plutôt que points de suspension */
.etf-n b, .etf-n small, .asp-n b, .asp-n small { white-space: normal; overflow: visible; text-overflow: clip; }
.rrow .c-name .s { display: block; }
@media (max-width: 900px) {
  .rrow .c-name a, .rrow .c-name .s { white-space: normal; overflow: visible; text-overflow: clip; }
  .rrow .c-meta .cmp-btn, .cmp-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .crumb { min-height: 40px; }
}
@media (max-width: 760px) {
  .asp-row { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rk n n" "rk c k" "rk st st"; gap: 8px 12px; }
  .asp-n b, .asp-n small { white-space: normal; overflow: visible; text-overflow: clip; }
  .asp-st { justify-self: start; }
}
.dec-legend b { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .dec-legend { flex-direction: column; gap: 4px; } }
.search-box input { align-self: stretch; }
@media (pointer: coarse) {
  .tip { position: relative; }
  .tip::after { content: ""; position: absolute; inset: -11px; }
  .txt-link, .hero-alt .lnk { position: relative; }
  .txt-link::after, .hero-alt .lnk::after { content: ""; position: absolute; inset: -10px -4px; }
}

/* ================= Responsive : en-tête, ETF, montants ================= */
.top .logo, #menuBtn { flex: none; }
.top-cta { min-width: 0; }
#topCta .cs { display: none; }
@media (max-width: 430px) { #topCta .cl { display: none; } #topCta .cs { display: inline; } }
@media (max-width: 359px) { #topCta { display: none; } }
@media (max-width: 440px) {
  .etf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "n n" "ter aum" "a1 v1"; gap: 10px 14px; }
}
.etf-n .etf-g { flex: none; }
@media (max-width: 400px) { .dec .seg button { white-space: nowrap; padding: 0 4px; font-size: 13px; } }

.etf-n .grade b, .etf-g .grade b { display: grid; place-items: center; font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) { .tstep { padding-top: 64px; } }

@media (min-width: 601px) and (max-width: 900px) { .hero .intent { max-width: none; } .hero .search { max-width: none; } }

/* ================= Académie ================= */
.ac { padding-bottom: 72px; }
.ac-ph { padding-bottom: 0 !important; border-bottom: 0 !important; }
.ac-tabs { display: flex; gap: 4px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.ac-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.ac-tabs a:hover { color: var(--ink); }
.ac-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 30px; }
.ac-main { min-width: 0; }
.ac-side { position: sticky; top: 88px; display: grid; gap: 14px; }
.ac-mstats { display: none; }
@media (max-width: 1000px) {
  .ac-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
  .ac-side { position: static; grid-template-columns: 1fr 1fr; }
  .ac-side .ac-stats { display: none; }
  .ac-side .ac-disc { grid-column: 1 / -1; }
  .ac-mstats { display: block; position: sticky; top: 70px; z-index: 20; margin: 0 -4px 22px; }
  .ac-mstats .ac-stats { background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@media (max-width: 640px) { .ac-side { grid-template-columns: 1fr; } .ac-tabs a { padding: 12px 12px; font-size: 14.5px; } .ac-tabs { gap: 0; } }
.ac-k { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -0.005em; }
.ac-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.ac-c-t { display: block; font-size: 17px; letter-spacing: -0.02em; margin: 4px 0 6px; }
.ac-card .help { line-height: 1.5; }
.ac-card .btn { margin-top: 12px; }
.ac-small { margin-top: 12px; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 0; color: var(--ink); }
.ac-bar { display: block; height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin: 10px 0 6px; }
.ac-bar.lg { height: 12px; }
.ac-bar i { display: block; height: 100%; border-radius: inherit; background: var(--uk, var(--ink)); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.ac-disc { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 0 4px; }
.ac-disc .ico { flex: none; margin-top: 2px; }

/* Barre de stats */
.ac-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.ac-st { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 14px; min-width: 0; text-align: center; }
.ac-st-r { display: flex; align-items: center; gap: 5px; }
.ac-st .i { display: grid; place-items: center; color: var(--faint); }
.ac-st .i .ico { width: 22px; height: 22px; }
.ac-st .i.fl .ico, .ac-st .i.xp .ico, .ac-st .i.hp .ico { fill: currentColor; stroke-width: 1.2; }
.ac-st.on .i.fl { color: #E8833A; }
.ac-st .i.xp { color: #D9A21B; }
.ac-st .i.hp { color: #D9534F; }
.ac-st .i.lv { color: #4F9A72; }
.ac-st b { font-family: var(--display); font-size: 19px; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ac-st small { font-size: 11.5px; color: var(--muted); line-height: 1.2; max-width: 100%; }

/* Objectif du jour */
.ac-goal { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.ac-ring { width: 72px; height: 72px; transform: rotate(-90deg); }
.ac-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ac-ring .bg { stroke: var(--bg-3); }
.ac-ring .fg { stroke: #E8A93A; transition: stroke-dasharray .8s cubic-bezier(.2,.7,.2,1); }
.ac-goal-v { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ac-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; height: 56px; }
.ac-week span { display: grid; grid-template-rows: 1fr auto; gap: 4px; align-items: end; justify-items: center; }
.ac-week i { width: 100%; max-width: 22px; border-radius: 6px; background: var(--bg-3); align-self: end; }
.ac-week .some i { background: #F2D58A; }
.ac-week .ok i { background: #E8A93A; }
.ac-week small { font-size: 11px; color: var(--muted); font-weight: 600; }
.ac-week .now small { color: var(--ink); }

/* Niveau */
.ac-lvl { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.ac-lvl-t { width: 84px; height: 84px; border-radius: 18px; background: var(--bg-2); display: grid; place-items: center; }
.ac-lvl-t .ac-tree { width: 76px; height: 76px; }
.ac-lvl > div > b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; }
.ac-tree { display: block; }

/* Bienvenue */
.ac-welcome { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 26px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 34px; }
.ac-w-t { width: 120px; height: 120px; border-radius: 26px; background: #EEF6F1; display: grid; place-items: center; }
.ac-w-t .ac-tree { width: 104px; height: 104px; }
.ac-welcome h2 { font-size: clamp(24px, 3vw, 30px); }
.ac-welcome p { color: var(--ink-2); margin-top: 8px; max-width: 40em; }
.ac-goals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ac-goals .chip { height: 38px; }
.ac-goals .chip b { font-weight: 650; }
.ac-w-a { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 640px) { .ac-welcome { grid-template-columns: 1fr; padding: 20px; gap: 14px; } .ac-w-t { width: 84px; height: 84px; border-radius: 20px; } .ac-w-t .ac-tree { width: 72px; height: 72px; } .ac-w-a .btn { width: 100%; } }

/* Unité */
.ac-unit { margin-bottom: 30px; scroll-margin-top: 150px; }
.ac-uh { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 24px; border-radius: 24px; background: var(--uc); color: var(--ink); position: relative; overflow: hidden; }
.ac-uh::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.22); pointer-events: none; }
.ac-uh-t { min-width: 0; position: relative; z-index: 1; }
.ac-un { font-size: 13px; font-weight: 600; color: var(--uk); }
.ac-uh h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 4px; }
.ac-uh p { color: var(--ink-2); margin-top: 6px; font-size: 15px; max-width: 36em; }
.ac-uh-p { display: flex; align-items: center; gap: 10px; margin-top: 14px; max-width: 320px; }
.ac-uh-p .ac-bar { flex: 1; margin: 0; background: rgba(255,255,255,.55); }
.ac-uh-p small { font-size: 12.5px; font-weight: 600; color: var(--uk); white-space: nowrap; }
.ac-uh-a { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; flex: none; }
.ac-guide { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; border: 0; background: rgba(255,255,255,.75); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, transform .2s; }
.ac-guide:hover { background: #FFFFFF; transform: translateY(-1px); }
.ac-unit.locked .ac-uh { filter: saturate(.55); }
@media (max-width: 640px) { .ac-uh { flex-direction: column; padding: 20px; } .ac-uh-a { flex-direction: row; flex-wrap: wrap; } .ac-guide { height: 36px; } }

/* Chemin */
.ac-path { list-style: none; margin: 0; padding: 72px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ac-nw.cur:not(:first-child) { margin-top: 40px; }
.ac-nw { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateX(calc(var(--x) * 64px)); width: 220px; }
@media (max-width: 520px) { .ac-nw { transform: translateX(calc(var(--x) * 42px)); width: 170px; } }
.ac-node { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--uc); color: var(--uk); box-shadow: 0 7px 0 color-mix(in srgb, var(--uk) 45%, var(--uc)); transition: transform .12s, box-shadow .12s, filter .2s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ac-node .ico { width: 32px; height: 32px; stroke-width: 2.2; }
.ac-node:hover { filter: brightness(1.03); }
.ac-node:active, .ac-nw.open .ac-node { transform: translateY(5px); box-shadow: 0 2px 0 color-mix(in srgb, var(--uk) 45%, var(--uc)); }
.ac-node.is-done { background: var(--uk); color: #FFFFFF; box-shadow: 0 7px 0 color-mix(in srgb, var(--uk) 70%, #000); }
.ac-node.is-done:active, .ac-nw.open .ac-node.is-done { box-shadow: 0 2px 0 color-mix(in srgb, var(--uk) 70%, #000); }
.ac-node.is-cur { background: var(--ink); color: #FFFFFF; box-shadow: 0 7px 0 #000; }
.ac-nw.open .ac-node.is-cur, .ac-node.is-cur:active { box-shadow: 0 2px 0 #000; }
.ac-node.is-cur::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--uc); animation: acPulse 2.2s ease-out infinite; }
@keyframes acPulse { 0% { transform: scale(.94); opacity: 1; } 70% { transform: scale(1.14); opacity: 0; } 100% { opacity: 0; } }
.ac-node.is-lock { background: color-mix(in srgb, var(--uc) 28%, #ECE7DF); color: color-mix(in srgb, var(--uk) 35%, #B2AA9E); box-shadow: 0 7px 0 color-mix(in srgb, var(--uc) 30%, #D6CFC4); }
.ac-node.is-lock:active, .ac-nw.open .ac-node.is-lock { box-shadow: 0 2px 0 #D6CFC4; }
.ac-node.is-open { background: var(--uc); }
.ac-cp { width: 88px; height: 88px; border-radius: 28px; }
.ac-cp .ico { width: 38px; height: 38px; }
.ac-node.ac-cp.is-done { background: #F7C948; color: #6B4E00; box-shadow: 0 7px 0 #C99A1E; }
.ac-node.ac-cp.is-done:active, .ac-nw.open .ac-node.ac-cp.is-done { box-shadow: 0 2px 0 #C99A1E; }
.ac-nl { margin-top: 16px; font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--ink-2); max-width: 100%; }
.ac-stars { display: flex; gap: 2px; margin-top: 12px; margin-bottom: -8px; }
.ac-stars i { color: var(--line-2); display: grid; }
.ac-stars i .ico { width: 14px; height: 14px; fill: currentColor; stroke-width: 1; }
.ac-stars i.on { color: #E8A93A; }
.ac-go { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 12px; background: #FFFFFF; border: 2px solid var(--line-2); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); animation: acBob 1.8s ease-in-out infinite; z-index: 2; pointer-events: none; }
.ac-go::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: #FFFFFF; border-right: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); transform: translate(-50%, -6px) rotate(45deg); }
@keyframes acBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.ac-pop { position: absolute; top: 96px; left: 50%; transform: translate(-50%, 6px); width: 300px; padding: 18px; border-radius: 20px; background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-lg); z-index: 15; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; text-align: left; }
.ac-pop::before { content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.ac-cpw .ac-pop { top: 108px; }
.ac-nw.open .ac-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ac-nw.open { z-index: 16; }
.ac-pop .ac-k { color: rgba(255,255,255,.65); }
.ac-pop > b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2; }
.ac-pop p { font-size: 14px; color: rgba(255,255,255,.78); margin-top: 6px; }
.ac-pop .btn { margin-top: 14px; background: #FFFFFF !important; color: var(--ink) !important; }
.ac-pop .btn.light { background: transparent !important; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,.35) !important; margin-top: 10px; }
.ac-pop-l { display: flex; gap: 8px; align-items: flex-start; }
.ac-pop-l .ico { flex: none; margin-top: 2px; }
@media (max-width: 520px) { .ac-pop { width: min(300px, calc(100vw - 40px)); left: calc(50% - var(--x) * 42px); } .ac-pop::before { left: calc(50% + var(--x) * 42px); } }
.ac-end-path { text-align: center; padding: 20px 0 10px; color: var(--muted); }
.ac-end-path .ac-tree { width: 120px; height: 120px; margin: 0 auto 6px; }
@media (prefers-reduced-motion: reduce) { .ac-go, .ac-node.is-cur::before { animation: none; } }

/* Lexique */
.ac-lex-h { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.ac-lex-s { max-width: 380px; flex: 1 1 260px; height: 50px !important; background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 99px !important; box-shadow: none !important; color: var(--ink) !important; }
.ac-lex-s input { color: var(--ink) !important; }
.ac-lex-L { font-size: 22px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ac-lex-L:first-child { margin-top: 0; }
.ac-lex-i { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ac-lex-i > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-lex-i b { font-size: 16.5px; letter-spacing: -0.015em; }
.ac-lex-i p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.ac-lex-i .tag .ico { width: 13px; height: 13px; }
.ac-lex-a { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; width: fit-content; }
.ac-lex-a i { width: 8px; height: 8px; border-radius: 50%; background: var(--uk); }
.ac-lex-a:hover { color: var(--ink); }

/* Succès */
.ac-big { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 24px; }
.ac-big-t { width: 150px; height: 150px; border-radius: 28px; background: #EEF6F1; display: grid; place-items: center; }
.ac-big-t .ac-tree { width: 136px; height: 136px; }
.ac-big h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 4px 0 6px; }
@media (max-width: 560px) { .ac-big { grid-template-columns: 1fr; } }
.ac-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.ac-kpis div { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.ac-kpis b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ac-kpis span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .ac-kpis { grid-template-columns: 1fr 1fr; } }
.ac-h2 { font-size: 26px; margin: 40px 0 16px; }
.ac-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .ac-badges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ac-badges { grid-template-columns: 1fr; } }
.ac-badge { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--bg); display: grid; gap: 4px; align-content: start; }
.ac-bi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-3); color: #B2AA9E; margin-bottom: 8px; }
.ac-badge.on .ac-bi { background: #FCEFC7; color: #9A6B00; }
.ac-badge b { font-size: 16px; letter-spacing: -0.015em; }
.ac-badge > span:not(.ac-bi):not(.ac-bar) { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ac-badge small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-badge .ac-bar { margin: 8px 0 2px; height: 6px; }
.ac-badge .ac-bar i { background: #E8A93A; }
.ac-dips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .ac-dips { grid-template-columns: 1fr; } }
.ac-dip { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, transform .2s; }
.ac-dip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ac-di { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-3); color: #B2AA9E; flex: none; }
.ac-dip.on .ac-di { background: var(--uc); color: var(--uk); }
.ac-dip b { display: block; font-size: 15px; line-height: 1.3; }
.ac-dip small { color: var(--muted); font-size: 13px; }

/* Fenêtres */
.ac-modal { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 860px); }
.ac-modal h2 { font-size: 26px; padding-right: 40px; margin-top: 4px; }
.ac-gd-l { padding: 18px 0; border-top: 1px solid var(--line); }
.ac-gd-l:first-of-type { margin-top: 16px; }
.ac-gd-l h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; margin-bottom: 10px; }
.ac-gd-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--uc); color: var(--uk); }
.ac-gd-f { margin-top: 10px; }
.ac-gd-f > b { display: block; font-size: 15px; }
.ac-gd-f p { color: var(--ink-2); font-size: 14.5px; margin-top: 3px; }
.ac-gd-c { background: var(--us); border-radius: 12px; padding: 10px 12px; margin-top: 8px !important; }
.ac-gd-x { margin: 12px 0 0; display: grid; gap: 6px; }
.ac-gd-x div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 14px; }
.ac-gd-x dt { font-weight: 600; }
.ac-gd-x dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .ac-gd-x div { grid-template-columns: 1fr; gap: 0; } }
.ac-gd-lk { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px !important; font-size: 14px; }
.ac-gd-lk .txt-link { display: inline-flex; gap: 6px; align-items: center; }
.ac-set .ac-k { margin-top: 18px; }
.ac-set .ac-goals { display: grid; grid-template-columns: 1fr 1fr; }
.ac-gopt { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); display: grid; gap: 2px; }
.ac-gopt b { font-size: 15px; }
.ac-gopt span { font-size: 13px; color: var(--muted); }
.ac-gopt[aria-pressed="true"] { border-color: var(--ink); background: var(--bg-2); }
.ac-tg { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.ac-tg + .ac-tg { margin-top: 0; }
.ac-tg b { display: block; font-size: 15px; }
.ac-tg small { display: block; color: var(--muted); font-size: 13px; }
.ac-sw { flex: none; width: 50px; height: 30px; border-radius: 99px; border: 0; background: var(--line-2); position: relative; transition: background .2s; }
.ac-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ac-sw[aria-checked="true"] { background: var(--pos); }
.ac-sw[aria-checked="true"] i { transform: translateX(20px); }
.ac-rc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ac-nh { text-align: center; padding-top: 8px; }
.ac-nh h2 { padding: 0 !important; }
.ac-nh-i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #FBE7E4; color: #D9534F; }
.ac-nh-i .ico { fill: currentColor; stroke-width: 1.2; width: 34px; height: 34px; }
.ac-nh-a { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Lecteur de leçon ---------- */
html.ac-lock, html.ac-lock body { overflow: hidden; }
.ac-play { position: fixed; inset: 0; z-index: 200; background: #FFFFFF; display: grid; grid-template-rows: auto 1fr auto; animation: acIn .3s cubic-bezier(.2,.7,.2,1); }
.ac-play[hidden] { display: none; }
@keyframes acIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ac-pt { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 22px 24px 10px; }
.ac-x { width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; flex: none; }
.ac-x:hover { background: var(--bg-2); color: var(--ink); }
.ac-prog { position: relative; flex: 1; height: 16px; border-radius: 99px; background: var(--bg-3); }
.ac-prog i { display: block; height: 100%; min-width: 16px; border-radius: inherit; background: #4FAE7C; position: relative; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.ac-prog i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.35); }
.ac-combo { position: absolute; right: 0; top: -22px; font-size: 12.5px; font-weight: 700; color: #E8833A; animation: acPop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes acPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ac-hp { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; color: #D9534F; flex: none; font-variant-numeric: tabular-nums; }
.ac-hp .ico { fill: currentColor; stroke-width: 1.2; width: 26px; height: 26px; }
.ac-hp.zero { color: var(--faint); }
.ac-pb { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ac-pc { width: 100%; max-width: 640px; margin: 0 auto; padding: 28px 24px 40px; outline: none; }
.ac-pc.is-fiche { max-width: 600px; }
.ac-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--uk); background: var(--us); padding: 5px 11px; border-radius: 99px; }
.ac-q { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; margin: 16px 0 24px; letter-spacing: -0.025em; }
.ac-ctx { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; border-left: 4px solid var(--uc); }
.ac-ctx + .ac-q { margin-top: 14px; font-size: clamp(20px, 2.8vw, 24px); }
.ac-hint { color: var(--muted); font-size: 14px; margin: -12px 0 18px; }
.ac-opts { display: grid; gap: 10px; }
.ac-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 60px; border-radius: 16px; border: 2px solid var(--line); border-bottom-width: 4px; background: #FFFFFF; font-size: 16.5px; font-weight: 500; color: var(--ink); line-height: 1.35; transition: background .15s, border-color .15s, transform .1s; }
.ac-opt:hover:not([disabled]) { background: var(--bg-2); }
.ac-opt:active:not([disabled]) { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.ac-opt kbd { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font: 600 13px var(--font); color: var(--muted); background: none; }
.ac-opt.sel { border-color: #7FA9C2; background: #EAF3F8; }
.ac-opt.sel kbd { border-color: #7FA9C2; color: #2D6680; }
.ac-opt.good { border-color: #6BBF91; background: #E5F5EC; color: #1F6A47; }
.ac-opt.good kbd { border-color: #6BBF91; color: #1F6A47; }
.ac-opt.bad { border-color: #E59A90; background: #FBE9E6; color: #9B3428; }
.ac-opt.bad kbd { border-color: #E59A90; color: #9B3428; }
.ac-opt.dim { opacity: .55; }
.ac-opt[disabled] { cursor: default; }
.ac-vf { grid-template-columns: 1fr 1fr; }
.ac-vf .ac-opt { justify-content: center; min-height: 92px; flex-direction: column; gap: 6px; font-size: 18px; font-weight: 650; position: relative; }
.ac-vf .ac-opt kbd { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; font-size: 12px; }
.ac-vf .ac-opt .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.ac-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-pairs > div { display: grid; gap: 10px; align-content: start; }
.ac-pa { min-height: 64px; justify-content: center; text-align: center; font-size: 15px; padding: 10px 12px; }
.ac-pa.r { font-size: 14px; font-weight: 400; }
.ac-pa.done { opacity: .35; border-color: #6BBF91; background: #E5F5EC; transform: scale(.98); }
.ac-pa.bad { animation: acShake .4s; }
@keyframes acShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ac-line { list-style: none; margin: 0 0 22px; padding: 14px; border-radius: 18px; border: 2px dashed var(--line-2); display: grid; gap: 8px; min-height: 64px; counter-reset: n; }
.ac-line.good { border-style: solid; border-color: #6BBF91; background: #F2FAF5; }
.ac-line.bad { border-style: solid; border-color: #E59A90; background: #FDF3F1; }
.ac-line li.empty span { display: flex; align-items: center; gap: 12px; height: 48px; border-radius: 12px; background: var(--bg-2); padding: 0 10px; }
.ac-line kbd { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 700 12px var(--font); color: var(--muted); background: #FFFFFF; border: 1px solid var(--line); }
.ac-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: #FFFFFF; font-size: 15.5px; font-weight: 500; color: var(--ink); text-align: left; line-height: 1.3; transition: transform .1s, background .15s; }
.ac-chip:hover:not([disabled]) { background: var(--bg-2); }
.ac-chip.used { background: var(--bg-3); border-color: var(--bg-3); color: transparent; }
.ac-chip.used * { visibility: hidden; }
.ac-chip.in { width: 100%; }
.ac-tq { line-height: 1.9; }
.ac-blank { display: inline-block; min-width: 110px; height: 1.5em; vertical-align: -0.35em; border-bottom: 3px solid var(--line-2); margin: 0 4px; }
.ac-blank.on { min-width: 0; height: auto; padding: 2px 12px; border: 2px solid #7FA9C2; border-bottom-width: 4px; border-radius: 12px; background: #EAF3F8; font: inherit; font-size: .82em; color: var(--ink); line-height: 1.4; vertical-align: 0.05em; }
.ac-blank.good { border-color: #6BBF91; background: #E5F5EC; }
.ac-blank.bad { border-color: #E59A90; background: #FBE9E6; }
.ac-est { padding: 18px 4px 0; }
.ac-est-v { display: block; text-align: center; font-family: var(--display); font-size: clamp(40px, 7vw, 56px); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.ac-est-v.good { color: #1F6A47; } .ac-est-v.bad { color: #9B3428; }
.ac-est input[type=range] { width: 100%; height: 34px; accent-color: var(--ink); }
.ac-est-l { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ac-est .ac-hint { text-align: center; margin: 16px 0 0; }
/* Fiche */
.ac-fiche { text-align: left; outline: none; }
.ac-fi { width: 76px; height: 76px; border-radius: 22px; background: var(--uc); color: var(--uk); display: grid; place-items: center; margin: 18px 0 18px; }
.ac-fi .ico { width: 36px; height: 36px; }
.ac-fiche h2 { font-size: clamp(26px, 3.8vw, 34px); line-height: 1.12; }
.ac-fiche p { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; }
.ac-fc { display: grid; gap: 2px; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--us); }
.ac-fc b { font-family: var(--display); font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -0.04em; line-height: 1.05; color: var(--uk); }
.ac-fc span { color: var(--ink-2); font-size: 15px; }
/* Pied */
.ac-pf { border-top: 2px solid var(--line); background: #FFFFFF; transition: background .2s, border-color .2s; }
.ac-pf-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); min-height: 96px; }
.ac-pf .btn { min-width: 170px; height: 52px; font-size: 16px; border-radius: 16px !important; }
.ac-pf .btn[disabled] { background: var(--bg-3) !important; color: var(--faint) !important; cursor: not-allowed; box-shadow: none !important; }
.ac-pf.ok { background: #E5F5EC; border-color: transparent; }
.ac-pf.ok .btn { background: #2F8A63 !important; }
.ac-pf.ko { background: #FBE9E6; border-color: transparent; }
.ac-pf.ko .btn { background: #C2493A !important; }
.ac-fb { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.ac-fb-i { width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; flex: none; }
.ac-pf.ok .ac-fb-i { color: #2F8A63; } .ac-pf.ko .ac-fb-i { color: #C2493A; }
.ac-fb-i .ico { stroke-width: 3; }
.ac-fb > div > b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; }
.ac-pf.ok .ac-fb { color: #1F6A47; } .ac-pf.ko .ac-fb { color: #8E3126; }
.ac-fb p { font-size: 14.5px; line-height: 1.5; margin-top: 4px; max-width: 60ch; }
.ac-fb-a span { font-weight: 700; }
.ac-kb { font-size: 13px; }
@media (max-width: 640px) {
  .ac-pt { padding: 14px 16px 6px; gap: 12px; }
  .ac-pc { padding: 18px 18px 32px; }
  .ac-q { margin: 12px 0 18px; }
  .ac-opt { font-size: 15.5px; padding: 12px 14px; min-height: 54px; }
  .ac-pf-in { flex-direction: column; align-items: stretch; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); min-height: 0; gap: 12px; }
  .ac-pf .btn { width: 100%; }
  .ac-pf-in > span:empty, .ac-kb { display: none; }
  .ac-fb b { font-size: 18px; } .ac-fb p { font-size: 13.5px; }
  .ac-pairs { gap: 8px; } .ac-pairs > div { gap: 8px; }
  .ac-pa { font-size: 14px; min-height: 58px; padding: 8px; } .ac-pa.r { font-size: 13px; }
  .ac-fiche p { font-size: 16px; }
}
/* Fin de leçon */
.ac-endc { text-align: center; padding-top: 40px; }
.ac-end-art { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 40px; background: #EEF6F1; display: grid; place-items: center; animation: acPop .5s cubic-bezier(.3,1.6,.5,1); }
.ac-end-art .ac-tree { width: 136px; height: 136px; }
.ac-end-art.ko { background: #FBE7E4; color: #D9534F; }
.ac-end-art.ko .ico { width: 56px; height: 56px; }
.ac-end-art.hp .ico { fill: currentColor; stroke-width: 1.2; }
.ac-bw { white-space: nowrap; }
.ac-play .btn:focus-visible, .ac-play .ac-opt:focus-visible, .ac-play .ac-chip:focus-visible { outline: 3px solid rgba(17,21,19,.22); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none !important; transform: none !important; }
.ac-end-b { position: absolute; right: -14px; bottom: -10px; width: 56px; height: 56px; border-radius: 18px; background: #F7C948; color: #6B4E00; display: grid; place-items: center; box-shadow: 0 5px 0 #C99A1E; }
.ac-endc h2 { font-size: clamp(30px, 4.6vw, 40px); margin-top: 18px; }
.ac-end-s { color: var(--muted); margin-top: 6px; font-size: 16.5px; }
.ac-end-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.ac-end-k div { border-radius: 16px; border: 2px solid; overflow: hidden; }
.ac-end-k span { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 4px; color: #FFFFFF; }
.ac-end-k b { display: block; padding: 12px 4px; font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; background: #FFFFFF; font-variant-numeric: tabular-nums; }
.ac-end-k .xp { border-color: #E8A93A; } .ac-end-k .xp span { background: #E8A93A; } .ac-end-k .xp b { color: #9A6B00; }
.ac-end-k .acc { border-color: #4FAE7C; } .ac-end-k .acc span { background: #4FAE7C; } .ac-end-k .acc b { color: #1F6A47; }
.ac-end-k .tm { border-color: #6F9CC0; } .ac-end-k .tm span { background: #6F9CC0; } .ac-end-k .tm b { color: #2D6680; }
.ac-end-n { display: flex; gap: 14px; align-items: center; text-align: left; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); animation: acIn .4s cubic-bezier(.2,.7,.2,1) both; }
.ac-end-n .ico { flex: none; width: 30px; height: 30px; }
.ac-end-n span > b { display: block; font-size: 15.5px; }
.ac-end-n span { font-size: 14px; color: var(--ink-2); }
.ac-end-n.fl { background: #FDEBDD; } .ac-end-n.fl .ico { color: #E8833A; fill: currentColor; stroke-width: 1.2; }
.ac-end-n.gl { background: #FCF1D6; } .ac-end-n.gl .ico { color: #B07A00; }
.ac-end-n.lv { background: #E5F2EA; } .ac-end-n.lv .ico { color: #2F8A63; }
.ac-end-n.bd { background: #EFEAFB; } .ac-end-n.bd .ico { color: #5A4FA0; }
.ac-end-l { margin-top: 22px; text-align: left; display: grid; gap: 8px; }
.ac-end-l a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; transition: background .2s, border-color .2s; }
.ac-end-l a:hover { background: var(--bg-2); border-color: var(--line-2); }
.ac-fail-a { display: grid; gap: 10px; margin-top: 26px; max-width: 380px; margin-left: auto; margin-right: auto; }
.ac-quit { position: absolute; inset: 0; background: rgba(17,21,19,.45); display: grid; place-items: end center; z-index: 5; animation: acFade .2s; }
@keyframes acFade { from { opacity: 0; } to { opacity: 1; } }
.ac-quit-c { width: min(520px, 100%); background: #FFFFFF; border-radius: 24px 24px 0 0; padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); text-align: center; animation: acIn .25s cubic-bezier(.2,.7,.2,1); }
.ac-quit-c b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.ac-quit-c p { color: var(--muted); margin-top: 6px; }
.ac-quit-c div { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 641px) { .ac-quit { place-items: center; } .ac-quit-c { border-radius: 24px; } }
.ac-conf { position: fixed; inset: 0; pointer-events: none; z-index: 260; overflow: hidden; }
.ac-conf i { position: absolute; top: -20px; border-radius: 2px; animation: acFall linear forwards; }
@keyframes acFall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .ac-play, .ac-end-art, .ac-end-n, .ac-quit, .ac-quit-c, .ac-combo { animation: none !important; } }

/* Accueil */
.ac-home { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px; border-radius: 28px; background: #FFFFFF; border: 1px solid var(--line); }
.ac-home h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.045em; }
.ac-home-t p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 34em; }
.ac-home-p { display: grid; gap: 10px; }
.ac-hu { display: flex; align-items: center; gap: 16px; transform: translateX(calc(var(--x) * 28px)); }
.ac-hu .ac-node { width: 58px; height: 58px; flex: none; box-shadow: 0 5px 0 color-mix(in srgb, var(--uk) 45%, var(--uc)); pointer-events: none; }
.ac-hu .ac-node.is-cur { box-shadow: 0 5px 0 #000; }
.ac-hu .ac-node .ico { width: 26px; height: 26px; }
.ac-hu b { display: block; font-size: 15.5px; letter-spacing: -0.015em; }
.ac-hu small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .ac-home { grid-template-columns: 1fr; padding: 24px; gap: 28px; } .ac-hu { transform: none; } .ac-home-p .ac-hu:nth-child(n+5) { display: none; } }
.sr-ac { background: var(--uc) !important; color: var(--uk) !important; }
.tabbar a[data-tab="academie"] .ico { stroke-width: 1.9; }

/* ---------- Académie v2 : sauvegarde, offre, capsules, quêtes ---------- */
.ac-tabrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 26px; border-bottom: 1px solid var(--line); }
.ac-tabrow .ac-tabs { margin-top: 0; border-bottom: 0; }
@media (max-width: 640px) { .ac-tabrow .ac-tabs { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .ac-tabrow .ac-tabs::-webkit-scrollbar { display: none; } .ac-tabrow .ac-tabs a { flex: none; } }
.ac-save { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 0 2px 12px; }
.ac-save .ico { color: #4F9A72; flex: none; }
.ac-save[data-st="sync"] .ico { color: var(--muted); animation: acSpin 1s linear infinite; }
@keyframes acSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .ac-save { font-size: 12px; padding-bottom: 10px; order: -1; width: 100%; } .ac-tabs a span { display: inline; } .ac-tabs a { padding: 12px 9px; gap: 5px; font-size: 14px; } }
.ac-st .i.sd { color: #4F9A72; }
.ac-st.boost { background: #FCF1D6; }
.ac-st.boost small { color: #9A6B00; font-weight: 600; }
.ac-seed { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #3E7D5C; font-variant-numeric: tabular-nums; }
.ac-seed .ico { color: #4F9A72; }

/* Quêtes */
.ac-quests { display: grid; gap: 4px; }
.ac-qh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ac-qh small { font-size: 12px; color: var(--muted); }
.ac-qr { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ac-qr:first-of-type { border-top: 0; }
.ac-qi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.ac-qr.done .ac-qi { background: #E5F5EC; color: #2F8A63; }
.ac-qr b { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; }
.ac-qr .ac-bar { margin: 6px 0 2px; height: 6px; }
.ac-qr .ac-bar i { background: #E8A93A; }
.ac-qr small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-qr.bonus b { font-size: 13.5px; }
.ac-chest { width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--bg-3); color: #B2AA9E; flex: none; }
.ac-chest .ico { width: 24px; height: 24px; }
.ac-chest.ready { background: #F7C948; color: #6B4E00; box-shadow: 0 4px 0 #C99A1E; animation: acWiggle 1.6s ease-in-out infinite; cursor: pointer; }
.ac-chest.ready:active { transform: translateY(3px); box-shadow: 0 1px 0 #C99A1E; }
.ac-chest.open { background: #E5F5EC; color: #2F8A63; }
.ac-chest.big { width: 46px; height: 46px; }
@keyframes acWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-9deg); } 82% { transform: rotate(8deg); } 88% { transform: rotate(-5deg); } 94% { transform: rotate(3deg); } }
.ac-quests.in-main { display: none; margin-bottom: 26px; }
@media (max-width: 1000px) { .ac-quests.in-main { display: grid; } .ac-quests.in-side { display: none; } }

/* Boutique, défi, offre */
.ac-shi { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ac-shi b { display: block; font-size: 14px; }
.ac-shi small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.ac-buy { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border-radius: 99px; border: 1.5px solid #9CCBB1; background: #F2FAF5; color: #2F6B4F; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ac-buy:hover:not([disabled]) { background: #E5F5EC; }
.ac-buy[disabled] { opacity: .45; cursor: not-allowed; }
.ac-shop .help { margin-top: 8px; font-size: 12px; }
.ac-defic { background: linear-gradient(135deg, #FFFFFF 40%, #FCF1D6); }
.ac-premc { border-color: #F2D58A; background: linear-gradient(160deg, #FFFDF6, #FCF1D6); }
.ac-premc .ac-k { display: flex; align-items: center; gap: 6px; color: #9A6B00; }
.ac-premc.on { background: #FFFDF6; }
.ac-upsell { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin: 6px 0 40px; padding: 24px; border-radius: 24px; background: linear-gradient(140deg, #FFFDF6, #FCEFC7); border: 1px solid #F2D58A; }
.ac-up-t { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #F7C948; color: #6B4E00; box-shadow: 0 5px 0 #C99A1E; }
.ac-upsell h3 { font-size: 22px; margin: 4px 0 6px; }
.ac-upsell p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; max-width: 42em; }
@media (max-width: 560px) { .ac-upsell { grid-template-columns: 1fr; padding: 20px; } .ac-upsell .btn { width: 100%; } }
.ac-resume { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--us); border: 1px solid color-mix(in srgb, var(--uc) 70%, transparent); margin-bottom: 22px; }
.ac-resume .ac-qi { background: var(--uc); color: var(--uk); width: 40px; height: 40px; }
.ac-resume b { display: block; font-size: 16px; }
.ac-resume .ac-bar { margin: 8px 0 0; max-width: 260px; background: rgba(255,255,255,.7); }
.ac-resume .ac-bar i { background: var(--uk); }
@media (max-width: 520px) { .ac-resume { grid-template-columns: 40px 1fr; } .ac-resume .btn { grid-column: 1 / -1; } }
.ac-node.is-pay { position: relative; }
.ac-crown { position: absolute; right: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F7C948; color: #6B4E00; box-shadow: 0 2px 0 #C99A1E; }
.ac-crown .ico { width: 14px; height: 14px; }
.ac-guide.gold { background: #F7C948; color: #4A3608; }
.ac-guide.gold:hover { background: #FFD46E; }
.ac-gd-toc { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* Page Capsules */
.ac-caps-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ac-caps-h h2 { font-size: 28px; }
.ac-caps-h p { max-width: 40em; margin-top: 6px; }
.ac-caps-u { margin-bottom: 28px; }
.ac-caps-u h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; margin-bottom: 12px; }
.ac-caps-u h3 .ac-un { font-size: 13px; }
.ac-caps-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ac-cap { position: relative; aspect-ratio: 9 / 13; border-radius: 18px; border: 0; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: left; background: var(--uc); color: var(--ink); overflow: hidden; transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s; }
.ac-cap:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ac-cap::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.3); }
.ac-cap-i { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.65); color: var(--uk); }
.ac-cap-t { position: relative; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.15; letter-spacing: -0.02em; }
.ac-cap-m { position: relative; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--uk); }
.ac-cap.pay { filter: saturate(.45); }
.ac-cap.pay .ac-cap-m { color: #6B4E00; }

/* Lecteur de capsule */
.ac-pc.is-video { max-width: 760px; padding-top: 6px; padding-bottom: 12px; }
.ac-vbox { display: flex; justify-content: center; }
.ac-v { position: relative; width: min(100%, calc((100vh - 230px) * 9 / 16), 400px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; clip-path: inset(0 round 26px); background: var(--ink); user-select: none; -webkit-user-select: none; }
.ac-vbox { filter: drop-shadow(0 18px 36px rgba(10,20,15,.2)); }
@media (max-width: 640px) { .ac-v { width: min(100%, calc((100svh - 210px) * 9 / 16)); border-radius: 22px; clip-path: inset(0 round 22px); } }
.ac-v-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; display: flex; gap: 4px; }
.ac-v-bars i { flex: 1; height: 3.5px; border-radius: 99px; background: rgba(17,21,19,.14); overflow: hidden; }
.ac-v-bars b { display: block; height: 100%; width: 0; background: #111513; border-radius: inherit; }
.ac-v.dark .ac-v-bars i { background: rgba(255,255,255,.28); }
.ac-v.dark .ac-v-bars b { background: #FFFFFF; }
.ac-v-stage { position: absolute; inset: 0; }
.ac-v-tap { position: absolute; top: 40px; bottom: 70px; z-index: 3; border: 0; background: transparent; cursor: pointer; }
.ac-v-tap.l { left: 0; width: 32%; } .ac-v-tap.r { right: 0; width: 68%; }
.ac-v-ctl { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 8px; }
.ac-v-b { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(17,21,19,.55); color: #FFFFFF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ac-v-b .ico { width: 20px; height: 20px; }
.ac-v-b:hover { background: rgba(17,21,19,.75); }
.ac-v.paused .ac-s * { animation-play-state: paused !important; }
.ac-s { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 56px 26px 74px; overflow: hidden; animation: acSceneIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes acSceneIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.ac-s::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -140px; bottom: -120px; background: currentColor; opacity: .07; animation: acDrift 9s ease-in-out infinite alternate; }
.ac-s::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 34px; left: -40px; top: 18%; background: currentColor; opacity: .05; transform: rotate(18deg); animation: acDrift 7s ease-in-out infinite alternate-reverse; }
@keyframes acDrift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-30px, -24px) rotate(25deg); } }
.ac-s > * { position: relative; z-index: 1; }
.ac-s.bg-us { background: var(--us); color: var(--ink); }
.ac-s.bg-uc { background: var(--uc); color: var(--ink); }
.ac-s.bg-ink { background: #111513; color: #FFFFFF; }
.ac-s.bg-cream { background: #F7F5F0; color: var(--ink); }
.ac-s.bg-gold { background: #F7C948; color: #2B2206; }
.ac-s-pill { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--uc); color: var(--uk); }
.ac-s-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--uc); color: var(--uk); animation: acPopIn .6s cubic-bezier(.3,1.6,.5,1) .1s both; }
.ac-s-ic .ico { width: 38px; height: 38px; }
.bg-ink .ac-s-ic { background: #F7C948; color: #2B2206; }
@keyframes acPopIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ac-s-h { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.06; letter-spacing: -0.035em; }
.ac-s-h.big { font-size: 38px; }
.ac-s-sub { font-size: 17px; line-height: 1.45; opacity: .85; }
.ac-s-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F7C948; }
.ac-s-x { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.28; letter-spacing: -0.02em; }
.ac-s-x.lg { font-size: 30px; }
.ac-s-x.sm { font-size: 20px; line-height: 1.35; }
.ac-s-n { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; animation: acPopIn .55s cubic-bezier(.3,1.6,.5,1) both; }
.ac-s-brand { position: absolute; left: 26px; bottom: 24px; font-size: 12px; font-weight: 700; opacity: .55; }
.ac-s .w { display: inline-block; opacity: 0; transform: translateY(14px); animation: acW .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d); }
.ac-s .w.on { opacity: 1; transform: none; animation: none; }
.ac-s .hlr { background-image: linear-gradient(transparent 60%, #F7C948 60%, #F7C948 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em; animation: acHl .7s ease forwards; animation-delay: var(--d); }
.bg-ink .hlr { background-image: linear-gradient(transparent 60%, rgba(247,201,72,.55) 60%, rgba(247,201,72,.55) 92%, transparent 92%); }
.bg-gold .hlr { background-image: linear-gradient(transparent 60%, rgba(255,255,255,.75) 60%, rgba(255,255,255,.75) 92%, transparent 92%); }
.ac-s .hlr.on { background-size: 100% 100%; animation: none; }
@keyframes acW { to { opacity: 1; transform: none; } }
@keyframes acHl { to { background-size: 100% 100%; } }
@media (max-width: 380px) { .ac-s { padding: 50px 20px 70px; } .ac-s-h { font-size: 28px; } .ac-s-h.big { font-size: 31px; } .ac-s-x { font-size: 21px; } .ac-s-x.lg { font-size: 25px; } .ac-s-x.sm { font-size: 17.5px; } .ac-s-n { font-size: 52px; } }
.ac-pf-txt { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.ac-pf-txt:hover { color: var(--ink); }
@media (max-width: 640px) { .ac-pc.is-video + .ac-pf .ac-pf-in, .is-video ~ .ac-pf .ac-pf-in { flex-direction: row-reverse; } }
@media (prefers-reduced-motion: reduce) { .ac-s, .ac-s::before, .ac-s::after, .ac-s .w, .ac-s-ic, .ac-s-n, .ac-s .hlr { animation: none !important; opacity: 1 !important; transform: none !important; } .ac-s .hlr { background-size: 100% 100%; } }

/* Fil de capsules */
.ac-feed { position: fixed; inset: 0; z-index: 210; background: #0E1110; color: #FFFFFF; display: grid; grid-template-rows: auto 1fr; }
.ac-feed[hidden] { display: none; }
.ac-feed-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.ac-feed-top b { font-family: var(--display); font-size: 18px; }
.ac-feed-top .ac-x { color: #FFFFFF; }
.ac-feed-top .ac-x:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
.ac-feed-sc { overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.ac-feed-sc::-webkit-scrollbar { display: none; }
.ac-fd { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 6px 12px 18px; }
.ac-fd-f { display: flex; justify-content: center; width: 100%; }
.ac-fd .ac-v { width: min(100%, calc((100svh - 90px) * 9 / 16), 430px); }
.ac-v.poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); }
.ac-fd-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(17,21,19,.55); color: #FFFFFF; z-index: 3; }
.ac-fd-lock { position: absolute; inset: auto 14px 14px; z-index: 5; padding: 18px; border-radius: 20px; background: rgba(17,21,19,.88); color: #FFFFFF; display: grid; gap: 6px; }
.ac-fd-lock > span { color: #F7C948; }
.ac-fd-lock b { font-family: var(--display); font-size: 19px; }
.ac-fd-lock p { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.ac-fd-lock .btn { background: #F7C948 !important; color: #2B2206 !important; }
.ac-fq { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; padding: 16px; border-radius: 20px; background: #FFFFFF; color: var(--ink); display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.35); animation: acIn .35s cubic-bezier(.2,.7,.2,1); max-height: calc(100% - 60px); overflow: auto; }
.ac-fq > b { font-size: 16px; line-height: 1.35; }
.ac-fq-o { display: grid; gap: 8px; }
.ac-fq .ac-opt { min-height: 46px; padding: 10px 12px; font-size: 14.5px; border-bottom-width: 3px; }
.ac-fq-fb { display: grid; gap: 10px; padding-top: 4px; }
.ac-fq-fb p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ac-fq-fb.ok b { color: #1F6A47; } .ac-fq-fb.ko b { color: #9B3428; }
.ac-fq-fb .btn { justify-self: end; }

/* Défi éclair */
.ac-dt { position: relative; flex: 1; height: 26px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.ac-dt i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #F7C948, #E8A93A); border-radius: inherit; transition: width .1s linear; }
.ac-dt b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-dt.hurry i { background: linear-gradient(90deg, #F2A08F, #D9534F); }
.ac-dt.hurry b { animation: acBeat .5s ease-in-out infinite; }
@keyframes acBeat { 50% { transform: scale(1.12); } }
.ac-dsc { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; color: #9A6B00; font-variant-numeric: tabular-nums; flex: none; }
.ac-dsc .ico { fill: #E8A93A; stroke: #E8A93A; stroke-width: 1.2; }
.ac-dpc .ac-opt.good { animation: acPopOk .35s ease; }
@keyframes acPopOk { 50% { transform: scale(1.03); } }
.ac-end-art.defi { background: #FCF1D6; color: #9A6B00; }
.ac-end-art.defi .ico { width: 60px; height: 60px; }

/* Fin de leçon, fenêtres */
.ac-end-k .sd { border-color: #6FAF8E; } .ac-end-k .sd span { background: #6FAF8E; } .ac-end-k .sd b { color: #2F6B4F; }
.ac-end-bonus { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #B4581F; }
.ac-end-n.ch { background: #FCF1D6; } .ac-end-n.ch .ico { color: #9A6B00; }
.ac-end-n.mile { background: linear-gradient(120deg, #FDEBDD, #FCF1D6); }
.ac-end-n.mile .ico { width: 40px; height: 40px; animation: acBeat 1s ease-in-out 3; }
.ac-end-a { justify-content: flex-end !important; }
.ac-end-a .btn { min-width: 0 !important; }
@media (min-width: 641px) { .ac-end-a .btn { min-width: 200px !important; } }
.ac-bst { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 9px; border-radius: 99px; background: #FCF1D6; color: #9A6B00; font-weight: 800; font-size: 13px; flex: none; }
.ac-quit-i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: #E5F5EC; color: #2F8A63; }
html.ac-lock .toast { z-index: 300; }
.ac-mbg { z-index: 255 !important; }
.ac-modal { z-index: 260 !important; }
.ac-pw { text-align: center; }
.ac-pw h2 { padding: 0 !important; margin-top: 4px; }
.ac-pw-c { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; background: #F7C948; color: #6B4E00; box-shadow: 0 5px 0 #C99A1E; }
.ac-pw-l { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; text-align: left; }
.ac-pw-l li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.ac-pw-l .ico { color: #2F8A63; margin-top: 2px; }
.ac-pw-p { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 18px; background: #FCF1D6; margin-bottom: 14px; }
.ac-pw-p b { font-family: var(--display); font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.ac-pw-p span { font-size: 13px; color: #6B5320; }
.ac-pw-ok { display: grid; grid-template-columns: 20px 1fr; gap: 10px; text-align: left; font-size: 13px; line-height: 1.45; color: var(--ink-2); margin-bottom: 14px; cursor: pointer; }
.ac-pw-ok input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.ac-pw-go.is-off { opacity: .45; }
.ac-pw-n { display: flex; gap: 6px; align-items: flex-start; justify-content: center; text-align: left; font-size: 12.5px; margin-top: 10px; }
.ac-pw-n .ico { flex: none; margin-top: 2px; }
.ac-pw-a { display: grid; gap: 10px; margin-top: 18px; }
.ac-chestm { text-align: center; padding-top: 6px; }
.ac-chestm h2 { padding: 0 !important; font-size: 34px !important; margin-top: 10px; }
.ac-chestm .btn { margin-top: 18px; }
.ac-chest-art { position: relative; width: 110px; height: 110px; margin: 0 auto; border-radius: 30px; display: grid; place-items: center; background: #F7C948; color: #6B4E00; box-shadow: 0 6px 0 #C99A1E; animation: acChestOpen .9s cubic-bezier(.3,1.6,.5,1) both; }
.ac-chest-art .ico { width: 58px; height: 58px; }
.ac-chest-art.big { background: linear-gradient(140deg, #F7C948, #F2A08F); }
@keyframes acChestOpen { 0% { transform: scale(.4) rotate(-8deg); } 40% { transform: scale(1.1) rotate(6deg); } 60% { transform: rotate(-4deg); } 100% { transform: none; } }
.ac-burst i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #6FAF8E; transform: rotate(var(--a)) translateY(0); animation: acBurst .8s ease-out .35s both; }
.ac-burst i:nth-child(2n) { background: #F2A08F; width: 8px; height: 8px; }
@keyframes acBurst { from { opacity: 1; transform: rotate(var(--a)) translateY(0); } to { opacity: 0; transform: rotate(var(--a)) translateY(-90px); } }
.ac-chest-b { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: #5A4FA0; }
@media (prefers-reduced-motion: reduce) { .ac-chest.ready, .ac-chest-art, .ac-burst i { animation: none !important; } }
@media (max-width: 600px) { .ac-modal { width: 100%; max-height: 92vh; } }
.ac-v-b.lbl { width: auto; padding: 0 14px 0 11px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.ac-feed-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 12px; }
.ac-feed-nav .ac-x { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #FFFFFF; }
.ac-feed-nav .ac-x:hover { background: rgba(255,255,255,.2); color: #FFFFFF; }
@media (max-width: 760px) { .ac-feed-nav { display: none; } }

/* ================= Compte Kapiry ================= */
.cpt-top { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.cpt-top:hover { background: var(--bg-2); }
.cpt-top.on { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.cpt-top.on .ico { color: var(--brand); }
@media (max-width: 1180px) { .cpt-top { width: 40px; padding: 0; justify-content: center; } .cpt-top span { display: none; } }
.sheet nav .cpt-sh { font-weight: 700; }
.cpt-modal { max-width: 480px; }
.cpt-m { text-align: center; }
.cpt-m h2 { padding: 0 !important; margin-top: 4px; }
.cpt-m .sub { margin-bottom: 16px; }
.cpt-mi { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--brand-soft); color: var(--brand); }
.cpt-mi.ok { background: #E5F5EC; color: #2F8A63; }
.cpt-mi.bad { background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); }
.cpt-f { display: grid; gap: 10px; text-align: left; }
.cpt-l { font-weight: 600; font-size: 14px; }
.cpt-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.cpt-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea.cpt-in { font: 12.5px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }
.cpt-c { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; text-align: left; margin: 2px 0 6px; }
.cpt-c input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.cpt-n { font-size: 12.5px; line-height: 1.5; }
.cpt-err { color: var(--neg); font-weight: 600; font-size: 14px; }
.cpt-sent { text-align: center; display: grid; gap: 8px; }
.cpt-sent h3 { font-size: 21px; }
.cpt-sent p { color: var(--ink-2); }
.cpt-page .ph p .ico { vertical-align: -2px; }
.cpt-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-bottom: 56px; }
@media (max-width: 860px) { .cpt-grid { grid-template-columns: 1fr; } .cpt-login { order: -1; } }
.cpt-why { display: grid; gap: 18px; }
.cpt-b { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.cpt-b b { display: block; font-size: 16px; margin-bottom: 2px; }
.cpt-b p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cpt-bi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cpt-login h2 { font-size: 22px; margin-bottom: 4px; }
.cpt-login .help { margin-bottom: 14px; }
.cpt-test { margin: 0 0 22px; }
.cpt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .cpt-cards { grid-template-columns: 1fr; } }
.cpt-card { display: flex; flex-direction: column; gap: 8px; }
.cpt-ch { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.cpt-ch .cpt-bi { width: 38px; height: 38px; border-radius: 12px; }
.cpt-ch h2 { font-size: 19px; }
.cpt-ch h2 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.cpt-card .help .ico { vertical-align: -2px; color: #9A6B00; }
.cpt-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.cpt-sl { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 4px; }
.cpt-sl li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cpt-sl li:first-child { border-top: 0; }
.cpt-sl a { text-decoration: none; color: var(--ink); min-width: 0; }
.cpt-sl a b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-sl a small { display: block; font-size: 12.5px; color: var(--muted); }
.cpt-sl .icon-btn { width: 34px; height: 34px; }
.cpt-tg { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.cpt-tg b { display: block; }
.cpt-tg small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cpt-data { margin-bottom: 56px; }
.cpt-data h2 { font-size: 19px; margin-bottom: 4px; }
/* Mon compte : mes accès et mes achats (17/11/2026) */
.cpt-acc { grid-column: 1 / -1; }
.cpt-al { list-style: none; padding: 0; margin: 2px 0 0; display: grid; }
.cpt-al li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cpt-al li:first-child { border-top: 0; }
.cpt-al b { font-weight: 600; font-size: 15px; }
.cpt-ai { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.cpt-aa .btn { white-space: nowrap; }
.cpt-st { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cpt-st.ok { background: #E3F2EA; color: #1F6B4A; }
.cpt-st.wait { background: #FFF1CC; color: #7A5600; }
.cpt-st.bad { background: #FBE3DE; color: #A3321F; }
.cpt-st.muted { background: var(--bg-2); color: var(--ink-2); }
.cpt-h3 { font-size: 16px; letter-spacing: -0.01em; margin: 14px 0 2px; }
.cpt-tw { margin: 0; }
.cpt-tb { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cpt-tb th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.cpt-tb td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cpt-tb .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cpt-tb small { display: block; color: var(--muted); font-size: 12.5px; }
.cpt-tb th:first-child, .cpt-tb td:first-child { padding-left: 14px; }
.cpt-tb th:last-child, .cpt-tb td:last-child { padding-right: 14px; }
.cpt-tb tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .cpt-al li { grid-template-columns: 34px minmax(0, 1fr) auto; } .cpt-aa { grid-column: 2 / -1; } }
.cpt-danger { color: var(--neg) !important; }
.cpt-danger-b { background: var(--neg) !important; border-color: var(--neg) !important; color: #fff !important; }
.cpt-pfn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); margin: 0 0 18px; font-size: 14.5px; line-height: 1.45; }
.cpt-pfn > span { flex: 1 1 260px; }
.cpt-pfn.on { background: #E5F5EC; color: #1F6A47; padding: 8px 14px; display: inline-flex; }
.cpt-pfn .ico { flex: none; }
.ac-pw-p s { font-size: 15px; color: var(--muted); }
.cpt-m [hidden], .cpt-m[hidden] { display: none !important; }
.cpt-ta { font: 12px/1.45 ui-monospace, Menlo, monospace; width: 100%; resize: vertical; margin: 6px 0 12px; }

/* ================= S'expatrier (rubrique) : styles repris de la page autonome, cantonnés sous .xpw ================= */
/* ================= Expatriation · couleurs et composants propres à la page ================= */
html[data-prod="expatriation"][data-prod] { --accent: var(--line-2); --accent-ink: var(--ink); --accent-soft: var(--bg-2); }
.xpw { --sauge: #E2EFE6; --sauge-i: #3E6B55; --peche: #FCE6DA; --peche-i: #9A5338; --lavande: #ECE8FA; --lavande-i: #5A4FA0; --ciel: #E2EEF9; --ciel-i: #2D5D8F; --citron: #FAF1CC; --citron-i: #7A6110; --jaune: #F7C948; --good: #2F8A63; --mid: #D29A12; --bad: #C2493A; }
.xpw { overflow-x: clip; }
.xpw .ico.lg { width: 24px; height: 24px; }

/* Bandeau d'aperçu */
 { background: #FFF6D9; border-bottom: 1px solid #F1E2B0; color: #6B5310; font-size: 13px; font-weight: 600; padding: 7px 0; }
 { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
 { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FFF6D9; color: #6B5310; border: 1px solid #F1E2B0; white-space: nowrap; }
@media (max-width: 560px) {  { display: none; } }

/* ---------- Héro ---------- */
.xpw .xh { position: relative; padding: 56px 0 40px; }
.xpw .xh::before { content: ""; position: absolute; top: -40px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent);
  background: radial-gradient(420px 260px at 82% 18%, rgba(226,238,249,.95), transparent 70%), radial-gradient(360px 240px at 98% 78%, rgba(252,230,218,.9), transparent 70%), radial-gradient(380px 260px at 58% 92%, rgba(226,239,230,.9), transparent 70%); }
.xpw .xh-g { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .xpw .xh-g { grid-template-columns: 1fr; gap: 36px; } }
.xpw .xh-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.xpw .xh-tag i { font-style: normal; display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; }
.xpw .xh h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.055em; line-height: .98; margin-top: 20px; max-width: 11em; }
.xpw .xh .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin-top: 20px; max-width: 30em; }
.xpw .xh-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.xpw .xh-cta .btn { height: 52px; padding: 0 24px; font-size: 15.5px; }
.xpw .xh-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 34px; max-width: 560px; }
.xpw .xh-kpi > div { border-radius: 18px; padding: 14px 16px; }
.xpw .xh-kpi b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.xpw .xh-kpi span { display: block; font-size: 13px; margin-top: 4px; line-height: 1.35; }
.xpw .xh-kpi .k1 { background: var(--ciel); } .xpw .xh-kpi .k1 span { color: var(--ciel-i); }
.xpw .xh-kpi .k2 { background: var(--peche); } .xpw .xh-kpi .k2 span { color: var(--peche-i); }
.xpw .xh-kpi .k3 { background: var(--sauge); } .xpw .xh-kpi .k3 span { color: var(--sauge-i); }
.xpw .xh-art { position: relative; height: 450px; max-width: 540px; width: 100%; justify-self: end; }
@media (max-width: 980px) { .xpw .xh-art { height: 400px; justify-self: center; } }
.xpw .xh-card { position: absolute; width: 250px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 24px 50px rgba(17,21,19,.10); display: grid; gap: 12px; cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; text-align: left; }
.xpw .xh-card:hover, .xpw .xh-card:focus-visible { box-shadow: 0 30px 60px rgba(17,21,19,.18); }
.xpw .xh-card .hd { display: flex; align-items: center; gap: 12px; }
.xpw .xh-card .hd b { font-size: 18px; letter-spacing: -0.02em; }
.xpw .xh-card .hd small { display: block; font-size: 12.5px; color: var(--muted); }
.xpw .xh-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); }
.xpw .xh-card .row b { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.xpw .xh-card.c1 { left: 0; top: 24px; transform: rotate(-4deg); }
.xpw .xh-card.c2 { right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.xpw .xh-card.c3 { left: 4%; top: 236px; transform: rotate(2deg); z-index: 3; }
.xpw .xh-card.c4 { right: 2%; top: 214px; transform: rotate(-3deg); z-index: 4; }
.xpw .xh-card.c1:hover, .xpw .xh-card.c1:focus-visible { transform: rotate(-4deg) translateY(-10px) scale(1.02); } .xpw .xh-card.c2:hover, .xpw .xh-card.c2:focus-visible { transform: rotate(3deg) translateY(-10px) scale(1.02); }
.xpw .xh-card.c3:hover, .xpw .xh-card.c3:focus-visible { transform: rotate(2deg) translateY(-10px) scale(1.02); } .xpw .xh-card.c4:hover, .xpw .xh-card.c4:focus-visible { transform: rotate(-3deg) translateY(-10px) scale(1.02); }
.xpw .xh-card.c1:hover, .xpw .xh-card.c2:hover, .xpw .xh-card.c3:hover, .xpw .xh-card.c4:hover, .xpw .xh-card:focus-visible { z-index: 10; }
@media (max-width: 560px) {
  .xpw .xh-art { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .xpw .xh-card { position: static; width: auto; padding: 12px; gap: 8px; border-radius: 18px; box-shadow: 0 12px 28px rgba(17,21,19,.08); }
  .xpw .xh-card .hd { gap: 8px; } .xpw .xh-card .hd b { font-size: 15px; } .xpw .xh-card .flag { width: 32px; height: 22px; border-radius: 5px; }
  .xpw .xh-card .row { font-size: 12px; padding: 6px 8px; flex-direction: column; align-items: flex-start; gap: 1px; } .xpw .xh-card .row b { text-align: left; } .xpw .xh-card .row:last-child { display: none; }
  .xpw .xh-card.c1, .xpw .xh-card.c4 { transform: rotate(-1.5deg); } .xpw .xh-card.c2, .xpw .xh-card.c3 { transform: rotate(1.5deg); }
  .xpw .xh-kpi b { font-size: 19px; } .xpw .xh-kpi span { font-size: 12px; } .xpw .xh-kpi > div { padding: 12px; }
}
.xpw .flag { display: block; width: 44px; height: 30px; border-radius: 7px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(17,21,19,.08); }
.xpw .flag svg { display: block; width: 100%; height: 100%; }
.xpw .flag.lg { width: 64px; height: 44px; border-radius: 10px; }
.xpw .flag.sm { width: 28px; height: 19px; border-radius: 5px; }

/* Bandeau légal */
.xpw .xp-law { display: flex; gap: 16px; align-items: center; border-radius: 22px; padding: 18px 22px; background: var(--ink); color: #FFFFFF; margin-top: 8px; }
.xpw .xp-law .gi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--jaune) !important; color: var(--ink) !important; flex: none; }
.xpw .xp-law b { display: block; font-size: 16.5px; }
.xpw .xp-law span { display: block; font-size: 14px; color: rgba(255,255,255,.72); margin-top: 2px; }
.xpw .xp-law a { margin-left: auto; flex: none; color: #FFFFFF; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); white-space: nowrap; }
@media (max-width: 700px) { .xpw .xp-law { flex-wrap: wrap; } .xpw .xp-law a { margin-left: 62px; } }

/* Sommaire collant */
.xpw .xp-navw { position: sticky; top: 72px; z-index: 30; padding: 16px 0 0; pointer-events: none; }
@media (max-width: 900px) { .xpw .xp-navw { top: 66px; } }
.xpw .xp-nav { pointer-events: auto; display: flex; gap: 2px; padding: 5px; width: max-content; max-width: 100%; margin: 0 auto; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
.xpw .xp-nav::-webkit-scrollbar { display: none; }
.xpw .xp-nav a { flex: none; height: 40px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.xpw .xp-nav a:hover { color: var(--ink); }
.xpw .xp-nav a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }

.xpw .sec { padding: 88px 0; }
@media (max-width: 760px) { .xpw .sec { padding: 60px 0; } }
.xpw .sec-h p { max-width: 34em; }

/* ---------- Curseurs et interrupteurs ---------- */
.xpw .rng { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.xpw .rng:focus { outline: none; }
.xpw .rng::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p), var(--bg-3) var(--p)); }
.xpw .rng::-moz-range-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p), var(--bg-3) var(--p)); }
.xpw .rng::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 0 4px 12px rgba(17,21,19,.18); transition: transform .15s; }
.xpw .rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 0 4px 12px rgba(17,21,19,.18); }
.xpw .rng:active::-webkit-slider-thumb { transform: scale(1.12); }
.xpw .rng:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--jaune); outline-offset: 2px; }
.xpw .sw { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); border: 0; width: 100%; text-align: left; }
.xpw .sw .k { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-3); flex: none; transition: background .2s; }
.xpw .sw .k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.xpw .sw[aria-checked="true"] .k { background: var(--good); }
.xpw .sw[aria-checked="true"] .k::after { transform: translateX(18px); }
.xpw .sw b { display: block; font-size: 14.5px; }
.xpw .sw small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Comparateur ---------- */
.xpw .cmp { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.xpw .cmp-r { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (max-width: 1040px) { .xpw .cmp { grid-template-columns: 1fr; } }
.xpw .cmp-ctl { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 18px; display: grid; gap: 16px; align-content: start; }
.xpw .cmp-ctl .lab { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; display: block; }
.xpw .prof { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xpw .prof button { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #FFFFFF; transition: border-color .2s, background .2s, transform .2s; }
.xpw .prof button:hover { transform: translateY(-2px); border-color: var(--line-2); }
.xpw .prof button .pi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); }
.xpw .prof button b { font-size: 14px; line-height: 1.2; letter-spacing: -0.01em; }
.xpw .prof button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.xpw .prof button[aria-pressed="true"] .pi { background: var(--jaune); color: var(--ink); }
.xpw .amt b { display: block; font-size: 38px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.xpw .amt small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.xpw .amt .rng { margin-top: 10px; }
.xpw .amt .ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.xpw .zone { display: flex; gap: 6px; flex-wrap: wrap; }
.xpw .zone .chip { height: 34px; border-radius: 999px; background: #FFFFFF; font-size: 13.5px; }
.xpw .zone .chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.xpw .cmp-hyp { font-size: 12px; color: var(--muted); line-height: 1.45; }
.xpw .cmp-hyp summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.xpw .cmp-hyp summary::-webkit-details-marker { display: none; }
.xpw .cmp-hyp p { margin-top: 6px; }

/* Carte */
.xpw .map { position: relative; background: linear-gradient(180deg, #EEF4F9, #F4F2EC); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.xpw .map svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 520; }
.xpw .map .land { fill: #DCD7CB; }
.xpw .map .land.fr { fill: #CFC8B8; }
.xpw .pin { cursor: pointer; }
.xpw .pin .halo { fill: currentColor; opacity: .2; transform-box: fill-box; transform-origin: center; }
.xpw .pin .dot { fill: currentColor; stroke: #FFFFFF; stroke-width: 2.4; }
.xpw .pin text { font: 600 12px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.xpw .pin.g { color: var(--good); } .xpw .pin.m { color: var(--mid); } .xpw .pin.b { color: var(--bad); } .xpw .pin.n { color: #9EA59F; }
.xpw .pin.off { opacity: .25; }
.xpw .pin.hot .halo { opacity: .35; animation: xp-pulse 1.4s ease-out infinite; }
@keyframes xp-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
.xpw .pin.top .dot { stroke: var(--ink); }
.xpw .pin .rk { font: 700 10px var(--font); fill: #FFFFFF; stroke: none; }
.xpw .clu { cursor: pointer; }
.xpw .clu circle { fill: var(--ink); stroke: #FFFFFF; stroke-width: 3; }
.xpw .clu text { font: 700 13px var(--font); fill: #FFFFFF; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.xpw .clu .cl-l { fill: var(--ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3.5px; }
.xpw .map-ui { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.xpw .map-ui button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: none; font-weight: 600; font-size: 13px; color: var(--muted); }
.xpw .map-ui button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.xpw .map-leg { position: absolute; right: 12px; top: 12px; display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: var(--ink-2); max-width: calc(100% - 24px); }
.xpw .map-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.xpw .map-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: #FFFFFF; border-radius: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.35; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.xpw .map-tip b { display: block; font-size: 14px; }
.xpw .map-tip span { color: rgba(255,255,255,.75); }
@media (max-width: 700px) { .xpw .map svg { aspect-ratio: 4 / 3; } .xpw .map-leg { position: static; margin: 0; border-radius: 0; background: rgba(255,255,255,.7); max-width: none; } .xpw .map-ui { top: auto; left: auto; right: 10px; bottom: 54px; } }

/* Podium */
.xpw .cmp-sum { margin: 2px 2px 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.xpw .cmp-sum b { font-variant-numeric: tabular-nums; }
.xpw .pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .xpw .pod { grid-template-columns: 1fr; } }
.xpw .pd { position: relative; display: grid; gap: 8px; align-content: start; text-align: left; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: #FFFFFF; cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.xpw .pd:nth-child(2) { animation-delay: .06s; } .xpw .pd:nth-child(3) { animation-delay: .12s; }
.xpw .pd:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(17,21,19,.1); }
.xpw .pd.p1 { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.xpw .pd-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.xpw .pd-n { min-width: 0; flex: 1 1 auto; }
.xpw .pd-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpw .pd-h b { font-size: 16px; letter-spacing: -0.02em; display: block; line-height: 1.2; }
.xpw .pd-h small { font-size: 12.5px; opacity: .7; }
.xpw .pd-m { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--bg-2); color: var(--ink); }
.xpw .pd.p1 .pd-m { background: var(--jaune); }
.xpw .pd-v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xpw .pd-v.pd-range { font-size: 19px; }
.xpw .pd-v small { font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: .7; margin-left: 6px; }
.xpw .pd-s { font-size: 12.5px; font-weight: 600; color: var(--good); line-height: 1.35; text-wrap: balance; }
.xpw .pd.p1 .pd-s { color: #9FE0BE; }
.xpw .pd-t { display: flex; gap: 6px; flex-wrap: wrap; align-self: end; }
.xpw .pd-t:empty { display: none; }

/* Classement */
.xpw .rkl { margin-top: 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 8px; display: grid; }
.xpw .rk { display: grid; grid-template-columns: 28px 30px minmax(150px, 1.1fr) minmax(120px, 2fr) 128px 18px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 0; background: none; text-align: left; width: 100%; position: relative; }
.xpw button.rk:hover { background: var(--bg-2); }
.xpw .rk.hl { background: var(--bg-2); }
.xpw .rk-n { font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 14px; text-align: center; }
.xpw .rk-nm b { display: block; font-size: 15px; letter-spacing: -0.01em; line-height: 1.2; }
.xpw .rk-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.xpw .tg { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.xpw .tg.t-fr { background: #E4ECF8; color: #2D4F8F; }
.xpw .tg.t-rg { background: #E3F2E9; color: #2F6E4F; }
.xpw .tg.t-nn { background: #FBF0D9; color: #7A5A10; }
.xpw .rk-bar { position: relative; height: 12px; border-radius: 8px; background: var(--bg-2); }
.xpw .rk-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transition: width .5s cubic-bezier(.2,.7,.2,1), left .5s cubic-bezier(.2,.7,.2,1), background .3s; }
.xpw .rk-bar .f { background: var(--ink); }
.xpw .rk-bar .r { opacity: .35; }
.xpw .rk.g .rk-bar i { background: var(--good); } .xpw .rk.m .rk-bar i { background: var(--mid); } .xpw .rk.b .rk-bar i { background: var(--bad); }
.xpw .rk-bar u { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #2D4F8F; text-decoration: none; transition: left .5s cubic-bezier(.2,.7,.2,1); }
.xpw .rk-v { text-align: right; }
.xpw .rk-v b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xpw .rk-v small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xpw .rk-c { color: var(--faint); }
.xpw .rk.ref { background: #EEF3FB; margin: 4px 0; }
.xpw .rk.ref .rk-bar i { background: #2D4F8F; }
.xpw .rk.ref .rk-n { color: #2D4F8F; }
.xpw .rk.na .rk-v b { color: var(--faint); font-weight: 500; }
@media (max-width: 700px) {
  .xpw .rk { grid-template-columns: 22px 28px minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 8px; }
  .xpw .rk-v .mh { display: none; }
  .xpw .rk-bar { grid-column: 2 / -1; grid-row: 2; height: 8px; }
  .xpw .rk-c { display: none; }
  .xpw .rk-v b { font-size: 14px; }
}
.xpw .cmp-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ---------- Pays ---------- */
.xpw .x-top { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: center; margin-bottom: 26px; }
@media (max-width: 980px) { .xpw .x-top { grid-template-columns: 1fr; } }
.xpw .x-top .sec-h { margin-bottom: 0; }
.xpw .x-t5 { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 14px; }
.xpw .x-t5 h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.xpw .x-t5 h3 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.xpw .x-t5 ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.xpw .x-t5 li button { width: 100%; display: grid; grid-template-columns: 18px 28px 1fr 64px; gap: 10px; align-items: center; background: none; border: 0; padding: 2px 0; text-align: left; font-size: 13.5px; }
.xpw .x-t5 li .n { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.xpw .x-t5 li .bar { display: block; height: 8px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin-top: 4px; }
.xpw .x-t5 li .bar i { display: block; height: 100%; border-radius: 6px; background: var(--ink); }
.xpw .x-t5 li .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.xpw .x-t5 li button:hover .bar i { background: var(--jaune); }
.xpw .x-t5 p { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.xpw .x-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.xpw .x-filt { display: flex; gap: 8px; flex-wrap: wrap; }
.xpw .x-filt .chip { background: #FFFFFF; height: 38px; border-radius: 999px; }
.xpw .x-filt .chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.xpw .x-sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.xpw .x-sort select { height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; padding: 0 34px 0 14px; font: inherit; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111513' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.xpw .x-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .xpw .x-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .xpw .x-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .xpw .x-grid { grid-template-columns: 1fr; } }
.xpw .cc { position: relative; display: flex; flex-direction: column; text-align: left; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 0; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; cursor: pointer; width: 100%; animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.xpw .cc:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(17,21,19,.10); border-color: var(--line-2); }
.xpw .cc:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.xpw .cc-top { padding: 16px 16px 14px; background: var(--tint); display: grid; gap: 12px; }
.xpw .cc-hd { display: flex; align-items: center; gap: 12px; }
.xpw .cc-hd b { display: block; font-size: 18px; letter-spacing: -0.025em; line-height: 1.15; }
.xpw .cc-hd small { display: block; font-size: 12.5px; color: var(--tink); font-weight: 600; }
.xpw .cc-rk { margin-left: auto; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--tink); background: rgba(255,255,255,.7); border-radius: 999px; padding: 3px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xpw .cc-rate { display: flex; align-items: baseline; gap: 8px; }
.xpw .cc-rate b { font-size: 30px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xpw .cc-rate span { font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }
.xpw .cc-meter { position: relative; height: 8px; border-radius: 6px; background: rgba(255,255,255,.75); }
.xpw .cc-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ink); }
.xpw .cc-meter u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #CE1126; text-decoration: none; }
.xpw .cc-body { padding: 12px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.xpw .cc-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; }
.xpw .cc-row span { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.xpw .cc-row b { font-weight: 600; text-align: right; }
.xpw .cc-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.xpw .cc:hover .cc-go .ico { transform: translateX(3px); }
.xpw .cc-go .ico { transition: transform .25s; }
.xpw .x-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 16px; align-items: center; }
.xpw .x-legend u { display: inline-block; width: 2px; height: 12px; background: #CE1126; text-decoration: none; vertical-align: -2px; margin-right: 6px; }

/* Fiche pays (tiroir) */
.xpw .cd-bg { position: fixed; inset: 0; z-index: 90; background: rgba(17,21,19,.38); backdrop-filter: blur(3px); }
.xpw .cd { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: #FFFFFF; box-shadow: -30px 0 80px rgba(17,21,19,.18); display: flex; flex-direction: column; animation: xp-cdIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes xp-cdIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.xpw .cd[hidden], .xpw .cd-bg[hidden] { display: none; }
.xpw .cd-h { padding: 22px 24px 18px; background: var(--tint); position: relative; }
.xpw .cd-h .x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; }
.xpw .cd-id { display: flex; gap: 14px; align-items: center; padding-right: 48px; }
.xpw .cd-id h2 { font-size: 30px; letter-spacing: -0.045em; }
.xpw .cd-id small { display: block; font-size: 13px; color: var(--tink); font-weight: 600; margin-top: 2px; }
.xpw .cd-h p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.xpw .cd-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.xpw .cd-kpi > div { background: rgba(255,255,255,.78); border-radius: 14px; padding: 10px 12px; }
.xpw .cd-kpi span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.xpw .cd-kpi b { display: block; font-size: 15px; margin-top: 3px; line-height: 1.2; }
@media (max-width: 560px) { .xpw .cd-kpi { grid-template-columns: 1fr 1fr; } }
.xpw .cd-tabs { display: flex; gap: 4px; padding: 10px 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; background: #FFFFFF; }
.xpw .cd-tabs::-webkit-scrollbar { display: none; }
.xpw .cd-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: none; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.xpw .cd-tabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.xpw .cd-b { flex: 1; overflow-y: auto; padding: 20px 24px 28px; display: grid; gap: 16px; align-content: start; }
.xpw .cd-b > * { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
.xpw .cd-sec h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.xpw .cd-sec h3 .ico { color: var(--tink); }
.xpw .cd-li { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xpw .cd-li li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.xpw .cd-li li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin: 7px 0 0 6px; background: var(--tint-d, var(--ink)); }
.xpw .cd-bar { display: grid; gap: 6px; }
.xpw .cd-bar > div { display: grid; grid-template-columns: 132px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.xpw .cd-bar .t { height: 22px; border-radius: 7px; background: var(--bg-2); overflow: hidden; }
.xpw .cd-bar .t i { display: block; height: 100%; border-radius: 7px; background: var(--tint-d, var(--ink)); transform-origin: left; animation: growX .8s cubic-bezier(.2,.7,.2,1) both; }
.xpw .cd-bar .r { text-align: right; font-weight: 600; }
.xpw .cd-bar span { color: var(--muted); }
.xpw .cd-note { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.xpw .cd-pens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .xpw .cd-pens { grid-template-columns: 1fr; } }
.xpw .cd-pens > div { border-radius: 14px; padding: 12px; background: var(--bg-2); }
.xpw .cd-pens span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.xpw .cd-pens b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-top: 6px; }
.xpw .cd-warn { border-radius: 16px; padding: 14px 16px; background: #FFF6E5; border: 1px solid #F3DDB0; font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.xpw .cd-warn .ico { color: var(--warn); margin-top: 2px; }
.xpw .cd-f { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex: none; background: #FFFFFF; }
.xpw .cd-f .btn { flex: 1; }
.xpw .cd-src a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.xpw .cd-nav { display: flex; gap: 6px; }
.xpw .cd-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #FFFFFF; display: grid; place-items: center; }

/* ---------- Simulateurs ---------- */
.xpw .st { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (max-width: 900px) { .xpw .st { grid-template-columns: 1fr 1fr; } }
.xpw .st button { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #FFFFFF; transition: border-color .2s, background .2s, transform .2s; }
.xpw .st button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.xpw .st button .gi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.xpw .st button b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.xpw .st button small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.xpw .st button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.xpw .st button[aria-selected="true"] small { color: rgba(255,255,255,.7); }
.xpw .st button[aria-selected="true"] .gi { background: var(--jaune) !important; color: var(--ink) !important; }
.xpw .st button:nth-child(1) .gi { background: var(--ciel) !important; color: var(--ciel-i) !important; }
.xpw .st button:nth-child(2) .gi { background: var(--peche) !important; color: var(--peche-i) !important; }
.xpw .st button:nth-child(3) .gi { background: var(--lavande) !important; color: var(--lavande-i) !important; }
.xpw .st button:nth-child(4) .gi { background: var(--sauge) !important; color: var(--sauge-i) !important; }
.xpw .sp[hidden] { display: none; }
.xpw .sp { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }
.xpw .sp-plf { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 16px; background: #FFF6E5; border: 1px solid #F3DDB0; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }
.xpw .sp-plf .ico { color: var(--warn); flex: none; margin-top: 2px; }
.xpw .xp-sim { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .xpw .xp-sim { grid-template-columns: 1fr; } }
.xpw .xp-sim > .panel { border-radius: 22px; }
.xpw .xp-out { position: sticky; top: 160px; display: grid; gap: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
@media (max-width: 1000px) { .xpw .xp-out { position: static; } }
.xpw .xp-out .panel { padding: 4px 6px; border: 0; background: none; }
.xpw .xp-out .kv th { width: 52%; }
.xpw .xr { background: var(--ink) !important; color: #FFFFFF !important; border-radius: 18px !important; margin-top: 0 !important; }
.xpw .xr::before { background: radial-gradient(380px 200px at 100% 0%, rgba(247,201,72,.28), transparent 70%) !important; }
.xpw .xr .l, .xpw .xr .res-grid span { color: rgba(255,255,255,.66) !important; }
.xpw .xr .res-grid { border-top-color: rgba(255,255,255,.14) !important; }
.xpw .xr h3 { color: #FFFFFF; font-size: 23px; letter-spacing: -0.03em; margin-top: 14px; }
.xpw .xr .xp-sub { color: rgba(255,255,255,.72); font-size: 14px; display: block; margin-top: 8px; line-height: 1.5; }
.xpw .xp-sim .fx-sim-h .gi { background: var(--bg-2) !important; }
.xpw .rf { display: grid; gap: 4px; }
.xpw .rf-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xpw .rf-h .lab { font-weight: 600; font-size: 14px; }
.xpw .rf-v { display: flex; align-items: center; gap: 4px; }
.xpw .rf-v input { width: 120px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; font: inherit; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; background: #FFFFFF; }
.xpw .rf-v input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.xpw .rf-v span { color: var(--muted); font-weight: 500; }
.xpw .rf .help { margin-top: -2px; }
.xpw .xp-bars { display: grid; gap: 10px; }
.xpw .xp-bars .vbar-row { grid-template-columns: 120px 1fr 82px; }
.xpw .xp-bars .vbar-row .t i { background: var(--d7); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.xpw .xp-bars .vbar-row.on .t i { background: var(--ink); }
.xpw .xp-bars .vbar-row.on span:first-child { font-weight: 600; }
.xpw .xp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xpw .xp-two > div { border-radius: 18px; padding: 16px; background: var(--bg-2); transition: background .3s, color .3s; }
.xpw .xp-two > div.win { background: var(--ink); color: #FFFFFF; }
.xpw .xp-two .l { font-size: 13.5px; color: var(--muted); }
.xpw .xp-two .win .l, .xpw .xp-two .win small { color: rgba(255,255,255,.7); }
.xpw .xp-two b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.xpw .xp-two small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .xpw .xp-two { grid-template-columns: 1fr; } }
.xpw .fx-notes { padding-left: 18px; }
.xpw .tag.neg { color: var(--neg); background: color-mix(in srgb, var(--neg) 10%, transparent); }

/* Questionnaire pas à pas */
.xpw .wz { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-height: 380px; display: grid; align-content: start; gap: 16px; }
.xpw .wz-top { display: flex; align-items: center; gap: 12px; }
.xpw .wz-top .n { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xpw .wz-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.xpw .wz-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.xpw .wz-back { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: #FFFFFF; display: grid; place-items: center; }
.xpw .wz-back[disabled] { opacity: .35; cursor: default; }
.xpw .wz-body { display: grid; gap: 14px; animation: xp-wzIn .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes xp-wzIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.xpw .wz-q { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; line-height: 1.15; }
.xpw .wz-h { font-size: 14px; color: var(--muted); margin-top: -6px; }
.xpw .wz-o { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.xpw .wz-o button { display: grid; gap: 10px; justify-items: start; text-align: left; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #FFFFFF; font-weight: 600; font-size: 15px; line-height: 1.25; transition: border-color .2s, background .2s, transform .2s; min-height: 108px; }
.xpw .wz-o button:hover { border-color: var(--ink); transform: translateY(-2px); }
.xpw .wz-o button .oi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); }
.xpw .wz-o button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.xpw .wz-o button[aria-pressed="true"] .oi { background: var(--jaune); color: var(--ink); }
.xpw .wz-done h3 { font-size: 24px; letter-spacing: -0.03em; }
.xpw .wz-rec { display: flex; gap: 6px; flex-wrap: wrap; }
.xpw .wz-rec button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.xpw .wz-rec button:hover { border-color: var(--ink); }
.xpw .wz-rec button i { font-style: normal; color: var(--muted); font-weight: 500; }
.xpw .gauge { padding: 4px 2px 0; }
.xpw .g-track { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #C9D8F2, #EDEBE4 50%, #CDE7D8); }
.xpw .g-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--jaune); border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: left .6s cubic-bezier(.2,.7,.2,1); }
.xpw .g-lab { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 8px; }
.xpw .xp-crit { display: grid; gap: 0; }
.xpw .xp-crit > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.xpw .xp-crit > div:first-child { border-top: 0; }
.xpw .xp-crit b { font-size: 14.5px; }
.xpw .xp-crit p { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Placements ---------- */
.xpw .pl-f { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.xpw .pl-f .chip { background: #FFFFFF; border-radius: 999px; height: 38px; }
.xpw .pl-f .chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.xpw .pl-f .chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.xpw .pl-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .xpw .pl-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .xpw .pl-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .xpw .pl-g { grid-template-columns: 1fr; } }
.xpw .pt { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.xpw .pt[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.xpw .pt summary { list-style: none; cursor: pointer; padding: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.xpw .pt summary::-webkit-details-marker { display: none; }
.xpw .pt summary .pi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pbg); color: var(--pfg); }
.xpw .pt summary b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.xpw .pt summary small { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--pfg); }
.xpw .pt summary small i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.xpw .pt[data-s="garder"] { --pbg: color-mix(in srgb, var(--pos) 12%, #FFFFFF); --pfg: var(--pos); }
.xpw .pt[data-s="fermer"] { --pbg: color-mix(in srgb, var(--neg) 11%, #FFFFFF); --pfg: var(--neg); }
.xpw .pt[data-s="verifier"] { --pbg: color-mix(in srgb, var(--warn) 13%, #FFFFFF); --pfg: var(--warn); }
.xpw .pt .pb { padding: 0 16px 16px; display: grid; gap: 8px; }
.xpw .pt .pb p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.xpw .pt .pb ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.xpw .pt .pb a { font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.xpw .pt.hid { display: none; }

/* ---------- Démarches ---------- */
.xpw .dm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.xpw .dm::before { content: ""; position: absolute; left: 30px; right: 30px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
@media (max-width: 900px) { .xpw .dm { grid-template-columns: 1fr 1fr; } .xpw .dm::before { display: none; } }
@media (max-width: 520px) { .xpw .dm { grid-template-columns: 1fr; } }
.xpw .dm > div { position: relative; display: grid; gap: 10px; align-content: start; }
.xpw .dm .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ci); border: 4px solid var(--page); }
.xpw .dm h3 { font-size: 18px; margin-top: 4px; }
.xpw .dm h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
.xpw .dm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.xpw .dm li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.xpw .dm li .ico { color: var(--pos); margin-top: 2px; }

/* ---------- Dans les règles ---------- */
.xpw .rg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .xpw .rg { grid-template-columns: 1fr; } }
.xpw .rg > div { border-radius: 22px; padding: 22px; }
.xpw .rg .ok { background: var(--sauge); }
.xpw .rg .ko { background: #FBE4E0; }
.xpw .rg h3 { font-size: 19px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.xpw .rg h3 span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; }
.xpw .rg .ok h3 span { color: var(--pos); } .xpw .rg .ko h3 span { color: var(--neg); }
.xpw .rg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.xpw .rg li { font-size: 14.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.72); }
.xpw .rg-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 800px) { .xpw .rg-s { grid-template-columns: 1fr; } }
.xpw .rg-s > div { border-radius: 20px; padding: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.xpw .rg-s b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.xpw .rg-s .r b { color: var(--neg); }
.xpw .rg-s span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }

/* ---------- FAQ, CTA, sources ---------- */
.xpw .faq details { border-radius: 18px; }
.xpw .band { border-radius: 28px; }
.xpw .band .it { background: linear-gradient(transparent 58%, rgba(247,201,72,.5) 58%, rgba(247,201,72,.5) 93%, transparent 93%) no-repeat !important; }
.xpw .src-f { border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.xpw .src-f summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.xpw .src-f summary::-webkit-details-marker { display: none; }
.xpw .src-f summary small { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.xpw .src-f > div { padding: 0 22px 20px; }
.xpw .xp-src { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .xpw .xp-src { grid-template-columns: 1fr; } }
.xpw .xp-src li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.xpw .xp-src a { font-weight: 550; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); line-height: 1.4; }
.xpw .foot { margin-top: 0; }
body.xp-lock { overflow: hidden; }
.xpw-lock { position: relative; margin-top: 18px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #FFFFFF; }
.xpw-lock .xl-ghost { padding: 22px; display: grid; gap: 12px; filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.xpw-lock .xl-ghost i { display: block; height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-2), #EEF0EC 60%, var(--bg-2)); }
.xpw-lock .xl-ghost i:nth-child(2n) { width: 86%; } .xpw-lock .xl-ghost i:nth-child(3n) { width: 72%; }
.xpw-lock .xl-card { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.85)); }
.xpw-lock .xl-in { max-width: 560px; text-align: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; box-shadow: 0 18px 50px -24px rgba(14,31,24,.35); }
.xpw-lock .xl-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-2); margin-bottom: 10px; }
.xpw-lock h3 { font-size: 21px; letter-spacing: -0.02em; }
.xpw-lock p { color: var(--muted); margin-top: 8px; }
.xpw-lock ul { list-style: none; padding: 0; margin: 14px auto 0; display: grid; gap: 7px; text-align: left; max-width: 430px; font-size: 14.5px; }
.xpw-lock li { display: flex; gap: 8px; align-items: flex-start; } .xpw-lock li .ico { flex: none; margin-top: 3px; color: var(--pos, #12805C); }
.xpw-lock .xl-a { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.xpw-lock .xl-n { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.xpw-lock.sm .xl-ghost { padding: 16px; } .xpw-lock.sm .xl-ghost i { height: 34px; }
@media (max-width: 640px) { .xpw-lock .xl-card { position: relative; inset: auto; background: none; padding: 0; } .xpw-lock .xl-ghost { display: none; } .xpw-lock .xl-in { box-shadow: none; border: 0; } }
.xpw .xp-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* Barre mobile : six onglets avec l'Académie */
.tabbar { grid-template-columns: repeat(6, 1fr) !important; }
.tabbar a span:last-child { white-space: nowrap; }
.sheet nav.mn-leg a { display: inline; min-height: 0; padding: 0 !important; border: 0 !important; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.sheet nav.mn-leg { flex-direction: row; }

/* ================= Private equity, en clair ================= */
.pe-sec { margin-top: 56px; }
.pe-sec .sec-h { margin-bottom: 20px; }
.pe-sec .sec-h h2 { font-size: clamp(26px, 3.2vw, 36px); }
.pe-ess { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-ess > div, .pe-ess-l > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.pe-ess > div { padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pe-ess .gi, .pe-ess-l .gi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pe-ess b, .pe-ess-l b { display: block; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.pe-ess p, .pe-ess-l p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.pe-ess-l { display: grid; gap: 16px; }
.pe-bref { margin-bottom: 14px; }
.pe-bref h2 { margin-bottom: 18px; }
.pe-sts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pe-st { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.pe-st-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pe-st-h h3 { font-size: 19px; letter-spacing: -0.02em; }
.pe-st-h span { color: var(--muted); font-size: 13.5px; }
.pe-st p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.pe-st-f { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pe-tl { display: block; width: 100%; height: 36px; margin-top: 4px; overflow: visible; }
.pe-tl-b, .pe-tl-a { fill: var(--line-2); }
.pe-tl-l { fill: var(--ink); }
.pe-tl-d { fill: var(--bg); stroke: var(--brand); stroke-width: 3; vector-effect: non-scaling-stroke; }
.pe-tl-x { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.pe-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pe-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pe-legend i { display: inline-block; flex: none; }
.pe-legend .l { width: 22px; height: 8px; border-radius: 4px; background: var(--ink); }
.pe-legend .d { width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--brand); background: var(--bg); }
.pe-howto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin: 2px 0 14px; }
.pe-howto span { display: inline-flex; align-items: center; }
.pe-howto span:not(.pe-howto-l) { color: var(--ink); font-weight: 500; }
.pe-cards { display: grid; gap: 12px; }
.pe-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; background: var(--bg); display: grid; gap: 14px; }
.pe-card-h { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.pe-card-h h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.pe-card-h h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pe-card-m { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pe-card-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pe-card-s { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; max-width: 62em; }
.pe-kpis { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1fr 1.6fr 1.05fr; border-top: 1px solid var(--line); padding-top: 14px; }
.pe-kpis > div { display: flex; flex-direction: column; gap: 3px; padding: 0 14px; border-left: 1px solid var(--line); min-width: 0; }
.pe-kpis > div:first-child { padding-left: 0; border-left: 0; }
.pe-k { font-size: 12.5px; color: var(--muted); }
.pe-kpis b { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.pe-kpis small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pe-kpis .pe-na { color: var(--muted); font-weight: 500; }
.pe-sri { display: inline-flex; gap: 3px; margin: 4px 0 2px; }
.pe-sri i { width: 12px; height: 8px; border-radius: 3px; background: var(--line-2); }
.pe-sri i.on { background: var(--ink); }
.pe-card-go { justify-self: start; font-size: 14.5px; }
.pe-check h2 { margin-bottom: 6px; }
.pe-chk { display: grid; gap: 12px; margin: 16px 0 22px; }
.pe-chk > div { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; }
.pe-chk > div > .ico { color: var(--pos); margin-top: 3px; }
.pe-chk span { color: var(--muted); }
.pe-chk b { color: var(--ink); font-weight: 600; }
.pe-gl-w .fold { margin-top: 0; }
.pe-gl-w { margin-bottom: 56px; }
.pe-gl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 0; }
.pe-gl dt { font-weight: 600; font-size: 15px; }
.pe-gl dd { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .pe-sts { grid-template-columns: 1fr; }
  .pe-kpis { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .pe-kpis > div { padding: 0; border-left: 0; }
  .pe-kpis > .pe-kw { grid-column: 1 / -1; order: 5; }
}
@media (max-width: 640px) {
  .pe-sec { margin-top: 44px; }
  .pe-ess { grid-template-columns: 1fr; }
  .pe-ess > div { padding: 16px; }
  .pe-card { padding: 16px; }
  .pe-card-h { grid-template-columns: auto 1fr; }
  .pe-card-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .pe-gl { grid-template-columns: 1fr; }
}

/* ================= Parcours global : les quatre familles de placements ================= */
.fam4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fam-c { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); padding: 20px; display: flex; flex-direction: column; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .fam4 { grid-template-rows: repeat(8, auto); gap: 0 12px; }
  .fam-c { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 12px; }
}
.fam-h { display: flex; gap: 12px; align-items: center; }
.fam-h .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.fam-h h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.fam-h div > span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.fam-d { margin: 12px 0 8px; font-size: 14.5px; line-height: 1.55; }
.fam-r { border-top: 1px solid var(--line); padding: 10px 0; }
.fam-r span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.fam-r p { margin: 0; font-size: 14px; line-height: 1.5; }
.fam-go { margin-top: 8px; font-size: 14.5px; align-self: end; justify-self: start; }
.fam-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 72em; }
.fam-note .ico { flex: none; margin-top: 2px; }
/* Comparer : un onglet par famille */
.ov-tabs { margin: 0 0 18px; }
.ov-i { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-width: 62em; }
.ov-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s; }
.ov-row:hover { border-color: var(--line-2); }
.ov-t b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ov-t small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ov-v { text-align: right; }
.ov-v > b { display: block; font-size: 16px; font-weight: 600; }
.ov-v > small { display: block; font-size: 12px; color: var(--muted); }
.ov-v .grade { white-space: nowrap; }
.ov-all { display: inline-flex; margin-top: 14px; font-size: 14.5px; }
.ov-p .perf-note { margin-top: 14px; }
/* Bas des pages produits : les autres familles */
.fam-next { margin-top: 40px; margin-bottom: 56px; }
.fam-next-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.fam-next-h b { font-size: 19px; letter-spacing: -0.02em; }
.fam-next-h span { color: var(--muted); font-size: 14px; }
.fam-next-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fam-next-l a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color .15s; }
.fam-next-l a:hover { border-color: var(--line-2); }
.fam-next-l .pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.fam-next-l b { display: block; font-size: 15px; }
.fam-next-l small { display: block; font-size: 12.5px; color: var(--muted); }
/* Risques : un cinquième cas, le private equity */
@media (min-width: 1001px) { .risks.r5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1000px) and (min-width: 561px) { .risks.r5 > .risk:last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .fam4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ov-list { grid-template-columns: 1fr; } .fam-next-l { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .fam4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; gap: 12px; }
  .fam4::-webkit-scrollbar { display: none; }
  .fam-c { flex: 0 0 84%; scroll-snap-align: start; display: flex; margin-bottom: 0; }
  .fam-note { margin-top: 12px; }
}
@media (max-width: 560px) { .fam-next-l { grid-template-columns: 1fr; } }
/* ================= Gabarit commun des comparateurs : cartes, banques, PER, assurance-vie ================= */
.cd-rk { flex: none; min-width: 18px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.etf-tbl.ct-txt .etf-c, .etf-tbl.ct-txt .etf-hd span:not(:first-child) { text-align: left; }
.etf-tbl.ct-txt .etf-c b { font-size: 14px; line-height: 1.35; }
.etf-c .sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.etf-sec .bk-crit { margin: 2px 0 12px; }
.etf-sec > .fold { margin-top: 12px; }
a.sim-item { color: inherit; text-decoration: none; }
.f-hero .f-actions a.btn { text-decoration: none; }
.etf-tags .cq-why { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
@media (min-width: 900px) { .chips.etf-cats.ct-wrap { flex-wrap: wrap; overflow: visible; } }
@media (min-width: 1101px) { .prods.n6, .prods.n7, .prods.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Lexique : lettres en titre de niveau 2, même apparence qu'avant */
h2.ac-lex-L { letter-spacing: -0.02em; font-variation-settings: "opsz" 24; }
  /* ---------- Assurance-vie luxembourgeoise (page lx-) ---------- */
  .lux-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lux-grid > .panel { margin: 0; }
  .lux-grid h3 { font-size: 18px; }
  .lux-src { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
  @media (max-width: 820px) { .lux-grid { grid-template-columns: 1fr; } }
  .lxw .lx-hero { position: relative; padding: 14px 0 6px; }
  .lxw .lx-hero::before { content: ""; position: absolute; inset: -90px 0 0 0; pointer-events: none; background: radial-gradient(560px 340px at 80% 20%, rgba(247,201,72,.20), transparent 70%), radial-gradient(520px 340px at 100% 72%, rgba(201,192,241,.45), transparent 72%); }
  .lxw .lx-hero .wrap { position: relative; }
  .lxw .lx-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
  .lxw .lx-tag { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 3px 13px 3px 3px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: 0 6px 18px -14px rgba(14,31,24,.45); }
  .lxw .lx-tag b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 600; }
  .lxw .lx-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin-top: 20px; max-width: 12em; }
  .lxw .lx-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin-top: 18px; max-width: 33em; }
  .lxw .lx-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
  .lxw .lx-trust { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
  .lxw .lx-trust .ico, .lxw .lx-method .ico, .lxw .lx-check .ico { color: var(--pos); flex: none; }
  .lxw .lx-vis { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 16px; box-shadow: 0 34px 70px -40px rgba(14,31,24,.5), 0 2px 6px rgba(14,31,24,.05); }
  .lxw .lx-vis-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--muted); }
  .lxw .lx-vis-h span { font-weight: 600; color: var(--ink); font-size: 14px; }
  .lxw .lx-tri { position: relative; aspect-ratio: 10 / 8; margin-top: 6px; }
  .lxw .lx-tri-l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .lxw .lx-tri-l polygon { fill: color-mix(in srgb, var(--brand-soft) 60%, transparent); stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
  .lxw .lx-node { position: absolute; transform: translate(-50%, -50%); width: 36%; display: grid; justify-items: center; gap: 3px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 15px; padding: 10px 8px 9px; box-shadow: 0 10px 24px -16px rgba(14,31,24,.45); }
  .lxw .lx-node .ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
  .lxw .lx-node b { font-size: 13px; line-height: 1.2; }
  .lxw .lx-node small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
  .lxw .lx-n1 { left: 50%; top: 15%; } .lxw .lx-n2 { left: 21%; top: 82%; } .lxw .lx-n3 { left: 79%; top: 82%; }
  .lxw .lx-core { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 31%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; gap: 3px; text-align: center; padding: 12px; background: var(--ink); color: #FFFFFF; box-shadow: 0 0 0 7px color-mix(in srgb, var(--gold) 40%, transparent), 0 18px 40px -18px rgba(14,31,24,.65); }
  .lxw .lx-core b { font-size: 15px; } .lxw .lx-core small { font-size: 10.5px; line-height: 1.3; color: rgba(255,255,255,.78); }
  .lxw .lx-vis figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
  .lxw .lx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
  .lxw .lx-kpi { border-radius: 18px; padding: 16px 18px 15px; }
  .lxw .lx-kpi b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
  .lxw .lx-kpi span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
  .lxw .lx-k1 { background: #EAF1FB; } .lxw .lx-k2 { background: var(--accent-soft); } .lxw .lx-k3 { background: var(--brand-soft); } .lxw .lx-k4 { background: #FBECE6; }
  .lxw .lx-risk { margin-top: 22px; }
  .lxw .lx-navw { position: sticky; top: 66px; z-index: 30; padding: 14px 0 0; pointer-events: none; }
  .lxw .lx-nav { pointer-events: auto; display: flex; gap: 2px; padding: 5px; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; overflow-x: auto; scrollbar-width: none; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px -20px rgba(14,31,24,.4); }
  .lxw .lx-nav::-webkit-scrollbar { display: none; }
  .lxw .lx-nav button { flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .lxw .lx-nav button:hover { color: var(--ink); background: var(--bg-2); }
  .lxw .lx-nav button[aria-current="true"] { color: var(--ink); background: var(--bg-2); font-weight: 600; }
  .lxw .lx-sec { padding: 72px 0; scroll-margin-top: 128px; }
  .lxw .lx-sec .sec-h { margin-bottom: 28px; }
  .lxw .lx-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .lxw .lx-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .lxw .lx-tools .chips { flex-wrap: wrap; }
  .lxw .lx-tools .chip .n { color: var(--muted); font-weight: 500; margin-left: 2px; }
  .lxw .lx-count { margin: 0; }
  .lxw .etf-row[hidden] { display: none; }
  .lxw .lx-fees { margin-top: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; scroll-margin-top: 128px; }
  .lxw .lx-fees-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
  .lxw .lx-fees h3 { font-size: 22px; }
  .lxw .lx-fees-h p { color: var(--muted); margin-top: 6px; max-width: 38em; font-size: 14.5px; }
  .lxw .lx-in { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .lxw .lx-inr { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); font-size: 17px; font-weight: 600; color: var(--ink); }
  .lxw .lx-inr:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
  .lxw .lx-inr input { flex: 1; min-width: 0; width: 10ch; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; text-align: right; }
  .lxw .lx-fl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
  .lxw .lx-fl li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .lxw .lx-fn { flex: 1; min-width: 0; display: grid; gap: 1px; }
  .lxw .lx-fn b { font-size: 14.5px; } .lxw .lx-fn small { font-size: 12.5px; color: var(--muted); }
  .lxw .lx-fv { font-weight: 600; font-size: 15px; text-align: right; white-space: nowrap; }
  .lxw .lx-fv small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
  .lxw .lx-fl li.lx-off { opacity: .5; }
  .lxw .lx-na { display: block; max-width: 13em; white-space: normal; font-size: 12.5px; font-weight: 500; color: var(--muted); }
  .lxw .lx-pan h3, .lxw .lx-before h3 { display: flex; align-items: center; gap: 8px; }
  .lxw .lx-pan-lu { border-color: color-mix(in srgb, var(--accent) 75%, var(--line)); box-shadow: 0 18px 40px -30px rgba(80,62,160,.35); }
  .lxw .lx-check { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
  .lxw .lx-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
  .lxw .lx-check li .ico { margin-top: 3px; }
  .lxw .lx-check2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .lxw .lx-before { margin-top: 16px; }
  .lxw .lx-cmp { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg); }
  .lxw .lx-cmp-r { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
  .lxw .lx-cmp-r > div { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
  .lxw .lx-cmp-r:first-child > div { border-top: 0; }
  .lxw .lx-cmp-r > div:first-child { font-weight: 600; }
  .lxw .lx-cmp-r > div:nth-child(3) { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
  .lxw .lx-cmp-hd > div { padding-top: 13px; padding-bottom: 13px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-2); }
  .lxw .lx-cmp-hd > div:nth-child(3) { background: var(--accent-soft); color: var(--ink); }
  .lxw .lx-cmp-r small { display: none; }
  .lxw .lx-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 16px; }
  .lxw .lx-tool-in { display: grid; gap: 14px; align-content: start; }
  .lxw .lx-res { display: flex; gap: 18px; align-items: flex-start; background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 22px; }
  .lxw .lx-cat-l { flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--gold); color: var(--ink); font-size: 34px; font-weight: 700; }
  .lxw .lx-res b { font-size: 20px; }
  .lxw .lx-res p { margin-top: 7px; color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.5; }
  .lxw .lx-faq { display: grid; gap: 10px; }
  .lxw .lx-q { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
  .lxw .lx-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; font-weight: 600; font-size: 16px; }
  .lxw .lx-q summary::-webkit-details-marker { display: none; }
  .lxw .lx-q summary .ico { flex: none; color: var(--muted); transition: transform .2s; }
  .lxw .lx-q[open] summary .ico { transform: rotate(180deg); }
  .lxw .lx-q > div { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
  .lxw .lx-band { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 40px; padding: 30px 32px; border-radius: 26px; background: var(--ink); color: #FFFFFF; box-shadow: 0 30px 60px -40px rgba(17,21,19,.75); }
  .lxw .lx-band h2 { font-size: clamp(24px, 3vw, 34px); color: #FFFFFF; }
  .lxw .lx-band p { color: rgba(255,255,255,.74); margin-top: 8px; max-width: 40em; }
  .lxw .lx-band .btn { background: #FFFFFF !important; border-color: #FFFFFF !important; color: var(--ink) !important; }
  .lxw .lx-band .btn:hover { background: #F7C948 !important; border-color: #F7C948 !important; }
  .lxw .lx-src-sec { padding-top: 0; }
  .lxw .lx-method { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
  .lxw .lx-method li { display: flex; align-items: center; gap: 6px; }
  @media (prefers-reduced-motion: reduce) { .lxw .lx-q summary .ico { transition: none; } }
  @media (max-width: 980px) {
    .lxw .lx-hero-in { grid-template-columns: 1fr; gap: 30px; }
    .lxw .lx-vis { max-width: 560px; }
    .lxw .lx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 760px) {
    .lxw .lx-sec { padding: 52px 0; }
    .lxw .lx-fl, .lxw .lx-check2, .lxw .lx-tool { grid-template-columns: 1fr; }
    .lxw .lx-cmp-hd { display: none; }
    .lxw .lx-cmp-r { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
    .lxw .lx-cmp-hd + .lx-cmp-r { border-top: 0; }
    .lxw .lx-cmp-r > div { border-top: 0; padding: 6px 18px; }
    .lxw .lx-cmp-r > div:first-child { padding-top: 16px; }
    .lxw .lx-cmp-r > div:last-child { padding-bottom: 16px; }
    .lxw .lx-cmp-r small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
    .lxw .lx-band { padding: 24px 22px; }
    .lxw .lx-tools { flex-direction: column; align-items: stretch; }
    .lxw .lx-tools .chips { flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; }
  }
  @media (max-width: 560px) {
    .lxw .lx-tri { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .lxw .lx-tri-l { display: none; }
    .lxw .lx-node, .lxw .lx-core { position: static; transform: none; width: auto; }
    .lxw .lx-n1 { grid-column: 1 / -1; }
    .lxw .lx-core { grid-column: 1 / -1; aspect-ratio: auto; border-radius: 15px; padding: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 40%, transparent); }
    .lxw .lx-kpi b { font-size: 20px; }
    .lxw .lx-res { flex-direction: column; gap: 12px; }
  }
  /* ---------- Assurance-vie luxembourgeoise : animations (page et fiches) ----------
     Entrée du haut de page, triangle vivant, apparitions au défilement, calculs animés.
     Tout s'arrête si le visiteur réduit les animations (règle générale du site). */
  @keyframes lxRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes lxPop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
  @keyframes lxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  @keyframes lxPulse { 0% { opacity: .55; scale: 1; } 80%, 100% { opacity: 0; scale: 1.5; } }
  @keyframes lxDash { to { stroke-dashoffset: -110; } }
  @keyframes lxFill { from { opacity: 0; } to { opacity: 1; } }
  @keyframes lxGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes lxRow { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes lxTick { 0% { opacity: .35; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }
  @keyframes lxBadge { from { scale: .85; opacity: .2; } to { scale: 1; opacity: 1; } }
  @keyframes lxGlow { 0% { transform: translate3d(-12%, -8%, 0) rotate(0deg); } 100% { transform: translate3d(10%, 6%, 0) rotate(18deg); } }
  @keyframes lxShine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
  @keyframes lxOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes lxBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

  /* Haut de page : chaque élément arrive à son tour */
  .lxw .lx-tag { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) both; }
  .lxw .lx-tag b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #E2774E; }
  .lxw .lx-hero h1 { animation: lxRise .8s cubic-bezier(.2,.7,.2,1) .06s both; }
  .lxw .lx-hero h1 .it { animation: hlIn .45s cubic-bezier(.2,.7,.2,1) .5s both; }
  .lxw .lx-lead { animation: lxRise .8s cubic-bezier(.2,.7,.2,1) .14s both; }
  .lxw .lx-cta .btn { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) .22s both; }
  .lxw .lx-cta .btn + .btn { animation-delay: .29s; }
  .lxw .lx-cta .btn .ico { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-cta .btn:hover .ico { transform: translateX(4px); }
  .lxw .lx-trust { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) .36s both; }

  /* Le triangle de sécurité prend vie : contour qui circule, nœuds qui apparaissent puis flottent, cœur qui bat */
  .lxw .lx-vis { animation: lxRise .9s cubic-bezier(.2,.7,.2,1) .1s both; }
  .lxw .lx-tri-l polygon { animation: lxFill .8s ease .35s both, lxDash 6s linear 1.2s infinite; }
  .lxw .lx-node { animation: lxPop .7s cubic-bezier(.2,.7,.2,1) .45s both, lxFloat 6s ease-in-out 1.4s infinite; transition: box-shadow .3s, border-color .3s; }
  .lxw .lx-n2 { animation-delay: .6s, 2.4s; } .lxw .lx-n3 { animation-delay: .75s, 3.3s; }
  .lxw .lx-node:hover { border-color: var(--line-2); box-shadow: 0 16px 32px -18px rgba(14,31,24,.5); }
  .lxw .lx-core { animation: lxPop .8s cubic-bezier(.2,.7,.2,1) .95s both; }
  .lxw .lx-core::before, .lxw .lx-core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); pointer-events: none; opacity: 0; animation: lxPulse 1.6s cubic-bezier(.2,.7,.2,1) 1.4s 1 both; }
  .lxw .lx-core::after { animation-delay: 1.9s; }
  .lxw .lx-vis figcaption { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) 1.1s both; }

  /* Chiffres clés : en cascade, avec un léger relief au survol */
  .lxw .lx-kpi { transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .35s; transition-delay: var(--rd, 0s), var(--rd, 0s), 0s; }
  .lxw .lx-kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(14,31,24,.45); }
  .lxw .lx-hero .lx-kpi:not(.rv) { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) .3s both; }
  .lxw .lx-hero .lx-kpi:not(.rv):nth-child(2) { animation-delay: .36s; } .lxw .lx-hero .lx-kpi:not(.rv):nth-child(3) { animation-delay: .42s; } .lxw .lx-hero .lx-kpi:not(.rv):nth-child(4) { animation-delay: .48s; }

  /* Navigation interne : un repère glisse sous la section en cours */
  .lxw .lx-nav { position: relative; }
  .lxw .lx-ind { position: absolute; left: 0; top: 5px; height: 34px; width: 0; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 -3px 0 rgba(247,201,72,.75); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1), opacity .2s; }
  .lxw .lx-nav.lx-ind-on .lx-ind { opacity: 1; }
  .lxw .lx-nav.lx-ind-0 .lx-ind { transition: none; }
  .lxw .lx-nav button { position: relative; z-index: 1; transition: color .25s; }
  .lxw .lx-nav.lx-ind-on button[aria-current="true"], .lxw .lx-nav.lx-ind-on button:hover { background: transparent; }

  /* Tableau des contrats : les lignes arrivent en cascade, puis à chaque filtre */
  .lxw #lxTbl .etf-row { animation: lxRow .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--k, 0) * 70ms + .12s); }
  .lxw #lxTbl.rv:not(.in) .etf-row { animation-play-state: paused; }
  .lxw .lx-count.lx-pop { animation: lxTick .4s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-tools .chip { transition: background .2s, color .2s, border-color .2s, transform .2s; }
  .lxw .lx-tools .chip:active { transform: scale(.96); }

  /* Coût de gestion : barres proportionnelles aux taux publiés, montants qui roulent à chaque saisie */
  .lxw .lx-fb { position: relative; display: block; height: 6px; margin-top: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; max-width: 260px; }
  .lxw .lx-fb i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, var(--accent) 0 calc(var(--a) * 100%), color-mix(in srgb, var(--accent) 45%, transparent) calc(var(--a) * 100%) calc(var(--b) * 100%), transparent calc(var(--b) * 100%)); animation: lxGrow 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--k, 0) * 80ms + .2s); }
  .lxw .lx-fees.rv:not(.in) .lx-fb i { animation-play-state: paused; }
  .lxw .lx-fl.lx-live .lx-fb i { animation: none; }
  .lxw .lx-fl.lx-live .lx-fv { animation: lxTick .32s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-fl li { transition: background .25s, opacity .3s; border-radius: 10px; }
  .lxw .lx-fl li:hover { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }

  /* Protection et vérifications : les points arrivent un par un */
  .lxw .lx-check li { animation: lxRow .5s cubic-bezier(.2,.7,.2,1) both; }
  .lxw .lx-check li:nth-child(2) { animation-delay: .08s; } .lxw .lx-check li:nth-child(3) { animation-delay: .16s; } .lxw .lx-check li:nth-child(4) { animation-delay: .24s; } .lxw .lx-check li:nth-child(5) { animation-delay: .32s; } .lxw .lx-check li:nth-child(6) { animation-delay: .4s; }
  .lxw .rv:not(.in) .lx-check li { animation-play-state: paused; }
  .lxw .lx-pan-lu h3 .ico { animation: lxPop .7s cubic-bezier(.2,.7,.2,1) .2s both; }
  .lxw .rv:not(.in) .lx-pan-lu h3 .ico { animation-play-state: paused; }
  .lxw .lux-grid > .panel { transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .35s; transition-delay: var(--rd, 0s), var(--rd, 0s), 0s; }
  .lxw .lux-grid > .panel.in:hover, .lxw .lux-grid > .panel:not(.rv):hover { transform: translateY(-3px); box-shadow: 0 22px 44px -32px rgba(14,31,24,.45); }

  /* Comparatif fiscal : ligne après ligne */
  .lxw .lx-cmp-r { animation: lxRow .55s cubic-bezier(.2,.7,.2,1) both; }
  .lxw .lx-cmp-r:nth-child(2) { animation-delay: .07s; } .lxw .lx-cmp-r:nth-child(3) { animation-delay: .14s; } .lxw .lx-cmp-r:nth-child(4) { animation-delay: .21s; } .lxw .lx-cmp-r:nth-child(5) { animation-delay: .28s; } .lxw .lx-cmp-r:nth-child(6) { animation-delay: .35s; }
  .lxw .lx-cmp.rv:not(.in) .lx-cmp-r { animation-play-state: paused; }
  .lxw .lx-cmp-r > div:nth-child(3) { transition: background .3s; }
  .lxw .lx-cmp-r:hover > div:nth-child(3) { background: var(--accent-soft); }

  /* Catégorie : la lettre bascule, le repère glisse sur l'échelle N à D */
  .lxw .lx-cat-l { animation: lxBadge .8s cubic-bezier(.2,.7,.2,1) .25s both; }
  .lxw .lx-tool.rv:not(.in) .lx-cat-l { animation-play-state: paused; }
  .lxw .lx-res.lx-live .lx-cat-l { animation: none; }
  .lxw .lx-res.lx-live .lx-cat-l.lx-pop { animation: lxBadge .6s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-scale { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.08); }
  .lxw .lx-scale span { position: relative; z-index: 1; display: grid; place-items: center; height: 30px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.62); transition: color .3s; }
  .lxw .lx-scale span.on { color: var(--ink); }
  .lxw .lx-scale i { position: absolute; top: 4px; bottom: 4px; left: calc(4px + var(--i, 0) * (100% - 8px) / 5); width: calc((100% - 8px) / 5); border-radius: 9px; background: var(--gold); transition: left .55s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-inr { transition: border-color .2s, box-shadow .25s; }

  /* Questions : apparition en cascade, ouverture en douceur */
  .lxw .lx-q { transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .3s; transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s; }
  .lxw .lx-q:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -24px rgba(14,31,24,.45); }
  .lxw .lx-q[open] { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
  .lxw .lx-q[open] > div { animation: lxOpen .4s cubic-bezier(.2,.7,.2,1); }
  .lxw .lx-q summary .ico { transition: transform .35s cubic-bezier(.2,.7,.2,1); }

  /* Bandeau de contact */
  .lxw .lx-band { position: relative; overflow: hidden; isolation: isolate; }
  .lxw .lx-band::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; top: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,192,241,.38), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(247,201,72,.22), transparent 70%); pointer-events: none; animation: lxGlow 9s ease-in-out infinite alternate; }
  .lxw .lx-band .btn { position: relative; overflow: hidden; }
  .lxw .lx-band .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
  .lxw .lx-band .btn:hover::after { animation: lxShine .8s cubic-bezier(.2,.7,.2,1); }

  /* Méthode : les engagements s'affichent un par un */
  .lxw .lx-method li { animation: lxRow .5s cubic-bezier(.2,.7,.2,1) both; }
  .lxw .lx-method li:nth-child(2) { animation-delay: .07s; } .lxw .lx-method li:nth-child(3) { animation-delay: .14s; } .lxw .lx-method li:nth-child(4) { animation-delay: .21s; }
  .lxw .lx-method.rv:not(.in) li { animation-play-state: paused; }

  /* Fiches des contrats luxembourgeois : entrée du haut de fiche */
  .lxf .f-id .avatar { animation: lxPop .7s cubic-bezier(.2,.7,.2,1) .05s both; }
  .lxf .f-hero h1 { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) .1s both; }
  .lxf .f-id .s { animation: lxRise .7s cubic-bezier(.2,.7,.2,1) .16s both; }
  .lxf .f-tags .tag { animation: lxRise .6s cubic-bezier(.2,.7,.2,1) .22s both; }
  .lxf .f-tags .tag:nth-child(2) { animation-delay: .28s; } .lxf .f-tags .tag:nth-child(3) { animation-delay: .34s; } .lxf .f-tags .tag:nth-child(4) { animation-delay: .4s; }
  .lxf .f-actions .btn { animation: lxRise .6s cubic-bezier(.2,.7,.2,1) .3s both; }
  .lxf .f-actions .btn + .btn { animation-delay: .36s; } .lxf .f-actions .btn + .btn + .btn { animation-delay: .42s; }
  .lxf .f-score { animation: lxPop .7s cubic-bezier(.2,.7,.2,1) .3s both; }
  .lxf .stats .stat { animation: lxRise .6s cubic-bezier(.2,.7,.2,1) .35s both; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .lxf .stats .stat:nth-child(2) { animation-delay: .41s; } .lxf .stats .stat:nth-child(3) { animation-delay: .47s; } .lxf .stats .stat:nth-child(4) { animation-delay: .53s; }
  .lxf .stats.rv:not(.in) .stat { animation-play-state: paused; }
  .lxf .stats .stat:hover { transform: translateY(-3px); }
  .lxf .panel .kv tr { animation: lxRow .45s cubic-bezier(.2,.7,.2,1) both; }
  .lxf .panel .kv tr:nth-child(2) { animation-delay: .05s; } .lxf .panel .kv tr:nth-child(3) { animation-delay: .1s; } .lxf .panel .kv tr:nth-child(4) { animation-delay: .15s; } .lxf .panel .kv tr:nth-child(5) { animation-delay: .2s; } .lxf .panel .kv tr:nth-child(n+6) { animation-delay: .25s; }
  .lxf .panel.rv:not(.in) .kv tr { animation-play-state: paused; }

  @keyframes lxPulseS { 0% { opacity: .5; scale: 1; } 80%, 100% { opacity: 0; scale: 1.04 1.3; } }
  @media (max-width: 560px) {
    .lxw .lx-core { position: relative; left: auto; top: auto; }
    .lxw .lx-core::before, .lxw .lx-core::after { animation-name: lxPulseS; }
    .lxw .lx-node { animation: lxPop .6s cubic-bezier(.2,.7,.2,1) .4s both; }
    .lxw .lx-n2 { animation-delay: .5s; } .lxw .lx-n3 { animation-delay: .6s; }
    .lxw .lx-fb { max-width: none; }
    .lxw .lx-na { max-width: 10em; }
  }
  @media (prefers-reduced-motion: reduce) {
    .lxw .lx-core::before, .lxw .lx-core::after, .lxw .lx-band::before { display: none; }
    .lxw .lx-ind, .lxw .lx-scale i { transition: none; }
  }
/* ================= Graphiques selon la charte Kapiry (design system « Kapiry ») =================
   Ticket de frais : entrée jaune, frais récurrents vert, sortie saumon. Une série = la couleur de l'univers (var(--accent),
   posée par data-prod), la référence en encre, la base en gris chaud. Barres arrondies en haut, posées sur l'axe à zéro. */
:root { --fee-entry: #F3D58A; --fee-mgmt: #8CC2A5; --fee-exit: #F0A79C; --chart-base: #DDD7CC; --u-scpi-c: #F4C1A6; --u-scpi-i: #8A4A31; --u-etf-c: #CDE09B; --u-etf-i: #5B6F2C; --u-av-c: #C9C0F1; --u-per-c: #F2D49B; --u-pe-c: #DEC7A9; }
/* Ticket de frais des fiches : barre en pilule, segments séparés de 3 px */
.stack.fee-stack { height: 15px; gap: 3px; border-radius: 999px; }
/* Fiches SCPI, « Tous les frais » : barres par durée en couleur d'univers, la durée choisie en encre */
.fee-curve .bar { background: transparent; border-radius: 0; box-shadow: inset 0 -1.5px 0 var(--line-2); }
.fee-curve .bar i { background: var(--accent); border-radius: 12px 12px 0 0; }
.fee-curve .fc.on .bar i { background: var(--ink); }
.fee-curve .fc:hover .bar i { filter: brightness(.96); }
/* Simulateurs SCPI et ETF : base en gris chaud, série en couleur d'univers, barres arrondies en haut */
.chart .legend i, .es-chart + .legend i { width: 11px; height: 11px; }
/* Rendement et risque : chaque famille dans sa couleur d'univers, cerclée de sa couleur de texte */
.rr { --rr-scpi: var(--u-scpi-c); --rr-etf: var(--u-etf-c); }
.rr-pt .mk { stroke-width: 1.2; }
.rr-pt[data-t="scpi"] .mk { stroke: var(--u-scpi-i); fill-opacity: .92; }
.rr-pt[data-t="etf"] .mk { stroke: var(--u-etf-i); fill-opacity: .92; }
.rr-pt:hover .mk, .rr-pt:focus .mk { stroke: var(--ink); stroke-width: 2; }
.rr-leg circle { stroke: var(--u-scpi-i); stroke-width: 1.2; }
.rr-leg rect { stroke: var(--u-etf-i); stroke-width: 1.2; }
/* Portefeuille : fourchette des scénarios en couleur d'univers, scénario central en encre ; répartitions par couleur d'univers */
.pf-chart .band { fill: var(--accent); opacity: .55; }
.pf-chart .edge { stroke: color-mix(in srgb, var(--accent) 55%, var(--ink)); opacity: .45; }
.pf-chart-p .legend i.lg-b { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.pf-bar { height: 8px; border-radius: 999px; background: var(--bg-2); }
.pf-bar i { border-radius: 999px; background: var(--pfc, var(--accent)); }
/* Barres horizontales des fiches et de l'accueil : couleur d'univers par défaut ; frais en couleurs de frais */
.vbar-row .t i { background: var(--c, var(--accent)); }
.dim-t i { background: var(--accent); }
.dec-bar .f { background: var(--fee-entry); color: var(--ink); }
.dec-bar .k { background: var(--accent); color: var(--ink); }
/* Expatriation (version principale) : barres en couleur d'univers, la ligne retenue en encre */
.xpw .xp-bars .vbar-row .t i { background: var(--accent); }
.xpw .xp-bars .vbar-row.on .t i { background: var(--ink); }

/* Graphiques des simulateurs : texte à 12 px (largeur réelle mesurée), repère de mise lisible sur les barres, ligne de source dans la police du site */
.chart svg text { font-size: 12px; font-variant-numeric: tabular-nums; }
.chart svg text.ref { fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
#simOut .panel.chart, #esimOut .panel.chart { display: block; }
.sim-ch, .es-ch { display: grid; gap: 12px; }
.sim-ch .legend, .es-ch .legend { margin-top: 0; }
.ch-src { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.es-tip[hidden] { display: none; }
@media (max-width: 640px) { .rr-plot .tick { font-size: 13px; } .rr-plot .atitle { font-size: 13px; } }
/* ================= Accueil allégé (16/11/2026) ================= */
/* Cartes « Je veux… » : icône droite au survol, titres alignés en haut et étiquettes en bas de chaque rangée */
.intent .pic { transition: none; }
.intent button:hover .pic, .hero .intent button:hover .pic { transform: none; }
.hero .intent button { align-items: stretch; }
.hero .intent button > .pic, .hero .intent button > .go { align-self: center; }
.hero .intent button > span:nth-child(2) { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.hero .intent .hint { margin-top: 0; align-self: flex-start; }
/* Top du trimestre : une ligne par SCPI, nom du gérant raccourci si besoin, note toujours visible */
.hero-card .hc-row > span:nth-last-child(2) { min-width: 0; }
.hero-card .hc-row .s { display: flex; white-space: nowrap; min-width: 0; }
.hero-card .hc-row .s .sg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-card .hc-row .s .nt { flex: none; }
#q { text-overflow: ellipsis; }
/* Simulateurs : tuiles simples, sans chiffres */
.sim-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sim-tile { display: flex; flex-direction: column; gap: 10px; min-height: 136px; padding: 20px 20px 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sim-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.sim-tile .sim-tag { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.sim-tile b { font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.sim-tile .go { margin-top: auto; align-self: flex-end; color: var(--faint); transition: transform .2s, color .2s; }
.sim-tile:hover .go { transform: translateX(3px); color: var(--ink); }
.sims-sec .sim-fine { margin-top: 14px; }
@media (max-width: 900px) { .sim-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sim-tiles { grid-template-columns: 1fr; } .sim-tile { min-height: 0; } }
/* Page « Les placements, en clair » */
.cpl-h + .fam-sec { padding-top: 28px; }
@media (max-width: 760px) { .cpl-h + .fam-sec { padding-top: 20px; } }
/* Risques : cas réels tirés des données */
.risk-cases { margin: 36px 0 8px; }
/* Académie : offre visible et parcours qui se dessine */
.ac-home-o { margin-top: 10px !important; font-size: 15px !important; color: var(--ink) !important; font-weight: 500; }
.ac-home-p { position: relative; }
.ac-home-p .ac-hu { position: relative; z-index: 1; animation: acHuIn .5s cubic-bezier(.2,.7,.2,1) calc(.15s + var(--i, 0) * 90ms) both; }
@keyframes acHuIn { from { opacity: 0; translate: -12px 0; } to { opacity: 1; translate: 0 0; } }
.ac-hpath { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; clip-path: inset(0 -40px 100% -40px); animation: acPathIn 1.1s cubic-bezier(.2,.7,.2,1) .1s forwards; }
@keyframes acPathIn { to { clip-path: inset(0 -40px 0 -40px); } }
.ac-hpath path { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.ac-hpath .s { display: none; }
.ac-home-p .ac-node.is-cur::before { animation: none; display: none; }
.ac-home-p .ac-node.is-cur::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid #F7C948; opacity: 0; animation: acRing .45s ease-out 1.05s forwards; }
@keyframes acRing { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.ac-home-p .ac-hu .ac-node { transition: translate .2s; }
.ac-home-p .ac-hu:hover .ac-node { translate: 0 -3px; }
.ac-home.rv:not(.in) .ac-hpath, .ac-home.rv:not(.in) .ac-hu, .ac-home.rv:not(.in) .ac-node::after { animation-play-state: paused; }
@media (max-width: 900px) { .ac-hpath .z { display: none; } .ac-hpath .s { display: inline; } .ac-home-p .ac-hu:nth-child(n+5) { display: flex; } .ac-home-p .ac-hu:nth-of-type(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .ac-hpath, .ac-home-p .ac-hu, .ac-home-p .ac-node.is-cur::after { animation: none !important; } .ac-hpath { clip-path: none; } .ac-home-p .ac-node.is-cur::after { opacity: 1; } }
.hero-card .hc-row .td small { white-space: nowrap; }
.how-cases { margin: 8px 0 40px; }
.mini-hub { margin: 40px 0 0; }
/* ================= Inscription en parcours, portefeuille avec compte, offre de l'Académie (16/11/2026) ================= */
/* Parcours d'inscription : une étape à la fois, barre de progression jaune */
.cpj { text-align: left; display: grid; gap: 14px; }
.cpj-top { display: grid; gap: 8px; }
.cpj-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cpj-bar i { display: block; height: 100%; border-radius: inherit; background: #F7C948; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.cpj-n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cpj-n b { color: var(--ink); font-weight: 600; }
.cpj-s { display: grid; gap: 12px; }
.cpj-s[hidden] { display: none; }
.cpj-s.on { animation: cpjIn .32s cubic-bezier(.2,.7,.2,1) both; }
.cpj-s.on.back { animation-name: cpjBack; }
@keyframes cpjIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes cpjBack { from { opacity: 0; transform: translateX(-18px); } }
.cpj-s h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0; }
.cpj [hidden] { display: none !important; }
.cpj p, .cpj-done p, .cpj-done h3 { margin-bottom: 0; }
.cpj-done h3 { margin-top: 0; }
.cpj-q { font-size: 14.5px; color: var(--ink-2); font-weight: 500; margin-top: 2px; }
.cpj-q small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.cpj-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cpj .cpt-l { display: grid; gap: 6px; }
.cpj-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.cpj-ch .chip { height: auto; min-height: 42px; padding: 9px 14px; text-align: left; line-height: 1.3; white-space: normal; transition: background .15s, color .15s, border-color .15s; }
.cpj-nav { display: flex; gap: 10px; }
.cpj-nav [data-cpj="next"] { margin-left: auto; }
.cpj-alt { font-size: 14px; color: var(--muted); text-align: center; }
.cpj-legal { font-size: 12.5px; line-height: 1.5; }
.cpt-m.cpj-on > .cpt-mi, .cpt-m.cpj-on > h2, .cpt-m.cpj-on > .sub { display: none; }
.cpt-m.cpj-on .cpj-top { padding-right: 46px; }
.cpt-m.cpj-on .cpj { display: flex; flex-direction: column; min-height: min(460px, calc(100vh - 120px)); }
.cpt-m.cpj-on .cpj-nav { margin-top: auto; }
.cpj-s h3:focus { outline: none; }
.cpt-m > .cpj-alt { margin-top: 12px; }
.cpt-sw { margin: 0 0 18px; }
.cpt-login .cpj-alt { display: none; }
/* Arrivée : la coche se dessine, puis ce que garde le compte */
.cpj-done { text-align: center; display: grid; gap: 10px; justify-items: center; }
.cpj-ok { width: 64px; height: 64px; }
.cpj-ok circle { fill: #E5F5EC; stroke: #2F8A63; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: cpjDraw .6s ease-out .1s forwards; }
.cpj-ok path { fill: none; stroke: #2F8A63; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cpjDraw .35s ease-out .55s forwards; }
@keyframes cpjDraw { to { stroke-dashoffset: 0; } }
.cpj-done h3 { font-size: 24px; letter-spacing: -0.02em; }
.cpj-done > p { color: var(--ink-2); }
.cpj-un { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; text-align: left; width: 100%; }
.cpj-un li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; line-height: 1.4; animation: cpjUp .4s cubic-bezier(.2,.7,.2,1) calc(.75s + var(--k, 0) * 90ms) both; }
.cpj-un li .ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--bg); box-sizing: border-box; }
@keyframes cpjUp { from { opacity: 0; transform: translateY(8px); } }
.cpj-done .btn { width: 100%; }
@media (max-width: 520px) { .cpj-2 { grid-template-columns: 1fr; } .cpj-nav .btn { flex: 1; justify-content: center; } }
/* Mon compte : profil en tête, sur toute la largeur, et pages utiles aux projets */
.cpt-prof { grid-column: 1 / -1; }
.cpt-pk { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.cpt-pour { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cpt-pour a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
/* Portefeuille sans compte : présentation de l'outil */
.pfl { padding-bottom: 56px; }
.pfl-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 56px 0 40px; }
.pfl-hero h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.05em; line-height: 1.04; text-wrap: balance; }
.pfl-lead { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 34em; line-height: 1.55; }
.pfl-keep { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: 14.5px; line-height: 1.45; max-width: 34em; }
.pfl-keep .ico { flex: none; margin-top: 2px; }
.pfl-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pfl-ok { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.pfl-ok li { display: inline-flex; align-items: center; gap: 6px; }
.pfl-ok .ico { color: #2F8A63; }
.pfl-v { display: grid; place-items: center; }
.pfm { width: min(100%, 420px); box-sizing: border-box; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 18px 44px -24px rgba(20, 20, 20, .28); animation: pfmIn .6s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes pfmIn { from { opacity: 0; transform: translateY(14px); } }
.pfm-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pfm-k { font-size: 13px; color: var(--muted); font-weight: 500; }
.pfm-ex { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 3px 10px; }
.pfm-v { display: block; font-size: 38px; letter-spacing: -0.04em; margin: 6px 0 16px; font-variant-numeric: tabular-nums; }
.pfm-bar { display: flex; gap: 2px; height: 12px; }
.pfm-bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; transform-origin: left; animation: pfmGrow .7s cubic-bezier(.2,.7,.2,1) calc(.35s + var(--k) * 110ms) both; }
.pfm-bar i:first-child { border-radius: 999px 3px 3px 999px; }
.pfm-bar i:last-child { border-radius: 3px 999px 999px 3px; }
@keyframes pfmGrow { from { transform: scaleX(0); } }
.pfm-l { list-style: none; padding: 0; margin: 16px 0 0; display: grid; }
.pfm-l li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pfm-l li:first-child { border-top: 0; }
.pfm-l li > i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.pfm-l b { font-variant-numeric: tabular-nums; font-weight: 600; }
.pfm-l small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pfm-f { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: #FFF6DC; font-size: 14px; }
.pfm-f b { font-variant-numeric: tabular-nums; }
.pfl-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pfl-c { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.pfl-i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pfl-c b { font-size: 16.5px; letter-spacing: -0.015em; }
.pfl-c p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pfl-priv { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pfl-priv .ico { flex: none; margin-top: 2px; color: #2F8A63; }
.pf-wait { padding: 8px 0 80px; }
.pfl-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 18px; padding: 20px 24px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.pfl-end b { font-size: 18px; letter-spacing: -0.02em; }
@media (max-width: 980px) { .pfl-hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 28px; } .pfl-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pfl-b { grid-template-columns: 1fr; } .pfl-c { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; } .pfl-c .pfl-i { grid-row: span 2; } .pfm { padding: 20px; } .pfm-v { font-size: 32px; } .pfl-a .btn, .pfl-end .btn { flex: 1 1 100%; justify-content: center; } }
/* Académie : l'offre complète en haut du parcours */
.ac-offer { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0 0 26px; padding: 18px 20px; border-radius: 22px; background: #FFFBEE; border: 1px solid #F2D58A; }
.ac-of-i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #F7C948; color: #6B4E00; box-shadow: 0 4px 0 #C99A1E; }
.ac-of-t { display: grid; gap: 3px; min-width: 0; }
.ac-of-t .ac-k { color: #9A6B00; }
.ac-of-t b { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.ac-of-t small { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.ac-offer .btn { white-space: nowrap; }
@media (max-width: 700px) { .ac-offer { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; gap: 12px 14px; } .ac-of-i { width: 44px; height: 44px; border-radius: 14px; } .ac-offer .btn { grid-column: 1 / -1; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cpj-s.on, .cpj-un li, .pfm, .pfm-bar i { animation: none; } .cpj-bar i { transition: none; } .cpj-ok circle, .cpj-ok path { animation: none; stroke-dashoffset: 0; } }
/* ================= Accueil : bloc « Mon portefeuille » mis en avant (17/11/2026, version principale) ================= */
.pfh-sec { padding-top: 48px; }
@media (max-width: 760px) { .pfh-sec { padding-top: 32px; } }
.pfh { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 40px 44px; border-radius: 28px; background: #FFF6DC; border: 1px solid #F2E2AE; }
.pfh .kicker { display: inline-flex; align-items: center; gap: 8px; }
.pfh h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.04em; line-height: 1.08; margin: 0; text-wrap: balance; }
.pfh-t > p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin: 14px 0 0; max-width: 34em; }
.pfh-l { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 34em; }
.pfh-l li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pfh-l .ico { flex: none; margin-top: 2px; color: #2F8A63; }
.pfh-l b { color: var(--ink); font-weight: 600; }
.pfh-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pfh-n { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.pfh-n .ico { flex: none; }
.pfh-v { display: grid; place-items: center; }
.pfh.rv:not(.in) .pfm-bar i { animation-play-state: paused; }
@media (max-width: 900px) { .pfh { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; } }
@media (max-width: 560px) { .pfh { padding: 24px 20px; } .pfh-l { grid-template-columns: 1fr; } .pfh-a .btn { flex: 1 1 100%; justify-content: center; } }
/* ================= Accueil : bandeau « S'expatrier » (16/11/2026, version principale) ================= */
.xpb-sec { padding-top: 0; }
.xpb { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 40px 44px; border-radius: 28px; background: #E9F1FA; border: 1px solid #D5E3F2; }
.xpb .kicker { display: inline-flex; align-items: center; gap: 8px; }
.xpb h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.04em; line-height: 1.08; margin: 0; }
.xpb-t > p:not(.xpb-n) { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; margin: 14px 0 0; max-width: 34em; }
.xpb-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.xpb-n { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.xpb-n .ico { flex: none; }
.xpb-v { display: grid; justify-items: center; gap: 14px; }
.xpb-fl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 396px; }
.xpb-fl i { display: block; width: 54px; height: 36px; border-radius: 9px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(17,21,19,.08), 0 6px 14px -8px rgba(17,21,19,.35); animation: xpbIn .45s cubic-bezier(.2,.7,.2,1) calc(.1s + var(--k, 0) * 35ms) both; }
.xpb-fl i svg { display: block; width: 100%; height: 100%; }
@keyframes xpbIn { from { opacity: 0; transform: translateY(8px); } }
.xpb.rv:not(.in) .xpb-fl i { animation-play-state: paused; }
.xpb-cap { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.xpb-cap b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .xpb { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; } .xpb-fl { gap: 10px; max-width: 344px; } .xpb-fl i { width: 46px; height: 31px; border-radius: 8px; } }
@media (max-width: 560px) { .xpb { padding: 24px 20px; } .xpb-fl { gap: 8px; max-width: 288px; } .xpb-fl i { width: 40px; height: 27px; border-radius: 7px; } .xpb-a .btn { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .xpb-fl i { animation: none; } }
/* ================= Comparateur de frais de l'accueil, selon la charte : ticket de frais, barres arrondies, titre surligné, source ================= */
@keyframes fcGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fcr-d { margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 3px; vertical-align: 1px; }
.fc-tk { height: 15px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.fc-tk > div { display: flex; gap: 3px; height: 100%; border-radius: 999px; overflow: hidden; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.fc-tk i { display: block; height: 100%; min-width: 3px; }
.fc-lgd i, .fc-lg i { width: 11px; height: 11px; border-radius: 3px; }
.fc-ch { margin-top: 4px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.fc-t { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.fc-lg { margin-top: 8px; }
.fc-lg .fc-lg-n { color: var(--muted); }
.fc-ch svg { display: block; width: 100%; height: auto; max-width: 100%; margin-top: 10px; overflow: visible; }
.fc-ch svg text { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--font); }
.fc-ch svg text.xl.on { fill: var(--ink); font-weight: 650; }
.fc-ch .gl { stroke: var(--line); stroke-width: 1; }
.fc-ch .g0 { stroke: var(--line-2); stroke-width: 1.5; }
.fc-ch .fc-on { fill: var(--bg-2); }
.fc-ch .fc-b { transform-box: fill-box; transform-origin: 50% 100%; }
.fc-new .fc-b { animation: fcGrow .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--k, 0) * 60ms); }
.rv:not(.in) .fc-new .fc-b { animation-play-state: paused; }
.fc-src { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.fcmp-note { display: grid; gap: 8px; }
.fcmp-note p { margin: 0; }
.fcmp-note b { color: var(--ink); }
@media (max-width: 560px) { .fc-ch { padding: 14px 12px 12px; } .fc-t { font-size: 16px; } }
/* ================= Barre jaune de la rubrique : sur toutes les pages qui ont une entrée dans l'en-tête =================
   Le lien du menu quand il existe (règle .nav a[aria-current]) ; sinon le bouton des comparateurs (assurance-vie, PER,
   private equity, banques, cartes, expatriation) ; sur la page du compte, le bouton Connexion. Même surligneur au survol. */
#prodLbl, .adv-link span, .cpt-top span { padding: 0 .06em; background-image: linear-gradient(transparent 58%, rgba(247, 201, 72, .45) 58%, rgba(247, 201, 72, .45) 94%, transparent 94%); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; transition: background-size .45s cubic-bezier(.2,.7,.2,1); }
#prodBtn:hover #prodLbl, #prodBtn:focus-visible #prodLbl, #prodBtn[aria-expanded="true"] #prodLbl, #prodBtn[data-here="1"] #prodLbl,
.adv-link:hover span, .adv-link:focus-visible span, .cpt-top:hover span, .cpt-top:focus-visible span, .cpt-top[aria-current="page"] span { background-size: 100% 100%; }
@media (max-width: 1100px) { #prodBtn[data-here="fisc"] #prodLbl { background-size: 100% 100%; } }
.cpt-top[aria-current="page"] { border-color: rgba(247, 201, 72, .9); }
@media (max-width: 1560px) { .cpt-top[aria-current="page"] { background: rgba(247, 201, 72, .45); } }
@media (prefers-reduced-motion: reduce) { #prodLbl, .adv-link span, .cpt-top span { transition: none; } }
/* Onglet mobile en cours : vert plus soutenu, lisible sur tous les fonds (contraste supérieur à 4,5:1) */
.tabbar a[aria-current="page"] { color: color-mix(in srgb, var(--brand) 82%, #000000); }

/* ================= Respiration : rien ne colle au bandeau de titre ni aux blocs voisins ================= */
.ph + .rank-tools, .ph + .cmp-pick, .ph + .ecmp-quick, .ph + .cpt-grid, .ph + .tbl-wrap, .ph + .cpt-pfn, .ph + .rr, .ph + .simg, .ph + .cards2, .ph + .m-folds { margin-top: 28px; }
.ph + .callout, .ph + .pf-disc, .av-hero + .callout, .xh + .xp-law { margin-top: 24px; }
.fold + .panel { margin-top: 14px; }
.perf-note + .f-grid, .perf-note + .tabs { margin-top: 18px; }
.sec-h + .sim-chips { margin-top: 18px; }
.f-side .panel > h2 + .kv { margin-top: 10px; }
.rr-plot + .rr-cnt { margin-top: 10px; }
@media (max-width: 760px) {
  .ph + .rank-tools, .ph + .cmp-pick, .ph + .ecmp-quick, .ph + .cpt-grid, .ph + .tbl-wrap, .ph + .cpt-pfn, .ph + .rr, .ph + .simg, .ph + .cards2, .ph + .m-folds { margin-top: 20px; }
  .ph + .callout, .ph + .pf-disc, .av-hero + .callout, .xh + .xp-law { margin-top: 18px; }
}

/* Mentions des encarts de contact : contraste AA sur fond teinté */
.lead-box .legal { color: var(--muted); }
/* Liens dans le texte du pied de page : soulignés comme les autres */
.foot .legal p:not(.foot-links) a { text-decoration: underline; text-underline-offset: 2px; }
/* Étiquette verte des fiches : contraste AA */
.tag.brand { color: var(--brand-2, var(--brand)); }
/* Étiquettes positives et de vigilance : même teinte, texte plus foncé (contraste AA) */
.tag.pos { color: color-mix(in srgb, var(--pos) 80%, #000000); }
.tag.warn { color: color-mix(in srgb, var(--warn) 78%, #000000); }
/* ================= Encart de déblocage (compte gratuit) : version engageante ================= */
@keyframes xlShim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes xlHalo { 0% { opacity: .6; scale: 1; } 80%, 100% { opacity: 0; scale: 1.55; } }
@keyframes xlTease { 0%, 100% { transform: none; } 30%, 55% { transform: translateY(-2.6px) rotate(14deg); } }
@keyframes xlShine { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(330%) skewX(-18deg); } }
@keyframes xlIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.xpw-lock.xl2 { display: grid; background: linear-gradient(180deg, #FFFFFF, var(--bg-2)); border-color: var(--line); }
.xpw-lock.xl2 > .xl-ghost, .xpw-lock.xl2 > .xl-card { grid-area: 1 / 1; }
.xpw-lock.xl2 .xl-ghost { position: relative; align-self: stretch; overflow: hidden; padding: 26px 30px; gap: 14px; filter: blur(3px); opacity: .95; }
.xpw-lock.xl2 .xl-ghost i { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); width: auto !important; }
.xpw-lock.xl2 .xl-ghost i::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--gold)); }
.xpw-lock.xl2 .xl-ghost i b { display: block; height: 12px; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 80%, #FFFFFF), color-mix(in srgb, var(--gold) 100%, #FFFFFF)); }
.xpw-lock.xl2 .xl-ghost i::after { content: ""; height: 22px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 22%, #FFFFFF); }
.xpw-lock.xl2 .xl-ghost::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); animation: xlShim 2.8s ease-in-out infinite; }
.xpw-lock.xl2 .xl-card { position: relative; inset: auto; display: grid; place-items: center; padding: 34px 18px; background: radial-gradient(60% 75% at 50% 50%, rgba(255,255,255,.7), rgba(255,255,255,.25)); }
.xpw-lock.xl2 .xl-in { position: relative; width: 100%; max-width: 600px; padding: 30px 32px 24px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); background: radial-gradient(120% 70% at 50% -12%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 62%), #FFFFFF; box-shadow: 0 34px 80px -34px rgba(64,48,150,.42), 0 2px 8px rgba(14,31,24,.05); }
.xpw-lock.xl2 .xl-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.xpw-lock.xl2 .xl-ic { position: relative; width: 60px; height: 60px; margin: 0; border-radius: 18px; background: var(--ink); color: #F7C948; box-shadow: 0 14px 30px -14px rgba(17,21,19,.7); }
.xpw-lock.xl2 .xl-ic::before { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 2px solid var(--gold); opacity: 0; animation: xlHalo 1.6s cubic-bezier(.2,.7,.2,1) 1s 1 both; pointer-events: none; }
.xpw-lock.xl2 .xl-lock { width: 28px; height: 28px; stroke-width: 2; }
.xpw-lock.xl2 .xl-lock .xl-sh { transform-box: fill-box; transform-origin: 100% 100%; transition: transform .45s cubic-bezier(.2,.7,.2,1); animation: xlTease 1.6s cubic-bezier(.2,.7,.2,1) 1.2s both; }
.xpw-lock.xl2 .xl-in:hover .xl-sh, .xpw-lock.xl2 .xl-in:focus-within .xl-sh { animation: none; transform: translateY(-2.6px) rotate(14deg); }
.xpw-lock.xl2 .xl-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 650; }
.xpw-lock.xl2 h3 { margin-top: 14px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.03em; }
.xpw-lock.xl2 .xl-in > p:not(.xl-n):not(.xl-also) { max-width: 30em; margin: 10px auto 0; font-size: 15.5px; line-height: 1.55; }
.xpw-lock.xl2 .xl-ben { max-width: 470px; gap: 10px; margin-top: 18px; font-size: 15px; }
.xpw-lock.xl2 .xl-ben li { align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); animation: xlIn .55s cubic-bezier(.2,.7,.2,1) both; }
.xpw-lock.xl2 .xl-ben li:nth-child(1) { animation-delay: .25s; } .xpw-lock.xl2 .xl-ben li:nth-child(2) { animation-delay: .33s; } .xpw-lock.xl2 .xl-ben li:nth-child(3) { animation-delay: .41s; }
.xpw-lock.xl2 .xl-in.rv:not(.in) .xl-ben li, .xpw-lock.xl2 .xl-in.rv:not(.in) .xl-sh { animation-play-state: paused; }
.xpw-lock.xl2 .xl-bi { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.xpw-lock.xl2 .xl-ben li .xl-bi .ico { margin: 0; color: var(--ink); }
.xpw-lock.xl2 .xl-also { max-width: 470px; margin: 12px auto 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.xpw-lock.xl2 .xl-a { margin-top: 20px; }
.xpw-lock.xl2 .xl-go { position: relative; overflow: hidden; gap: 8px; padding-left: 20px; padding-right: 22px; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .2s; }
.xpw-lock.xl2 .xl-go:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(17,21,19,.6); }
.xpw-lock.xl2 .xl-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
.xpw-lock.xl2 .xl-go:hover::after { animation: xlShine .9s cubic-bezier(.2,.7,.2,1); }
.xpw-lock.xl2 .xl-n { margin-top: 12px; }
/* Version compacte (guide des placements, calendrier) : cadenas, texte et bouton sur une ligne */
.xpw-lock.xl2.sm .xl-card { padding: 22px 18px; }
.xpw-lock.xl2.sm .xl-in { display: flex; align-items: center; gap: 18px; max-width: 760px; padding: 20px 22px; text-align: left; }
.xpw-lock.xl2.sm .xl-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; }
.xpw-lock.xl2.sm .xl-t { flex: 1; min-width: 0; }
.xpw-lock.xl2.sm h3 { margin-top: 0; font-size: 19px; }
.xpw-lock.xl2.sm .xl-t p { margin-top: 4px; font-size: 14px; }
.xpw-lock.xl2.sm .xl-go { flex: none; }
@media (max-width: 640px) {
  .xpw-lock.xl2 { background: none; border: 0; border-radius: 0; overflow: visible; }
  .xpw-lock.xl2 .xl-card { padding: 0; background: none; }
  .xpw-lock.xl2 .xl-in { padding: 24px 18px 20px; box-shadow: 0 24px 50px -34px rgba(64,48,150,.45); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .xpw-lock.xl2 .xl-a { flex-direction: column; align-items: stretch; }
  .xpw-lock.xl2 .xl-a .btn { justify-content: center; }
  .xpw-lock.xl2.sm .xl-in { flex-wrap: wrap; }
  .xpw-lock.xl2.sm .xl-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .xpw-lock.xl2 .xl-ghost::after, .xpw-lock.xl2 .xl-ic::before { display: none; } }
  /* En-tête : avec le bouton Connexion, les libellés « Un conseiller » et « Connexion » ne tiennent plus en dessous de 1480 px */
  @media (max-width: 1560px) { .adv-link span, .cpt-top span { display: none; } .adv-link, .cpt-top { width: 40px; padding: 0; justify-content: center; } }
  @media (max-width: 1180px) { #topCta .cl { display: none; } #topCta .cs { display: inline; } }
  @media (max-width: 1000px) { .nav a { padding: 8px 9px; } }
  @media (max-width: 960px) { .nav a { padding: 8px 5px; } .top-cta { gap: 6px; } }

/* ================= Sobriété : ni halo, ni lueur, ni reflet, ni pulsation (16/11/2026) ================= */
.hero::before, .band::before, .res-hero::before, .fx-res::before, .sim-feat::after, .xpw .xh::before, .xpw .xr::before,
.lxw .lx-hero::before, .lxw .lx-band::before { background: none !important; animation: none !important; }
.lxw .lx-band .btn::after, .xpw-lock.xl2 .xl-go::after, .xpw-lock.xl2 .xl-ghost::after, .xpw-lock.xl2 .xl-ic::before,
.lxw .lx-core::before, .lxw .lx-core::after { animation: none !important; display: none !important; }
.xpw-lock.xl2 .xl-card { background: var(--bg) !important; }
.xpw-lock.xl2 .xl-in { background: #FFFFFF !important; box-shadow: var(--shadow) !important; border-color: var(--line) !important; }
.fx-band:hover { box-shadow: var(--shadow-lg) !important; }
.tnav-cta:hover { box-shadow: none !important; }
.lxw .lx-pan-lu { box-shadow: var(--shadow) !important; }
.xpw .xh-tag { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto !important; border-radius: 0 !important; color: var(--muted) !important; }
.xpw .xh-tag i { background: none !important; color: var(--ink) !important; padding: 0 !important; margin-right: 8px; font-style: normal; font-weight: 600; }

/* ================= Kapiry v2 : marque plus reconnaissable (proposition du 16/11/2026) =================
   1. Le trait : un passage de surligneur dessiné, toujours le même tracé, à la place du rectangle.
   2. Le point final corail : après le logo et après les titres-affirmations.
   3. Un seul jaune d'action : le bouton de l'en-tête et l'action principale de la page.
   4. Le bandeau de lecture : la mention de risque devient un repère de marque (encre, lien jaune, plus lisible).
   5. La fiche surlignée : ce que Kapiry a surligné dans les documents officiels, en tête de chaque fiche. */
@font-face { font-family: "Geist Mono"; src: url("/fonts/geistmono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --k-trait: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 48%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M6 11C58 7 128 10 200 7.5S338 5.5 393 6.5C398 14 396 27 399 37.5C334 41.5 252 38.5 182 40.5S56 43 3 41C1 31 5 21 6 11Z%22 fill=%22%23F7C948%22 fill-opacity=%220.62%22/%3E%3Cpath d=%22M6 11C11 10 17 9.6 23 9.5L21.5 41.6C15 41.6 9 41.4 3 41C1 31 5 21 6 11Z%22 fill=%22%23F7C948%22 fill-opacity=%220.34%22/%3E%3Cpath d=%22M34 17.5C130 15.5 262 17 372 14.2L372 16.4C262 19.8 130 18.6 34 20.2Z%22 fill=%22%23FFFFFF%22 fill-opacity=%22.22%22/%3E%3C/svg%3E"); --k-trait-fort: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 48%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M6 11C58 7 128 10 200 7.5S338 5.5 393 6.5C398 14 396 27 399 37.5C334 41.5 252 38.5 182 40.5S56 43 3 41C1 31 5 21 6 11Z%22 fill=%22%23F7C948%22 fill-opacity=%220.62%22/%3E%3Cpath d=%22M6 11C11 10 17 9.6 23 9.5L21.5 41.6C15 41.6 9 41.4 3 41C1 31 5 21 6 11Z%22 fill=%22%23F7C948%22 fill-opacity=%220.34%22/%3E%3Cpath d=%22M34 17.5C130 15.5 262 17 372 14.2L372 16.4C262 19.8 130 18.6 34 20.2Z%22 fill=%22%23FFFFFF%22 fill-opacity=%22.22%22/%3E%3C/svg%3E"); --k-jaune: #F7C948; --k-corail: #E2774E; --k-encre: #111513; }

/* 1. Le trait (titres, liens au survol, chiffres de frais) */
.it, h1 em, h2 em, .hero .it, .hero h1 .it, .ph .it, .av-hero .it, .mani .it, .band .it, .fx-band h2 .it, .xpw .band .it, .k-mark {
  background: var(--k-trait) no-repeat 0 calc(100% - .12em) / 100% .54em !important;
  padding: 0 .1em !important; margin: 0 -.04em !important; color: inherit !important;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 .it, .ph h1 .it { animation: kTrait .6s cubic-bezier(.2,.7,.2,1) .35s both !important; }
@keyframes kTrait { from { background-size: 0% .54em; } to { background-size: 100% .54em; } }
.hl, .foot nav .hl, #prodLbl, .adv-link span, .cpt-top span {
  background-image: var(--k-trait) !important; background-position: 0 calc(100% - .1em) !important;
  background-size: 0% .6em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sim-q:hover b .hl, .att-item:hover b .hl, .etf-sim a:hover b .hl, .txt-link:hover .hl, .txt-link:focus-visible .hl,
.hero-alt .lnk:hover .hl, .hero-alt .lnk:focus-visible .hl, .prod-c:hover .go .hl, .sim-card:hover .sim-go .hl,
.foot nav a:hover .hl, .foot nav button:hover .hl, .foot nav a:focus-visible .hl, .foot nav button:focus-visible .hl,
#prodBtn:hover #prodLbl, #prodBtn:focus-visible #prodLbl, #prodBtn[aria-expanded="true"] #prodLbl, #prodBtn[data-here="1"] #prodLbl,
.adv-link:hover span, .adv-link:focus-visible span, .cpt-top:hover span, .cpt-top:focus-visible span, .cpt-top[aria-current="page"] span { background-size: 100% .6em !important; }
.nav a[aria-current="page"] { background: var(--k-trait) no-repeat 50% 78% / calc(100% - 14px) .62em !important; }

/* 2. Le point final corail (le texte garde son point pour la copie et les lecteurs d'écran) */
.k-pt { display: inline-block; width: .24em; height: .24em; border-radius: 50%; background: var(--k-corail); color: transparent;
  overflow: hidden; line-height: 0; margin-left: .035em; vertical-align: baseline; }
.hero h1 .k-pt { animation: kPoint .5s cubic-bezier(.25,.9,.35,1.2) .9s both; }
@keyframes kPoint { 0% { transform: translateY(-.5em) scale(.4); opacity: 0; } 60% { transform: translateY(.03em) scale(1.08,.9); opacity: 1; } 100% { transform: none; } }
.logo .k-pt { width: 5px; height: 5px; margin-left: -8px; align-self: center; transform: translateY(5.5px); }

/* 3. Un seul jaune d'action */
#topCta, .btn.k-cta { background: var(--k-jaune) !important; color: var(--k-encre) !important; border-color: var(--k-jaune) !important; }
#topCta:hover, .btn.k-cta:hover { background: #F0BC2E !important; box-shadow: none !important; }

/* 4. Le bandeau de lecture */
.riskbar { font-size: 13px !important; padding: 7px 0 !important; color: #E9ECE9 !important; }
@media (max-width: 1640px) { .riskbar .long { display: none !important; } .riskbar .short { display: inline !important; } }
.riskbar a { color: var(--k-jaune) !important; text-decoration-color: rgba(247,201,72,.6) !important; }

/* 5. La fiche surlignée */
.k-lu { margin: 22px 0 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px 18px; }
.k-lu-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.k-lu-h h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.k-lu-h span, .k-lu .src { font-family: inherit; font-size: 12px; color: var(--muted); }
.k-lu ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.k-lu li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.k-lu li p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.k-lu li .t { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .k-lu ol { grid-template-columns: 1fr; } }
.stats .stat.k-first .v { display: inline-block; background: var(--k-trait) no-repeat 0 calc(100% - .12em) / 100% .5em; padding: 0 .1em; margin: 0 -.04em; }
@media (prefers-reduced-motion: reduce) { .hero h1 .it, .ph h1 .it, .hero h1 .k-pt { animation: none !important; } }
.k-lu li p .k-mark { background-size: 100% .82em !important; background-position: 0 calc(100% + .02em) !important; }
.stats .k-mark { background-size: 100% .5em !important; }
.logo .k-pt { width: .25em; height: .25em; margin-left: -8px; align-self: center; transform: translateY(.27em); }
.foot .logo .k-pt { margin-left: -8px; }
.lxw .lx-tag { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto !important; color: var(--muted) !important; }
.lxw .lx-tag b { background: none !important; color: var(--ink) !important; padding: 0 !important; margin-right: 8px; }
/* Guides pratiques : pages d'atterrissage (16/11/2026), classes ld- */
.ld > .crumb { display: flex; width: max-content; max-width: 100%; margin: 22px 0 0; }
.ld > .crumb + .av-hero { margin-top: 14px; }
.ld-home { padding-bottom: 64px; }
.ld-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ph + .ld-hub { margin-top: 28px; }
.ld-hub + .perf-note { margin-top: 18px; }
.ld-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.ld-card:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.ld-card .ld-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ld-card > b { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.ld-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ld-card .ld-n { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-mini .ld-card { padding: 16px 18px; }
.ld-mini .ld-card > b { font-size: 16px; }
.ld-mini .ld-card p { font-size: 13.5px; }
.ld-blk { margin-top: 40px; }
.ld-h2 { font-size: 22px; letter-spacing: -0.035em; margin: 0 0 16px; }
.ld-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ld-two .faq { max-width: none; }
.ld-two > .panel + .panel { margin-top: 0; }
.ld-vs h3 { margin: 20px 0 10px; }
.ld-vs p { margin: 0; }
.ld-vs .ld-acc { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ld-vs .ld-base { margin-top: 18px; }
.ld-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ld-q { display: grid; gap: 16px; }
.ld-q b { display: block; font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 4px; }
.ld-q p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ld-all { margin-top: 14px; font-size: 14.5px; }
.ld .etf-tbl .etf-c b.ld-sm { font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.ld-av { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.ld-avc { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s; }
.ld-avc:hover { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.ld-avh { display: flex; align-items: center; gap: 12px; }
.ld-avh > .ld-avt { flex: 1; min-width: 0; }
.ld-avh .grade { flex: none; }
.ld-avt b { display: block; font-size: 16px; letter-spacing: -0.015em; }
.ld-avt small { display: block; font-size: 12.5px; color: var(--muted); }
.ld-avl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ld-avl li { display: flex; gap: 8px; align-items: flex-start; }
.ld-avl li .ico { flex: none; margin-top: 2px; color: var(--ink); }
.ld-avl b { color: var(--ink); font-weight: 600; }
.ld-avn { margin: 0; font-size: 13.5px; color: var(--muted); }
.ld-axs { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ld-ax { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.ld-axb { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ld-axb i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.ld-ax b { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ld-ax small { color: var(--muted); font-weight: 400; }
@media (max-width: 860px) {
  .ld-av { grid-template-columns: 1fr; }
  .ld-two { grid-template-columns: 1fr; }
  .ph + .ld-hub { margin-top: 20px; }
  .ld-blk { margin-top: 28px; }
  .ld-home { padding-bottom: 44px; }
}
/* ================= Accueil en 5 étapes, haut de page, largeur des textes, calendrier (17/11/2026, soir) ================= */
.ph p, .av-hero p.lead { max-width: 62em; }
.sec-h p { max-width: 52em; }
.cal div { background: #FFFFFF; border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.cal b { font-size: 18px; margin-bottom: 4px; }
.cal div.cal-on { border-color: rgba(247, 201, 72, .95); box-shadow: inset 0 0 0 1px rgba(247, 201, 72, .95); }
.cal .cal-t { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: #7A5600; background: #FFF1CC; padding: 2px 9px; border-radius: 999px; }
.cal + .help { font-size: 14px; color: var(--ink-2); }
.hero .intent .hint { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
@media (min-width: 901px) {
  .hero .wrap { row-gap: 0; align-items: start; }
  .hero .wrap > div:first-child { display: contents; }
  .hero .wrap > div:first-child > * { grid-column: 1; }
  .hero .wrap > div:first-child > .hero-badge { grid-row: 1; justify-self: start; }
  .hero .wrap > div:first-child > h1 { grid-row: 2; grid-column: 1 / -1; }
  .hero .wrap > div:first-child > .lead { grid-row: 3; grid-column: 1 / -1; }
  .hero .wrap > div:first-child > .intent-label { grid-row: 4; }
  .hero .wrap > div:first-child > .intent { grid-row: 5; }
  .hero .wrap > div:first-child > .search { grid-row: 6; max-width: 600px; }
  .hero .wrap > div:first-child > .hero-alt { grid-row: 7; }
  .hero-card { grid-column: 2; grid-row: 4 / span 4; align-self: start; margin-top: 30px; }
}
@media (min-width: 901px) and (max-width: 1240px) { .hero .intent button { grid-template-columns: 42px 1fr 14px; gap: 10px; padding: 12px; } .hero .intent .hint { font-size: 11px; } }
.hp-path { padding-top: 40px; }
.hp-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: hp; }
.hp-path button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.hp-path button:hover, .hp-path button:focus-visible { border-color: var(--line-2); transform: translateY(-2px); }
.hp-path .hp-n { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #FFF1CC; font-weight: 700; font-size: 15px; }
.hp-path b { font-size: 15.5px; letter-spacing: -0.01em; }
.hp-path small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.hp-st { display: flex; align-items: center; gap: 12px; padding-top: 72px; }
.hp-st .hp-n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 15px; flex: none; }
.hp-st b { font-size: 15px; letter-spacing: .01em; }
.hp-st span:last-child { color: var(--muted); font-size: 15px; }
.hp-st::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 6px; }
.hp-st + .sec, .hp-st + section { padding-top: 24px; }
.hp-st + .sec + .sec, .hp-st + section + section { padding-top: 8px; }
@media (max-width: 900px) { .hp-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-path li:last-child { grid-column: 1 / -1; } .hp-st { padding-top: 48px; } }
@media (max-width: 560px) { .hp-st span:last-child { display: none; } }
/* Simulateurs : encart « simulation gratuite utilisée » (17/11/2026) */
.simg-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; align-items: start; margin: 18px 0; padding: 18px 20px; border-radius: 18px; background: #FFF6DC; border: 1px solid #F2E2AE; }
.simg-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #FFFFFF; color: #7A5600; }
.simg-note b { font-size: 16px; }
.simg-note p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.simg-a { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.simg-a .lnk { font-size: 14px; }
@media (max-width: 560px) { .simg-note { grid-template-columns: 1fr; } .simg-a { grid-column: 1; } .simg-i { display: none; } }
.pf-sc .pf-sc-1 { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Page des risques : tous les placements (17/11/2026) */
.rk-fam { margin: 16px 0; }
.rk-fam h2 { margin-bottom: 4px; }
.rk-t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
.rk-t th, .rk-t td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.rk-t thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 0; }
.rk-t tbody th { white-space: nowrap; font-weight: 600; }
.rk-t td { color: var(--ink-2); min-width: 180px; }
.rk-t th:first-child { padding-left: 16px; }
.rk-t tbody tr:first-child th, .rk-t tbody tr:first-child td { border-top-color: var(--line); }
/* ================= Téléphone : bandeaux qui défilent, étiquettes, rangs, compte (18/11/2026) ================= */
.hs-x.hs-r:not(.hs-l) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.hs-x.hs-l.hs-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent); }
.hs-x.hs-l:not(.hs-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
.c-meta .tag { white-space: normal; display: inline-block; height: auto; line-height: 1.35; padding-top: 4px; padding-bottom: 4px; max-width: 100%; }
@media (max-width: 760px) {
  .cd-rk { width: auto; min-width: 16px; text-align: left; }
  .cpt-al li { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .cpt-al li > .cpt-st, .cpt-al li > .cpt-aa { grid-column: 2; justify-self: start; }
  .cpt-al li > span:empty { display: none; }
}
/* Portefeuille : ajout assisté par l'IA (18/11/2026) */
.pf-ia { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: #FFF6DC; border: 1px solid #F2E2AE; }
.pf-ia-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-ia-h label { font-weight: 600; font-size: 15px; }
.pf-ia-b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.pf-ia textarea { width: 100%; resize: vertical; min-height: 64px; background: #FFFFFF; }
.pf-ia-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.pf-ia-m { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.pf-ia-m.ok { padding: 10px 12px; border-radius: 12px; background: #FFFFFF; border: 1px solid #F2E2AE; }
.pf-ia-n { margin: 10px 0 0; font-size: 12.5px; }
/* Livrets d'épargne : guide et comparateur (02/12/2026) */
.lvx-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.lvx-cond { margin-top: 16px; }
.lvx-cond li { margin-bottom: 6px; }
.lvx-sim { margin-top: 32px; }
.lvx-sim h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.lvx-sim > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.lvx-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; margin-bottom: 18px; }
.lvx-in label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.lvx-in .input { max-width: 220px; }
.lvx-in label.lvx-ck { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 48px; }
.lvx-ck input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.lvx-out h3 { font-size: 15px; margin: 0 0 10px; }
.lvx-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lvx-res li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.lvx-res li.lvx-reg { background: var(--brand-soft); border-color: transparent; }
.lvx-res li > span { min-width: 0; }
.lvx-res b { font-weight: 600; }
.lvx-res small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.lvx-v { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 16px; }
.lvx-more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; margin: 12px 0 8px; }
.lvx-more[open] summary { margin-bottom: 10px; }
.lvx-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .lvx-in .input { max-width: none; } .lvx-in label { width: 100%; } .lvx-res li { padding: 10px 12px; } }
/* Écrans étroits : aucun débordement horizontal (28/11/2026) */
@media (max-width: 600px) {
  .f-side { grid-template-columns: minmax(0, 1fr); }
  .f-side > *, .f-grid > *, .f-hero > * { min-width: 0; }
  .f-score .l, .f-score .hlw, .f-score .hl, td .hlw, td .hl, td a { overflow-wrap: anywhere; }
  .f-id > * { min-width: 0; }
  .f-id h1 { overflow-wrap: break-word; hyphens: auto; }
  .f-actions .btn, .etf-acts .btn { white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; max-width: 100%; }
  .ac-grid > *, .ac-main > *, .ac-welcome > * { min-width: 0; }
  .ac-welcome h2, .ac-welcome p { overflow-wrap: break-word; }
  .cpt-grid > *, .cpj > * { min-width: 0; }
  .cpj-nav .btn { min-width: 0; white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
  .cpt-sent p { overflow-wrap: anywhere; }
}
/* Calendrier de l'Avent de l'épargne (01/12/2026, Atelier) */
.avt .ph { padding-bottom: 6px; }
.avt .ph p { max-width: 40em; }
.avt-jour { margin: 6px 0 40px; padding: 28px 30px 26px; border-radius: var(--r-lg); background: var(--us, #FFFFFF); border: 1px solid var(--uc, var(--line)); }
.avt-jour .kicker { display: block; margin: 0; }
.avt-jch { font-size: clamp(40px, 7vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; margin: 8px 0 10px; color: var(--ink); overflow-wrap: anywhere; }
.avt-jlg { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0; }
.avt-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.avt-acts .btn { max-width: 100%; }
.avt-jle { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.avt-jle a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.avt-note { margin: 6px 0 36px; padding: 18px 22px; border-radius: var(--r); background: #FFFFFF; border: 1px solid var(--line); font-size: 17px; }
.avt-h { margin-bottom: 16px; }
.avt-h h2 { font-size: clamp(26px, 3.4vw, 36px); }
.avt-h p { font-size: 15px; margin-top: 4px; }
.avt-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.avt-c { min-width: 0; border-radius: var(--r); border: 1px solid var(--line); border-top: 4px solid var(--uc, var(--line)); background: #FFFFFF; }
.avt-c article { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.avt-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.avt-tag { font-size: 11px; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--hl); color: var(--ink); }
.avt-ch { margin: 2px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.avt-lg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); flex: 1 1 auto; }
.avt-o { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.avt-o .ico { flex: none; margin-top: 2px; }
.avt-o:hover span { text-decoration: underline; text-underline-offset: 3px; }
.avt-le { font-size: 13px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.avt-le:hover { color: var(--ink); text-decoration: underline; }
.avt-c.avt-auj { border-color: var(--ink); border-top-color: var(--uc, var(--ink)); box-shadow: 0 0 0 1px var(--ink); }
.avt-c.avt-f { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 128px; padding: 14px 16px; border: 1px dashed var(--line-2); background: var(--bg-2); }
.avt-f .avt-n { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; text-transform: none; color: var(--faint); }
.avt-fo { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.avt-av { display: flex; gap: 10px; align-items: flex-start; margin: 32px 0 20px; font-size: 14px; }
.avt-av .ico { color: var(--warn); flex: none; margin-top: 3px; }
.avt-fin { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 64px; }
.avt-band { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; max-width: 100%; margin: 16px 0 2px; padding: 9px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.35; text-decoration: none; }
.avt-band:hover { border-color: var(--ink); }
.avt-band-k { color: var(--muted); }
.avt-band b { font-weight: 600; }
@media (max-width: 1000px) { .avt-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .avt-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .avt-jour { padding: 22px 18px 20px; margin-bottom: 32px; }
  .avt-jlg { font-size: 16px; }
  .avt-acts .btn { white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
  .avt-c article { padding: 12px 12px 14px; }
  .avt-ch { font-size: 20px; }
  .avt-lg { font-size: 13px; }
  .avt-o { font-size: 13px; }
  .avt-c.avt-f { min-height: 96px; padding: 12px; }
  .avt-f .avt-n { font-size: 28px; }
  .avt-band { border-radius: var(--r); }
}
@media (max-width: 360px) { .avt-g { grid-template-columns: minmax(0, 1fr); } }

/* ================= Comparaisons affinées (02/12/2026, Atelier) : préfixe cx- ================= */
.cx-wrap .cx-sec { margin: 38px 0 0; }
.cx-h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 6px; }
.cx-sub { color: var(--muted); margin: 0 0 16px; max-width: 62em; font-size: 15px; }
.cx-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; flex: none; }
.cx-pk { display: inline-flex; align-items: center; }
.cx-pk .cx-sw { margin-right: 8px; }
.cx-diff { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cx-diff li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cx-dk { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cx-axes { display: grid; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 10px 18px; }
.cx-ax { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cx-ax:first-child { border-top: 0; }
.cx-axl { font-size: 14.5px; font-weight: 600; }
.cx-axl small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cx-axb { display: grid; gap: 5px; }
.cx-bar { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: center; }
.cx-bt { display: block; height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.cx-bt i { display: block; height: 100%; border-radius: 4px; }
.cx-bar b { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; color: var(--muted); }
.cx-bar.best b, .cx-ax-t .cx-bar b { color: var(--ink); font-weight: 700; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.cx-loc, .cx-mixc { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; }
.cx-loc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-loc-h b { font-size: 16px; }
.cx-lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.cx-lvl svg { width: 14px; height: 14px; }
.cx-lo { background: #F3F1EC; color: #2B312E; }
.cx-mid { background: #F7EDD8; color: #7E560F; }
.cx-hi { background: #F8E3DE; color: #A3392C; }
.cx-na { background: var(--bg-2); color: var(--muted); }
.cx-sc { margin-left: auto; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-sc small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cx-rb { display: flex; gap: 2px; height: 14px; margin: 14px 0 8px; }
.cx-rb i { display: block; min-width: 2px; border-radius: 3px; background: color-mix(in srgb, var(--c) 32%, #FFFFFF); }
.cx-rb i.on { background: var(--c); }
.cx-rb i.many { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, #FFFFFF) 0 2px, #FFFFFF 2px 3px); }
.cx-rb-nc { height: auto; border-radius: 8px; background: var(--bg-2); padding: 6px 10px; font-size: 12.5px; color: var(--muted); }
.cx-rt { font-size: 14.5px; margin: 0 0 10px; }
.cx-stress { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.cx-stress svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warn); }
.cx-na-t { font-size: 14px; color: var(--muted); margin: 0; }
.cx-comp { list-style: none; margin: 0; padding: 0; }
.cx-comp li { display: grid; grid-template-columns: 1fr 64px 56px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.cx-comp li.off { opacity: .55; }
.cx-cl { font-size: 13.5px; font-weight: 600; }
.cx-cl small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cx-cb { display: block; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.cx-cb i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.cx-cp { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-cp small { font-size: 12px; font-weight: 400; color: var(--muted); }
.cx-mixr { margin-top: 14px; }
.cx-mixt { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cx-mixt small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.cx-mix { display: flex; gap: 2px; height: 12px; }
.cx-mix i { display: block; min-width: 2px; border-radius: 3px; }
.cx-mixl { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin: 8px 0 0; color: var(--ink-2); }
.cx-mixl span { display: inline-flex; align-items: center; gap: 5px; }
.cx-mixl i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.cx-mixl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-more { color: var(--muted); }
.cx-mixf { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.cx-chw { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px 12px; min-width: 0; }
.fees .cx-chw { margin-top: 18px; padding: 12px 14px 10px; }
.cx-cht { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin-bottom: 4px; font-size: 14px; }
.cx-dur { margin: 16px 0 6px; }
.cx-lgd { margin: 4px 0 2px; }
.cx-ch { position: relative; min-width: 0; }
.cx-ch svg.cx-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cx-ch[data-sl] svg.cx-svg { cursor: ew-resize; }
.cx-ch svg text { font-family: var(--font); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.cx-l { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cx-tot { stroke: var(--ink); stroke-width: 2; }
.cx-new .cx-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cxDraw .9s ease-out forwards; }
@keyframes cxDraw { to { stroke-dashoffset: 0; } }
.cx-cur { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .55; }
.cx-d { stroke: #FFFFFF; stroke-width: 2; }
.cx-x { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.5; }
.cx-ch svg text.cx-lv { fill: var(--ink); font-weight: 600; font-size: 13px; }
.cx-pill { fill: var(--ink); }
.cx-ch svg text.cx-pt { fill: #FFFFFF; font-weight: 600; }
.cx-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.cx-tb { display: block; height: 3px; max-width: 120px; margin-top: 7px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.cx-tb i { display: block; height: 100%; background: var(--faint); border-radius: 2px; }
td.best .cx-tb i { background: var(--pos); }
.cx-tbl .hcell .help .cx-sw { width: 8px; height: 8px; margin-right: 5px; }
.cx-kdm { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 14px 0 6px; font-size: 14.5px; }
.cx-kdm th, .cx-kdm td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.cx-kdm th:first-child { text-align: left; padding-left: 0; }
.cx-kdm td:last-child, .cx-kdm th:last-child { padding-right: 0; }
.cx-kdm thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cx-kdm tbody th { font-weight: 600; }
.cx-kd { min-width: 92px; }
.cx-kd b { display: block; }
.cx-kdb { display: block; height: 4px; margin: 5px 0 0 auto; max-width: 90px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.cx-kdb i { display: block; height: 100%; margin-left: auto; background: var(--brand); border-radius: 2px; }
.kdm-t th[scope=row] { background: var(--bg); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .cx-new .cx-l { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
@media (max-width: 640px) {
  .cx-h2 { font-size: 20px; }
  .cx-diff li { grid-template-columns: 1fr; gap: 2px; }
  .cx-ax { grid-template-columns: 1fr; gap: 6px; }
  .cx-axes, .cx-chw { padding-left: 14px; padding-right: 14px; }
  .cx-comp li { grid-template-columns: 1fr 48px 52px; }
  .cx-kdm { font-size: 13.5px; }
  .cx-kdm th, .cx-kdm td { padding: 8px 5px; }
}
@media (max-width: 640px) {
  .cx-tbl tbody th { width: 128px; min-width: 118px; font-size: 13px; }
  .cx-tbl td { font-size: 14px; }
}
