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

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bleu-fifa: #003DA5;
  --bleu-sombre: #00267A;
  --rouge-fifa: #DA291C;
  --or: #FAD200;
  --argent: #B0B8CC;

  --bg: #060C1A;
  --bg-card: #0E1828;
  --bg-card-hover: #172035;
  --bg-input: #0A1220;
  --bordure: #1E2E4A;

  --texte: #EEF2FF;
  --texte-dim: #7A88A8;
  --texte-sombre: #3A4A6A;

  --phase-group: #1565C0;
  --phase-r32:   #6A0DAD;
  --phase-r16:   #DA291C;
  --phase-qf:    #D06000;
  --phase-sf:    #8B7A00;
  --phase-third: #8B5E3C;
  --phase-final: #B8860B;

  --panel-w: 440px;
  --rayon: 12px;
  --rayon-sm: 6px;
  --trans: 0.22s ease;

  --header-h: 72px;
  --filtres-h: 112px;
}

/* ── Corps ───────────────────────────────────────────────────────────────── */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--texte);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, var(--bleu-sombre) 0%, var(--bleu-fifa) 60%, #0050CC 100%);
  border-bottom: 3px solid var(--rouge-fifa);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__trophee {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 8px rgba(250, 210, 0, 0.6));
}

.header__titre {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header__sous-titre {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.header__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--or);
  line-height: 1;
}

.stat__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.barre-progression {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.barre-progression__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--or), #FFEA50);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ── Filtres ─────────────────────────────────────────────────────────────── */
.filtres {
  background: rgba(10, 18, 32, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filtres__ligne {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filtres__label {
  font-size: 0.75rem;
  color: var(--texte-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
  white-space: nowrap;
}

.filtre-btn {
  padding: 6px 14px;
  border: 1px solid var(--bordure);
  background: transparent;
  color: var(--texte-dim);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}

.filtre-btn:hover {
  border-color: var(--bleu-fifa);
  color: var(--texte);
  background: rgba(0, 61, 165, 0.15);
}

.filtre-btn--actif {
  background: var(--bleu-fifa);
  border-color: var(--bleu-fifa);
  color: #fff;
  font-weight: 600;
}

.filtre-btn--actif:hover {
  background: #0050CC;
}

.filtre-btn--sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.filtre-btn--france {
  border-color: #003189;
  color: var(--texte-dim);
}

.filtre-btn--france[data-active="true"],
.filtre-btn--france.filtre-btn--actif {
  background: linear-gradient(135deg, #002395 40%, #ED2939);
  border-color: transparent;
  color: #fff;
}

.recherche {
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.recherche__input {
  width: 100%;
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--bordure);
  border-radius: 99px;
  color: var(--texte);
  font-size: 0.83rem;
  outline: none;
  transition: border-color var(--trans);
}

.recherche__input:focus {
  border-color: var(--bleu-fifa);
}

.recherche__input::placeholder {
  color: var(--texte-sombre);
}

/* ── Main ────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  padding: 24px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ── Chargement ──────────────────────────────────────────────────────────── */
.chargement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--texte-dim);
  padding: 80px 0;
  font-size: 1.1rem;
}

.chargement__icone {
  font-size: 2rem;
  animation: rebond 0.8s infinite alternate ease-in-out;
}

@keyframes rebond {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

.vide {
  text-align: center;
  color: var(--texte-dim);
  padding: 60px 0;
  font-size: 1rem;
}

/* ── Section phase ───────────────────────────────────────────────────────── */
.phase-section {
  margin-bottom: 40px;
}

.phase-titre {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--couleur-phase, var(--bleu-fifa));
  border-left: 4px solid var(--couleur-phase, var(--bleu-fifa));
  padding-left: 12px;
  margin-bottom: 16px;
}

/* ── Grille des matchs ───────────────────────────────────────────────────── */
.matchs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

/* ── Carte match ─────────────────────────────────────────────────────────── */
.carte-match {
  background: var(--bg-card);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--couleur-phase, var(--bleu-fifa));
  border-radius: var(--rayon);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  cursor: default;
}

.carte-match:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.carte-match--joue {
  border-left-color: var(--or);
}

.carte-match__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-phase {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.carte-match__numero {
  font-size: 0.72rem;
  color: var(--texte-sombre);
}

.carte-match__horodatage {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.carte-match__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texte);
  text-transform: capitalize;
}

.carte-match__heure {
  font-size: 1rem;
  font-weight: 800;
  color: var(--or);
}

.carte-match__lieu {
  font-size: 0.75rem;
  color: var(--texte-dim);
}

/* ── Terrain (équipes + score) ───────────────────────────────────────────── */
.carte-match__terrain {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--rayon-sm);
}

.equipe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.equipe--exterieur {
  align-items: center;
}

.equipe__drapeau {
  font-size: 1.6rem;
  line-height: 1;
}

.equipe__nom {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--texte);
  line-height: 1.2;
  max-width: 100px;
  text-align: center;
}

.score-zone {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--texte);
  min-width: 28px;
  text-align: center;
}

.score-separateur {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--texte-dim);
}

/* Coloration selon résultat */
.domicile-gagne .equipe--domicile .equipe__nom,
.domicile-gagne .equipe--domicile .equipe__drapeau {
  filter: drop-shadow(0 0 6px rgba(250, 210, 0, 0.5));
}

.domicile-gagne .score-zone .score:first-child {
  color: var(--or);
}

.exterieur-gagne .equipe--exterieur .equipe__nom,
.exterieur-gagne .equipe--exterieur .equipe__drapeau {
  filter: drop-shadow(0 0 6px rgba(250, 210, 0, 0.5));
}

.exterieur-gagne .score-zone .score:last-child {
  color: var(--or);
}

/* ── Vainqueur prolongations (carte) ─────────────────────────────────────── */
.carte-match__vainqueur {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--or);
  padding: 2px 0;
}

/* ── Bouton modifier ─────────────────────────────────────────────────────── */
.btn-modifier {
  align-self: flex-end;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  color: var(--texte-dim);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--trans);
}

.btn-modifier:hover {
  background: var(--bleu-fifa);
  border-color: var(--bleu-fifa);
  color: #fff;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Panneau latéral ─────────────────────────────────────────────────────── */
.panneau {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-w);
  max-width: 100vw;
  height: 100vh;
  background: #0C1628;
  border-left: 1px solid var(--bordure);
  z-index: 300;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.25s ease;
  overflow: hidden;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.panneau.hidden {
  display: none;
}

.panneau__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--bleu-sombre), var(--bleu-fifa));
  border-bottom: 2px solid var(--rouge-fifa);
  flex-shrink: 0;
}

.panneau__titre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.panneau__fermer {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}

.panneau__fermer:hover {
  background: var(--rouge-fifa);
}

.panneau__corps {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--bordure) transparent;
}

/* ── Panneau — méta ──────────────────────────────────────────────────────── */
.panneau-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--rayon-sm);
  border-left: 3px solid var(--bleu-fifa);
}

.panneau-meta span {
  font-size: 0.82rem;
  color: var(--texte-dim);
}

/* ── Panneau — équipes ───────────────────────────────────────────────────── */
.panneau-equipes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panneau-vs {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--texte-sombre);
}

.equipe-panneau {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
}

.equipe-panneau__drapeau {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.equipe-panneau strong {
  font-size: 0.9rem;
  color: var(--texte);
}

.equipe-panneau--ebauche {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.equipe-panneau__label {
  font-size: 0.72rem;
  color: var(--texte-dim);
}

.equipe-panneau__saisie {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-equipe {
  flex: 1;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  color: var(--texte);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--trans);
}

.input-equipe:focus {
  border-color: var(--bleu-fifa);
}

/* ── Panneau — score ─────────────────────────────────────────────────────── */
.panneau-score {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label-champ {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-dim);
}

.saisie-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.input-score {
  width: 72px;
  height: 64px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  background: var(--bg-input);
  border: 2px solid var(--bordure);
  border-radius: var(--rayon);
  color: var(--texte);
  outline: none;
  transition: border-color var(--trans);
  -moz-appearance: textfield;
}

.input-score::-webkit-outer-spin-button,
.input-score::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.input-score:focus {
  border-color: var(--bleu-fifa);
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.25);
}

.score-separateur-panneau {
  font-size: 2rem;
  font-weight: 900;
  color: var(--texte-dim);
}

/* ── Panneau — vainqueur prolongations ───────────────────────────────────── */
.champ-vainqueur {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-groupe {
  display: flex;
  gap: 8px;
}

.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--bordure);
  border-radius: var(--rayon-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--trans);
}

.radio-option input[type="radio"] {
  accent-color: var(--or);
}

.radio-option:has(input:checked),
.radio-option--actif {
  border-color: var(--or);
  background: rgba(250, 210, 0, 0.1);
  color: var(--or);
}

/* ── Panneau — actions ───────────────────────────────────────────────────── */
.panneau-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.btn-action {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--rayon-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}

.btn-action--primaire {
  background: var(--bleu-fifa);
  color: #fff;
}

.btn-action--primaire:hover {
  background: #0050CC;
  box-shadow: 0 4px 16px rgba(0, 61, 165, 0.4);
}

.btn-action--danger {
  background: rgba(218, 41, 28, 0.15);
  border: 1px solid var(--rouge-fifa);
  color: #FF5C52;
}

.btn-action--danger:hover {
  background: var(--rouge-fifa);
  color: #fff;
}

/* ── Utilitaires ─────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.texte-dim {
  color: var(--texte-dim);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header__inner {
    padding: 10px 16px;
  }

  .header__titre {
    font-size: 1rem;
  }

  .main {
    padding: 16px;
  }

  .matchs-grille {
    grid-template-columns: 1fr;
  }

  .filtres {
    padding: 8px 16px;
  }

  :root {
    --panel-w: 100vw;
  }
}

/* ── Onglets de navigation ───────────────────────────────────────────────── */
.onglets-nav {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  background: var(--bg);
  border-bottom: 2px solid var(--bordure);
}

.onglet-btn {
  padding: 10px 22px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--texte-dim);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-bottom: -2px;
}

.onglet-btn:hover {
  color: var(--texte);
  background: var(--bg-card);
}

.onglet-btn--actif {
  color: var(--or);
  border-bottom-color: var(--or);
  background: var(--bg-card);
}

/* ── Classements ─────────────────────────────────────────────────────────── */
.classements {
  padding: 24px;
}

.classements-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.classement-groupe {
  background: var(--bg-card);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  overflow: hidden;
}

.classement-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bleu-fifa);
  color: #fff;
}

.classement-entete__titre {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.classement-entete__droite {
  display: flex;
  align-items: center;
  gap: 8px;
}

.classement-avancement {
  font-size: 0.8rem;
  opacity: 0.85;
}

.badge-complet {
  font-size: 0.75rem;
  background: #1a7a2e;
  color: #a8f0b8;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.classement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.classement-table thead th {
  padding: 6px 8px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  color: var(--texte-dim);
  font-weight: 600;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--bordure);
}

.classement-table thead th.col-equipe {
  text-align: left;
}

.classement-table tbody td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.1s;
}

.classement-table tbody tr:last-child td {
  border-bottom: none;
}

.classement-table td.col-equipe {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.classement-table td.col-rang {
  color: var(--texte-dim);
  font-weight: 700;
  width: 24px;
}

.classement-table td.col-drapeau {
  font-size: 1.1rem;
  width: 28px;
}

.classement-table td.col-pts {
  font-weight: 700;
  color: var(--or);
}

.classement-table td.col-diff {
  font-weight: 600;
}

.classement-table td.col-statut {
  width: 28px;
  font-size: 0.9rem;
}

/* Lignes de statut */
.ligne-qualifie {
  background: rgba(26, 122, 46, 0.18);
  border-left: 3px solid #27ae60;
}

.ligne-qualifie-prov {
  background: rgba(26, 122, 46, 0.08);
  border-left: 3px solid rgba(39, 174, 96, 0.45);
}

.ligne-tier-qualifie {
  background: rgba(250, 210, 0, 0.1);
  border-left: 3px solid var(--or);
}

.ligne-elimine {
  background: rgba(218, 41, 28, 0.08);
  border-left: 3px solid rgba(218, 41, 28, 0.35);
  opacity: 0.75;
}

/* Légende */
.classements-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 4px;
  font-size: 0.82rem;
  color: var(--texte-dim);
}

.legende-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legende-couleur {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border-left: 3px solid transparent;
  flex-shrink: 0;
}

.legende-q  { background: rgba(26,122,46,0.18);  border-left-color: #27ae60; }
.legende-t  { background: rgba(250,210,0,0.1);   border-left-color: var(--or); }
.legende-e  { background: rgba(218,41,28,0.08);  border-left-color: rgba(218,41,28,0.35); }

/* Responsive classements */
@media (max-width: 600px) {
  .classements {
    padding: 12px;
  }
  .classements-grille {
    grid-template-columns: 1fr;
  }
  .onglets-nav {
    padding: 8px 12px 0;
  }
}

/* ── Carte ───────────────────────────────────────────────────────────────── */
.carte {
  display: flex;
  flex-direction: row;
  height: calc(100dvh - 120px);
  min-height: 480px;
  overflow: hidden;
}

#carte-leaflet {
  flex: 1;
  min-width: 0;
}

/* Panneau latéral — desktop */
.carte-panneau {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--bordure);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.25s ease;
}

.carte-panneau__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  color: var(--texte-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.carte-panneau__placeholder span {
  font-size: 2.5rem;
  opacity: 0.4;
}

.carte-panneau__placeholder p {
  line-height: 1.5;
  opacity: 0.6;
}

/* En-tête du panneau — stade sélectionné */
.carte-panneau__entete {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bordure);
  background: var(--bleu-fifa);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.carte-panneau__entete-texte {
  flex: 1;
  min-width: 0;
}

.carte-panneau__stade {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carte-panneau__ville {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.carte-panneau__nb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.carte-panneau__fermer {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  margin-top: 2px;
  display: none;
}

.carte-panneau__fermer:hover {
  color: #fff;
}

/* Liste des matchs dans le panneau */
.panneau-matchs-liste {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
  margin: 0;
}

.panneau-match-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.1s;
}

.panneau-match-item:last-child {
  border-bottom: none;
}

.panneau-match-item:hover {
  background: rgba(255,255,255,0.04);
}

.panneau-match__date {
  color: var(--texte-dim);
  font-size: 0.73rem;
}

.panneau-match__equipes {
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--texte);
}

.panneau-match__score {
  font-weight: 700;
  color: var(--or);
}

.panneau-match__phase {
  font-size: 0.71rem;
  color: var(--texte-dim);
  opacity: 0.75;
}

/* Marqueur cercle SVG */
.marqueur-stade {
  background: transparent;
  border: none;
  cursor: pointer;
}

.marqueur-stade--actif svg circle {
  stroke: var(--or);
  stroke-width: 4;
}

/* ── Tablette (700–1100px) : panneau plus étroit ── */
@media (max-width: 1100px) and (min-width: 701px) {
  .carte-panneau {
    width: 260px;
  }

  .panneau-match-item {
    padding: 8px 12px;
  }
}

/* ── Mobile (≤ 700px) : carte plein écran + bottom sheet ── */
@media (max-width: 700px) {
  .carte {
    flex-direction: column;
    height: calc(100dvh - 108px);
    min-height: 0;
  }

  #carte-leaflet {
    flex: 1;
    min-height: 0;
  }

  .carte-panneau {
    width: 100%;
    flex-shrink: 0;
    border-left: none;
    border-top: 2px solid var(--bordure);
    max-height: 52px;
    overflow: hidden;
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
  }

  .carte-panneau:not(.carte-panneau--vide) {
    max-height: 60dvh;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    overflow-y: auto;
  }

  .carte-panneau__placeholder {
    flex-direction: row;
    justify-content: center;
    padding: 0 16px;
    height: 52px;
    gap: 8px;
    flex: none;
  }

  .carte-panneau__placeholder span {
    font-size: 1.2rem;
  }

  .carte-panneau__placeholder p {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carte-panneau__fermer {
    display: block;
  }

  .panneau-match-item {
    padding: 8px 14px;
  }

  .panneau-match__equipes {
    font-size: 0.82rem;
  }
}
