/* =====================================================================
   Comment Gagner : feuille de style principale
   Thème neutre façon tableau de bord, mode sombre, palettes d'accent.
   ===================================================================== */

:root {
  --font: "Onest", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: var(--font);
  --r-xl: 30px; --r-lg: 24px; --r-md: 16px; --r-sm: 11px;
  --gap: 16px;
  --accent: #C9F25C; --accent-ink: #1B2208;
}
:root, :root[data-theme="light"] {
  --bg: #E6E6E1; --main: #F5F5F2; --surface: #FFFFFF; --surface-2: #F1F1ED;
  --ink: #17181A; --ink-2: #393B40; --muted: #686A71; --line: #E3E3DE; --line-2: #D3D3CD;
  --contrast: #17181A; --on-contrast: #F4F4F1; --on-contrast-muted: #A9AAAD;
  --good: #23784A; --good-bg: #E3F3E9; --bad: #B83A33; --bad-bg: #FBE7E5; --warn: #94600F; --warn-bg: #FCF0D7;
  --t0: #FBD9E1; --t1: #FCEAB6; --t2: #CFEFE8; --t3: #E3DDFB;
  --t0-ink: #6E1F33; --t1-ink: #5E4304; --t2-ink: #11504A; --t3-ink: #3B2C83;
  --shadow: 0 1px 2px rgba(23,24,26,.04), 0 8px 24px rgba(23,24,26,.05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08090A; --main: #111214; --surface: #1A1B1F; --surface-2: #222429;
  --ink: #F1F1EC; --ink-2: #CFD0CB; --muted: #9B9DA4; --line: #2A2C32; --line-2: #383A41;
  --contrast: #26282D; --on-contrast: #F4F4F1; --on-contrast-muted: #A9AAAD;
  --good: #6FD39A; --good-bg: #16301F; --bad: #FF8C84; --bad-bg: #3A1A18; --warn: #F3C46B; --warn-bg: #352A12;
  --t0: #3A2229; --t1: #3A321A; --t2: #183531; --t3: #29243F;
  --t0-ink: #FBC3D0; --t1-ink: #F8DD94; --t2-ink: #A6E8DD; --t3-ink: #D2C8FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}
:root[data-palette="citron"]  { --accent: #C9F25C; --accent-ink: #1B2208; }
:root[data-palette="corail"]  { --accent: #FF9DB0; --accent-ink: #3A0C16; }
:root[data-palette="lagon"]   { --accent: #7EDCCB; --accent-ink: #082E28; }
:root[data-palette="soleil"]  { --accent: #FFC94D; --accent-ink: #382600; }
:root[data-palette="lavande"] { --accent: #B9A8FF; --accent-ink: #1E1145; }
:root[data-palette="ciel"]    { --accent: #8EC5FF; --accent-ink: #0A2440; }
:root { --accent-soft: color-mix(in srgb, var(--accent) 24%, var(--surface)); --accent-line: color-mix(in srgb, var(--accent) 60%, var(--line)); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4, .brand, .hero-title, .big-num, .side-big, .stat dd, .price { font-family: var(--font-display); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hint { color: var(--muted); font-size: .84rem; margin: .35rem 0 0; line-height: 1.45; }
.center { text-align: center; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 16px; }
.ico { flex: none; vertical-align: middle; }

/* -------------------------------------------------------------- Coquille */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--gap); padding: var(--gap); min-height: 100vh; }
.sidebar { position: sticky; top: var(--gap); height: calc(100vh - var(--gap) * 2); background: var(--surface); border-radius: var(--r-xl); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; text-decoration: none; }
.logo-img { border-radius: 10px; object-fit: contain; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); text-decoration: none; }
.me strong { display: block; font-size: .95rem; line-height: 1.2; }
.me small { color: var(--muted); font-size: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.avatar.soft { background: var(--accent-soft); color: var(--ink); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.side-group { margin: 14px 14px 4px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.help-card { margin-top: auto; background: var(--contrast); color: var(--on-contrast); border-radius: var(--r-lg); padding: 34px 18px 18px; text-align: center; position: relative; }
.help-card p { font-size: .9rem; color: var(--on-contrast-muted); }
.help-card strong { color: var(--on-contrast); }
.help-icon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 4px solid var(--surface); }
.sidebar .side-close, .topbar .nav-btn, .mobile-brand, .nav-scrim { display: none; }

.main { background: var(--main); border-radius: var(--r-xl); min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--main) 92%, transparent); backdrop-filter: blur(10px); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search input, .search input[type=search] { border: 0; box-shadow: none; background: transparent; padding: 11px 0; width: 100%; font: inherit; color: var(--ink); outline: none; }
.search:focus-within { border-color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link-quiet { text-decoration: none; font-weight: 500; padding: 8px 10px; }
.theme-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: 500 .85rem var(--font); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
:root[data-theme="light"] [data-theme-set="light"], :root[data-theme="dark"] [data-theme-set="dark"] { background: var(--accent); color: var(--accent-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn.sm { width: 34px; height: 34px; border: 0; background: transparent; }
.icon-btn.danger:hover { color: var(--bad); }
.pop { position: relative; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow); z-index: 30; min-width: 220px; }
.pop-title { font-size: .82rem; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
/* Choix de la devise */
.cur-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .85rem var(--font); cursor: pointer; white-space: nowrap; }
.cur-btn:hover { border-color: var(--ink); }
.pop-cur { min-width: 270px; padding: 10px; }
.pop-cur .pop-title { padding: 4px 6px 0; }
.cur-list { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
.cur-list a { display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 8px; padding: 8px 6px; border-radius: var(--r-sm, 8px); text-decoration: none; color: var(--ink); font-size: .9rem; }
.cur-list a:hover, .cur-list a[aria-current] { background: var(--surface-2); }
.cur-list b { font-weight: 700; }
.pop-note { font-size: .76rem; color: var(--muted); margin: 8px 6px 2px; line-height: 1.4; }
.fx { border-bottom: 1px dotted currentColor; cursor: help; }
.price-base { display: block; font-family: var(--font); font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.plan-hi .price-base { color: var(--on-contrast-muted); }
.swatches { display: grid; grid-template-columns: repeat(6, 28px); gap: 8px; }
.swatches.big { grid-template-columns: repeat(6, 44px); gap: 12px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); background: var(--sw); cursor: pointer; padding: 0; }
.swatches.big .swatch { width: 44px; height: 44px; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

.content-area { padding: 8px 28px 32px; flex: 1; min-width: 0; }
.foot { padding: 26px 28px 24px; border-top: 1px solid var(--line); margin: 0 28px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; max-width: 40ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .92rem; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { color: var(--muted); font-size: .8rem; margin: 18px 0 0; }

/* -------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-dark:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-contrast); color: #17181A; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa { background: #25D366; color: #06280F; }
.btn-wa:hover { background: #1FBA59; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: .82rem; gap: 6px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.btn-link.danger, .danger { color: var(--bad); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

/* -------------------------------------------------------------- Blocs */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 26px; margin-bottom: var(--gap); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.dashed { background: transparent; border: 2px dashed var(--line-2); }
.panel.narrow, .narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-head { padding: 18px 0 10px; max-width: 820px; }
.page-head.center { text-align: center; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; max-width: none; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 66ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.block { margin: 30px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; }
.block-head a { font-weight: 500; font-size: .92rem; }
.h-sm { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.h-xs { font-size: .98rem; margin-top: 4px; }
.h-ico { display: flex; align-items: center; gap: 10px; }
.empty { color: var(--muted); padding: 24px; text-align: center; background: var(--surface); border-radius: var(--r-md); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: var(--gap) 0; }
.split-2.wide-left { grid-template-columns: 1.4fr 1fr; }
.split-2 > .panel, .split-2 > div > .panel:last-child { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.align-end { align-items: end; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs .sep { opacity: .5; }
.note-inline { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); padding: 12px 16px; border-radius: var(--r-md); font-size: .94rem; width: fit-content; max-width: 100%; }
.big-num { font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; margin: 0; line-height: 1; }

/* -------------------------------------------------------------- Accueil */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); margin-top: 10px; }
.hero-card { background: var(--surface); border-radius: var(--r-xl); padding: 40px 38px 34px; display: flex; flex-direction: column; }
.hero-title { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 19ch; }
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.hero-stats { display: flex; gap: 12px; margin: auto 0 0; flex-wrap: wrap; }
.hero-stats div { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 18px; display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .82rem; color: var(--muted); }
.hero-stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cat-tile { border-radius: var(--r-xl); padding: 22px; display: flex; flex-direction: column; text-decoration: none; min-height: 168px; transition: transform .15s ease; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile strong { font-size: 1.08rem; margin-top: auto; line-height: 1.25; }
.cat-tile small { opacity: .8; }
.cat-ico { width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.55); display: grid; place-items: center; margin-bottom: 18px; }
:root[data-theme="dark"] .cat-ico { background: rgba(255,255,255,.08); }
.tone-0 { background: var(--t0); color: var(--t0-ink); } .tone-1 { background: var(--t1); color: var(--t1-ink); }
.tone-2 { background: var(--t2); color: var(--t2-ink); } .tone-3 { background: var(--t3); color: var(--t3-ink); }
.resume-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.resume { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-lg); padding: 18px; text-decoration: none; border: 1px solid transparent; }
.resume:hover { border-color: var(--line-2); }
.resume small { color: var(--muted); font-size: .8rem; display: block; }
.resume strong { display: block; line-height: 1.3; }
.resume em { font-style: normal; font-size: .85rem; color: var(--ink-2); }
.dark-panel { background: var(--contrast); color: var(--on-contrast); border-radius: var(--r-xl); padding: 30px; }
.dark-panel p { color: var(--on-contrast-muted); }
.dark-ico { width: 52px; height: 52px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.dark-ico.soft { background: var(--accent-soft); color: var(--ink); }
.grave-list { list-style: none; padding: 0; margin: 0 0 22px; }
.grave-list a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.grave-list span { color: var(--on-contrast-muted); font-size: .88rem; text-align: right; }
.honesty { border-radius: var(--r-xl); }
.honesty p { font-size: 1.02rem; color: var(--ink-2); }

/* -------------------------------------------------------------- Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.mcard, .ccard, .acard { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .15s ease; }
.mcard:hover, .ccard:hover, .acard:hover { border-color: var(--line-2); }
.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mcard h3, .ccard h3, .acard h3 { margin: 14px 0 4px; }
.mcard-top, .ccard-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; flex-wrap: wrap; }
.ccard-top .cause { white-space: nowrap; }
.tier { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tier-rising .tier { background: var(--t2); color: var(--t2-ink); }
.tier-hot .tier { background: var(--t1); color: var(--t1-ink); }
.tier-rare .tier { background: var(--t3); color: var(--t3-ink); }
.tier-legendary .tier { background: var(--contrast); color: var(--accent); }
.match { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.mcard-cat { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.mcard-sum { font-size: .94rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 4px 0 16px; background: var(--surface-2); padding: 14px; border-radius: var(--r-md); }
.facts div { min-width: 0; }
.facts dt { font-size: .76rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.mcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.meter i { width: 6px; height: 13px; border-radius: 3px; background: var(--line-2); }
.meter i.on { background: var(--ink); }
.trend, .ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.trend-up { color: var(--good); background: var(--good-bg); }
.trend-flat { color: var(--ink-2); background: var(--surface-2); }
.trend-down { color: var(--bad); background: var(--bad-bg); }
.ai-up { color: var(--good); background: var(--good-bg); }
.ai-flat { color: var(--warn); background: var(--warn-bg); }
.ai-down { color: var(--bad); background: var(--bad-bg); }
.pill-premium { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--contrast); color: var(--accent); }
.pill-draft { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.pill-soft { font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
:root[data-palette="citron"][data-theme="light"] .ring-fg { stroke: color-mix(in srgb, var(--accent) 70%, #5c7a00); }
.ring b { font-size: .78rem; font-weight: 700; position: relative; }
.ccard-top .cause, .cause { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--contrast); color: var(--on-contrast); }
.years { font-size: .85rem; color: var(--muted); font-weight: 600; }
.ccard h3 small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.ccard-sector { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.ccard-sum { font-size: .94rem; color: var(--ink-2); }
.ccard-burn { display: flex; align-items: center; gap: 8px; background: var(--surface-2); padding: 10px 14px; border-radius: var(--r-md); margin-top: auto; font-size: .88rem; }
.ccard-burn b { margin-left: auto; }
.ccard-scores { margin-top: 12px; display: grid; gap: 6px; }
.scorebar { display: grid; grid-template-columns: 1fr 90px 42px; align-items: center; gap: 10px; font-size: .84rem; }
.scorebar .bar, .funnel .bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.scorebar .bar i, .funnel .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.scorebar b { text-align: right; font-size: .82rem; }
.acard { flex-direction: row; gap: 18px; align-items: flex-start; }
.acard img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.acard h3 { margin-top: 2px; }
.acard p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.acard-meta { color: var(--muted) !important; font-size: .82rem !important; margin: 0 0 4px !important; }

/* -------------------------------------------------------------- Listes et filtres */
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 14px 0; }
.filterbar label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.filterbar select, .filterbar input[type=search] { min-width: 190px; }
.filterbar label.check { flex-direction: row; align-items: center; color: var(--ink); font-size: .9rem; min-height: 46px; }
.f-search { flex-direction: row !important; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; gap: 8px !important; min-width: 260px; flex: 1; max-width: 420px; }
.f-search input { border: 0 !important; background: transparent !important; padding: 11px 0 !important; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.count { color: var(--muted); font-size: .88rem; margin: 6px 0 12px; }
.search-results { display: grid; gap: 10px; }
.result { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 18px 22px; margin: 0; }
.result-type { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* -------------------------------------------------------------- Détail */
.detail-head { background: var(--surface); border-radius: var(--r-xl); padding: 32px 34px; margin: 10px 0 var(--gap); }
.detail-head h1 { max-width: 24ch; margin-top: 16px; }
.detail-head .country { font-size: .5em; color: var(--muted); font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin: 22px 0 0; }
.keyfacts div { background: var(--surface-2); border-radius: var(--r-md); padding: 13px 15px; }
.keyfacts dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.keyfacts dd { margin: 3px 0 0; font-weight: 650; font-size: .96rem; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cause-line { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: var(--gap); align-items: start; }
.detail-side { position: sticky; top: 96px; }
.side-card .side-label { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.side-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 14px; }
.side-ring { display: flex; justify-content: center; margin: 6px 0 18px; }
.toc { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.toc a { padding: 6px 0; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.side-card .btn { margin-top: 12px; }
.prose { font-size: 1.02rem; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose img { border-radius: var(--r-md); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-md); }
.prose a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.prose .ql-align-center { text-align: center; }
.prose pre { white-space: pre-wrap; background: var(--surface-2); padding: 14px; border-radius: var(--r-sm); }
.ai-panel { border: 2px solid transparent; }
.ai-panel-down { border-color: var(--bad-bg); }
.ai-panel-up { border-color: var(--good-bg); }
.ai-panel-flat { border-color: var(--warn-bg); }
.ai-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ai-summary { font-size: 1.08rem; font-weight: 500; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.story { background: var(--surface-2); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; }
.story header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.story header small { display: block; color: var(--muted); font-size: .82rem; }
.story p { font-size: .94rem; }
.lesson { display: flex; gap: 8px; background: var(--surface); padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.source { font-size: .8rem; color: var(--muted); margin-top: auto; }

/* Plan d'action */
.plan-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.step { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; }
.step-head h3 { margin: 4px 0 2px; font-size: 1.18rem; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; font-weight: 700; flex: none; }
.step-num.sm { width: 26px; height: 26px; font-size: .8rem; margin-right: 10px; }
.step-dur { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin: 0; }
.step-goal { background: var(--surface-2); padding: 12px 16px; border-radius: var(--r-md); margin: 14px 0; }
.subs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.sub details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.sub details[open] { border-color: var(--line-2); }
.sub summary { display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 550; }
.sub summary::-webkit-details-marker { display: none; }
.sub-title { flex: 1; }
.sub-chev { color: var(--muted); transition: transform .2s ease; }
.sub details[open] .sub-chev { transform: rotate(180deg); }
.sub.done .sub-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tick { position: relative; display: inline-grid; flex: none; cursor: pointer; }
.tick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tick-box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background-color .15s ease; }
.tick input:checked + .tick-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tick input:focus-visible + .tick-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.tick input:disabled + .tick-box { opacity: .5; }
.sub-body { padding: 0 18px 18px 56px; font-size: .97rem; }
.step-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.step-extra > div { background: var(--surface-2); padding: 14px 16px; border-radius: var(--r-md); }
.step-extra h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.step-extra p { margin: 0; font-size: .93rem; }
.step-extra .result { background: var(--accent-soft); }
.step-extra .mistakes { background: var(--warn-bg); }
.list { padding-left: 1.2em; margin: 0; }
.list li { margin-bottom: .35em; }
.list.tight { font-size: .92rem; }
.plan-preview { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-preview li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.plan-preview li > span:nth-child(2) { flex: 1; }
.plan-preview small { display: block; color: var(--muted); font-weight: 400; }
.plan-preview li.locked { color: var(--muted); }
.plan-preview li.locked .step-num { background: var(--line-2); color: var(--muted); }
.tpl { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--surface-2); }
.tpl pre { margin: 0; padding: 16px; white-space: pre-wrap; font: inherit; font-size: .95rem; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.res { background: var(--surface-2); padding: 16px 18px; border-radius: var(--r-md); }
.res h3 { font-size: .98rem; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.sources { font-size: .9rem; padding-left: 1.3em; }
.sources li { margin-bottom: .3em; }
.chips-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list li { background: var(--surface-2); padding: 6px 12px; border-radius: 999px; font-size: .88rem; }
.resurrect { background: var(--contrast); color: var(--on-contrast); }
.resurrect .prose, .resurrect p { color: var(--on-contrast-muted); }
.resurrect .prose strong, .resurrect h3 { color: var(--on-contrast); }
.resurrect .chips-list li { background: rgba(255,255,255,.08); color: var(--on-contrast); }
.phases { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.phases li { display: flex; gap: 14px; }
.phases .step-num { background: var(--accent); color: var(--accent-ink); }
.locked-preview { position: relative; }
.fade-text { -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.disclaimer-box { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.reading { max-width: 780px; margin: 0 auto; }
.reading-head { padding: 22px 0 10px; }
.kicker { color: var(--muted); font-size: .88rem; }
.reading-img { width: 100%; border-radius: var(--r-xl); margin-bottom: var(--gap); }
.reading-body { padding: 34px 38px; font-size: 1.06rem; line-height: 1.75; }
.byline { color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------------- Inscription */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--accent-soft); border-radius: var(--r-xl); padding: 32px; margin-bottom: var(--gap); border: 1px solid var(--accent-line); }
.gate-premium { grid-template-columns: 1fr; }
.gate-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: var(--surface); display: grid; place-items: center; margin-bottom: 16px; }
.gate-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.gate-list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.gate-form { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.auth { display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: 100%; max-width: 470px; padding: 34px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .price { font-size: 2rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.03em; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }
.steps-text p { display: flex; align-items: flex-start; }

/* -------------------------------------------------------------- Formulaires */
label { font-weight: 600; font-size: .9rem; }
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: .97rem; background: var(--surface); color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; margin: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.flash { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; padding: 13px 18px; border-radius: var(--r-md); font-weight: 500; font-size: .95rem; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-info { background: var(--accent-soft); color: var(--ink); }
.quiz fieldset { border: 0; margin: 0 0 var(--gap); }
.quiz legend { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.12rem; margin-bottom: 16px; float: left; width: 100%; }
.quiz legend + * { clear: both; }
.q-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: .9rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; clear: both; }
.choice { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; cursor: pointer; font-weight: 500; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.choice:has(input:checked) .choice-ico { background: var(--accent); color: var(--accent-ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* -------------------------------------------------------------- Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin: 20px 0 var(--gap); }
.plan { display: flex; flex-direction: column; position: relative; margin: 0; }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; margin: 4px 0; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .btn { margin-top: auto; }
.plan-hi { background: var(--contrast); color: var(--on-contrast); }
.plan-hi .muted, .plan-hi .price small { color: var(--on-contrast-muted); }
.plan-flag { position: absolute; top: 18px; right: 18px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { margin-top: 3px; color: var(--good); }
.plan-hi .checks .ico { color: var(--accent); }

/* -------------------------------------------------------------- Compte */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 10px 0 var(--gap); }
.stat-row.stat-4 { grid-template-columns: repeat(4, 1fr); }
.stat { margin: 0; text-decoration: none; display: flex; flex-direction: column; }
.stat dt { color: var(--muted); font-size: .86rem; order: 2; }
.stat dd { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; order: 1; line-height: 1.1; }
.stat .stat-text { font-size: 1.15rem; letter-spacing: -0.01em; }
.stat a { order: 3; margin-top: 6px; font-size: .88rem; }
.stat-ico { order: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 12px; }
.devices { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-md); }
.devices li span { flex: 1; }
.devices small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.status-approved, .status-published { background: var(--good-bg); color: var(--good); }
.status-pending, .status-scheduled { background: var(--warn-bg); color: var(--warn); }
.status-refused, .status-failed, .status-trash { background: var(--bad-bg); color: var(--bad); }
.status-draft { background: var(--surface-2); color: var(--ink-2); }

/* Classements du cimetière */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 6px 0 var(--gap); }
.boards-2 { grid-template-columns: repeat(2, 1fr); }
.board { margin: 0; }
.board ol { margin: 0; padding-left: 1.3em; }
.board li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.board li:first-child { border-top: 0; }
.board li a { text-decoration: none; font-weight: 600; }
.board li b { float: right; margin-left: 10px; font-weight: 600; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.board li::after { content: ""; display: table; clear: both; }
.years .ico { vertical-align: -2px; }
.grave-table td { vertical-align: middle; }

/* Parrainage */
.referral { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; }
.ref-link { display: flex; gap: 8px; margin-bottom: 12px; }
.ref-link input { flex: 1; font-size: .9rem; }
.ref-stats { display: grid; gap: 10px; margin: 0; }
.ref-stats div { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.ref-stats dt { color: var(--muted); font-size: .88rem; }
.ref-stats dd { margin: 0; font-weight: 800; font-size: 1.3rem; }

/* -------------------------------------------------------------- Mobile */
@media (max-width: 1180px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; order: -1; }
  .detail-side .toc { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .main { border-radius: 0; min-height: 100vh; }
  .sidebar { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100%; border-radius: 0 var(--r-xl) var(--r-xl) 0; transform: translateX(-105%); transition: transform .25s ease; }
  .nav-open .sidebar { transform: none; }
  .nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .sidebar .side-close, .topbar .nav-btn { display: inline-grid; }
  .mobile-brand { display: inline-flex; }
  .topbar { padding: 12px 16px; top: 0; border-radius: 0; gap: 10px; }
  .search { display: none; }
  .theme-switch span, .hide-sm { display: none; }
  .content-area { padding: 6px 16px 28px; }
  .foot { margin: 0 16px; padding: 22px 0; }
  .split-2, .split-2.wide-left, .gate, .referral, .boards, .stat-row, .stat-row.stat-4, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row.stat-4 { grid-template-columns: 1fr 1fr; }
  .panel, .hero-card, .detail-head, .gate { padding: 22px 18px; }
  .reading-body { padding: 24px 20px; }
  .sub-body { padding: 0 16px 16px; }
  .acard { flex-direction: column; }
  .acard img { width: 100%; height: 180px; }
}
.lbl-short { display: none; }
@media (max-width: 420px) {
  .topbar .mobile-brand { display: none; }
}
@media (max-width: 480px) {
  .lbl-long { display: none; } .lbl-short { display: inline; }
}
@media (max-width: 400px) {
  .top-actions > .btn { padding-left: 12px; padding-right: 12px; font-size: .82rem; }
}
@media (max-width: 520px) {
  .cur-btn svg { display: none; } .cur-btn { padding: 0 12px; }
  .pop-cur { position: fixed; left: 12px; right: 12px; top: 72px; min-width: 0; }
  .topbar .nav-btn, .topbar .mobile-brand { flex-shrink: 0; }
  .top-actions { gap: 6px; }
  .top-actions .icon-btn { width: 38px; height: 38px; }
  .cur-btn { height: 38px; }
  .theme-switch button { padding: 6px 9px; }
  .cat-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cat-tile { min-height: 140px; padding: 16px; border-radius: var(--r-lg); }
  .cat-ico { width: 44px; height: 44px; margin-bottom: 12px; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .f-search { min-width: 0; max-width: none; width: 100%; }
  .filterbar label:not(.check):not(.f-search) { width: 100%; }
  .filterbar select { min-width: 0; }
  .hero-stats div { flex: 1; min-width: 40%; }
  .plan-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .foot, .detail-side, .gate { display: none !important; } .shell { display: block; } body, .main { background: #fff; } }

/* Les colonnes de grille ne doivent jamais dépasser l’écran sur mobile */
.detail-layout > *, .split-2 > *, .boards > *, .grid-3 > *, .grid-4 > *, .stat-row > * { min-width: 0; }

/* ===================================================================== Version 2.4 */
/* Numéro WhatsApp : pays + indicatif + numéro */
.phone-field .phone-country { width: 100%; margin-bottom: 8px; text-overflow: ellipsis; }
.phone-row { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.phone-row:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.phone-row input { border: 0 !important; border-radius: 0 !important; background: transparent; min-width: 0; outline: none; box-shadow: none; }
.phone-row input[type=tel] { flex: 1 1 auto; width: auto !important; }
.phone-row .phone-dial { flex: 0 0 5.2em; width: 5.2em !important; padding: 0 6px 0 14px !important; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; border-right: 1px solid var(--line) !important; }

/* Code WhatsApp */
.code-form { display: grid; gap: 14px; margin: 18px 0 8px; }
.code-input { font-size: 2rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding: 12px 0 12px .5em !important; }
.resend-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; margin-bottom: 8px; }
.resend-row .btn-link[disabled] { opacity: .55; cursor: default; }
.auth-card .gate-icon { margin-bottom: 12px; }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 13px; border-radius: 999px;
  background: #25D366; color: #06280F; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float:hover { background: #1FBA59; }
.wa-float svg { flex: none; }
@media (max-width: 700px) { .wa-float span { display: none; } .wa-float { padding: 13px; right: 14px; bottom: 14px; } }
@media print { .wa-float { display: none; } }
.btn-wa svg { margin-right: 6px; }

/* Témoignages */
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.testi-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.testi { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel .testi { background: var(--surface-2); border-color: transparent; }
.testi-result { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.35; }
.testi-result svg { flex: none; margin-top: 3px; color: var(--good); }
.testi blockquote { margin: 0; color: var(--ink-2); flex: 1; }
.testi figcaption { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.testi figcaption > span:last-child { display: grid; line-height: 1.35; min-width: 0; }
.testi figcaption small { color: var(--muted); }
.testi figcaption a { font-size: .86rem; font-weight: 600; }
.testi-box { border: 2px solid var(--accent-line); }
.testi-box h2 { display: flex; gap: 10px; align-items: center; }
.testi-form { display: grid; gap: 4px; margin-top: 12px; }
.testi-empty .gate-icon { margin: 0 auto 14px; }
.block-intro { margin: -6px 0 14px; max-width: 70ch; }
@media (max-width: 960px) { .testi-grid, .testi-grid-2 { grid-template-columns: 1fr; } }

/* ===================================================================== Version 2.6 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.help-card .btn svg { margin-right: 6px; }

/* Messagerie « Nous écrire » */
.chat-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  border: 0; border-radius: 999px; background: var(--contrast); color: var(--on-contrast); font: 700 .95rem var(--font); cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.chat-float:hover { transform: translateY(-1px); }
.chat-float svg { color: var(--accent); flex: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: .75rem; line-height: 22px; text-align: center; box-shadow: 0 0 0 3px var(--main); }
.chat-open .chat-float { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 36px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 60px rgba(0,0,0,.28); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--contrast); color: var(--on-contrast); }
.chat-head h2 { margin: 0; font-size: 1.02rem; color: inherit; }
.chat-head p { margin: 0; font-size: .8rem; color: var(--on-contrast-muted); line-height: 1.35; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head .icon-btn { color: var(--on-contrast); background: transparent; border-color: rgba(255,255,255,.18); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--main); overscroll-behavior: contain; }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: .94rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; white-space: pre-wrap; }
.chat-msg time { display: block; margin-top: 4px; font-size: .72rem; opacity: .65; }
.chat-msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.chat-msg.pending { opacity: .6; }
.chat-day { align-self: center; font-size: .74rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; max-height: 140px; min-height: 44px; border-radius: 14px; padding: 11px 13px; font: inherit; line-height: 1.4; }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--contrast); color: var(--on-contrast); cursor: pointer; flex: none; }
.chat-send:disabled { opacity: .5; cursor: wait; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .74rem; color: var(--muted); background: var(--surface); }
.chat-error { align-self: center; font-size: .82rem; color: var(--bad); background: var(--bad-bg); padding: 6px 10px; border-radius: 10px; }
.chat-guest { justify-content: center; gap: 8px; text-align: center; }
.chat-guest .btn { margin-top: 6px; }
@media (max-width: 560px) {
  .chat-float span { display: none; } .chat-float { padding: 14px; right: 14px; bottom: 14px; }
  body:has(.chat-float) .content-area { padding-bottom: 84px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .chat-float, .chat-panel { display: none !important; } }

/* Accompagnement */
.eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.plans-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 920px; margin-left: auto; margin-right: auto; }
.formula-pick { display: grid; gap: 10px; }
.formula-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; }
.formula-opt:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.formula-opt input { margin-top: 4px; }
.formula-opt small { display: block; color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.field legend { font-weight: 600; margin-bottom: 8px; }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.coach-form .check { margin: 10px 0; align-items: flex-start; }
.coach-form .btn-block { margin-top: 14px; }
.coach-dash > .panel { margin-bottom: var(--gap); }
.coach-cta .price { margin: 8px 0 14px; }
.inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-grid .wide { grid-column: 1 / -1; }
.inline-grid .btn { margin-bottom: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.stats-row > div { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.stats-row dt { color: var(--muted); font-size: .84rem; }
.stats-row dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.goal-bar { display: flex; gap: 6px; margin: 10px 0 4px; max-width: 360px; }
.goal-bar span { flex: 1; height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.goal-bar span.ok { background: var(--good); border-color: var(--good); }
.kv { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
/* Parrainage dans l’espace membre */
.ref-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ref-box input { flex: 1; min-width: 200px; }
.referral .ref-payout, .referral .table-wrap { grid-column: 1 / -1; }
.ref-payout label { font-weight: 600; display: block; margin-bottom: 6px; }
.coach-strip { display: flex; align-items: center; gap: 14px; margin-bottom: var(--gap); }
.coach-strip > div { flex: 1; min-width: 0; }
.coach-strip .stat-ico { margin: 0; flex: none; }
@media (max-width: 640px) { .coach-strip { flex-wrap: wrap; } .referral { grid-template-columns: 1fr; } }
.plan-flag + h2 { padding-right: 104px; }
.chat-msg { display: flex; flex-direction: column; }
.chat-msg time { align-self: flex-end; white-space: nowrap; }
.chat-msg.them time { align-self: flex-start; }
.inline-grid input[type=month], .inline-grid input[type=date] { width: 100%; }

/* Paiement : choix du moyen */
.pay-page .auth-card { max-width: 520px; }
.pay-methods { display: grid; gap: 10px; margin: 10px 0 12px; }
.pay-method { margin: 0; }
.pay-method > button, .pay-method > summary { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; list-style: none; }
.pay-method > summary::-webkit-details-marker { display: none; }
.pay-method > button:hover, .pay-method > summary:hover, .pay-manual[open] > summary { border-color: var(--ink); background: var(--accent-soft); }
.pay-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.pay-txt { flex: 1; min-width: 0; }
.pay-txt strong { display: block; }
.pay-txt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.pay-amt { font-weight: 800; white-space: nowrap; }
.pay-manual > .steps-text, .pay-manual > form, .pay-manual > p { margin: 12px 4px 0; }
.money-input { display: flex; align-items: center; gap: 8px; }
.money-input input { flex: 1; }
.money-input span { font-weight: 700; color: var(--muted); min-width: 2.5em; }
