@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --night: #0F1923;
  --night2: #172030;
  --night3: #1E2B3C;
  --amber: #F0B429;
  --amber-dim: rgba(240,180,41,.12);
  --red: #E63946;
  --green-sport: #2ECC71;
  --white: #F5F7FA;
  --muted: #7B8FA6;
  --line: rgba(245,247,250,.08);
  --tennis: #2E86C1;
  --foot: #27AE60;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--night);
  color: var(--white);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out .2s ease; }
::view-transition-new(root) { animation: fade-in .25s ease; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,25,35,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: .14em;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-badge {
  background: var(--amber); color: var(--night);
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 4px;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.hnav-link {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500; padding: 7px 14px;
  border-radius: 8px; transition: all .15s;
  border: 1px solid transparent;
}
.hnav-link:hover, .hnav-link.on { color: var(--white); border-color: var(--line); background: var(--night2); }
.hnav-premium {
  background: var(--amber); color: var(--night);
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; text-decoration: none; transition: opacity .15s;
}
.hnav-premium:hover { opacity: .9; }
.live-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-sport);
  box-shadow: 0 0 0 0 rgba(46,204,113,.4);
  animation: beat 2s infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.4); }
  70% { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ── Hero ── */
.hero {
  padding: 64px 24px 48px;
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  font-size: 16px; color: var(--muted); max-width: 480px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.hstat { text-align: center; }
.hstat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--amber); display: block;
}
.hstat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* ── Switcher sport ── */
.sport-switch {
  display: flex; gap: 8px;
  max-width: 860px; margin: 0 auto;
  padding: 0 24px 20px;
}
.sport-btn {
  flex: 1; padding: 13px 16px;
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--muted);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s; text-align: center;
}
.sport-btn.on {
  background: var(--night3); border-color: var(--amber);
  color: var(--white);
}

/* ── Day nav ── */
.day-nav {
  display: flex; align-items: center; gap: 12px;
  max-width: 860px; margin: 0 auto 20px;
  padding: 0 24px;
}
.day-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--night2); border: 1px solid var(--line);
  color: var(--white); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.day-btn:hover { border-color: var(--amber); }
.day-btn:disabled { opacity: .3; cursor: default; }
.day-label {
  flex: 1; text-align: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600;
}
.day-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── Source banner ── */
.source-bar {
  max-width: 860px; margin: 0 auto 16px; padding: 0 24px;
}
.source-bar div {
  font-size: 11px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px; letter-spacing: .03em;
}
.src-live { background: rgba(46,204,113,.1); color: #2ECC71; }
.src-demo { background: rgba(240,180,41,.1); color: var(--amber); }
.src-erreur { background: rgba(230,57,70,.1); color: var(--red); }

/* ── Match cards ── */
.match-grid {
  max-width: 860px; margin: 0 auto;
  padding: 0 24px 48px;
  display: flex; flex-direction: column; gap: 8px;
}
.match-card {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s;
}
.match-card:hover { border-color: rgba(240,180,41,.3); }
.match-card-inner {
  display: grid; grid-template-columns: 70px 1fr 80px;
  gap: 16px; align-items: center; padding: 18px 20px;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background .15s;
}
.match-card-inner:hover { background: rgba(255,255,255,.02); }
.match-time { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; }
.match-sport-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px;
}
.match-ctx {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.match-teams {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1.3;
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.team-vs { font-size: 11px; color: var(--muted); font-weight: 400; }
.team-dim { color: var(--muted); }
.match-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 2px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.match-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; text-align: right; display: block;
}
.match-pct-sub {
  font-size: 9px; color: var(--muted); text-align: right; display: block;
  text-transform: uppercase; letter-spacing: .05em; margin-top: 2px;
}
.match-analyse-cta {
  padding: 10px 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.analyse-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber); font-size: 12px; font-weight: 600;
  text-decoration: none; padding: 7px 14px;
  background: var(--amber-dim); border-radius: 8px;
  transition: background .15s;
}
.analyse-link:hover { background: rgba(240,180,41,.2); }
.prono-chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; border: 1px solid;
}
.prono-eleve { border-color: rgba(46,204,113,.4); color: #2ECC71; }
.prono-moyen { border-color: rgba(240,180,41,.4); color: var(--amber); }
.prono-faible { border-color: rgba(123,143,166,.4); color: var(--muted); }

/* ── Page analyse ── */
.analyse-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.analyse-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-bottom: 32px;
}
.analyse-breadcrumb a { color: var(--muted); text-decoration: none; }
.analyse-breadcrumb a:hover { color: var(--white); }
.analyse-sport-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.badge-tennis { background: rgba(46,134,193,.15); color: #5DADE2; }
.badge-foot { background: rgba(39,174,96,.15); color: #58D68D; }
.analyse-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4vw, 38px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px;
}
.analyse-meta {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.analyse-meta-item { font-size: 12px; color: var(--muted); }
.analyse-meta-item strong { color: var(--white); }

/* Indicateur de probabilité (signature) */
.proba-widget {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  margin-bottom: 32px;
}
.proba-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 20px;
}
.proba-teams {
  display: flex; justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; margin-bottom: 10px;
}
.proba-track {
  height: 10px; background: rgba(255,255,255,.06);
  border-radius: 5px; overflow: hidden; margin-bottom: 10px; position: relative;
}
.proba-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--amber) 0%, #F5C842 100%);
  width: 0%; transition: width 1.4s cubic-bezier(.4,0,.2,1);
}
.proba-pcts {
  display: flex; justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
}
.proba-pct-a { font-size: 28px; font-weight: 700; color: var(--amber); }
.proba-pct-b { font-size: 28px; font-weight: 700; color: var(--muted); text-align: right; }
.proba-src { font-size: 10px; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Grille cotes */
.cotes-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 32px;
}
.cote-card {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.cote-card.value-oui { border-color: rgba(46,204,113,.3); }
.cote-nom { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.cote-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 3px 0; }
.cote-row span:last-child { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--white); }
.value-badge {
  display: inline-block; margin-top: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: rgba(46,204,113,.15); color: #2ECC71;
}
.novalue-badge {
  display: inline-block; margin-top: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,.05); color: var(--muted);
}

/* Texte analyse */
.analyse-body {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
}
.analyse-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--amber);
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--amber-dim);
  margin-top: 28px;
}
.analyse-section-title:first-child { margin-top: 0; }
.analyse-body p {
  color: rgba(245,247,250,.85); font-size: 15px; line-height: 1.8; margin-bottom: 10px;
}
.prono-box {
  background: linear-gradient(135deg, rgba(230,57,70,.12) 0%, rgba(230,57,70,.05) 100%);
  border: 1px solid rgba(230,57,70,.3);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 24px;
}
.prono-box-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--red); margin-bottom: 10px;
}
.prono-box-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 12px;
}
.prono-confiance {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: 20px;
}
.conf-eleve { background: rgba(46,204,113,.15); color: #2ECC71; }
.conf-moyen { background: rgba(240,180,41,.15); color: var(--amber); }
.conf-faible { background: rgba(123,143,166,.15); color: var(--muted); }
.legal-disclaimer {
  font-size: 11px; color: var(--muted); font-style: italic; margin-top: 10px;
}

/* Navigation entre analyses */
.analyse-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px;
}
.analyse-nav-card {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  text-decoration: none; color: var(--white);
  transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; gap: 4px;
}
.analyse-nav-card:hover { border-color: rgba(240,180,41,.3); background: var(--night3); }
.nav-card-dir { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.nav-card-match { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; }
.analyse-nav-card.next { text-align: right; }

/* Premium page */
.premium-page { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.premium-hero { text-align: center; margin-bottom: 56px; }
.premium-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em;
}
.premium-hero p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.premium-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px;
}
.plan-card {
  background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.plan-card.featured { border-color: var(--amber); }
.plan-featured-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--amber); margin-bottom: 4px;
}
.plan-name { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
}
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.plan-cta {
  display: block; width: 100%; padding: 12px;
  border-radius: 9px; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 14px; cursor: pointer;
  text-align: center; text-decoration: none; transition: opacity .15s;
  border: none;
}
.plan-cta-main { background: var(--amber); color: var(--night); }
.plan-cta-outline { background: transparent; border: 1px solid var(--line); color: var(--white); }
.plan-cta:hover { opacity: .88; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px; text-align: center;
  max-width: 100%; background: var(--night);
}
.footer-ops { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-op {
  font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px;
  text-decoration: none; transition: color .15s, border-color .15s;
}
.footer-op:hover { color: var(--white); border-color: rgba(245,247,250,.2); }
.footer-legal { font-size: 11px; color: var(--muted); line-height: 1.7; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.footer-18 {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  font-weight: 700; color: var(--red); margin-bottom: 8px;
}

/* Mentions légales / confidentialité */
.legal-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.legal-page .sub { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin: 32px 0 10px; color: var(--amber); }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.8; color: rgba(245,247,250,.8); margin-bottom: 8px; }
.legal-page a { color: var(--amber); }

/* Utils */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.empty { text-align: center; color: var(--muted); padding: 48px 24px; font-size: 14px; }
@media (max-width: 600px) {
  .match-card-inner { grid-template-columns: 56px 1fr 60px; gap: 10px; padding: 14px 16px; }
  .cotes-grid { grid-template-columns: 1fr; }
  .premium-plans { grid-template-columns: 1fr; }
  .analyse-nav { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Barre catégories H/F */
.cat-bar {
  display:flex; gap:8px; padding:8px 24px 0;
  max-width:860px; margin:0 auto;
}
.cat-btn {
  padding:8px 18px; border-radius:20px;
  background:var(--night2); border:1px solid var(--line);
  color:var(--muted); font-size:12px; font-weight:600;
  cursor:pointer; transition:all .15s;
}
.cat-btn.on { background:var(--amber); color:var(--night); border-color:var(--amber); }
.cat-btn:hover { border-color:var(--amber); color:var(--white); }

/* Header tournoi */
.tournoi-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 4px 8px; margin-top:10px;
  border-bottom:1px solid var(--line);
}
.tournoi-name {
  font-family:'Space Grotesk',sans-serif;
  font-size:14px; font-weight:700; color:var(--amber);
  text-transform:uppercase; letter-spacing:.05em;
}
.tournoi-count { font-size:11px; color:var(--muted); }

/* ── Cotes marché (bloc analyse) ── */
.analyse-cotes {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0; padding: 12px 16px;
  background: var(--night2); border: 1px solid var(--line); border-radius: 12px;
}
.analyse-cotes .cote-lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-right: 4px;
}
.analyse-cotes .cote-item {
  font-size: 13px; color: var(--muted);
  padding: 4px 10px; background: var(--night); border-radius: 8px;
}
.analyse-cotes .cote-item strong { color: var(--amber); font-size: 15px; margin-left: 2px; }

/* ── Barre proba foot (3 segments) ── */
.proba-track-3 {
  display: flex; width: 100%; height: 14px; min-height: 14px;
  border-radius: 7px; overflow: hidden; background: var(--night3); margin: 8px 0 10px;
}
.proba-track-3 .proba-seg { height: 14px; min-height: 14px; align-self: stretch; }
.proba-track-3 .seg-a { background: var(--amber); }
.proba-track-3 .seg-n { background: var(--muted); }
.proba-track-3 .seg-b { background: #d85a30; }
.proba-pcts-3 {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px;
}
.proba-pcts-3 .ppct-a { color: var(--amber); }
.proba-pcts-3 .ppct-n { color: var(--muted); font-size: 13px; }
.proba-pcts-3 .ppct-b { color: #d85a30; }
