/* Skyhook Picks : thème sombre (slate-900 / emerald-500 / indigo-600). Partagé par la page principale et les pages légales. */
:root {
  --bg: #0f172a;
  --surface: #162033;
  --surface-2: #1e293b;
  --line: #2b3a52;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --faint: #7c8ba1;
  --ev: #10b981;
  --ev-bright: #34d399;
  --ev-wash: rgba(16, 185, 129, 0.12);
  --loss: #f87171;
  --loss-wash: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-wash: rgba(99, 102, 241, 0.16);
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
  background-image: radial-gradient(900px 360px at 85% -80px, rgba(79, 70, 229, 0.16), transparent 70%);
  background-repeat: no-repeat;
}
.wrap { max-width: 1240px; margin: 0 auto; }
button, input { font: inherit; color: inherit; }
a { color: #a5b4fc; }
:focus-visible { outline: 2px solid var(--ev-bright); outline-offset: 2px; }
[hidden] { display: none !important; }

/* bandeau 18+ */
.agebar {
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  background: #0b1222; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center;
}
.age-pill { font-family: var(--f-data); font-weight: 600; font-size: 11px; color: #0f172a; background: var(--warn); padding: 1px 7px; border-radius: 4px; }

/* en-tête */
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand svg { flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--ev-bright); }
.head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* sélecteur de langue (en-tête et pages légales) */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--ev-wash); color: var(--ev-bright); }
.lang-switch a:hover { color: inherit; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 1em; }
.legal-top a:first-child { text-decoration: none; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid rgba(16, 185, 129, 0.35); background: var(--ev-wash); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--ev-bright);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ev); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.profile { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; min-width: 0; }
.profile-text { text-align: right; line-height: 1.2; min-width: 0; }
.profile-text b { display: block; font-size: 13px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #a5b4fc; }
.plan.premium::before { content: "\2605  "; }
.avatar-me { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); font-weight: 600; font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 4px 8px; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; }
.linkbtn:hover { color: var(--fg); }

/* boutons */
.btn { cursor: pointer; border: 0; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 8px; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn.ghost:hover { background: var(--surface-2); }

/* messages */
.notice { margin-top: 16px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.notice.info { border-color: rgba(99, 102, 241, 0.5); background: var(--primary-wash); }
.notice.ok { border-color: rgba(16, 185, 129, 0.45); background: var(--ev-wash); }
.notice.err { border-color: rgba(248, 113, 113, 0.5); background: var(--loss-wash); }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding-top: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.kpi-label { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-family: var(--f-display); font-weight: 600; font-size: 44px; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-value.pos { color: var(--ev-bright); }
.kpi-value.neg { color: var(--loss); }
.kpi-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* sections */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 36px 0 14px; }
h1, h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 32px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; text-wrap: balance; }
.section-meta { font-family: var(--f-data); font-size: 12px; color: var(--muted); }

/* cartes de picks */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.card.free { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15), 0 12px 40px -18px rgba(16, 185, 129, 0.35); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.locked .card-body { filter: blur(7px); opacity: 0.8; user-select: none; pointer-events: none; }
.skeleton { height: 292px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.who { display: flex; align-items: center; gap: 12px; }
.badge-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.03em; background: var(--surface-2); border: 2px solid var(--team, var(--line)); }
.who-text { min-width: 0; flex: 1; }
.name { font-weight: 600; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.team { font-size: 12.5px; color: var(--muted); }
.free-tag { display: inline-flex; align-self: flex-start; font-family: var(--f-data); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #052e22; background: var(--ev-bright); padding: 2px 8px; border-radius: 4px; }

.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prop { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: 0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.prop i { font-style: normal; color: var(--ev-bright); }
.prop i.under { color: var(--warn); }
.ev { font-family: var(--f-data); font-weight: 600; font-size: 13px; color: #052e22; background: var(--ev); padding: 5px 10px; border-radius: 6px; white-space: nowrap; }

.cmp { padding-top: 22px; padding-bottom: 22px; position: relative; }
.track { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; }
.edge { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), var(--ev)); border-radius: 4px; }
.edge.rev { background: linear-gradient(270deg, rgba(16, 185, 129, 0.35), var(--ev)); }
.mk { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.mk-line { width: 3px; height: 22px; background: var(--fg); border-radius: 2px; }
.mk-model { width: 14px; height: 14px; border-radius: 50%; background: var(--ev-bright); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ev-bright); }
.lbl { position: absolute; transform: translateX(-50%); font-family: var(--f-data); font-size: 11.5px; white-space: nowrap; }
.lbl small { color: var(--muted); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.lbl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lbl.top { top: -2px; color: var(--ev-bright); }
.lbl.bot { bottom: -2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.stat-label { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat-val { font-family: var(--f-data); font-weight: 600; font-size: 17px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-val small { font-weight: 400; font-size: 12px; color: var(--muted); }

.lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.7)); }
.lock-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-wash); border: 1px solid rgba(129, 140, 248, 0.5); color: #c7d2fe; }
.lock p { margin: 0; font-size: 12.5px; color: #cbd5e1; max-width: 24ch; }

.state-box { grid-column: 1 / -1; padding: 36px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state-box b { color: var(--fg); font-size: 16px; }

/* abonnement */
.subscribe { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(99, 102, 241, 0.45); }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; padding: 18px; } }
.price { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; margin: 6px 0 2px; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.included { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.included li { padding-left: 24px; position: relative; }
.included li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ev-bright); border-bottom: 2px solid var(--ev-bright); transform: rotate(-45deg); }
.sub-form { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.field { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.field:focus-visible { outline-offset: 0; border-color: var(--primary-hover); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--primary); flex: none; width: 16px; height: 16px; }
.fineprint { font-size: 12px; color: var(--faint); margin: 0; }
.msg { margin: 0; font-size: 13px; }
.msg.err { color: var(--loss); }
.msg.ok { color: var(--ev-bright); }

/* historique */
.hist-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.hist-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.hist-card h3 { margin: 0 0 4px; font-family: var(--f-data); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hist-card .big { font-family: var(--f-display); font-weight: 600; font-size: 38px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hist-card p { margin: 2px 0 0; font-size: 12px; color: var(--faint); }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
th { font-family: var(--f-data); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.res { font-family: var(--f-data); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.res.won { color: var(--ev-bright); background: var(--ev-wash); }
.res.lost { color: var(--loss); background: var(--loss-wash); }
.res.void { color: var(--muted); background: var(--surface-2); }

footer.site { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; flex-direction: column; gap: 8px; }
footer.site nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

dialog { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(2, 6, 23, 0.7); }
dialog h2 { font-size: 26px; margin-bottom: 8px; }
dialog form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* pages légales */
.legal { max-width: 760px; margin: 0 auto; padding-top: 28px; }
.legal h1 { font-size: 38px; margin-bottom: 6px; }
.legal h2 { font-size: 24px; margin: 28px 0 8px; }
.legal p, .legal li { color: #cbd5e1; max-width: 70ch; }
.legal .todo { color: var(--warn); background: rgba(251, 191, 36, 0.08); border-radius: 4px; padding: 0 4px; }
.legal .draft { border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); border-radius: 8px; padding: 10px 14px; font-size: 13px; }

@media (max-width: 480px) {
  .kpi-value { font-size: 38px; }
  .profile-text { display: none; }
  .profile { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .dot, .skeleton { animation: none; } .btn { transition: none; } }

footer.site p { margin: 0; }

/* bande "match de la prédiction" */
.match-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.ms-label { flex: 1 0 100%; font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ms-teams { display: flex; align-items: center; gap: 8px; }
.ms-at { color: var(--faint); font-family: var(--f-data); }
.tchip { font-family: var(--f-data); font-weight: 600; font-size: 14px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.tchip.mine { color: var(--fg); background: var(--surface-2); border-color: var(--team, var(--line)); }
.ms-when { font-family: var(--f-data); font-size: 13px; color: var(--muted); }
.ms-when b { color: var(--fg); font-size: 15px; font-weight: 600; }
.ms-when small { font-size: 11px; color: var(--faint); }
.skeleton { height: 350px; }

/* miniatures : photo joueur (repli : abréviation d'équipe) et logos d'équipes */
.badge-av { position: relative; overflow: hidden; width: 52px; height: 52px; background: linear-gradient(160deg, color-mix(in srgb, var(--team, #475569) 40%, var(--surface-2)), var(--surface-2)); }
.badge-av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.badge-av.has-img { color: transparent; }
.badge-av.sm { width: 30px; height: 30px; font-size: 11px; border-width: 1px; flex: none; }
.hist-player { display: inline-flex; align-items: center; gap: 10px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; }
.tlogo { width: 18px; height: 18px; object-fit: contain; flex: none; }
