/* ============================================================
   RCSA DASHBOARD 2026/27 — style.css
   Feuille de style complète, extraite de index.html
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette RCSA */
  --blue:        #003D9E;
  --blue-dark:   #002570;
  --blue-mid:    #0A4DB8;
  --blue-light:  #E8F0FD;
  --blue-ghost:  #F2F6FE;
  --accent:      #5B9FFF;
  --white:       #ffffff;
  --alsace-red:  #E1000F;

  /* Neutres */
  --gray-50:     #F8F9FB;
  --gray-100:    #ECEEF2;
  --gray-200:    #D8DCE6;
  --gray-400:    #9099AD;
  --gray-600:    #4B5468;
  --gray-900:    #0F1623;
  --surface:     #ffffff;

  /* Résultats */
  --win:         #15803d;
  --win-bg:      #DCFCE7;
  --draw:        #1d4ed8;
  --draw-bg:     #DBEAFE;
  --loss:        #dc2626;
  --loss-bg:     #FEE2E2;

  /* Alertes contrat */
  --alert-red:   #FEE2E2;
  --alert-red-t: #dc2626;
  --alert-org:   #FEF3C7;
  --alert-org-t: #92400e;
  --alert-grn:   #DCFCE7;
  --alert-grn-t: #15803d;

  /* Teintes de fond (tableaux carrière : colonnes Championnat / Coupe) */
  --tint-champ:  #e8f0fb;
  --tint-cont:   #e8f5e9;

  /* Layout */
  --sidebar-w:   280px;
  --topbar-h:    64px;
  --radius:      10px;
  --radius-lg:   14px;
}

/* ═══════════════════════════════════════════════════════════
   MODE SOMBRE
   Rebascule uniquement les tokens de surface/texte neutres.
   Les couleurs d'accent (bleu, badges, résultats V/N/D, alertes
   contrat) restent inchangées : ce sont de petits éléments
   autonomes (chips/pilules) qui restent lisibles sur fond sombre
   sans modification, et gardent leur identité visuelle.
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --white:       #141B2E;   /* Surfaces élevées : panels, cartes, modals */
  --surface:     #141B2E;
  --gray-50:     #0B0F1A;   /* Fond de page — le plus sombre */
  --gray-100:    #232B42;   /* Bordures / séparateurs / fonds hover */
  --gray-200:    #2E3752;   /* Bordures de champs de formulaire */
  --gray-400:    #7A84A0;   /* Texte tertiaire / placeholders */
  --gray-600:    #AEB6CC;   /* Texte secondaire */
  --gray-900:    #ECEFF7;   /* Texte principal (quasi blanc) */

  /* Teintes tableaux carrière — plus sombres et désaturées */
  --tint-champ:  #16233d;
  --tint-cont:   #142a1c;
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* Transition douce lors du changement de thème (clair/sombre) */
body, .panel, .topbar, .stat-card, .modal, .accueil-card,
.data-table th, .data-table td,
.field input, .field select, .field textarea {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Bouton de bascule de thème (sidebar) ── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 0;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}
.theme-toggle-btn .tt-icon { font-size: 13px; }

button {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

a { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  overflow: hidden;
}

/* Bande décorative verticale gauche */
.sidebar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.sidebar-logo {
  padding: 26px 22px 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 16px; /* ← espace entre l'écusson et le texte — augmenter si besoin */
}

.logo-emblem {
  width: 100px;  /* ← largeur écusson  (était 44px) — ajuster ici */
  height: 100px; /* ← hauteur écusson  (était 44px) — ajuster ici */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}
.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  flex: 1;
}

.logo-text .club {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; /* ← taille "RC STRASBOURG ALSACE" (était 15px) — ajuster ici */
  color: #fff;
  letter-spacing: 1.2px;
  line-height: 1.15;
}

.logo-text .saison {
  font-family: 'DM Mono', monospace;
  font-size: 13px; /* ← taille "SAISON 2026/27" (était 10px) — ajuster ici */
  color: rgba(255,255,255,0.4);
  margin-top: 4px; /* ← espace entre le nom et la saison — ajuster ici */
  letter-spacing: 0.5px;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 12px 0 8px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nav-group-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.28);
  padding: 14px 22px 5px;
}

/* Groupes dépliables */
.nav-group-label.collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding-right: 18px;
  user-select: none;
  transition: color 0.15s, font-size 0.15s;
  /* ── Replié par défaut : police x2 (18px au lieu de 9px) ── */
  font-size: 18px;
}
.nav-group-label.collapsible:hover {
  color: rgba(255,255,255,0.5);
}
/* ── Déplié : retour à la taille normale (9px) ── */
.nav-group-label.collapsible.open {
  font-size: 9px;
}
.nav-group-arrow {
  font-size: 8px;
  transition: transform 0.2s;
  opacity: 0.5;
  display: inline-block;
}
.nav-group-arrow.open {
  transform: rotate(90deg);
}

/* Conteneur des sous-items (replié par défaut) */
.nav-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.nav-group-items.open {
  max-height: 500px;
}

/* Sous-menus indentés */
.nav-subitem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 22px; /* ← même padding que nav-item */
  font-size: 13px;   /* ← même taille que nav-item */
  font-weight: 500;
  color: rgba(255,255,255,0.58); /* ← même couleur que nav-item */
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  user-select: none;
}
.nav-subitem:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}
.nav-subitem.active {
  color: #fff;
  background: rgba(91,159,255,0.13);
  border-left-color: var(--accent);
}
.nav-subicon {
  font-size: 28px; /* ← même taille que nav-icon */
  width: 36px;     /* ← même largeur que nav-icon */
  text-align: center;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.58);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  user-select: none;
}

.nav-item:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(91,159,255,0.13);
  border-left-color: var(--accent);
}

.nav-icon {
  font-size: 28px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.nav-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Footer sidebar */
.sidebar-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-footer .backup-btns {
  display: flex;
  gap: 6px;
}

.btn-backup {
  flex: 1;
  padding: 7px 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s;
}
.btn-backup:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}
.btn-backup.import { color: var(--accent); border-color: rgba(91,159,255,0.3); }
.btn-backup.export { color: #6ee7b7; border-color: rgba(110,231,183,0.3); }

.sidebar-footer .last-save {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
  font-family: 'DM Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  /* Touche de bleu roi, en écho au dégradé de la page d'accueil —
     garde le même point de départ que la sidebar (--blue-dark) pour
     un fil conducteur visuel cohérent dans tout le site. */
  background: linear-gradient(100deg, var(--blue-dark) 0%, #001A4D 100%);
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left .page-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.topbar-left .page-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 1px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Boutons & badges à l'intérieur des topbars ──
   Adaptés pour rester lisibles sur le fond bleu roi, sans toucher
   aux styles .btn / .badge globaux utilisés partout ailleurs (panels
   blancs, tableaux…). */
.topbar .btn-primary {
  background: var(--accent);
  color: #001A4D;
}
.topbar .btn-primary:hover { background: #7cb3ff; }

.topbar .btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.topbar .btn-secondary:hover { background: rgba(255,255,255,0.2); }

.topbar .btn-ghost {
  color: rgba(255,255,255,0.7);
}
.topbar .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.topbar .badge-blue   { background: rgba(255,255,255,0.16); color: #fff; }
.topbar .badge-purple { background: rgba(255,255,255,0.16); color: #e9d5ff; }
.topbar .badge-green  { background: rgba(255,255,255,0.16); color: #a7f3d0; }
.topbar .badge-red    { background: rgba(255,255,255,0.16); color: #fecaca; }
.topbar .badge-orange { background: rgba(255,255,255,0.16); color: #fde68a; }
.topbar .badge-gray   { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }

/* En-tête image du Tableau de bord — garde son propre habillage
   (image de bannière déjà stylée), on ne force pas le dégradé bleu
   derrière pour ne pas risquer un mauvais rendu avec l'image existante. */
#section-dashboard > .dashboard-header-image {
  background: var(--white);
}

/* En-tête image du Tableau de bord */
#section-dashboard > .dashboard-header-image {
  height: auto;
  min-height: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

#section-dashboard > .dashboard-header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contenu */
.content {
  padding: 28px 32px;
  flex: 1;
}

.vnd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .vnd-grid { grid-template-columns: 1fr; }
}

/* ── Calendrier façon "ticket" (Ligue 1 / Coupe de France) ── */
.calendrier-mois { margin-bottom: 4px; }
.calendrier-mois-header {
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
}

.calendrier-match-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 155px;
  background: #fff;
  border: 2px solid var(--alsace-red, #E1000F);
  border-radius: 10px;
  margin: 10px 16px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.35s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.calendrier-match-row:hover {
  /* Dégradé bleu ciel → bleu roi → bleu marine, de gauche à droite */
  background: linear-gradient(90deg, #6FB8F5 0%, var(--blue) 55%, #001233 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,37,112,0.3);
}

/* Talon du ticket (~1/6 à 1/5 de la largeur totale) */
.calendrier-stub {
  position: relative;
  flex: 0 0 18%;
  max-width: 157px;
  min-width: 111px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stub-date, .stub-logos {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.25s ease;
}
.stub-date { flex-direction: column; z-index: 1; }
.stub-date .cd-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 64px; opacity: 0.06; pointer-events: none; z-index: 0;
}
.stub-date .cd-jour {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  color: var(--gray-400);
}
.stub-date .cd-num {
  position: relative; z-index: 1;
  font-size: 35px; font-weight: 800; color: var(--gray-900); line-height: 1.15;
}
.stub-logos { gap: 9px; opacity: 0; z-index: 1; }
.stub-logos img { width: 40px; height: 40px; object-fit: contain; }
.stub-logos .stub-vs { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.65); }

.calendrier-match-row:hover .stub-date  { opacity: 0; }
.calendrier-match-row:hover .stub-logos { opacity: 1; }

/* Perforation façon ticket déchiré */
.calendrier-perforation {
  flex: 0 0 auto;
  width: 0;
  border-left: 2px dashed var(--gray-200);
  margin: 14px 0;
  transition: border-color 0.25s ease;
}
.calendrier-match-row:hover .calendrier-perforation {
  border-color: rgba(255,255,255,0.3);
}

.calendrier-body {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 24px;
  min-width: 0;
}
.calendrier-comp-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue); background: var(--blue-light);
  padding: 3px 12px; border-radius: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}
.calendrier-match-row:hover .calendrier-comp-badge {
  background: rgba(255,255,255,0.18); color: #fff;
}
.calendrier-badges-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.calendrier-stade {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-400);
  transition: color 0.25s ease;
}
.calendrier-match-row:hover .calendrier-stade { color: rgba(255,255,255,0.65); }
.calendrier-equipes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 528px;
}
.calendrier-equipe {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 18px;
  min-width: 0;
}
.calendrier-equipe .eq-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipe-dom { justify-self: end; }
.equipe-ext { justify-self: start; }
.calendrier-equipe .calendrier-logo {
  width: 35px; height: 35px; object-fit: contain; flex-shrink: 0;
}
.calendrier-score {
  font-size: 22px; font-weight: 800; min-width: 62px; text-align: center;
  justify-self: center;
}
.calendrier-vs {
  font-size: 14px; font-weight: 600; color: var(--gray-400);
  min-width: 62px; text-align: center;
  justify-self: center;
}
.calendrier-match-row:hover .calendrier-vs { color: rgba(255,255,255,0.7); }

.calendrier-action {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 22px 0 0;
}
.btn-match-center {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s ease;
}
.calendrier-match-row:hover .btn-match-center {
  background: #fff; color: var(--blue-dark); border-color: #fff;
}

@media (max-width: 640px) {
  .calendrier-stub { flex-basis: 82px; min-width: 82px; }
  .calendrier-action { display: none; }
  .calendrier-body { padding: 18px; }
}

/* ── Match Center — modale intermédiaire (Composition / Stats / Presse / Résumé) ── */
.match-center-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8,10,14,0.72);
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.match-center-overlay.open { display: flex; }
.match-center-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.mc-hero-domicile, .mc-hero-exterieur {
  position: relative;
  padding: 22px 24px 20px;
  text-align: center;
}
.mc-hero-domicile { background: #002570; color: #fff; }
.mc-hero-exterieur { background: #fff; color: #042C53; }
.mc-hero-exterieur::before, .mc-hero-exterieur::after {
  content: '';
  display: block;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48'%3E%3Cpolygon points='0,24 16,0 32,24 16,48' fill='%23A9D8FF'/%3E%3Cpolygon points='32,24 48,0 64,24 48,48' fill='%23003D9E'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 64px 48px;
  margin: -22px -24px 16px;
}
.mc-hero-exterieur::after { margin: 16px -24px -20px; }

.mc-close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 1;
}
.mc-hero-domicile .mc-close { background: rgba(255,255,255,0.14); color: #fff; }
.mc-hero-exterieur .mc-close { background: rgba(4,44,83,0.08); color: #042C53; }

.mc-badges-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.mc-comp-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 12px; border-radius: 20px;
}
.mc-hero-domicile .mc-comp-badge { background: rgba(255,255,255,0.16); color: #fff; }
.mc-hero-exterieur .mc-comp-badge { background: var(--blue-light); color: var(--blue); }
.mc-stade { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.mc-hero-domicile .mc-stade { color: rgba(255,255,255,0.65); }
.mc-hero-exterieur .mc-stade { color: var(--gray-400); }

.mc-equipes {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: 460px; margin: 0 auto;
}
.mc-equipe { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; min-width: 0; }
.mc-equipe-dom { justify-self: end; }
.mc-equipe-ext { justify-self: start; }
.mc-eq-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-logo { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.mc-score { font-size: 24px; font-weight: 800; }
.mc-date { position: relative; z-index: 1; margin-top: 10px; font-size: 12px; }
.mc-hero-domicile .mc-date { color: rgba(255,255,255,0.6); }
.mc-hero-exterieur .mc-date { color: var(--gray-400); }

.mc-tabs {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 10px;
  background: linear-gradient(180deg, #16241c 0%, #0a120d 100%);
  padding: 16px 20px 0;
  overflow-x: auto;
}
.mc-tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #2c5c4c 0%, #123326 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom: none;
  color: #cfe8df;
  cursor: pointer; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mc-tab-btn:hover:not(.active) { filter: brightness(1.25); }
.mc-tab-btn.active {
  background: linear-gradient(180deg, #3fae8c 0%, #175c46 100%);
  color: #fff;
}
.mc-content { padding: 22px 24px; min-height: 160px; }

.mc-action-empty { text-align: center; padding: 20px 12px; }
.mc-action-empty .es-icon { font-size: 26px; margin-bottom: 8px; }
.mc-action-empty .es-title { font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.mc-action-empty .es-sub { font-size: 13px; color: var(--gray-600); }

/* Sections (affichées/masquées via JS) */
.section { display: none; }
.section.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-green  { background: var(--win-bg);     color: var(--win); }
.badge-draw   { background: var(--draw-bg);    color: var(--draw); }
.badge-red    { background: var(--loss-bg);    color: var(--loss); }
.badge-gray   { background: var(--gray-100);   color: var(--gray-600); }
.db-buteurs-opt:hover { background: var(--gray-100); }
.db-buteurs-opt.active { color: var(--blue); font-weight: 600; }
.db-tdj-opt:hover, .db-mj-opt:hover { background: var(--gray-100); }
.db-tdj-opt.active, .db-mj-opt.active { color: var(--blue); font-weight: 600; }
.badge-orange { background: #FEF3C7;           color: #92400e; }
.badge-purple { background: #F3E8FF;           color: #6B21A8; }

/* Pills résultat V/N/D */
.rpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.rpill.V { background: var(--win); }
.rpill.N { background: var(--draw); }
.rpill.D { background: var(--loss); }

/* ═══════════════════════════════════════════════════════════
   PANNEAUX (cards)
   ═══════════════════════════════════════════════════════════ */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.panel-body { padding: 20px; }
.panel-body-flush { padding: 0; }

/* Grille 2 colonnes */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat-card .sc-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.stat-card .sc-value {
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1;
}

.stat-card .sc-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

.stat-card.primary {
  background: var(--blue);
  border-color: var(--blue);
}
.stat-card.primary .sc-label { color: rgba(255,255,255,0.55); }
.stat-card.primary .sc-value { color: #fff; }
.stat-card.primary .sc-sub   { color: rgba(255,255,255,0.55); }

.stat-card.win-card  { border-left: 3px solid var(--win); }
.stat-card.draw-card { border-left: 3px solid var(--draw); }
.stat-card.loss-card { border-left: 3px solid var(--loss); }

/* ═══════════════════════════════════════════════════════════
   TABLEAUX
   ═══════════════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

.td-name {
  font-weight: 600;
  color: var(--gray-900);
}

.td-score {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-900);
}

.td-num {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-mid); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-900); }

.btn-danger {
  background: var(--loss-bg);
  color: var(--loss);
}
.btn-danger:hover { background: #fecaca; }

.btn-ghost {
  background: transparent;
  color: var(--gray-400);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   FORMULAIRES
   ═══════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 20px;
}

.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full { grid-column: 1 / -1; }
.field.col2 { grid-column: span 2; }

.field-hint {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.4;
  margin-top: 2px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-900);
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray-400);
}

.field input,
.field select,
.field textarea {
  padding: 8px 11px;
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  font-size: 13px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,61,158,0.1);
}

.field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue-light);
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  padding-top: 6px;
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════
   ONGLETS (tabs)
   ═══════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { background: var(--gray-200); }
.tab-btn.active {
  background: var(--blue);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   ALERTES CONTRAT
   ═══════════════════════════════════════════════════════════ */
.contract-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.contract-chip.urgent   { background: var(--alert-red); color: var(--alert-red-t); }
.contract-chip.soon     { background: var(--alert-org); color: var(--alert-org-t); }
.contract-chip.ok       { background: var(--alert-grn); color: var(--alert-grn-t); }

/* ═══════════════════════════════════════════════════════════
   CHART WRAPPER
   ═══════════════════════════════════════════════════════════ */
.chart-wrap {
  position: relative;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,22,35,0.55);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

/* ═══════════════════════════════════════════════════════════
   RECHERCHE RAPIDE (Ctrl+K) — palette de commande
   ═══════════════════════════════════════════════════════════ */
.search-palette {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.search-palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.search-palette-input-wrap .sp-icon {
  font-size: 16px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-palette-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--gray-900);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}
.search-palette-input-wrap input::placeholder { color: var(--gray-400); }
.search-palette-esc {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
}

.search-palette-results {
  overflow-y: auto;
  padding: 8px;
  flex: 1;
}

.sp-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  padding: 10px 12px 6px;
}

.sp-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.sp-result:hover, .sp-result.sp-active {
  background: var(--blue-ghost);
}
.sp-result-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.sp-result-icon img { width: 100%; height: 100%; object-fit: contain; }
.sp-result-text { flex: 1; min-width: 0; }
.sp-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-result-sub {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-result-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  flex-shrink: 0;
}

.search-palette-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

.search-palette-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-palette-footer kbd {
  font-family: 'DM Mono', monospace;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
}

/* Bouton "Rechercher" dans la sidebar */
.sidebar-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-search-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
.sidebar-search-btn .ssb-kbd {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: toastIn 0.2s ease;
  max-width: 320px;
}
.toast.success { background: var(--win); }
.toast.error   { background: var(--loss); }
.toast.info    { background: var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state .es-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state .es-title { font-size: 15px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.empty-state .es-sub   { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER INTERNE (sous-titres de sections)
   ═══════════════════════════════════════════════════════════ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════
   INPUT FILE CACHÉ (import JSON)
   ═══════════════════════════════════════════════════════════ */
#file-import { display: none; }

/* ═══════════════════════════════════════════════════════════
   POSTE BADGE
   ═══════════════════════════════════════════════════════════ */
.poste-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.poste-GK  { background: #FEF9C3; color: #713f12; }
.poste-DEF { background: #DBEAFE; color: #1e3a8a; }
.poste-MDF { background: #DCFCE7; color: #14532d; }
.poste-MO  { background: #FEF3C7; color: #78350f; }
.poste-ATT { background: #FEE2E2; color: #7f1d1d; }
.poste-STAFF { background: var(--gray-100); color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════
   LOAN PLAYER CARDS
   ═══════════════════════════════════════════════════════════ */
.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.loan-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.loan-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
}

.loan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.loan-player-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}
.loan-club-name {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.loan-ligue {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
}

.loan-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.loan-stat {
  text-align: center;
}
.loan-stat .lsv {
  font-family: 'DM Mono', monospace;
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1;
}
.loan-stat .lsl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── Logos compétition dans topbars ── */
.comp-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.topbar-left-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Écussons clubs dans tableaux ── */
.match-clubs {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.club-crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.club-crest-sm {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.club-crest-md {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.vs-sep {
  font-size: 11px;
  color: var(--gray-400);
  margin: 0 2px;
}

/* ── Logo compétition dans boutons admin ── */
.admin-comp-btn-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-comp-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ── Terrain composition ── */
#compo-terrain-wrap {
  user-select: none;
}
.compo-badge-poste {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ── Modal consultation compo ── */
.modal-compo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,0.72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-compo-box {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.2s ease;
  position: relative;
  z-index: 1;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}
.modal-compo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  border-radius: 16px 16px 0 0;
}
.modal-compo-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.modal-compo-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-compo-close:hover { background: var(--gray-200); }

.modal-compo-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Terrain consultation (lecture seule) — paysage */
.terrain-consult {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 105/68;
  background: #2d7a3a;
  border-radius: 10px;
  border: 3px solid #1a5c28;
  overflow: hidden;
}
.terrain-consult svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Journal de match ── */
.article-card {
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--gray-50);
  position: relative;
}
.article-card:last-child { margin-bottom: 0; }

.article-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.article-source-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.chemin-display {
  font-size: 11px;
  background: var(--gray-100);
  padding: 5px 9px;
  border-radius: 6px;
  word-break: break-all;
  color: var(--primary);
  font-family: monospace;
  margin-top: 4px;
}
.copy-chemin-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--surface);
  cursor: pointer;
  color: var(--gray-600);
  white-space: nowrap;
}
.copy-chemin-btn:hover { background: var(--gray-100); }
.journal-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.journal-badge-video {
  background: #fef3c7;
  color: #92400e;
}
.journal-badge-presse {
  background: #ede9fe;
  color: #5b21b6;
}
.terrain-consult-joueurs {
  position: absolute; inset: 0;
}

/* Maillot joueur sur terrain */
.maillot-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.maillot-cercle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.6);
}
.maillot-nom {
  font-size: 9px; color: #fff; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  white-space: nowrap; letter-spacing: 0.3px;
  background: rgba(0,0,0,0.38);
  padding: 1px 5px; border-radius: 3px;
}

/* Panneau "Remplaçants + Absents" : sous le terrain, deux colonnes */
.compo-side-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .compo-side-panel { grid-template-columns: 1fr; }
}

.compo-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--gray-500);
  margin-bottom: 8px;
}

.remplacement-row {
  display: flex; align-items: flex-start;
  gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.remplacement-row:last-child { border-bottom: none; }

.remp-fleche-in  { color: #16a34a; font-weight: 700; font-size: 16px; line-height: 1; }
.remp-fleche-out { color: #dc2626; font-weight: 700; font-size: 16px; line-height: 1; }

.absent-row {
  display: flex; align-items: center;
  gap: 8px; padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.absent-row:last-child { border-bottom: none; }
.absent-motif-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  font-weight: 600; white-space: nowrap;
}

/* Stats systèmes */
.systeme-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px;
}
.systeme-stat-row:last-child { border-bottom: none; }
.systeme-bar-wrap {
  flex: 1; margin: 0 12px;
  height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden;
}
.systeme-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* Ligne tableau cliquable */
tr.clickable-row { cursor: pointer; }
tr.clickable-row:hover td { background: var(--gray-50) !important; }
tr.clickable-row:hover .td-compo-icon { opacity: 1; }
.td-compo-icon {
  opacity: 0; font-size: 14px;
  transition: opacity 0.15s;
}

/* ═══════════════════════════════════════════════════════════
   COIN PRESSE
   ═══════════════════════════════════════════════════════════ */

.presse-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.presse-tab {
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.presse-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.presse-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.presse-tab-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
}

.presse-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
.presse-group-header:hover {
  background: var(--gray-100);
}
.presse-group-header:not(:first-child) {
  border-top: 1px solid var(--gray-100);
}
.presse-group-count {
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.presse-group-toggle {
  display: inline-block;
  width: 12px;
  font-size: 11px;
  text-transform: none;
  color: var(--gray-400);
}

.presse-subgroup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
.presse-subgroup-header:hover {
  background: var(--gray-50);
}
.presse-subgroup-toggle {
  display: inline-block;
  width: 12px;
  font-size: 10px;
  color: var(--gray-400);
}
.presse-subgroup-count {
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

.presse-subsubgroup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
.presse-subsubgroup-header:hover {
  background: var(--gray-50);
}
.presse-subsubgroup-toggle {
  display: inline-block;
  width: 10px;
  font-size: 9px;
  color: var(--gray-400);
}
.presse-subsubgroup-count {
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 9px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
}

.presse-filtres {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.presse-filtres input[type="text"],
.presse-filtres select {
  padding: 7px 11px;
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  font-size: 13px;
  color: var(--gray-900);
  background: var(--white);
}

.presse-filtres input[type="text"] {
  flex: 1;
  min-width: 160px;
}

.presse-article-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.12s;
}
.presse-article-row:last-child { border-bottom: none; }
.presse-article-row:hover { background: var(--gray-50); }

.presse-article-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presse-article-meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.press-logo {
  height: 16px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  vertical-align: middle;
}

.presse-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--blue-ghost);
  color: var(--blue);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.presse-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.presse-pdf-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}
.presse-pdf-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Encart Presse dans la fiche joueur */
.fiche-presse-encart {
  margin-top: 0;
}
.fiche-presse-article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.fiche-presse-article:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   ACCUEIL — "Jour de match" / Hub d'accueil
   ═══════════════════════════════════════════════════════════ */

/* ── SECTION 1 : HERO ── */
.accueil-hero {
  background: linear-gradient(120deg, #002570 0%, #001A4D 45%, #05070F 100%);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.accueil-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.accueil-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.accueil-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.accueil-hero-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.accueil-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  line-height: 1.02;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.accueil-hero-title .accent { color: var(--accent); }

.accueil-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin-bottom: 28px;
}

.accueil-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-hero-primary {
  background: var(--accent);
  color: #001A4D;
}
.btn-hero-primary:hover { background: #7cb3ff; transform: translateY(-1px); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-hero-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
}

/* Carrousel logos historiques */
.accueil-hero-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.accueil-logo-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255,255,255,0.02);
}
/* ── Anneaux décoratifs en rotation continue (effet de parallaxe) ──
   Deux couches tournant à des vitesses/sens différents = sensation
   de profondeur, pendant que le logo au centre reste net et fixe. */
.accueil-ring-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.accueil-ring-deco.ring-1 {
  inset: 14px;
  border: 1px dashed rgba(255,255,255,0.08);
  animation: accueilRingSpin 42s linear infinite;
}
.accueil-ring-deco.ring-2 {
  inset: 30px;
  border: 1px dotted rgba(255,255,255,0.12);
  animation: accueilRingSpin 65s linear infinite reverse;
}
@keyframes accueilRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* ── Logos en fondu enchaîné (crossfade) ──
   Deux <img> superposées ; on bascule l'opacité de l'une à l'autre
   à chaque changement, pour un fondu doux plutôt qu'un cut sec. */
.accueil-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  height: 66%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.accueil-logo-img.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.accueil-logo-caption {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.accueil-logo-index {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ── SECTION 2 : CARTES VIVANTES + ACCÈS RAPIDE ── */
.accueil-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 32px;
}

.accueil-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.accueil-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  /* Hauteur uniforme sur les 4 cartes — les logos "Prochain match" /
     "Dernier résultat" prennent un peu plus de place, donc on aligne
     toutes les cartes sur la même hauteur pour garder une rangée nette. */
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Contenu texte au-dessus des visuels de fond (badge coin / filigrane) */
.accueil-card-content {
  position: relative;
  z-index: 1;
}
/* Logos des deux équipes — "Prochain match" */
.accueil-match-crests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0 8px;
}
.accueil-match-crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.accueil-match-vs {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}
/* Logos + score — "Dernier résultat" */
.accueil-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 6px;
}
.accueil-result-row .accueil-match-crest {
  width: 48px;
  height: 48px;
}
/* Badge logo adversaire — coin haut droit, "Prochain match" / "Dernier résultat" */
.accueil-corner-crest {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}
/* Filigrane — logo club ou photo joueur en fond, "Chiffre du moment" */
.accueil-chiffre-watermark {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
}
.accueil-chiffre-watermark.logo {
  object-fit: contain;
  opacity: 0.10;
}
.accueil-chiffre-watermark.photo {
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.14;
}
.accueil-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accueil-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 6px;
}
.accueil-card-sub {
  font-size: 12px;
  color: var(--gray-400);
}
.accueil-card-score {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 6px;
}
/* Logo adversaire du "Prochain match" — agrandi de 25% par rapport au crest standard (22px) */
.accueil-adversaire-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}
/* Carte cliquable (dernier résultat, dernière brève) */
.accueil-card.clickable { cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; }
.accueil-card.clickable:hover { box-shadow: 0 4px 16px rgba(0,61,158,0.08); border-color: var(--accent); }
/* Bouton "Résumé vidéo" — carte "Dernier résultat" */
.accueil-video-btn {
  background: #fff;
  color: inherit;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: transform 0.15s, border-color 0.15s;
}
.accueil-video-btn:hover {
  border-color: var(--blue);
  transform: scale(1.08);
}
/* Photo joueur / logo club dans le "chiffre du moment" */
.accueil-chiffre-visual {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.accueil-chiffre-visual.club-logo { border-radius: 8px; object-fit: contain; padding: 4px; }

.accueil-quickaccess {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.quickaccess-btn {
  background: var(--blue-dark);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  text-align: left;
}
.quickaccess-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,37,112,0.25);
}
.quickaccess-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.quickaccess-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.quickaccess-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ── SECTION 3 : HISTOIRE ── */
.accueil-histoire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.accueil-histoire-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.accueil-histoire-text h2 .accent { color: #C8102E; }
.accueil-histoire-text h2 .dark   { color: var(--gray-900); }
.accueil-histoire-text p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-600);
}

.accueil-histoire-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.histoire-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  border-left: 3px solid transparent;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 94px;
}
.histoire-stat-card.border-blue { border-left-color: var(--blue); }
.histoire-stat-card.border-red  { border-left-color: #C8102E; }
.hs-text {
  flex: 1 1 50%;
  min-width: 0;
  padding: 16px 18px;
}
.hs-image {
  flex: 0 0 50%;
  background-color: var(--gray-50, #f4f5f7);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.hs-image.hs-image-cover { background-size: cover; }
.hs-image.hs-image-compact {
  background-origin: content-box;
  padding: 7%;
}
.accueil-histoire-stade-img {
  grid-column: 1 / -1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.accueil-histoire-stade-img img {
  display: block;
  width: 100%;
  height: auto;
}
.hs-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.hs-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.hs-sub {
  font-size: 11px;
  color: var(--gray-400);
}

/* Responsive */
@media (max-width: 900px) {
  .accueil-hero-inner { grid-template-columns: 1fr; }
  .accueil-hero-carousel { order: -1; }
  .accueil-histoire { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   HISTOIRE DU CLUB — Frise chronologique
   ═══════════════════════════════════════════════════════════ */

.histoire-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.histoire-legende-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.histoire-legende-item:hover { border-color: var(--accent); color: var(--gray-900); }
.histoire-legende-item.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.histoire-frise {
  position: relative;
  padding-left: 32px;
}
/* Ligne verticale continue */
.histoire-frise::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--gray-100);
}

.histoire-item {
  position: relative;
  padding-bottom: 28px;
}
.histoire-item:last-child { padding-bottom: 0; }

.histoire-item-point {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-100);
  flex-shrink: 0;
}

.histoire-item-annee {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.histoire-item-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.histoire-item-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}

.histoire-item-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.histoire-item-desc {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

.histoire-item-media {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.histoire-item-media img {
  max-width: 220px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
}
.histoire-item-media a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--blue-ghost);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ═══════════════════════════════════════════════════════════
   PALMARÈS DU CLUB
   ═══════════════════════════════════════════════════════════ */

.palmares-groupe { margin-bottom: 36px; }
.palmares-groupe:last-child { margin-bottom: 0; }

.palmares-groupe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.palmares-groupe-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--gray-900);
}

.palmares-titres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .palmares-titres-grid { grid-template-columns: 1fr; }
}

.palmares-titre-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 3px solid #C9971A;
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.palmares-titre-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}

/* ── Talon de ticket ──────────────────────────────────────── */
/* La tuile devient un "ticket" : un talon perforé porte l'image,
   le corps porte le texte. Le talon est à gauche pour les titres
   et compétitions, à droite pour les records.                    */

.palmares-ticket {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}
.palmares-ticket .ticket-corps {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
}

.ticket-talon {
  flex-shrink: 0;
  width: 112px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
}
.ticket-talon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ticket-talon-vide {
  font-size: 26px;
  opacity: 0.35;
}

/* Ligne de perforation, du côté où le talon rejoint le corps */
.ticket-talon-gauche {
  border-right: 2px dashed var(--gray-100);
}
.ticket-talon-droite {
  border-left: 2px dashed var(--gray-100);
}

@media (max-width: 700px) {
  .ticket-talon { width: 84px; padding: 8px; }
}
.ptc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ptc-competition {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--gray-900);
}
.ptc-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #C9971A;
  background: rgba(201,151,26,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.ptc-annees {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
}
.ptc-finales {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
}

.palmares-records-ligne {
  margin-bottom: 18px;
}
.palmares-records-ligne:last-child { margin-bottom: 0; }
.palmares-records-ligne-titre {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.palmares-records-ligne-grid {
  display: grid;
  gap: 14px;
}
@media (max-width: 700px) {
  .palmares-records-ligne-grid { grid-template-columns: 1fr !important; }
}

.palmares-record-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.palmares-record-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}
/* Variante ticket : le padding passe sur le corps, pas sur la tuile */
.palmares-record-card.palmares-ticket { padding: 0; }
.palmares-record-card.palmares-ticket .ticket-corps { padding: 16px 18px; }
.palmares-record-card-vide {
  border-left-style: dashed;
  border-left-color: var(--gray-100);
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
}
.palmares-record-card-vide:hover {
  border-color: var(--accent);
  background: var(--white);
}
.prc-vide-texte {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
}
.prc-categorie {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.prc-titre {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.prc-valeur {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.prc-detail {
  font-size: 11px;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════
   PRÉSIDENTS, DIRIGEANTS & ENTRAÎNEURS — frise à portraits
   ═══════════════════════════════════════════════════════════ */

.dirigeant-frise {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 8px;
}

.dirigeant-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  position: relative;
}
.dirigeant-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 98px;
  bottom: -18px;
  width: 2px;
  background: var(--gray-100);
}

.dirigeant-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-100);
  font-size: 32px;
  z-index: 1;
}
.dirigeant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dirigeant-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  min-width: 0;
}
.dirigeant-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}
.dc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.dc-nom {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--gray-900);
  min-width: 0;
  line-height: 1.15;
}
.nom-drapeau {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 7px;
  transform: translateY(-1px);
}
.dc-periode {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.dc-fonction {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue);
  background: var(--blue-ghost);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 6px;
}
.dc-detail {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}
.dc-duree {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2px 9px;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════
   ANCIENS JOUEURS & LÉGENDES
   ═══════════════════════════════════════════════════════════ */

.legende-suggestions {
  background: var(--blue-ghost);
  border: 1px solid rgba(10,77,184,0.15);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.legende-suggestions-titre {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.legende-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.legende-suggestion-item:last-child { margin-bottom: 0; }
.legende-suggestion-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.legende-suggestion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.legende-suggestion-info { flex: 1; min-width: 0; }
.legende-suggestion-nom { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.legende-suggestion-meta { font-size: 11px; color: var(--gray-400); }

.legende-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legende-filtres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legende-pill {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.legende-pill:hover { border-color: var(--accent); color: var(--gray-900); }
.legende-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.legende-filtres-detail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: -10px 0 20px;
}
.legende-pill-sm {
  font-size: 11px;
  padding: 5px 12px;
}
.legende-pill-sm.active {
  background: var(--accent);
  border-color: var(--accent);
}

.legende-recherche {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  min-width: 240px;
  background: var(--white);
  color: var(--gray-900);
}
.legende-recherche:focus { outline: none; border-color: var(--accent); }

.legendes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.legende-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.legende-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}

/* Joueur formé au club : liseré bleu roi + badge drapeau alsacien */
.legende-card-formee {
  border: 2px solid var(--blue);
}
.legende-card-formee:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,61,158,0.18);
}

.lc-formation {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 14px;
}

.lc-star {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
}

.lc-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 10px;
}
.lc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-nom {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 6px;
}
.lc-poste {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue);
  background: var(--blue-ghost);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 6px;
}
.lc-periode {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.5;
}
.lc-duree {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2px 9px;
  margin-top: 6px;
}
.lc-stats {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: 6px;
}
.lc-stats span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--blue);
  background: var(--blue-ghost);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.lc-stats-note {
  font-size: 9px;
  font-style: italic;
  color: var(--gray-400);
  margin-top: 3px;
}
.lc-detail {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 100%;
  margin-top: 8px;
  background: var(--gray-900);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
  z-index: 6;
}
.lc-detail::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-bottom-color: var(--gray-900);
}
.legende-card:hover {
  z-index: 5;
}
.legende-card:hover .lc-detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.lc-liens {
  margin-top: 8px;
}
.lc-detail-texte + .lc-liens {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.lc-liens a {
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 0;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-liens a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nom-capitaine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: middle;
  transform: translateY(-1px);
  background: #C9971A;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
}

.lc-stats-intl span {
  color: #15803d;
  background: rgba(21,128,61,0.12);
}

/* ═══════════════════════════════════════════════════════════
   120 ANS DE PASSION
   ═══════════════════════════════════════════════════════════ */

.anniv-banner {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, #001f52 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  color: #fff;
  overflow: hidden;
}
.anniv-banner::after {
  content: '🎂';
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 140px;
  opacity: 0.08;
  pointer-events: none;
}
.anniv-banner-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.anniv-banner-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.anniv-banner-texte {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  white-space: pre-line;
}

.anniv-chapitres {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.anniv-chapitre-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.anniv-chapitre-item:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}
.aci-numero {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-ghost);
  color: var(--blue);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aci-body { flex: 1; min-width: 0; }
.aci-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.aci-resume {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}
.aci-lien {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.temps-forts-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.temps-fort-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.temps-fort-item:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}
.tf-icone { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.tf-body { flex: 1; min-width: 0; }
.tf-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.tf-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
}
.tf-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--gray-900);
}
.tf-detail {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}
.tf-lien {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   XI DE LÉGENDE
   ═══════════════════════════════════════════════════════════ */

.xi-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.xi-systeme-choix {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xi-systeme-choix label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}
.xi-systeme-choix select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  cursor: pointer;
}
.xi-compteur {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

/* Emplacement cliquable sur le terrain */
.xi-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  z-index: 2;
}
.xi-slot-cercle {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 18px;
  color: #fff;
  background: #1a3a6b;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  transition: transform 0.12s;
}
.xi-slot:hover .xi-slot-cercle { transform: scale(1.08); }
.xi-slot-cercle img {
  width: 100%; height: 100%; object-fit: cover;
}
.xi-slot-gb .xi-slot-cercle { background: #f97316; border-color: #ea580c; }
.xi-slot-vide .xi-slot-cercle {
  background: rgba(0,0,0,0.35);
  border-style: dashed;
  border-color: rgba(255,255,255,0.65);
  font-size: 22px;
  font-weight: 300;
}
.xi-slot-nom {
  font-size: 9px; color: #fff; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  white-space: nowrap; letter-spacing: 0.3px;
  background: rgba(0,0,0,0.45);
  padding: 2px 6px; border-radius: 3px;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis;
}
.xi-slot-poste {
  font-size: 8px; color: rgba(255,255,255,0.85);
  font-weight: 600; letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* Banc de touche : entraîneur + président */
.xi-banc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 700px) { .xi-banc { grid-template-columns: 1fr; } }

.xi-banc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.xi-banc-card:hover {
  box-shadow: 0 4px 16px rgba(0,61,158,0.08);
  border-color: var(--accent);
}
.xi-banc-card.xi-vide { border-left-style: dashed; background: var(--gray-50); }
.xi-banc-avatar {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.xi-banc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.xi-banc-role {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--gray-400); margin-bottom: 3px;
}
.xi-banc-nom {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 0.3px; color: var(--gray-900);
}
.xi-banc-periode { font-size: 11px; color: var(--gray-600); }

/* Remplaçants */
.xi-bloc { margin-top: 24px; }
.xi-remp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.xi-remp-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 9px 12px;
  position: relative;
}
.xi-remp-card.xi-vide {
  border-style: dashed;
  background: var(--gray-50);
  cursor: pointer;
  justify-content: center;
  color: var(--gray-400);
  font-size: 12px; font-weight: 600;
}
.xi-remp-card.xi-vide:hover { border-color: var(--accent); background: var(--white); }
.xi-remp-avatar {
  flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 50%; overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.xi-remp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.xi-remp-nom { font-size: 12px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.xi-remp-poste { font-size: 10px; color: var(--gray-400); }
.xi-remp-suppr {
  position: absolute; top: 4px; right: 6px;
  border: none; background: none; cursor: pointer;
  color: var(--gray-400); font-size: 13px; line-height: 1;
  padding: 2px;
}
.xi-remp-suppr:hover { color: #dc2626; }

/* Liste de sélection dans la modale */
.xi-choix-filtre-poste {
  font-size: 11px;
  color: var(--gray-600);
  background: var(--blue-ghost);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.xi-choix-filtre-poste a { color: var(--accent); font-weight: 600; text-decoration: none; }
.xi-choix-filtre-poste a:hover { text-decoration: underline; }

.xi-choix-liste { max-height: 380px; overflow-y: auto; }
.xi-choix-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.xi-choix-item:hover { background: var(--blue-ghost); border-color: var(--accent); }
.xi-choix-avatar {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 50%; overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.xi-choix-avatar img { width: 100%; height: 100%; object-fit: cover; }
.xi-choix-nom { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.xi-choix-meta { font-size: 11px; color: var(--gray-400); }
.xi-choix-deja {
  margin-left: auto; font-size: 10px; font-weight: 700;
  color: var(--accent); background: var(--blue-ghost);
  border-radius: 20px; padding: 2px 8px; white-space: nowrap;
}
