/* ═══════════════════════════════════════════════════════════
   Renard Pronostic — Design system (orange, moderne)
═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --orange:        #f97316;
  --orange-600:    #ea580c;
  --orange-700:    #c2410c;
  --orange-light:  #ffedd5;
  --orange-xlight: #fff7ed;

  --ink:           #1c1410;
  --ink-soft:      #4a3f38;
  --muted:         #8a7d72;

  --bg:            #fffbf7;
  --surface:       #ffffff;
  --border:        #f0e6dc;
  --border-strong: #e4d6c8;

  --green:         #16a34a;
  --green-light:   #dcfce7;
  --red:           #dc2626;
  --red-light:     #fee2e2;
  --blue:          #2563eb;
  --blue-light:    #dbeafe;

  --shadow-sm: 0 1px 3px rgba(28,20,16,0.06), 0 1px 2px rgba(28,20,16,0.04);
  --shadow:    0 8px 24px rgba(28,20,16,0.08);
  --shadow-lg: 0 20px 50px rgba(28,20,16,0.14);
  --shadow-orange: 0 8px 24px rgba(249,115,22,0.28);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
input, select, button, textarea { font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 84px 0; }

/* ═══════════════ Header / Nav ═══════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,251,247,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.18rem;
  letter-spacing: -0.4px; color: var(--ink);
}
.brand-logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-700));
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: var(--shadow-orange);
}
.brand span b { color: var(--orange-600); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px; border-radius: 10px;
  font-weight: 500; font-size: 0.93rem;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--orange-light); color: var(--orange-700); }
.nav-links a.active { background: var(--orange-light); color: var(--orange-700); font-weight: 600; }
.nav-links a.cta {
  background: var(--orange); color: #fff; margin-left: 8px;
  box-shadow: var(--shadow-orange);
}
.nav-links a.cta:hover { background: var(--orange-600); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--ink); }

/* ═══════════════ Buttons ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 0.97rem;
  cursor: pointer; border: none; white-space: nowrap;
  transition: transform 0.14s, box-shadow 0.2s, background 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,115,22,0.36); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c211a; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ═══════════════ Hero ═══════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(249,115,22,0.16), transparent 70%),
    radial-gradient(600px 300px at 85% 20%, rgba(234,88,12,0.10), transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: 100px;
  font-size: 0.84rem; font-weight: 600; color: var(--orange-700);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 850; line-height: 1.04; letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange), var(--orange-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft); max-width: 620px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ Stat strip ═══════════════ */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 64px; box-shadow: var(--shadow);
}
.stat-strip .stat { background: var(--surface); padding: 30px 20px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 850; color: var(--orange-600); letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* ═══════════════ Section heading ═══════════════ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange-600);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 820; letter-spacing: -1px; line-height: 1.12; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }

/* ═══════════════ Feature cards ═══════════════ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange-light); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--orange-light); margin-bottom: 22px;
}
.feature h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 10px; letter-spacing: -0.3px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

/* ═══════════════ Steps ═══════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; font-weight: 720; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ═══════════════ CTA banner ═══════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-700));
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
  color: #fff; box-shadow: var(--shadow-orange); position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 80% 0%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-banner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 820; letter-spacing: -1px; position: relative; }
.cta-banner p { opacity: 0.92; margin: 14px auto 30px; font-size: 1.1rem; max-width: 520px; position: relative; }
.cta-banner .btn { position: relative; }

/* ═══════════════ Page hero (sub-pages) ═══════════════ */
.page-hero { padding: 60px 0 40px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 840; letter-spacing: -1.4px; line-height: 1.08; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 12px; max-width: 620px; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ═══════════════ Forms ═══════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 24px; }
.card-title { font-size: 1.25rem; font-weight: 780; letter-spacing: -0.4px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.card-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }

.field { margin-bottom: 20px; }
.field label, .field-label {
  display: block; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-soft);
  margin-bottom: 8px;
}
.input, .select {
  width: 100%; border: 1.6px solid var(--border-strong);
  border-radius: 12px; padding: 12px 15px;
  font-size: 1rem; color: var(--ink); background: var(--bg);
  outline: none; transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input::placeholder { color: #b8a99c; }
.input:focus, .select:focus {
  border-color: var(--orange); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.13);
}
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* Big dropdown selector */
.type-select {
  font-size: 1.15rem; font-weight: 700; padding: 18px 48px 18px 20px;
  border-radius: 14px; border-width: 2px;
}

/* ── PMU horses row ── */
.horses-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.horses-row::-webkit-scrollbar { height: 6px; }
.horses-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.horse-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.horse-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.3px;
  padding: 3px 7px; border-radius: 5px;
  background: var(--orange-light); color: var(--orange-700);
}
.horse-tag.fav { background: var(--ink); color: #fff; }
.horse-input {
  width: 50px; height: 52px; text-align: center;
  border: 1.6px solid var(--border-strong); border-radius: 12px;
  font-size: 1.15rem; font-weight: 800; color: var(--ink);
  background: var(--bg); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -moz-appearance: textfield;
}
.horse-input::-webkit-outer-spin-button, .horse-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.horse-input:focus { border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 4px rgba(249,115,22,0.13); }
.horse-input.filled { border-color: var(--orange); background: var(--orange-xlight); }
.horses-legend { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.horses-legend b { color: var(--orange-700); }

/* ── Sportif match builder ── */
.match-builder {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end;
  margin-bottom: 22px;
}
.match-vs {
  font-weight: 850; color: var(--muted); font-size: 1.1rem;
  padding-bottom: 13px;
}
.mise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mise-box {
  border: 1.6px solid var(--border-strong); border-radius: 14px;
  padding: 16px; background: var(--bg); transition: border-color 0.16s, background 0.16s;
}
.mise-box:focus-within { border-color: var(--orange); background: var(--surface); }
.mise-box .mise-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-soft); margin-bottom: 10px; }
.mise-box.draw .mise-label { color: var(--blue); }
.mise-input-wrap { display: flex; align-items: baseline; gap: 4px; }
.mise-input {
  width: 100%; border: none; background: transparent; outline: none;
  font-size: 1.5rem; font-weight: 850; color: var(--ink);
  -moz-appearance: textfield;
}
.mise-input::-webkit-outer-spin-button, .mise-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mise-cur { font-size: 1rem; font-weight: 700; color: var(--muted); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Hidden type panels */
.type-panel { display: none; }
.type-panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══════════════ Pronostic list / cards ═══════════════ */
.prono-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.prono-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.prono-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prono-card-top {
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.prono-card-top.pmu { background: var(--orange-xlight); }
.prono-card-top.sportif { background: var(--blue-light); }
.prono-tagline { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.prono-card-top.pmu .prono-tagline { color: var(--orange-700); }
.prono-card-top.sportif .prono-tagline { color: var(--blue); }
.prono-date { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.prono-card-body { padding: 22px; flex: 1; }
.prono-card-body h3 { font-size: 1.16rem; font-weight: 780; letter-spacing: -0.3px; margin-bottom: 4px; }
.prono-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }

.horse-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 0.92rem; font-weight: 800;
  background: var(--orange-light); color: var(--orange-700);
}
.chip.fav { background: var(--orange); color: #fff; }
.chip.outsider { background: var(--bg); color: var(--ink-soft); border: 1.5px dashed var(--border-strong); }

.bet-lines { display: flex; flex-direction: column; gap: 8px; }
.bet-line {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px; border-radius: 11px; background: var(--bg);
  font-size: 0.94rem;
}
.bet-line .bl-label { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.bet-line .bl-amount { font-weight: 800; }
.bl-pill { font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.bl-pill.win { background: var(--green-light); color: var(--green); }
.bl-pill.draw { background: var(--blue-light); color: var(--blue); }
.bet-total {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  display: flex; justify-content: space-between; font-weight: 800; font-size: 1rem;
}
.bet-total .t-amount { color: var(--orange-600); }

.prono-card-foot {
  padding: 12px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}
.btn-del {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.btn-del:hover { background: var(--red-light); color: var(--red); }

/* ═══════════════ Empty state ═══════════════ */
.empty {
  text-align: center; padding: 80px 24px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-icon { font-size: 3.2rem; margin-bottom: 16px; }
.empty h3 { font-size: 1.3rem; font-weight: 780; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* ═══════════════ Toast ═══════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 14px;
  font-weight: 600; box-shadow: var(--shadow-lg); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-ico { color: var(--orange); font-size: 1.1rem; }

/* ═══════════════ Filter pills ═══════════════ */
.filter-bar { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--border-strong);
  background: var(--surface); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
  cursor: pointer; transition: all 0.16s;
}
.filter-pill:hover { border-color: var(--orange); }
.filter-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════════ Page DATA ═══════════════ */
.data-meta {
  margin-top: 16px; display: inline-block;
  font-size: 0.86rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.data-meta b { color: var(--orange-700); }

.data-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box {
  flex: 1; min-width: 260px; position: relative;
  display: flex; align-items: center;
}
.search-ico { position: absolute; left: 16px; font-size: 1rem; opacity: 0.6; pointer-events: none; }
.search-input {
  width: 100%; border: 1.6px solid var(--border-strong); border-radius: 12px;
  padding: 13px 16px 13px 44px; font-size: 1rem; background: var(--surface);
  outline: none; transition: border-color 0.16s, box-shadow 0.16s;
}
.search-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,0.13); }
.result-count { font-weight: 700; color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

/* ═══════════════ Simulation ═══════════════ */
.model-card { margin-bottom: 24px; }
.model-inputs { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.model-input { display: flex; flex-direction: column; gap: 5px; }
.model-input label { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.model-formula { font-size: 0.76rem; font-weight: 700; color: var(--orange-700); font-family: ui-monospace, monospace; }
.model-note { flex: 1; min-width: 240px; font-size: 0.82rem; color: var(--ink-soft); background: var(--orange-xlight); border: 1px solid var(--orange-light); border-radius: 12px; padding: 12px 16px; }
.model-note b { color: var(--orange-700); }

.sim-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px; }
.sim-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.sim-stat.pos { border-color: #bbe6c9; background: #f3fbf6; }
.sim-stat.neg { border-color: #f3c9c9; background: #fdf4f4; }
.ss-val { font-size: 1.5rem; font-weight: 850; letter-spacing: -0.6px; line-height: 1.1; }
.sim-stat.pos .ss-val { color: var(--green); }
.sim-stat.neg .ss-val { color: var(--red); }
.ss-label { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }

.sim-table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.sim-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sim-table th { text-align: left; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); padding: 12px 14px; background: var(--bg); border-bottom: 1.5px solid var(--border); white-space: nowrap; }
.sim-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sim-table tbody tr:last-child td { border-bottom: none; }
.sim-table tbody tr:hover td { background: var(--orange-xlight); }
.c-date { color: var(--muted); font-weight: 700; white-space: nowrap; }
.cm-line { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.cm-rank { font-size: 0.68rem; font-weight: 800; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--border); padding: 0 6px; border-radius: 100px; }
.cm-score { font-weight: 850; color: var(--orange-700); }
.cm-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.c-odds { font-weight: 700; text-align: center; color: var(--ink-soft); }
.c-mise { font-weight: 700; text-align: right; white-space: nowrap; }
.c-net { font-weight: 850; text-align: right; white-space: nowrap; }
.c-net.pos { color: var(--green); }
.c-net.neg { color: var(--red); }
.res-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 100px; }
.res-badge.win { background: var(--green-light); color: var(--green); }
.res-badge.draw { background: #ece3d8; color: var(--ink-soft); }
.res-badge.loss { background: var(--red-light); color: var(--red); }

/* Panneau de filtres */
.filters-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group + .filter-group { border-top: 1px solid var(--border); padding-top: 18px; }
.filter-group-label {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted);
}
.filter-bar { margin-bottom: 0; }

.adv-filters { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.adv-filter { display: flex; flex-direction: column; gap: 5px; }
.adv-filter label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.adv-input {
  width: 150px; border: 1.6px solid var(--border-strong); border-radius: 10px;
  padding: 9px 12px; font-size: 0.98rem; font-weight: 700; background: var(--bg);
  outline: none; transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.adv-input:focus { border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 4px rgba(249,115,22,0.13); }
.adv-hint { font-size: 0.72rem; color: var(--muted); }
.btn-reset { padding: 9px 18px; font-size: 0.88rem; }
.range-inputs { display: flex; align-items: center; gap: 7px; }
.adv-input.sm { width: 82px; }
.adv-input.date { width: 150px; padding: 7px 10px; }
.range-sep { color: var(--muted); font-weight: 800; }
.adv-select {
  min-width: 200px; max-width: 260px;
  border: 1.6px solid var(--border-strong); border-radius: 10px;
  padding: 9px 32px 9px 12px; font-size: 0.95rem; font-weight: 600;
  background: var(--bg); color: var(--ink); cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color 0.16s, box-shadow 0.16s, background-color 0.16s;
}
.adv-select:focus { border-color: var(--orange); background-color: var(--surface); box-shadow: 0 0 0 4px rgba(249,115,22,0.13); }

/* Multi-select à cases à cocher */
.ms { position: relative; display: inline-block; }
.ms-btn {
  min-width: 190px; max-width: 260px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1.6px solid var(--border-strong); border-radius: 10px; padding: 9px 12px;
  font-size: 0.92rem; font-weight: 600; color: var(--ink); background: var(--bg); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ms-btn:hover { border-color: var(--orange); }
.ms-btn.active { border-color: var(--orange); background: var(--orange-xlight); color: var(--orange-700); }
.ms-btn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-caret { font-size: 0.7rem; color: var(--muted); }
.ms-panel {
  position: absolute; z-index: 50; top: calc(100% + 6px); left: 0;
  width: 260px; max-width: 80vw; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 10px; max-height: 320px; display: flex; flex-direction: column;
}
.ms-search {
  width: 100%; border: 1.5px solid var(--border-strong); border-radius: 8px;
  padding: 7px 10px; font-size: 0.88rem; outline: none; margin-bottom: 8px;
}
.ms-search:focus { border-color: var(--orange); }
.ms-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.ms-actions button {
  flex: 1; border: 1px solid var(--border); background: var(--bg); border-radius: 7px;
  padding: 5px; font-size: 0.74rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.ms-actions button:hover { border-color: var(--orange); color: var(--orange-700); }
.ms-list { overflow-y: auto; }
.ms-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 7px; border-radius: 7px;
  font-size: 0.9rem; cursor: pointer;
}
.ms-item:hover { background: var(--orange-xlight); }
.ms-item input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.ms-item-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-count { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.ms-empty { padding: 12px; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* Résultat d'un pronostic réglé */
.res-tag { margin-top: 10px; font-size: 0.8rem; font-weight: 800; padding: 7px 11px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res-tag.win { background: var(--green-light); color: var(--green); }
.res-tag.lose { background: var(--red-light); color: var(--red); }
.res-tag.pending { background: var(--bg); color: var(--muted); border: 1px dashed var(--border-strong); }
.res-tag .res-net { font-size: 0.9rem; }

/* Badge match en direct */
.m-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  color: #fff; background: var(--red); padding: 2px 8px; border-radius: 7px;
}
.m-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livepulse 1.2s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Groupes par jour */
.day-group { margin-bottom: 40px; }
.day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.day-head h2 {
  font-size: 1.15rem; font-weight: 820; letter-spacing: -0.3px;
  text-transform: capitalize;
}
.day-count {
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 800;
  padding: 2px 11px; border-radius: 100px;
}

.match-grid { display: flex; flex-direction: column; gap: 14px; }

.match-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px;
  box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s;
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(220px, 1fr) auto minmax(190px, 240px);
  align-items: center; gap: 26px;
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.m-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tag {
  font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 7px;
  background: var(--bg); color: var(--ink-soft); border: 1px solid var(--border);
}
.m-tag.comp { background: var(--orange-light); color: var(--orange-700); border-color: transparent; }
.m-tag.tv { background: var(--ink); color: #fff; border-color: transparent; }
.m-time { font-size: 0.92rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.m-foot { font-size: 0.74rem; color: var(--muted); }

.m-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; }
.m-team { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m-team-name { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.2px; }
.m-team.fav .m-team-name { color: var(--orange-700); }
.m-vs { font-size: 0.78rem; font-weight: 800; color: var(--muted); padding-top: 4px; }
.m-rank {
  font-size: 0.7rem; font-weight: 800; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 100px;
}
.m-team.fav .m-rank { background: var(--orange-light); color: var(--orange-700); border-color: transparent; }

/* Forme récente */
.m-form { display: inline-flex; gap: 3px; }
.form-pill {
  width: 16px; height: 16px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 800; font-style: normal; color: #fff;
}
.form-pill.win { background: var(--green); }
.form-pill.draw { background: #b5a596; }
.form-pill.loss { background: var(--red); }

.odds-row { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; }
.odd-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 6px; border-radius: 12px; background: var(--bg);
  border: 1.6px solid var(--border); transition: border-color 0.15s, background 0.15s;
}
.odd-box.fav { background: var(--orange-xlight); border-color: var(--orange); }
.odd-key { font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.odd-box.fav .odd-key { color: var(--orange-700); }
.odd-val { font-size: 1.28rem; font-weight: 850; letter-spacing: -0.5px; }
.odd-box.fav .odd-val { color: var(--orange-700); }
.odd-prob { font-size: 0.68rem; font-weight: 600; color: var(--muted); }

/* Répartition parieurs */
.pct-wrap { width: 100%; }
.pct-head { font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.pct-bar { display: flex; height: 9px; border-radius: 100px; overflow: hidden; background: var(--border); }
.pct-seg { display: block; height: 100%; }
.pct-seg.home { background: var(--orange); }
.pct-seg.draw { background: #c9b8a8; }
.pct-seg.away { background: var(--ink); }
.pct-legend { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 0.74rem; color: var(--ink-soft); flex-wrap: wrap; }
.pct-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pct-legend i.dot.home { background: var(--orange); }
.pct-legend i.dot.draw { background: #c9b8a8; }
.pct-legend i.dot.away { background: var(--ink); }

.data-disclaimer { margin-top: 24px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.data-disclaimer code, .empty code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-size: 0.85em; }

/* ═══════════════ Sportif : cotes figées + aperçu ═══════════════ */
.locked-odds {
  margin: 16px 0 4px; border: 1.6px solid var(--border-strong);
  border-radius: 14px; padding: 16px; background: var(--bg);
}
.lo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lo-teams { font-weight: 800; font-size: 1.05rem; }
.lo-meta { font-size: 0.82rem; color: var(--muted); }
.lo-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lo-odd { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; }
.lo-key { display: block; font-size: 0.68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.lo-val { display: block; font-size: 1.25rem; font-weight: 850; margin-top: 2px; }
.lo-lock { margin-top: 10px; font-size: 0.78rem; color: var(--orange-700); font-weight: 600; }

.bet-preview { margin-top: 16px; border: 1.6px solid var(--orange); border-radius: 14px; padding: 14px 16px; background: var(--orange-xlight); }
.bp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 0.92rem; }
.bp-row + .bp-total { border-top: 1px dashed var(--orange); margin-top: 6px; padding-top: 10px; }
.bp-total { display: flex; justify-content: space-between; font-weight: 800; }
.bp-sub { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }

.bl-cote { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.bl-gain { font-size: 0.74rem; font-weight: 700; color: var(--green); }
.locked-tag { margin-top: 12px; font-size: 0.74rem; font-weight: 700; color: var(--orange-700); background: var(--orange-xlight); border-radius: 8px; padding: 6px 10px; display: inline-block; }

/* ═══════════════ Login ═══════════════ */
.nav-links a.auth-link { border: 1.5px solid var(--border-strong); }
.nav-links a.auth-link:hover { border-color: var(--orange); }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(800px 360px at 50% -10%, rgba(249,115,22,0.16), transparent 70%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 34px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.login-brand { justify-content: center; font-size: 1.2rem; margin-bottom: 22px; }
.login-title { font-size: 1.6rem; font-weight: 820; letter-spacing: -0.6px; }
.login-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 8px 0 26px; }
.login-card .field { text-align: left; }
.login-card .field label { font-size: 0.78rem; }
.login-error {
  background: var(--red-light); color: var(--red);
  border-radius: 10px; padding: 10px 14px; font-size: 0.88rem;
  font-weight: 600; margin-bottom: 16px;
}
.login-back { display: inline-block; margin-top: 20px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.login-back:hover { color: var(--orange-700); }

/* ═══════════════ Footer ═══════════════ */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 48px 0 36px; margin-top: 90px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer .brand { color: #fff; }
.footer .brand-logo { box-shadow: none; }
.footer-note { font-size: 0.84rem; max-width: 460px; }
.footer-note a { color: var(--orange); text-decoration: underline; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 900px) {
  .features, .steps { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* Carte match : retour à l'empilement vertical */
  .match-card { grid-template-columns: 1fr; gap: 16px; }
  .m-left { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .odds-row { grid-template-columns: repeat(3, 1fr); }
  .sim-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .sim-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 6px; box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .field-row, .mise-grid { grid-template-columns: 1fr; }
  .match-builder { grid-template-columns: 1fr; }
  .match-vs { padding: 0; text-align: center; }
  .section { padding: 60px 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
