:root {
  --fond: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --texte: #0f172a;
  --doux: #64748b;
  --bord: #e2e8f0;
  --accent: #059669;
  --accent-fort: #047857;
  --accent-doux: #d1fae5;
  --pos: #059669;
  --neg: #dc2626;
  --attention: #d97706;
  --direct: #e11d48;
  --alerte: #fff7e6;
  --entete-a: #064e3b;
  --entete-b: #0f172a;
  --ombre: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.04);
  --rayon: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0a0f1a; --surface: #111827; --surface-2: #0f1623; --texte: #e5e7eb; --doux: #94a3b8; --bord: #1f2a3a;
    --accent: #34d399; --accent-fort: #6ee7b7; --accent-doux: #0f3a2c; --pos: #34d399; --neg: #f87171; --attention: #fbbf24;
    --direct: #fb7185; --alerte: #2a2312; --entete-a: #052e24; --entete-b: #0a0f1a; --ombre: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0a0f1a; --surface: #111827; --surface-2: #0f1623; --texte: #e5e7eb; --doux: #94a3b8; --bord: #1f2a3a;
  --accent: #34d399; --accent-fort: #6ee7b7; --accent-doux: #0f3a2c; --pos: #34d399; --neg: #f87171; --attention: #fbbf24;
  --direct: #fb7185; --alerte: #2a2312; --entete-a: #052e24; --entete-b: #0a0f1a; --ombre: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1;
}
h1 { font-size: 1.35rem; margin: 0; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .8rem; margin: 1rem 0 .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
button { font-family: inherit; }

/* ---------- En-tête ---------- */
.entete {
  background: linear-gradient(120deg, var(--entete-a), var(--entete-b));
  color: #fff; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.entete-int { max-width: 1200px; margin: 0 auto; padding: 14px 24px 6px; }
.marque { display: flex; align-items: center; gap: 12px; }
.logo { width: 34px; height: 34px; color: #6ee7b7; flex: none; }
.sous-titre { margin: 2px 0 0; color: rgba(255,255,255,.65); font-size: .8rem; }
.onglets {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 24px 10px; max-width: 1200px; margin: 0 auto;
  scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
/* Sur ordinateur, les onglets passent sur deux lignes s'il le faut : ils restent tous visibles */
@media (min-width: 721px) { .onglets { flex-wrap: wrap; overflow: visible; row-gap: 6px; } }
.onglets button {
  border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600;
  padding: 7px 14px; cursor: pointer; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s;
}
.onglets button:hover { background: rgba(255,255,255,.08); color: #fff; }
.onglets button[aria-selected="true"] { background: #fff; color: var(--entete-a); }

main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 90px; }

/* ---------- Cartes ---------- */
.carte {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--ombre);
}
.carte.alerte { background: var(--alerte); }
.carte-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */
.filtre-ligne { margin-bottom: 14px; }
.filtre-ligne:last-child { margin-bottom: 0; }
.filtre-ligne.en-ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtre-titre { font-weight: 700; font-size: .75rem; margin-bottom: 8px; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--doux); font-weight: 600; }
label.petit { flex-direction: row; align-items: center; gap: 8px; }
select, input {
  font: inherit; font-size: .9rem; color: var(--texte); background: var(--surface-2); border: 1px solid var(--bord);
  border-radius: 9px; padding: 7px 10px; min-width: 0; max-width: 100%;
}
select:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="number"] { width: 110px; }
/* Barres de recherche assez larges pour lire tout le texte d'aide */
input[type="search"] { width: 360px; max-width: 100%; }
/* Recherche + filtre dans un en-tête de carte (Administration) : se partagent la largeur, passent à la ligne sur téléphone */
.carte-entete .filtre-ligne.en-ligne { flex: 1 1 320px; justify-content: flex-end; min-width: 0; }
.carte-entete input[type="search"] { flex: 1 1 200px; width: auto; min-width: 0; }
.compteur { color: var(--doux); font-size: .85rem; margin-left: auto; padding-bottom: 6px; }

.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce {
  border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  border-radius: 999px; padding: 5px 12px; font-size: .83rem; cursor: pointer; transition: all .12s;
}
.puce:hover { border-color: var(--accent); }
.puce[aria-pressed="true"] { background: var(--accent-doux); border-color: var(--accent); color: var(--accent-fort); font-weight: 600; }
.puce small { color: var(--doux); font-weight: 500; margin-left: 4px; }
.groupe-puces { width: 100%; margin-bottom: 10px; }
.groupe-puces .filtre-titre { margin-bottom: 6px; }

.lien { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: .8rem; padding: 0; font-weight: 600; }
.lien:hover { text-decoration: underline; }
.bouton {
  border: 1px solid var(--accent); background: var(--accent-doux); color: var(--accent-fort);
  border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.bouton:hover { background: var(--accent); color: #fff; }
.btn-icone {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--bord); background: var(--surface);
  color: var(--texte); font-size: 1.1rem; cursor: pointer; display: inline-grid; place-items: center; flex: none;
}
.btn-icone:hover { border-color: var(--accent); }
.btn-date, .btn-secondaire {
  height: 34px; border-radius: 9px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte);
  font-weight: 600; font-size: .85rem; padding: 0 12px; cursor: pointer;
}
.btn-date.actif { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Tableaux ---------- */
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--bord); white-space: nowrap; }
th { font-size: .7rem; color: var(--doux); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
th:first-child, td:first-child { text-align: left; }
tbody tr:hover td { background: var(--surface-2); }
tr.groupe td { background: var(--surface-2); font-weight: 700; font-size: .7rem; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }
td.pos, .pos { color: var(--pos); font-weight: 700; }
td.neg, .neg { color: var(--neg); }
.vide { color: var(--doux); }
.gain { font-size: .78em; font-weight: 600; opacity: .85; white-space: nowrap; }

.barre { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.barre i { display: inline-block; width: 90px; height: 6px; border-radius: 4px; background: var(--bord); overflow: hidden; }
.barre i b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.carte-chaleur td.c { text-align: center; font-weight: 600; }

.note { color: var(--doux); font-size: .8rem; margin: 12px 0 0; }
.avertissement { color: var(--doux); font-size: .78rem; text-align: center; margin-top: 28px; }
.attention { color: var(--attention); font-size: .8rem; }

.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grille2 > * { min-width: 0; }
.forme { display: inline-flex; gap: 3px; vertical-align: middle; }
.forme span { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; }
.forme .V { background: #10b981; } .forme .N { background: #94a3b8; } .forme .D { background: #ef4444; }
.liste-matchs { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.liste-matchs li { padding: 6px 0; border-bottom: 1px solid var(--bord); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.liste-matchs li:last-child { border-bottom: 0; }
.liste-matchs .date { color: var(--doux); font-size: .75rem; min-width: 74px; }
.liste-matchs .compet { color: var(--doux); font-size: .72rem; }

/* ---------- Matchs du jour ---------- */
.barre-jour { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nav-date { display: flex; gap: 6px; align-items: center; }
.nav-date input { height: 34px; }
.outils-jour { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.outils-jour input[type="search"] { height: 34px; flex: 1 1 340px; }
.outils-jour { flex: 1 1 560px; justify-content: flex-end; }
.interrupteur { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; font-size: .82rem; color: var(--texte); cursor: pointer; }
.puces-cat { margin-bottom: 14px; }

.groupe-compet { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 14px; overflow: hidden; box-shadow: var(--ombre); }
.groupe-compet > header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--bord); }
.groupe-compet > header img { width: 22px; height: 22px; object-fit: contain; }
.groupe-compet > header b { font-size: .9rem; }
.groupe-compet > header small { color: var(--doux); font-size: .75rem; margin-left: auto; }

.ligne-match {
  display: grid; grid-template-columns: 64px 1fr auto 18px; gap: 14px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--bord); cursor: pointer; width: 100%;
  background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; text-align: left; font: inherit;
}
.ligne-match:last-child { border-bottom: 0; }
.ligne-match:hover { background: var(--surface-2); }
.ligne-match:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.heure { font-size: .82rem; font-weight: 700; color: var(--doux); text-align: center; }
.heure.direct { color: var(--direct); }
.heure.direct::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--direct); margin-right: 4px; vertical-align: middle; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.heure.fini { font-weight: 600; font-size: .75rem; }
.equipes { display: grid; gap: 4px; min-width: 0; }
.equipe { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: .92rem; }
.equipe img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.equipe .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipe .score { margin-left: auto; font-weight: 800; min-width: 18px; text-align: right; }
.equipe.gagnant .nom { font-weight: 800; }
.cotes-ligne { display: flex; gap: 6px; }
.cote-puce { min-width: 50px; text-align: center; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 8px; padding: 3px 6px; }
.cote-puce small { display: block; font-size: .62rem; color: var(--doux); font-weight: 700; }
.cote-puce b { font-size: .85rem; }
.chevron { color: var(--doux); font-size: 1.2rem; }

.chargement { padding: 40px; text-align: center; color: var(--doux); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--bord); border-top-color: var(--accent); border-radius: 50%; animation: tourne .8s linear infinite; margin: 0 auto 10px; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Fenêtres ---------- */
.fenetre {
  border: 0; padding: 0; border-radius: 18px; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  background: var(--fond); color: var(--texte); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.fenetre-petite { width: min(720px, calc(100vw - 32px)); }
.fenetre::backdrop { background: rgba(2,6,23,.6); backdrop-filter: blur(3px); }
.fenetre-entete { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--bord); }
.fenetre-entete h2 { margin: 0; }
.fenetre > div:not(.fenetre-entete) { padding: 18px; }
.etiquette { font-size: .78rem; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }

.affiche { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; margin-bottom: 16px; }
.affiche img { width: 56px; height: 56px; object-fit: contain; }
.affiche .nom-grand { font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.affiche .centre { font-size: .85rem; color: var(--doux); }
.affiche .centre b { display: block; font-size: 1.6rem; color: var(--texte); }

.suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.suggestion {
  border-radius: var(--rayon); padding: 14px 16px; background: var(--surface); border: 1px solid var(--bord); position: relative;
}
.suggestion.principale { border: 2px solid var(--accent); background: linear-gradient(160deg, var(--accent-doux), var(--surface) 70%); }
.suggestion .type { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-fort); }
.suggestion .pari { font-size: 1.05rem; font-weight: 800; margin: 4px 0 2px; }
.suggestion .proba { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.suggestion .details { font-size: .78rem; color: var(--doux); display: flex; gap: 10px; flex-wrap: wrap; }
.suggestion .raison { font-size: .78rem; margin-top: 8px; color: var(--texte); }
.suggestion .bouton { position: absolute; top: 12px; right: 12px; }
.confiance { display: inline-block; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.confiance.elevee { background: #d1fae5; color: #065f46; }
.confiance.moyenne { background: #fef3c7; color: #92400e; }
.confiance.faible { background: #fee2e2; color: #991b1b; }

.equipe-carte .tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.equipe-carte .tete img { width: 28px; height: 28px; object-fit: contain; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.chiffres div { background: var(--surface-2); border-radius: 10px; padding: 8px; text-align: center; }
.chiffres small { display: block; font-size: .66rem; color: var(--doux); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.chiffres b { font-size: 1.05rem; }

/* ---------- Connexion / inscription ---------- */
.non-connecte .entete, .non-connecte main, .non-connecte .bouton-ticket { display: none !important; }
body:not(.non-connecte) .ecran-auth { display: none; }
/* Page en deux parties : formulaire à gauche, photo à droite */
.ecran-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1fr) 1.3fr; background: var(--surface); }
.auth-cote-form { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px); min-height: 100vh; }
.auth-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-marque-ligne { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--texte); }
.auth-marque-ligne .logo { width: 32px; height: 32px; color: var(--accent); }
.auth-boite { width: min(400px, 100%); margin: auto; padding: 36px 0; }
.auth-titre { font-size: 2rem; letter-spacing: -.03em; margin: 0; }
.auth-sous-titre { color: var(--doux); margin: 6px 0 26px; font-size: .95rem; }
.auth-mention { color: var(--doux); font-size: .75rem; text-align: center; margin: 0; }
.auth-cote-image {
  position: relative; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); color: #fff; overflow: hidden;
  background: #04101d url('../images/fond-connexion.webp') 62% center / cover no-repeat;
}
.auth-cote-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,12,24,.05) 0%, rgba(4,12,24,.35) 45%, rgba(4,12,24,.92) 100%),
              linear-gradient(90deg, rgba(4,12,24,.55) 0%, transparent 30%);
}
.auth-image-texte { position: relative; max-width: 560px; }
.auth-image-texte h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
@media (max-width: 860px) {
  .ecran-auth { grid-template-columns: 1fr; }
  .auth-cote-image { order: -1; min-height: 230px; padding: 22px 18px; background-position: 60% 40%; }
  .auth-image-texte h2 { font-size: 1.35rem; }
  .auth-cote-form { min-height: auto; padding: 22px 18px 28px; }
  .auth-boite { padding: 24px 0; }
  .auth-titre { font-size: 1.6rem; }
}
.auth-onglets { display: flex; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.auth-onglets button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 700; font-size: .88rem; color: var(--doux); cursor: pointer; }
.auth-onglets button[aria-pressed="true"] { background: var(--surface); color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { color: var(--texte); }
.auth-form input { width: 100%; height: 42px; font-size: .95rem; }
.auth-form small { font-weight: 500; color: var(--doux); }
.auth-form .btn-principal { height: 44px; font-size: .95rem; margin-top: 4px; }
.auth-form .note { margin: 0; text-align: center; }
.auth-message { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; margin: 0 0 14px; }
.auth-message.ok { background: var(--accent-doux); color: var(--accent-fort); }

/* ---------- Bouton mode clair / sombre ---------- */
.bascule-theme {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s;
}
.bascule-theme:hover { transform: rotate(-15deg); border-color: var(--accent); }
.bascule-theme svg { width: 19px; height: 19px; grid-area: 1 / 1; }
/* Icône de la lune en mode clair (pour passer en sombre), du soleil en mode sombre */
.bascule-theme .icone-soleil { display: none; }
:root[data-theme="dark"] .bascule-theme .icone-soleil { display: block; color: #fbbf24; }
:root[data-theme="dark"] .bascule-theme .icone-lune { display: none; }
.entete .bascule-theme { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.entete-droite { display: flex; align-items: center; gap: 10px; }
/* En mode sombre, le vert est plus clair : texte foncé sur les boutons pour rester lisible */
:root[data-theme="dark"] .btn-principal, :root[data-theme="dark"] .bouton-ticket,
:root[data-theme="dark"] .btn-date.actif { color: #04261c; }
:root[data-theme="dark"] .bouton-ticket span { background: #04261c; color: #6ee7b7; }
.transition-theme, .transition-theme * { transition: background-color .3s, color .3s, border-color .3s !important; }

/* ---------- Menu du compte ---------- */
.entete-int { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu-compte { position: relative; }
.menu-compte summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: .88rem; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-compte summary:hover { background: rgba(255,255,255,.18); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #6ee7b7; color: #064e3b; display: grid; place-items: center; font-weight: 800; }
.badge-admin { background: #f59e0b; color: #1f1300; font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.menu-deroulant {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--texte); border: 1px solid var(--bord);
  border-radius: 12px; padding: 12px; width: 250px; display: grid; gap: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.3); z-index: 60;
}
.onglets .onglet-admin { color: #fcd34d; }

/* ---------- Administration ---------- */
.btn-mini { border: 1px solid var(--bord); background: var(--surface); color: var(--texte); border-radius: 7px; padding: 3px 8px; font-size: .74rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-mini:hover { border-color: var(--accent); }
.btn-mini-ok { border-color: var(--accent); color: var(--accent-fort); background: var(--accent-doux); }
.btn-mini-danger { color: var(--neg); }
.btn-mini-danger:hover { border-color: var(--neg); }
.actions-admin { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.table-admin td { white-space: normal; vertical-align: top; }
.table-admin td:last-child { min-width: 230px; }
.badge-u { font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge-u.actif { background: #d1fae5; color: #065f46; }
.badge-u.en_attente { background: #fef3c7; color: #92400e; }
.badge-u.bloque { background: #fee2e2; color: #991b1b; }
.point-en-ligne { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; vertical-align: middle; }
.ligne-reglage { margin: 10px 0; align-items: flex-start; }
.ligne-reglage input { margin-top: 3px; }
.message-admin { position: relative; padding-right: 54px; }
.message-admin .btn-icone { position: absolute; top: 12px; right: 12px; }
.message-admin.ok { border-color: var(--accent); }
.message-admin.erreur { border-color: var(--neg); color: var(--neg); }
.mdp-provisoire { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mdp-provisoire code { font-size: 1.2rem; padding: 6px 12px; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 8px; letter-spacing: .06em; }
.carte-attente { border-color: var(--attention); }
tr.surligne-doux td { background: var(--surface-2); }
strong.attention { font-size: inherit; }
.journal-texte { flex: 1; text-align: left; }
.type-journal { font-size: .66rem; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--doux); margin-right: 4px; }
.type-journal.admin { color: #b45309; }
.type-journal.inscription { color: var(--accent-fort); }

/* ---------- Favoris ---------- */
.etoile { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--doux); padding: 2px 4px; border-radius: 6px; }
.etoile:hover { color: #f59e0b; }
.etoile[aria-pressed="true"] { color: #f59e0b; }
.mini-etoile { color: #f59e0b; margin-right: 4px; }
.groupe-favori { border-color: #f59e0b; }
.groupe-favori > header { background: linear-gradient(90deg, rgba(245,158,11,.15), transparent); }

/* ---------- Analyse enrichie ---------- */
.rang { font-size: .78rem; color: var(--doux); font-weight: 600; margin-top: 2px; }
.scores-exacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.scores-exacts div { background: var(--surface-2); border: 1px solid var(--bord); border-radius: 10px; padding: 8px 10px; text-align: center; }
.scores-exacts div.premier { border-color: var(--accent); background: var(--accent-doux); }
.scores-exacts b { display: block; font-size: 1.2rem; }
.scores-exacts small { color: var(--doux); font-size: .72rem; }
.bandeau-info { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--accent); font-size: .84rem; }
.spinner.petit { width: 16px; height: 16px; border-width: 2px; margin: 0; flex: none; }
tr.surligne td { background: var(--accent-doux) !important; font-weight: 700; }
table.classement td, table.classement th { padding: 5px 8px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.tete-compo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tete-compo img, .equipe-mini img { width: 22px; height: 22px; object-fit: contain; }
.equipe-mini { display: inline-flex; align-items: center; gap: 8px; }

.ligne-choix { display: flex; gap: 8px; flex-wrap: wrap; }
.ligne-choix select { flex: 1 1 260px; height: 36px; }
.tableau-paris .col-ajout { width: 36px; padding-right: 0; }
.bouton-plus { width: 28px; height: 28px; padding: 0; font-size: 1.05rem; line-height: 1; border-radius: 8px; }
.bouton-plus:disabled { opacity: .7; cursor: default; }

.lignes-selection { display: grid; gap: 10px; margin-bottom: 12px; }
.ligne-selection { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px; border: 1px solid var(--bord); border-radius: 10px; background: var(--surface-2); }
.ligne-selection .champ-large { flex: 1 1 220px; }
.ligne-selection .champ-large select, .ligne-selection .champ-large input { width: 100%; }
.num-sel { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; align-self: center; }
.total-form { background: var(--surface-2); border: 1px solid var(--bord); border-radius: 10px; padding: 6px 12px; }
.total-form small { display: block; color: var(--doux); font-size: .72rem; font-weight: 600; }
.sel-texte { flex: 1; }
.choix-res { display: inline-flex; gap: 4px; flex: none; }
.mini-res { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; font-weight: 800; }
.mini-res.ok:hover { background: #10b981; color: #fff; border-color: #10b981; }
.mini-res.ko:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ---------- Ticket, suivi et bilan ---------- */
.ticket-mise { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.ticket-mise > div { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; }
.ticket-mise small { display: block; color: var(--doux); font-size: .72rem; font-weight: 600; }
.ticket-mise input { width: 120px; }
.actions-ticket { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-principal {
  height: 36px; border-radius: 9px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font-weight: 700; font-size: .85rem; padding: 0 14px; cursor: pointer;
}
.btn-principal:disabled { opacity: .6; cursor: wait; }
.btn-principal .info, .btn-secondaire .info { text-decoration-color: rgba(255,255,255,.5); }
.btn-secondaire { height: 36px; }
.btn-whatsapp { border-color: #25d366; color: #128c4a; }
.lien-danger { color: var(--neg) !important; }
.succes { background: var(--accent-doux); color: var(--accent-fort); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .85rem; margin: 0 0 12px; }
.vide-etat { text-align: center; color: var(--doux); }
.vide-etat h2 { color: var(--texte); }
.liste-paris { display: grid; gap: 10px; }
.pari-joue { border: 1px solid var(--bord); border-left: 4px solid var(--doux); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.pari-joue.statut-gagne { border-left-color: var(--pos); }
.pari-joue.statut-perdu { border-left-color: var(--neg); }
.pari-joue.statut-attente { border-left-color: var(--attention); }
.pari-joue ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.pari-joue li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.pari-tete, .pari-pied { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .84rem; }
.actions-pari { font-size: .8rem; }
.badge-statut { font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge-statut.gagne { background: #d1fae5; color: #065f46; }
.badge-statut.perdu { background: #fee2e2; color: #991b1b; }
.badge-statut.attente { background: #fef3c7; color: #92400e; }
.badge-statut.annule { background: #e2e8f0; color: #334155; }
.res { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; color: #fff; }
.res.ok { background: #10b981; } .res.ko { background: #ef4444; } .res.nul { background: #94a3b8; } .res.att { background: transparent; }
.progression { height: 8px; border-radius: 99px; background: var(--bord); overflow: hidden; margin-top: 12px; }
.progression div { height: 100%; background: var(--accent); transition: width .3s; }
.actions-ligne { white-space: nowrap; }

/* ---------- Explications et infobulles ---------- */
.explication { margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--bord); border-left: 4px solid var(--accent); border-radius: 10px; font-size: .86rem; }
.explication p { margin: 0 0 8px; }
.explication ul { margin: 0 0 8px; padding-left: 20px; }
.explication li { margin-bottom: 4px; }
.explication .note { margin: 4px 0 0; }

.info { cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.bulle {
  position: fixed; z-index: 1000; max-width: 300px; padding: 10px 12px; border-radius: 10px;
  background: #0f172a; color: #f1f5f9; font-size: .8rem; font-weight: 500; line-height: 1.45;
  text-transform: none; letter-spacing: normal; text-align: left; white-space: normal;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none; margin: 0; border: 1px solid #334155;
}
.bulle::after {
  content: ""; position: absolute; left: var(--fleche, 50%); top: 100%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #0f172a;
}
.bulle.dessous::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #0f172a; }

/* ---------- Ticket ---------- */
.bouton-ticket {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; border: 0; border-radius: 999px; padding: 12px 18px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer; box-shadow: 0 8px 24px rgba(5,150,105,.4);
}
.bouton-ticket span { background: #fff; color: var(--accent-fort); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.ticket-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.ticket-total div { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; }
.ticket-total small { display: block; color: var(--doux); font-size: .72rem; font-weight: 600; }
.ticket-total strong { font-size: 1.2rem; }

@media (max-width: 720px) {
  .entete-int, .onglets, main { padding-left: 16px; padding-right: 16px; }
  .nom-compte { display: none; }
  .entete-int .sous-titre { display: none; }
  .grille2 { grid-template-columns: 1fr; }
  .barre i { width: 44px; }
  .compteur { margin-left: 0; }
  .outils-jour input[type="search"] { width: 100%; }
  .outils-jour { width: 100%; }
  .ligne-match { grid-template-columns: 50px 1fr 14px; gap: 10px; padding: 10px 12px; }
  .ligne-match .cotes-ligne { grid-column: 2 / 3; }
  .cote-puce { min-width: 44px; }
  .fenetre { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .fenetre > div:not(.fenetre-entete) { padding: 14px; }
  .affiche img { width: 40px; height: 40px; }
  .chiffres { grid-template-columns: repeat(3, 1fr); }
}
