/* Layout : site éditorial sombre "salle des marchés". En-tête collant ; accueil = hero + tableau de cotations + rubriques de tuiles ; page calcul = paramètres à gauche (collants), résultats à droite, puis explication, outils liés, bande annonce. Une colonne sur mobile, résultats en premier. Sombre par défaut, clair sur choix explicite. */
/* Quatre styles au choix, appliqués via data-style sur <html>. Chacun est un univers complet (couleurs, typo, arrondis), indépendant du thème de l'hôte. */
:root {
  --bg: #070b12; --surface: #0d141f; --surface-2: #131c2a; --line: #1e2a3b;
  --fg: #e7ecf2; --muted: #8a99ad; --gold: #d6aa52; --on-accent: #070b12;
  --blue: #5ea8ff; --up: #2fcf8e; --down: #ff6b6b;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --display-italic: italic; --display-weight: 700; --head-case: none;
  --r-lg: 14px; --r-md: 10px; --r-sm: 9px; --r-pill: 99px;
  --shadow: none;
  color-scheme: dark;
}
/* Fintech : blanc lumineux, vert émeraude, sans-serif ronde, cartes très arrondies et ombrées */
:root[data-style="fintech"] {
  --bg: #f6f8f7; --surface: #ffffff; --surface-2: #eef3f1; --line: #e1e8e5;
  --fg: #0f1f1a; --muted: #5e6e68; --gold: #0a8f62; --on-accent: #ffffff;
  --blue: #3b6cf6; --up: #0a8f62; --down: #e0473c;
  --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-num: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --display-italic: normal; --display-weight: 800;
  --r-lg: 22px; --r-md: 14px; --r-sm: 12px; --r-pill: 99px;
  --shadow: 0 1px 2px rgba(15,31,26,.04), 0 8px 24px rgba(15,31,26,.06);
  color-scheme: light;
}
/* Fintech sombre : suit le mode sombre du système ou le bouton du site */
@media (prefers-color-scheme: dark) { :root[data-style="fintech"]:not([data-theme="light"]) {
  --bg: #0b1512; --surface: #111e1a; --surface-2: #172722; --line: #22352f;
  --fg: #e6f0ec; --muted: #8fa59d; --gold: #2fc58e; --on-accent: #06130e;
  --blue: #6f95ff; --up: #2fc58e; --down: #ff6b5e;
  --shadow: none;
  color-scheme: dark;
} }
:root[data-style="fintech"][data-theme="dark"] {
  --bg: #0b1512; --surface: #111e1a; --surface-2: #172722; --line: #22352f;
  --fg: #e6f0ec; --muted: #8fa59d; --gold: #2fc58e; --on-accent: #06130e;
  --blue: #6f95ff; --up: #2fc58e; --down: #ff6b5e;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.5; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- En-tête ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 18px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.mark { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--gold); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; font-style: normal; line-height: 1; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 0.9rem; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.iconbtn { flex: none; width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.iconbtn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .nav { order: 3; flex-basis: 100%; margin-inline: -11px; } .head-in { gap: 10px; padding-block: 10px 6px; } .head-in .spacer { flex: 1; } }

/* ---------- Boutons, éléments communs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-md); padding: 9px 14px; font-size: 0.9rem; cursor: pointer; text-decoration: none; color: var(--fg); }
.btn:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 600; }
.btn.ghost-gold { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); color: var(--gold); }
.btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--line)); }
.btn.sm { padding: 6px 10px; font-size: 0.82rem; }
.eyebrow { font-family: var(--font-num); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); margin: 0; text-transform: uppercase; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3, .h3 { margin: 0; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 0.82rem; margin: 0; line-height: 1.5; }
.logo { width: 46px; height: 46px; border-radius: var(--r-lg); display: grid; place-items: center; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); flex: none; }
.logo svg { width: 23px; height: 23px; }
main { padding-block: 0 56px; min-height: 60vh; }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 36px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 28px 22px; } }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 12px 0 14px; letter-spacing: -0.01em; }
.hero h1 em { font-style: var(--display-italic); font-weight: 500; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 0 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.board { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-num); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.board-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); }
.board-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .board-head .live i { animation: none; } }
.brow { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--surface-2); }
.brow b { font-family: var(--font-num); color: var(--gold); font-size: 0.78rem; letter-spacing: 0.06em; }
.brow span { font-size: 0.86rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow strong { font-family: var(--font-num); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.board-foot { padding: 8px 14px; font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--line); }
.searchbar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 0 14px; margin-block: 8px 6px; }
.searchbar:focus-within { border-color: var(--gold); }
.searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 0; outline: none; font-size: 1rem; }
.cat { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.cat-head h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; margin: 0; font-style: var(--display-italic); }
.cat-head .new { font-family: var(--font-num); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--on-accent); background: var(--gold); padding: 2px 7px; border-radius: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.tile { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer; min-width: 0; text-decoration: none; transition: border-color .15s, transform .15s; position: relative; }
.tile:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); transform: translateY(-1px); }
.tile .sym { font-family: var(--font-num); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--gold); }
.tile .t { font-weight: 600; font-size: 0.86rem; line-height: 1.22; overflow-wrap: break-word; hyphens: auto; }
.tile .badge { position: absolute; top: 8px; right: 8px; font-family: var(--font-num); font-size: 0.6rem; color: var(--gold); letter-spacing: 0.06em; }
@media (max-width: 420px) { .tile { padding: 12px 4px; } .tile .t { font-size: 0.78rem; } .logo { width: 40px; height: 40px; } }
.empty { color: var(--muted); padding-top: 24px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 40px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--gold); padding-top: 12px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin: 0 0 6px; font-style: var(--display-italic); }
.pillar p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Page calculatrice ---------- */
.crumbs { font-size: 0.82rem; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.calc-head { display: flex; gap: 14px; align-items: center; padding-block: 12px 18px; }
.calc-head h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; margin: 2px 0 4px; font-weight: 700; }
.calc-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.calc-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.col-params { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; }
.col-results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .col-params { position: static; max-height: none; overflow: visible; } .col-results { order: -1; } }
.hero-r { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line); }
.hero-r .lbl { color: var(--muted); font-size: 0.88rem; }
.hero-r .val { font-family: var(--font-num); font-weight: 700; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero-r .val small { font-size: 0.36em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.hero-r .sub { color: var(--muted); font-size: 0.9rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.pill { font-size: 0.78rem; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; gap: 5px; align-items: center; }
.pill.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.pill.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--line)); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chartbox { position: relative; height: 250px; }
canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.tip { position: absolute; top: 4px; pointer-events: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 7px 9px; font-family: var(--font-num); font-size: 0.74rem; line-height: 1.45; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .k { color: var(--muted); font-size: 0.76rem; }
.stat .v { font-family: var(--font-num); font-weight: 500; font-size: 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fields { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 48%); gap: 10px; align-items: center; padding-block: 9px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.lab { display: flex; align-items: center; gap: 7px; min-width: 0; }
.lab label { font-size: 0.9rem; }
.ibtn { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--gold); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 0.78rem; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ibtn[aria-expanded="true"] { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.info { grid-column: 1 / -1; font-size: 0.83rem; line-height: 1.45; background: var(--surface-2); border-left: 2px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 8px 10px; }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.inp:focus-within { border-color: var(--gold); }
.inp input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-family: var(--font-num); font-size: 0.93rem; padding: 9px 6px 9px 9px; outline: none; text-align: right; }
.inp select { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 0.9rem; padding: 9px 8px; outline: none; text-align: right; text-align-last: right; cursor: pointer; }
.inp select option { color: #0f1f1a; background: #ffffff; }
.inp .u { padding-right: 9px; color: var(--muted); font-size: 0.7rem; font-family: var(--font-num); white-space: nowrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prefill { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.83rem; color: var(--muted); background: var(--surface-2); border-radius: var(--r-md); padding: 8px 10px; }
.bd { display: flex; flex-direction: column; gap: 9px; }
.bd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 0.88rem; }
.bd-row .bv { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }
.bd-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bd-row .bar i { display: block; height: 100%; border-radius: 4px; }
.bd-row.total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.tablewrap { overflow: auto; max-height: 380px; margin-inline: -16px; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-num); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-family: var(--font-ui); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr.best td { color: var(--gold); font-weight: 700; }
.partner { border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: var(--r-lg); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; background: color-mix(in srgb, var(--gold) 5%, var(--surface)); }
.partner .tag { grid-column: 1 / -1; font-family: var(--font-num); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.partner b { display: block; font-size: 0.98rem; }
.partner p { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.partner .btn { pointer-events: none; }
@media (max-width: 520px) { .partner { grid-template-columns: 1fr; } }
.explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 40px; }
@media (max-width: 860px) { .explain { grid-template-columns: 1fr; } }
.explain h2, .related h2, .page h2 { font-family: var(--font-display); font-weight: 500; font-style: var(--display-italic); font-size: 1.4rem; margin: 0 0 10px; }
.explain p { margin: 0 0 10px; color: var(--muted); max-width: 65ch; }
.related { padding-top: 36px; }
.adband { margin-top: 40px; border: 1px dashed var(--line); border-radius: var(--r-lg); min-height: 96px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 0.8rem; padding: 14px; background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--line) 35%, transparent) 12px 13px); }
.adband b { display: block; font-family: var(--font-num); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Objectifs et pages ---------- */
.page { padding-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 700; margin: 6px 0 6px; line-height: 1.08; }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.two { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.goals { display: flex; flex-direction: column; gap: 12px; }
.goal { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.goal-top b { font-size: 1.02rem; }
.goal-top .ex { font-family: var(--font-num); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.goal-top .amt { font-family: var(--font-num); font-weight: 600; }
.progress { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.goal-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: var(--muted); }
.goal-meta strong { color: var(--fg); font-family: var(--font-num); font-weight: 600; }
.gform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 760px) { .gform { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gform label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.gform .full { grid-column: 1 / -1; }
.textin { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); padding: 9px 11px; outline: none; color: var(--fg); }
.textin:focus { border-color: var(--gold); }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 18px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .slots { grid-template-columns: 1fr; } }
.slot b { font-size: 0.98rem; }
.slot p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* ---------- Pied de page ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 0.82rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: flex-start; }
.foot-in p { margin: 0; max-width: 56ch; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: left .15s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { left: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--r-pill); font-size: 0.85rem; z-index: 50; }

/* ---------- Ajustements par style ---------- */
.card, .tile, .board, .hero-r, .goal, .stats, .searchbar { box-shadow: var(--shadow); }
.hero h1, .calc-head h1, .page-head h1 { font-weight: var(--display-weight); }
:root[data-style="fintech"] .hero h1, :root[data-style="fintech"] .calc-head h1 { letter-spacing: -0.03em; }
:root[data-style="fintech"] .hero h1 em { background: color-mix(in srgb, var(--gold) 14%, transparent); padding: 0 .12em; border-radius: 10px; }
:root[data-style="fintech"] .hero-r { background: var(--surface); }
:root[data-style="fintech"] .board-head, :root[data-style="fintech"] .brow b, :root[data-style="fintech"] .eyebrow { letter-spacing: .04em; }

/* ---------- Sélecteur de styles ---------- */
.stylebar { border-bottom: 1px solid var(--line); background: var(--surface); }
.stylebar-in { display: flex; align-items: center; gap: 8px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.stylebar-in::-webkit-scrollbar { display: none; }
.stylebar .lbl { font-family: var(--font-num); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-pill); padding: 5px 11px 5px 7px; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--fg); }
.chip.on { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.chip .dots { display: inline-flex; }
.chip .dots i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(128,128,128,.4); margin-left: -3px; }
.chip .dots i:first-child { margin-left: 0; }

/* ---------- Pages multi-pages : contenu SEO ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 40px; align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; gap: 0; } }
.article { max-width: 72ch; }
.article h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 30px 0 10px; line-height: 1.2; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { font-size: 1rem; line-height: 1.65; }
.article p { margin: 0 0 12px; }
.article ul { margin: 0 0 12px; padding-left: 1.2em; }
.article li { margin-bottom: 4px; }
.article a { color: var(--gold); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.disclaimer { margin-top: 24px !important; }
.related { padding-top: 0; position: sticky; top: 84px; }
@media (max-width: 900px) { .related { position: static; padding-top: 36px; } }
.related h2 { font-size: 1.15rem !important; }
.related .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .related .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.home-text { padding-top: 40px; }
.page { padding-top: 26px; }
.page-head { margin-bottom: 18px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
.tablewrap { overflow-x: auto; }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tablewrap th, .tablewrap td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; }
.tablewrap td a { color: var(--fg); }
