:root {
  --bg: #0F1419;
  --bg-2: #0C1015;
  --bg-3: #0A0D11;
  --surface: #171E26;
  --surface-2: #11171D;
  --line: #232C36;
  --line-2: #2A3540;
  --line-3: #36424E;
  --text: #E8ECEF;
  --text-2: #DCE3E8;
  --text-3: #C9D2D9;
  --muted: #B4C0C9;
  --faint: #93A1AD;
  --accent: #8BC48A;
  --accent-2: #A9D6A8;
  --accent-bg: #16211A;
  --accent-line: #2D4431;
  --blue: #79A6E8;
  --gold: #D9B95B;
  --gold-bg: #221D10;
  --gold-line: #5A4A1E;
  --gold-text: #E6D9AE;
  --red: #E07A6B;
  --red-bg: #2A1714;
  --red-line: #6B3A33;
  --draw: #4A5561;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--faint); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(15, 20, 25, .94); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.logo:hover { color: var(--text); }
.logo span { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.nav a { color: var(--text-3); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 2px; }
.nav a:hover { color: var(--text); }
.chip-link { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 14px !important; font-weight: 600 !important; }
.chip-notes { border: 1px solid var(--line-3); color: var(--text) !important; }
.chip-credits { border: 1px solid var(--gold-line); background: var(--gold-bg); color: var(--gold-text) !important; }
.badge { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--accent); color: var(--bg); min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.btn-premium { background: var(--accent); color: var(--bg) !important; font-weight: 700 !important; border-radius: 999px; padding: 10px 18px !important; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-3); font-weight: 600; }
.btn-ghost:hover { color: var(--text); border-color: var(--faint); }
.btn-gold { background: var(--gold); color: var(--bg); border: none; }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Sections ---------- */
section { border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.section { padding: 72px 0; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; }

/* ---------- Accueil ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 20px 72px; max-width: 1200px; margin: 0 auto; border-top: none; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.pill { font-family: var(--mono); font-size: 13px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-bg); padding: 6px 12px; border-radius: 999px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.checks { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.featured { flex: 1 1 380px; min-width: 0; padding: 26px; display: flex; flex-direction: column; gap: 22px; border-radius: 20px; }
.teams3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; text-align: center; }
.crest { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 15px; margin: 0 auto 10px; }
.crest.away { border-color: var(--blue); }
.team-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.big3 > div { background: var(--bg); border-radius: 12px; padding: 14px 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.big3 .v { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.big3 .k { font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.bar.lg { height: 12px; gap: 3px; }
.bar .h { background: var(--accent); } .bar .d { background: var(--draw); } .bar .a { background: var(--blue); }
.c-h { color: var(--accent); } .c-d { color: var(--muted); } .c-a { color: var(--blue); }
.conf { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.conf.haute { color: var(--accent); } .conf.moyenne { color: var(--gold); } .conf.faible { color: var(--faint); }

/* ---------- Compétitions & matchs ---------- */
.leagues { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.league { flex: 0 0 auto; min-height: 56px; padding: 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
.league b { font-size: 15px; white-space: nowrap; }
.league small { font-size: 12px; color: var(--faint); white-space: nowrap; }
.league[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.league[aria-pressed="true"] small { color: #1F3320; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; border: 1px solid var(--line-3); color: var(--text-3); font-size: 14px; font-weight: 600; }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.credits-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; }
.dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); }
.dots i.on { background: var(--gold); }
.list { display: flex; flex-direction: column; gap: 12px; }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-margin-top: 90px; }
.match.open { border-color: #4C6A4F; }
.match-head { width: 100%; background: transparent; border: none; text-align: left; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.mh-teams { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mh-teams .when { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.mh-teams .vs { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 19px; font-weight: 700; }
.mh-teams .vs i { color: #5F6D79; font-style: normal; font-weight: 500; }
.mh-probs { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mh-probs .nums { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.mh-pick { flex: 0 1 200px; min-width: 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mh-pick .lbl { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.mh-pick b { font-size: 15px; }
.mh-toggle { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.mh-toggle svg { transition: transform .15s; }
.match.open .mh-toggle svg.chev { transform: rotate(180deg); }
.tag-ok { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-2); border: 1px solid var(--accent-line); }
.warn-line { font-size: 13px; color: var(--gold-text); }
.empty { border: 1px dashed var(--line-3); border-radius: 16px; padding: 32px 22px; text-align: center; color: var(--faint); }

/* ---------- Fiche détaillée ---------- */
.detail { border-top: 1px solid var(--line-2); background: var(--surface-2); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.grid-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.box { flex: 1 1 260px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.detail > .box, .stack > .box { flex: none; }
.stack { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.grid-cards { align-items: flex-start; }
.box h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.why h3 { font-size: 19px; text-transform: none; letter-spacing: -.01em; color: var(--text); font-weight: 800; }
.why-row { display: flex; align-items: flex-start; gap: 12px; }
.why-row p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.why-tag { flex: 0 0 92px; text-align: center; font-size: 12px; font-weight: 700; padding: 4px 0; border-radius: 999px; }
.t-goals { background: var(--accent-bg); color: var(--accent-2); border: 1px solid var(--accent-line); }
.t-home { background: #16202B; color: #A9C6EE; border: 1px solid #2B3F57; }
.t-form { background: var(--gold-bg); color: var(--gold-text); border: 1px solid var(--gold-line); }
.xg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.xg3 .v { font-family: var(--mono); font-size: 24px; font-weight: 600; display: block; }
.xg3 .k { font-size: 12px; color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sep { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); }
.ou { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; }
.ou .o { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); }
.ou .u { font-family: var(--mono); font-size: 14px; font-weight: 600; text-align: right; color: var(--text-3); }
.ou .mid { display: flex; flex-direction: column; gap: 4px; }
.ou .mid span { font-family: var(--mono); font-size: 12px; text-align: center; color: var(--text-3); }
.ou .track { height: 8px; border-radius: 4px; background: #3A4550; overflow: hidden; }
.ou .track div { height: 100%; background: var(--accent); }
.tiles { display: grid; gap: 8px; }
.tiles.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--bg); border-radius: 10px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tile .v { font-family: var(--mono); font-size: 21px; font-weight: 600; }
.tile .k { font-size: 12px; color: var(--faint); }
.teamtable { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 10px 8px; align-items: center; font-size: 14px; }
.teamtable .n { font-family: var(--mono); text-align: right; }
.teamtable .hd { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addnotes { border-color: var(--accent-line); }
.bets { display: flex; flex-wrap: wrap; gap: 8px; }
.bet { min-height: 44px; padding: 8px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-3); display: flex; align-items: center; gap: 10px; }
.bet .p { font-family: var(--mono); font-size: 13px; font-weight: 600; opacity: .85; }
.bet .st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--text-3); }
.bet[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); }
.bet[aria-pressed="true"] .st { background: var(--accent); color: var(--bg); }
.locked { border-top: 1px solid var(--line-2); background: var(--surface-2); padding: 26px 22px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.locked .txt { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.locked .txt p { margin: 0; color: var(--muted); line-height: 1.55; }
.lock-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-bg); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.blurred { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; filter: blur(4px); opacity: .55; pointer-events: none; user-select: none; }
.blurred i { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.notice.gold { background: var(--gold-bg); border: 1px solid var(--gold-line); color: var(--gold-text); }
.notice.red { background: var(--red-bg); border: 1px solid var(--red-line); color: #F0C9C2; }

/* ---------- Méthode / fiabilité ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 290px; min-width: 0; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step .n { font-family: var(--mono); color: var(--accent); }
.step h3 { font-size: 21px; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.stat { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--mono); font-size: 34px; font-weight: 600; }
.stat .k { font-size: 14px; color: var(--muted); }
.calib { display: flex; gap: 4px; align-items: stretch; }
.calib .axis { flex: 0 0 34px; height: 200px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: right; padding-right: 4px; }
.calib .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.calib .pair { height: 200px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--draw); background: #131A21; border-radius: 6px 6px 0 0; }
.calib .pair div { width: 36%; max-width: 22px; border-radius: 3px 3px 0 0; }
.calib .ann { background: var(--draw); } .calib .obs { background: var(--accent); }
.calib .t { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.calib .o { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.result { background: var(--surface); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result .l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result .l span:first-child { font-size: 15px; overflow-wrap: anywhere; }
.result .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.result .s { font-family: var(--mono); font-weight: 600; }
.ok { color: var(--accent); font-size: 12px; font-weight: 600; } .ko { color: var(--red); font-size: 12px; font-weight: 600; }

/* ---------- Notes & suivi ---------- */
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.split .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.item .grow { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item .meta { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.item .title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.icon-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; }
.panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-3); }
.input { min-height: 44px; width: 100%; border-radius: 12px; border: 1px solid var(--line-3); background: var(--bg); padding: 0 14px; font-size: 16px; }
textarea.input { padding: 12px 14px; min-height: 84px; resize: vertical; line-height: 1.5; }
.kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { flex: 1 1 200px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.kpi .k { font-size: 13px; color: var(--faint); }
.pos { color: var(--accent); } .neg { color: var(--red); }
.chart { display: flex; gap: 6px; height: 180px; }
.chart > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.chart .up { height: 90px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--draw); }
.chart .dn { height: 90px; display: flex; align-items: flex-start; justify-content: center; }
.chart .up i, .chart .dn i { width: 70%; max-width: 40px; display: block; }
.chart .up i { background: var(--accent); border-radius: 4px 4px 0 0; }
.chart .dn i { background: var(--red); border-radius: 0 0 4px 4px; }
.chart-lbl { display: flex; gap: 6px; }
.chart-lbl span { flex: 1 1 0; min-width: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; white-space: nowrap; }
.gauge { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.gauge div { height: 100%; border-radius: 5px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--bg); }
.resbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }
.resbtns button { min-height: 40px; padding: 0 14px; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; }

/* ---------- Premium & pied de page ---------- */
.plan { flex: 1 1 340px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 22px; border-radius: 20px; }
.plan.best { background: var(--accent-bg); border-color: var(--accent); }
.plan .price { font-family: var(--mono); font-size: 38px; font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--text-3); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: 0 0 auto; margin-top: 3px; }
.plan .cta { margin-top: auto; }
footer { border-top: 1px solid var(--line); background: var(--bg-3); }
footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.prevent { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 20px 22px; }
.prevent .age { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--text); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.prevent p { flex: 1 1 360px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.foot-bottom nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.foot-bottom nav a { color: var(--faint); text-decoration: none; font-size: 14px; padding: 12px 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--accent-line); color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

/* ---------- Compte ---------- */
button.chip-link { background: var(--gold-bg); font-family: var(--sans); font-size: 15px; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-3); border-radius: 18px; padding: 0; width: min(440px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(5, 8, 11, .7); }
.dlg { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dlg p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; display: flex; flex-direction: column; gap: 18px; line-height: 1.65; color: var(--text-2); }
.legal h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.legal h2 { font-size: 22px; margin-top: 12px; color: var(--text); }
.legal p, .legal li { color: var(--muted); }
.todo { background: var(--gold-bg); color: var(--gold-text); padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: .9em; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; gap: 32px; }
  .header .wrap { flex-wrap: nowrap; padding: 8px 14px; gap: 8px; }
  .logo span { font-size: 19px; }
  .logo svg { width: 26px; height: 26px; }
  .nav { flex-wrap: nowrap; gap: 6px; }
  .nav a:not(.chip-link), .hide-sm { display: none !important; }
  .chip-link { padding: 8px 10px !important; font-size: 14px !important; gap: 6px; }
  .match { scroll-margin-top: 70px; }
  .kpi { flex-basis: 150px; padding: 16px; }
  .kpi .v, .stat .v { font-size: 26px; }
  .match-head { padding: 18px; gap: 14px; }
  .mh-pick { min-width: 0; flex: 1 1 auto; }
  .detail, .locked { padding: 18px; }
  .why-row { flex-direction: column; gap: 6px; }
  .why-tag { flex: 0 0 auto; padding: 4px 12px; }
  .plan { padding: 24px; }
}

/* Connexion */
.auth-links { display: flex; flex-direction: column; gap: 2px; }
.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; text-align: left; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.linkish b { color: var(--accent); font-weight: 700; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 88px; }
.pw-show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 12px; background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pw-box { border: 1px solid var(--line-3); border-radius: 12px; padding: 12px 14px; }
.pw-box summary { cursor: pointer; font-weight: 700; color: var(--text); min-height: 28px; }
.pw-box[open] summary { margin-bottom: 10px; }
.pw-box .field { gap: 8px; }
