/* WiniScore — charte « sable doux » de l'application. Chargée APRÈS styles.css.
   Partie 1 : base éditoriale (typos, cartes, détails). Partie 2 : couleurs sable doux. */

:root:root:root{
  --pitch-dark:#ffffff;            /* texte posé sur le vert (boutons, onglet actif) */
  --pitch-mid:#13774a;
  --turf:#0e5a36; --turf-dim:#13774a;
  --amber:#f2b33d; --red:#c4412f;
  --tint:20,32,26;
  --line:#e4dccb; --border-c:#e4dccb;
  --surface:#fffdf8; --surface-2:#fffdf8; --surface-hover:#efe7d6;
  --fg:#14201a; --fg-dim:#56625a; --bg-app:#f6f1e6;
  --sidebar-bg:#fffdf8;
  --turf-text:#0e5a36; --turf-dim-text:#13774a; --amber-text:#9a6406; --red-text:#c4412f;
  --card-bg:#fffdf8; --card-fg:#14201a; --card-dim:#56625a; --card-line:#e4dccb;
  --shadow:rgba(20,32,26,.16);
  color-scheme:light;
}

/* Typographies : Inter partout, Bricolage Grotesque pour les titres et les chiffres */
.app-shell *, .modal *, #toast{font-family:'Inter',sans-serif !important;}
.app-shell h1, .app-shell h2, .app-shell h3, .modal h2, .brand-name, .stat-num, .plan-price,
.score-line b, .live-score .sc, .accuracy-big .num, .spotlight-probs b, .result-title, .roster-info h2, .player-avatar{
  font-family:'Bricolage Grotesque',sans-serif !important;
}
h1, h2, h3{text-transform:none !important; font-weight:800 !important; letter-spacing:-.02em !important; line-height:1.08 !important;}
.section-head h1{font-size:clamp(28px,3.8vw,40px) !important;}
.card-block h3{font-size:16px !important;}
.result-title{font-size:clamp(22px,3vw,30px) !important;}

/* Petites étiquettes : capitales espacées, sans police « machine à écrire » */
.kicker, .subhead, .sr-group, .notif-group-title, .modal h4{font-size:12px !important; font-weight:700 !important; letter-spacing:.12em !important; text-transform:uppercase;}
.pill, .demo-badge, .conf-tag, .fixture .league, .fixture .time, .hist-mini .d, .hist-mini .l, .prob-label, .xg-label, .stat-label{letter-spacing:0;}

/* Fond, barre latérale, logo */
.app-shell{background:var(--bg-app) !important;}
.sidebar{border-right:1px solid var(--line);}
.brand-name{font-weight:800 !important; font-size:21px !important; letter-spacing:-.02em; color:var(--fg);}
.brand-name span{color:var(--turf) !important;}
.brand-mark{width:30px !important; height:30px !important; border-radius:9px !important; background:var(--turf) !important; display:grid; place-items:center;}
.brand-mark::after{content:""; width:11px; height:11px; border-radius:50%; background:var(--amber);}
.tab-btn{font-weight:500 !important;}
.tab-btn.active{font-weight:700 !important;}
#themeToggle{display:none;}

/* Cartes « papier » avec une ombre douce */
.card-block, .stat-card, .panel, .result-card, .tp-card, .plan-card, .live-card, .player-card, .accuracy-big, .credit-bar, .hist-item, .fixture{
  box-shadow:0 1px 0 rgba(20,32,26,.04), 0 12px 30px -24px rgba(20,32,26,.35);
}
.panel, .result-card{border-color:var(--line) !important;}
.plan-card.featured{background:#0f1d16 !important; color:#fff; border-color:#0f1d16 !important;}
.plan-card.featured .plan-name, .plan-card.featured .plan-price{color:#fff;}
.plan-card.featured .plan-price span{color:rgba(255,255,255,.7) !important;}
.plan-card.featured .plan-feats, .plan-card.featured .demo-note{color:rgba(255,255,255,.7) !important;}
.plan-card.featured .btn-primary{background:var(--amber); color:#14201a;}

/* Boutons */
.btn-primary:hover, .btn-analyze:hover{background:#13774a !important;}
.btn-link:hover{border-color:var(--turf) !important; color:var(--turf) !important;}
.chart-bar .bar{background:linear-gradient(180deg,#2f9a63,var(--turf)) !important;}
.prob-fill.b, .xg-fill{background:linear-gradient(90deg,#0e5a36,#2f9a63) !important;}
.prob-fill.a{background:linear-gradient(90deg,#d99a1e,#f2b33d) !important;}

/* Champs de saisie */
.search-wrap input, .field select, .league-select select, .roster-team-select select, .input-row input{background:#fffdf8 !important; border-color:var(--line) !important; color:var(--fg) !important;}
.fixture:hover{background:#f1ebdd !important; border-color:#cfe2d5 !important;}

/* Le match du jour garde sa photo de stade (texte clair) */
.spotlight{--turf-text:#4fe39a; --amber-text:#f2b33d; --card-dim:#d3dad5; --card-fg:#f6f4ec;}
.spotlight .btn-primary{background:var(--amber); color:#14201a;}
.plan-card.featured .plan-feats li::before{color:var(--amber) !important;}
@media (min-width:1100px){ .plans{grid-template-columns:repeat(4,1fr) !important; gap:14px !important;} }

/* ---- Couleurs « sable doux » ---- */
:root:root:root{
  --turf:#2f5e46; --turf-dim:#3d7257; --pitch-mid:#3d7257;
  --amber:#d1a04e; --red:#b5533f;
  --line:#d4cbb9; --border-c:#d4cbb9;
  --surface:#f1ece2; --surface-2:#f1ece2; --surface-hover:#e2dacb;
  --fg:#141c17; --fg-dim:#3d463f; --bg-app:#e7e1d5;
  --sidebar-bg:#eee8dd;
  --turf-text:#24503a; --turf-dim-text:#2f5e46; --amber-text:#6e4d1b; --red-text:#953f2d;
  --card-bg:#f1ece2; --card-fg:#141c17; --card-dim:#3d463f; --card-line:#d4cbb9;
  --shadow:rgba(40,50,44,.10);
}
.card-block, .stat-card, .panel, .result-card, .tp-card, .plan-card, .live-card, .player-card, .accuracy-big, .credit-bar, .hist-item, .fixture{
  box-shadow:0 8px 24px -22px rgba(40,50,44,.4) !important;
}
.search-wrap input, .field select, .league-select select, .roster-team-select select, .input-row input{background:#f4f0e8 !important;}
.fixture:hover{background:#e9e2d4 !important; border-color:#c9d6cb !important;}
.btn-primary:hover, .btn-analyze:hover{background:#3d7257 !important;}
.chart-bar .bar{background:linear-gradient(180deg,#5b8a70,var(--turf)) !important;}
.prob-fill.b, .xg-fill{background:linear-gradient(90deg,#2f5e46,#5b8a70) !important;}
.prob-fill.a{background:linear-gradient(90deg,#b9893a,#d1a04e) !important;}
.plan-card.featured{background:#26302a !important; border-color:#26302a !important;}
