/* ============================================================
   GONE-STATS.FR — Design system
   Fonts : Oswald (titres) + DM Sans (corps)
   ============================================================ */

:root {
  --rouge:        #E30613;
  --rouge-dark:   #B5040F;
  --marine:       #0D1B2A;
  --marine-mid:   #1A2F45;
  --or:           #C9A84C;
  --or-light:     #E8D08A;
  --text:         #1E1E1E;
  --text-light:   #4D4D5A;
  --bg:           #F7F7F8;
  --bg-alt:       #EEEEF2;
  --blanc:        #FFFFFF;
  --border:       rgba(13,27,42,0.1);
  --shadow:       rgba(13,27,42,0.08);
  --radius:       4px;
  --max-width:    1180px;

  /* Victoire / nul / défaite */
  --vert:         #1A7A4A;
  --vert-pale:    #E6F4ED;
  --gris-match:   #6B6B7B;
  --gris-pale:    #F0F0F4;
  --rouge-pale:   #FDECEA;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Alias ancien nom (pages générées avant uniformisation) */
.contenu {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections génériques */
.section {
  padding: 48px 0;
}
.section-claire {
  padding: 48px 0;
  background: var(--gris-pale);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--marine);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--rouge);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-sub {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav desktop */
.site-nav ul {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.nav-active {
  color: var(--blanc);
  background: rgba(227,6,19,0.2);
}
.site-nav a.nav-active {
  color: var(--rouge);
}

/* Dropdown nav */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--marine);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--rouge);
  min-width: 190px;
  z-index: 200;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 0;
}
.nav-has-dropdown:hover > .nav-dropdown-menu,
.nav-has-dropdown:focus-within > .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  background: transparent;
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(227,6,19,0.2); }
.nav-dropdown-sep { height: 1px; background: rgba(255,255,255,0.1); margin: 5px 0; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc);
  transition: transform 0.3s, opacity 0.3s;
}
.burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-open span:nth-child(2) { opacity: 0; }
.burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FIL D'ARIANE
   ============================================================ */
.fil-ariane {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-light);
}
.fil-ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.fil-ariane li { display: flex; align-items: center; gap: 4px; }
.fil-ariane li:not(:last-child)::after { content: '/'; color: var(--border); }
.fil-ariane a { color: var(--text-light); }
.fil-ariane a:hover { color: var(--rouge); text-decoration: none; }
.fil-ariane li:last-child { color: var(--text); font-weight: 500; }

/* ============================================================
   PAGE ENTÊTE (zone titre — jamais "hero")
   ============================================================ */
.page-entete {
  background: var(--marine);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-entete .fil-ariane { margin-bottom: 16px; }
.page-entete .fil-ariane,
.page-entete .fil-ariane a,
.page-entete .fil-ariane li:last-child { color: rgba(255,255,255,0.5); }
.page-entete .fil-ariane li:not(:last-child)::after { color: rgba(255,255,255,0.2); }
.page-entete h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-entete h1 span { color: var(--rouge); }
.page-entete-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 680px;
  line-height: 1.6;
}
.entete-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(227,6,19,0.2);
  color: var(--rouge);
  border: 1px solid rgba(227,6,19,0.3);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* Sommaire d'ancres dans la zone entête (fond marine) */
.entete-sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.entete-sommaire-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}
.entete-sommaire-btn:hover,
.entete-sommaire-btn:focus-visible {
  border-color: var(--or);
  color: var(--or);
  text-decoration: none;
  outline: none;
}

/* Pastille saison (lien vers une saison, sur fond clair) */
.pastille-saison {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--marine);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.pastille-saison:hover,
.pastille-saison:focus-visible {
  border-color: var(--rouge);
  color: var(--rouge);
  text-decoration: none;
  outline: none;
}

/* Formulaire de contact */
.form-contact { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--marine);
  font-weight: 600;
}
.form-input,
.form-textarea {
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--marine);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--rouge); }
.form-textarea { resize: vertical; }
.form-input--court { width: 120px; }
.form-erreurs,
.form-succes {
  border-left: 4px solid;
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 32px;
}
.form-erreurs { background: var(--rouge-pale); border-left-color: var(--rouge); }
.form-erreurs p { margin: 0 0 4px; color: var(--rouge-dark); }
.form-succes { background: var(--vert-pale); border-left-color: var(--vert); }
.form-succes p { margin: 0; color: var(--vert); font-weight: 600; }
.btn-primary {
  background: var(--rouge);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--rouge-dark);
  outline: none;
}

/* Lien "autre confrontation" en pied de page de confrontation */
.lien-autre-conf {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.lien-autre-conf:hover, .lien-autre-conf:focus-visible {
  color: #fff;
  border-color: var(--rouge);
  outline: none;
  text-decoration: none;
}

/* ============================================================
   ACCUEIL
   ============================================================ */
.accueil-chiffres {
  background: var(--marine);
  padding: 0 0 56px;
}
.chiffres-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chiffre-bloc {
  background: var(--marine-mid);
  padding: 32px 24px;
  text-align: center;
}
.chiffre-valeur {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--or);
  line-height: 1;
  display: block;
}
.chiffre-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  display: block;
}

.accueil-section {
  padding: 64px 0;
}
.accueil-section + .accueil-section {
  border-top: 1px solid var(--border);
}
.section-titre {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-titre::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}
.section-titre span { color: var(--rouge); }

/* Grille joueurs vedettes accueil */
.grille-vedettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.carte-vedette {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rouge);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.carte-vedette:hover {
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.carte-vedette-nom {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--marine);
  display: block;
  margin-bottom: 4px;
}
.carte-vedette-poste {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.carte-vedette-stat {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rouge);
  display: block;
  margin-top: 12px;
  line-height: 1;
}
.carte-vedette-stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Grille saisons */
.grille-saisons-phares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.grille-7-titres {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.carte-saison {
  display: block;
  background: var(--marine);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.carte-saison::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--or);
}
.carte-saison:hover { background: var(--marine-mid); text-decoration: none; }
.carte-saison-annee {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanc);
  display: block;
  letter-spacing: 0.04em;
}
.carte-saison-titre {
  font-size: 0.7rem;
  color: var(--or);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}
.carte-saison-rang {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ============================================================
   FICHE JOUEUR
   ============================================================ */
.fiche-joueur-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
.fiche-joueur-photo {
  position: sticky;
  top: 80px;
}
.joueur-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 3px solid var(--marine);
}
.joueur-portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--marine) url('/img/placeholder.jpg') center/cover no-repeat;
  display: block;
  border: 3px solid var(--marine);
  position: relative;
}
.placeholder-nom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 10px;
  background: rgba(13,27,42,0.72);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rouge);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.joueur-infos-rapides {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-ligne {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.info-ligne-label, .info-label { color: var(--text-light); }
.info-ligne-valeur, .info-val { font-weight: 600; color: var(--marine); }

/* Bloc stats OL */
.bloc-stats-ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.stat-case {
  background: var(--blanc);
  padding: 20px 16px;
  text-align: center;
}
.stat-chiffre, .stat-nombre {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1;
  display: block;
}
.stat-chiffre.rouge, .stat-nombre.rouge { color: var(--rouge); }
.stat-etiquette, .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

/* Contenu article joueur */
.joueur-contenu h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine);
  border-left: 3px solid var(--rouge);
  padding-left: 12px;
  margin: 40px 0 16px;
}
.joueur-contenu h2:first-child { margin-top: 0; }
.joueur-contenu h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 24px 0 10px;
}
.joueur-contenu p { margin-bottom: 16px; }
.joueur-contenu ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.joueur-contenu ul li { margin-bottom: 6px; }

/* ============================================================
   TABLEAUX
   ============================================================ */
.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--blanc);
}
thead th {
  background: var(--marine);
  color: rgba(255,255,255,0.8);
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
thead th:first-child { border-left: 3px solid var(--rouge); }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 10px 14px; vertical-align: middle; }
tbody tr.ligne-total {
  background: var(--bg-alt);
  font-weight: 600;
}
tbody tr.ligne-total td { border-top: 2px solid var(--border); }

/* Résultat coloré dans les tableaux */
.res-v { color: var(--vert); font-weight: 600; }
.res-n { color: var(--gris-match); }
.res-d { color: var(--rouge); font-weight: 600; }

/* ============================================================
   PAGE SAISON
   ============================================================ */
.saison-infos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 32px 0 48px 0;
}
.saison-bilan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
.bilan-case {
  background: var(--blanc);
  padding: 20px;
  text-align: center;
}
.bilan-chiffre {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1;
}
.bilan-chiffre.v { color: var(--vert); }
.bilan-chiffre.n { color: var(--gris-match); }
.bilan-chiffre.d { color: var(--rouge); }
.bilan-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

/* ── En-tête saison (format classique) ── */
.page-entete-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.saison-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(227,6,19,0.2);
  color: var(--rouge);
  border: 1px solid rgba(227,6,19,0.3);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.saison-accroche {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 700px;
  line-height: 1.65;
  margin: 10px 0 0;
}
.saison-chiffres-cles {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.chiffre-cle { text-align: center; }
.chiffre-val {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--or);
  line-height: 1;
  display: block;
}
.chiffre-lib {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  display: block;
}

/* ── Layout contenu saison (sidebar + main) ── */
.contenu-saison {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.sommaire-saison {
  grid-column: 1;
  position: sticky;
  top: 84px;
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.contenu-saison > * { grid-column: 2; }
.contenu-saison > .sommaire-saison { grid-column: 1; }

/* ── Navigation entre saisons ── */
.nav-saisons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-saisons a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--blanc);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav-saisons a:hover { border-color: var(--rouge); color: var(--rouge); }
.nav-saisons a.nav-saison-all { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.nav-saisons a.nav-saison-all:hover { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

/* ── Tableau Europe ── */
.tableau-europe {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 16px 0;
}
.tableau-europe th {
  background: var(--marine);
  color: rgba(255,255,255,0.7);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: left;
}
.tableau-europe td { padding: 9px 10px; border-bottom: 1px solid var(--bg-alt); }
.tableau-europe tr.ligne-victoire td { background: rgba(26,122,74,0.05); }
.tableau-europe tr.ligne-defaite td { background: rgba(227,6,19,0.04); }
.tableau-europe tr.ligne-nul td { background: rgba(107,107,123,0.05); }

.europe-competition { margin-bottom: 28px; }
.coupes-nationales { list-style: none; }
.coupes-nationales li { padding: 8px 0; font-size: 0.88rem; line-height: 1.6; color: var(--text); border-bottom: 1px solid var(--bg-alt); }
.coupes-nationales li:last-child { border-bottom: none; }

/* ── Tableau effectif ── */
.tableau-effectif-wrap { overflow-x: auto; }
.tableau-effectif {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.tableau-effectif th {
  background: var(--marine);
  color: rgba(255,255,255,0.7);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.tableau-effectif td { padding: 8px 10px; border-bottom: 1px solid var(--bg-alt); }
.tableau-effectif tr:last-child td { border-bottom: none; }

/* ── Tableau résultats (alternative grille) ── */
.tableau-resultats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.tableau-resultats th {
  background: var(--bg-alt);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 7px 10px;
  text-align: left;
}
.tableau-resultats td { padding: 8px 10px; border-bottom: 1px solid var(--bg-alt); }
.tableau-resultats tr.ligne-match.res-v td:first-child { border-left: 3px solid var(--vert); }
.tableau-resultats tr.ligne-match.res-n td:first-child { border-left: 3px solid var(--gris-match); }
.tableau-resultats tr.ligne-match.res-d td:first-child { border-left: 3px solid var(--rouge); }

/* ── Moments mémorables ── */
.moment-memorable {
  background: var(--bg-alt);
  border-left: 3px solid var(--or);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.moment-date {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rouge);
  margin-bottom: 6px;
}
.moment-memorable p { font-size: 0.9rem; line-height: 1.6; color: var(--text); margin: 0; }

/* ── Notes contextuelles (forme, dom/ext, europe, résultats) ── */
.forme-note,
.domext-note,
.europe-note,
.resultats-note {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 12px 0 16px;
  font-style: italic;
}

/* ── Boutons filtres (matchs, décennies, saisons) ── */
.btn-filtre,
.filtre-btn {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--blanc);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-filtre:hover, .btn-filtre.actif,
.filtre-btn:hover, .filtre-btn.actif { background: var(--rouge); color: var(--blanc); border-color: var(--rouge); }
.sommaire-saison ul { list-style: none; }
.sommaire-saison li { border-bottom: 1px solid var(--bg-alt); }
.sommaire-saison li:last-child { border-bottom: none; }
.sommaire-saison a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.sommaire-saison a:hover,
.sommaire-saison a.active {
  color: var(--rouge);
  background: rgba(227,6,19,0.04);
  text-decoration: none;
}
.bloc-saison {
  flex: 1;
  min-width: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.bloc-saison:last-child { border-bottom: none; }
.bloc-saison h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--marine);
  margin-bottom: 20px;
}
.bloc-saison h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--marine);
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bloc-saison p { margin-bottom: 14px; line-height: 1.75; }
.bloc-saison p:last-child { margin-bottom: 0; }

/* ── Encadré coach ── */
.saison-encadre-coach {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}
.coach-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.5;
}
.coach-item:last-child { border-bottom: none; padding-bottom: 0; }
.coach-label { font-weight: 600; color: var(--marine); flex-shrink: 0; min-width: 120px; }
.coach-val { color: var(--text-light); }

/* ── Forme par mois ── */
.forme-mois-liste { display: flex; flex-direction: column; gap: 6px; }
.forme-mois-ligne { display: flex; align-items: center; gap: 10px; }
.forme-mois-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
  width: 38px;
  flex-shrink: 0;
}
.forme-pastilles { display: flex; gap: 4px; flex-wrap: wrap; }
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
}
.pastille-v { background: var(--vert-pale); color: var(--vert); }
.pastille-n { background: var(--gris-pale); color: var(--gris-match); }
.pastille-d { background: var(--rouge-pale); color: var(--rouge); }
.forme-mois-bilan { font-size: 0.76rem; color: var(--text-light); margin-left: auto; white-space: nowrap; }

/* ── Dom / Ext ── */
.domext-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.domext-bloc {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.domext-titre {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--marine);
  margin-bottom: 6px;
}
.domext-bilan { font-size: 0.86rem; color: var(--text-light); margin-bottom: 14px; }
.donuts-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.donut-wrap { text-align: center; }
.donut-svg { width: 76px; height: 76px; }
.donut-pct {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: var(--marine);
}
.donut-label {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

/* ── Filtres et grille matchs ── */
.filtres-matchs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.matchs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 7px;
}
.match-carte {
  display: grid;
  grid-template-columns: 30px 30px 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  background: var(--blanc);
  font-size: 0.8rem;
}
.match-carte.res-v { border-left-color: var(--vert); }
.match-carte.res-n { border-left-color: var(--gris-match); }
.match-carte.res-d { border-left-color: var(--rouge); }
.match-j, .match-lieu { font-size: 0.65rem; color: var(--text-light); }
.match-adv { font-weight: 500; color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-score { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--marine); white-space: nowrap; }
.match-mois { font-size: 0.65rem; color: var(--text-light); }

/* ── Buteurs ── */
.buteurs-note { font-size: 0.76rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.buteurs-liste { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.buteur-ligne { display: flex; align-items: center; gap: 10px; }
.buteur-nom { width: 170px; flex-shrink: 0; font-weight: 500; font-size: 0.86rem; }
.buteur-nom small { color: var(--text-light); font-weight: 400; margin-left: 4px; }
.buteur-barre-wrap { flex: 1; height: 7px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.buteur-barre { height: 100%; background: linear-gradient(90deg, var(--rouge), var(--or)); border-radius: 4px; }
.buteur-total { font-family: 'Oswald', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--rouge); width: 58px; text-align: right; }
.buteurs-complement { font-size: 0.86rem; color: var(--text-light); line-height: 1.6; border-left: 3px solid var(--or); padding-left: 12px; margin-top: 14px; }

/* ── Records ── */
.records-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.record-item {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.record-icon { font-size: 1.3rem; }
.record-titre { font-family: 'Oswald', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--marine); }
.record-detail { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }

/* ── Classement ── */
.tableau-classement-wrap { overflow-x: auto; margin-bottom: 14px; }
.tableau-classement {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.tableau-classement th {
  background: var(--marine);
  color: rgba(255,255,255,0.7);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.tableau-classement td { padding: 7px 10px; border-bottom: 1px solid var(--bg-alt); }
.tableau-classement tr:last-child td { border-bottom: none; }
.tableau-classement tr.ligne-ol td { background: rgba(201,168,76,0.08); font-weight: 600; }
.classement-note { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; margin-top: 12px; }

/* ── Distinctions ── */
.distinctions-liste { display: flex; flex-direction: column; gap: 16px; }
.distinction-item {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-left: 3px solid var(--or);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.distinction-joueur { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700; color: var(--marine); }
.distinction-titre { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.distinction-detail { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }

/* ── Formation (ancienne version) ── */
.formation-note { font-size: 0.84rem; color: var(--text-light); margin-bottom: 20px; }
.terrain-wrap { max-width: 380px; margin: 0 auto; }
.terrain {
  background: linear-gradient(180deg, var(--marine) 0%, #1a2f45 100%);
  border-radius: 10px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.terrain-ligne {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.terrain-ligne:last-child { margin-bottom: 0; }
.joueur-terrain {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 11px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* ── Effectif (ancienne version) ── */
.effectif-groupe { margin-bottom: 28px; }
.effectif-groupe-titre {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rouge);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.effectif-table { width: 100%; border-collapse: collapse; }
.effectif-table th {
  background: var(--bg-alt);
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 6px 10px;
  text-align: left;
}
.effectif-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.effectif-table tr:last-child td { border-bottom: none; }

/* ── Responsive saison ── */
@media (max-width: 860px) {
  .contenu-saison { grid-template-columns: 150px 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .contenu-saison {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .sommaire-saison {
    grid-column: 1;
    position: static;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-height: none;
    margin-bottom: 12px;
  }
  .sommaire-saison ul { display: flex; flex-wrap: wrap; }
  .sommaire-saison li { border-bottom: none; }
  .sommaire-saison a { padding: 7px 12px; font-size: 0.75rem; }
  .contenu-saison .bloc-saison { grid-column: 1; padding: 28px 16px; }
  .domext-wrap { grid-template-columns: 1fr; }
  .matchs-grid { grid-template-columns: 1fr; }
  .records-grille { grid-template-columns: 1fr; }
  .buteur-nom { width: 130px; }
  .saison-chiffres-cles { gap: 20px; }
}

/* ============================================================
   PALMARÈS
   ============================================================ */
.palmares-frise {
  position: relative;
  padding-left: 32px;
}
.palmares-frise::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.palmares-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 24px;
}
.palmares-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}
.palmares-item.titre::before { background: var(--or); border-color: var(--or-light); }
.palmares-annee {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
}
.palmares-competition {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marine);
  margin-top: 2px;
}
.palmares-item.titre .palmares-competition { color: var(--or); }
.palmares-detail { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   RECORDS
   ============================================================ */
.podium-record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.podium-ligne {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  background: var(--blanc);
  padding: 14px 20px;
  gap: 16px;
}
.podium-rang {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}
.podium-ligne:first-child .podium-rang { color: var(--or); font-size: 1.4rem; }
.podium-ligne:nth-child(2) .podium-rang { color: #A8A8B0; }
.podium-ligne:nth-child(3) .podium-rang { color: #C07A40; }
.podium-nom { font-weight: 600; color: var(--marine); }
.podium-nom a { color: var(--marine); }
.podium-nom a:hover { color: var(--rouge); text-decoration: none; }
.podium-detail { font-size: 0.8rem; color: var(--text-light); }
.podium-valeur {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rouge);
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   GRILLE JOUEURS (hub /joueurs/)
   ============================================================ */
.grille-joueurs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.carte-joueur {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blanc);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rouge);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.carte-joueur:hover {
  box-shadow: 0 2px 12px var(--shadow);
  text-decoration: none;
}
.carte-joueur-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--marine);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.carte-joueur-info { flex: 1; min-width: 0; }
.carte-joueur-nom {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--marine);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carte-joueur-poste {
  font-size: 0.72rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}
.carte-joueur-stat {
  font-size: 0.78rem;
  color: var(--rouge);
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   HUB JOUEURS / ENTRAÎNEURS
   ============================================================ */
.liste-joueurs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.ligne-joueur {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blanc);
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ligne-joueur:hover {
  border-color: var(--rouge);
  box-shadow: 0 2px 8px var(--shadow);
  text-decoration: none;
}
.ligne-joueur-nom {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}
.ligne-joueur-detail { font-size: 0.75rem; color: var(--text-light); }
.ligne-joueur-annees {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Filtre alphabétique */
.filtre-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
}
.filtre-alpha a {
  display: inline-block;
  padding: 4px 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid var(--border);
  background: var(--blanc);
  transition: all 0.15s;
  text-decoration: none;
}
.filtre-alpha a:hover,
.filtre-alpha a.actif {
  background: var(--rouge);
  border-color: var(--rouge);
  color: var(--blanc);
}

/* Lettre séparateur */
.lettre-groupe {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 6px 16px;
  border-left: 3px solid var(--rouge);
  margin-bottom: 8px;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.erreur-404 {
  padding: 80px 24px;
  text-align: center;
}
.erreur-404-code {
  font-family: 'Oswald', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--rouge);
  line-height: 1;
  display: block;
}
.erreur-404 h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  color: var(--marine);
  margin: 16px 0 8px;
}
.erreur-404 p { color: var(--text-light); margin-bottom: 32px; }
.btn-retour {
  display: inline-block;
  padding: 12px 32px;
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-retour:hover { background: var(--rouge-dark); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--marine);
  margin-top: 80px;
  border-top: 3px solid var(--rouge);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 40px;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blanc);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--rouge); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.footer-nav-titre {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--blanc); }
.footer-bas {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.drapeau { font-size: 1.1em; }
.badge-poste {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}
.badge-att { background: rgba(227,6,19,0.1); color: var(--rouge); }
.badge-mil { background: rgba(201,168,76,0.15); color: #8A6A10; }
.badge-def { background: rgba(13,27,42,0.1); color: var(--marine); }
.badge-gar { background: rgba(90,90,106,0.12); color: var(--text-light); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Sticky tops : tous les sommaires sticky doivent passer SOUS le header (64px).
   La spécificité "body .X" surcharge les déclarations inline en <style> dans les pages. */
body .sommaire-sticky { top: 64px; }

/* Breakpoint intermédiaire : footer 6 colonnes trop serrées */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
}

/* Tablette / petit desktop : burger + layouts simplifiés */
@media (max-width: 900px) {
  /* Header burger / nav mobile (était à 640px : trop tardif avec 7 items) */
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 67px;
    left: 0; right: 0;
    background: var(--marine-mid);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    z-index: 99;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
  }
  .site-nav.nav-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 24px; border-radius: 0; }
  .nav-has-dropdown > .nav-dropdown-menu { display: flex; position: static; border: none; border-top: none; box-shadow: none; background: rgba(255,255,255,0.05); padding: 0; }
  .nav-dropdown-menu a { padding: 9px 32px; font-size: 0.78rem; }
  .nav-dropdown-sep { margin: 0; }

  /* Layouts */
  .fiche-joueur-layout { grid-template-columns: 1fr; }
  .fiche-joueur-photo { position: static; display: flex; gap: 20px; align-items: flex-start; }
  .joueur-portrait, .joueur-portrait-placeholder { width: 140px; flex-shrink: 0; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .saison-bilan { grid-template-columns: repeat(3, 1fr); }
  .saison-infos { grid-template-columns: repeat(3, 1fr); }
  .bloc-stats-ol { grid-template-columns: repeat(2, 1fr); }
  .grille-joueurs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .grille-vedettes { grid-template-columns: repeat(2, 1fr); }
  .bloc-stats-ol { grid-template-columns: repeat(2, 1fr); }
  .saison-bilan { grid-template-columns: repeat(2, 1fr); }
  .saison-infos { grid-template-columns: repeat(2, 1fr); }
  .podium-ligne { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; }
  .podium-valeur { display: none; }
  .page-entete { padding: 32px 0 28px; }
  .grille-joueurs { grid-template-columns: 1fr; }
  .info-ligne { flex-wrap: wrap; gap: 2px; }
  .grille-7-titres { grid-template-columns: repeat(4, 1fr); }
  .info-ligne-valeur { flex-basis: 100%; font-size: 0.9rem; }
  .logo-sub { display: none; }
  .fiche-joueur-photo { flex-direction: column; }
  .joueur-portrait, .joueur-portrait-placeholder { width: 100%; max-width: 200px; }
}

/* Très petits écrans (iPhone SE, anciens Android) */
@media (max-width: 380px) {
  body { font-size: 15px; }
  .container, .contenu, .page-entete-inner { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .grille-7-titres { grid-template-columns: repeat(2, 1fr); }
  .bloc-stats-ol { grid-template-columns: 1fr; }
  .saison-bilan { grid-template-columns: 1fr; }
  .saison-infos { grid-template-columns: 1fr; }
  .chiffres-grille { grid-template-columns: 1fr; }
  .grille-vedettes { grid-template-columns: 1fr; }
  .erreur-404-code { font-size: 5rem; }
  .page-entete h1 { font-size: 1.5rem; }
  .entete-sommaire-btn, .pastille-saison { font-size: 0.72rem; padding: 4px 10px; }
}

/* ============================================================
   PAGES POSTE — /joueurs/{gardiens|defenseurs|milieux|attaquants}/
   ============================================================ */

/* Bandeau chiffres clés */
.bandeau-poste {
  margin-top: 32px;
  margin-bottom: 8px;
}
.bandeau-poste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bandeau-poste-cell {
  background: var(--blanc);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bandeau-poste-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1;
}
.bandeau-poste-label {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Texte intro */
.texte-intro {
  margin: 32px 0 40px;
  max-width: 780px;
}
.texte-intro p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Bloc graphique */
.bloc-graphique {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  margin-bottom: 40px;
}
.titre-section {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marine);
  margin-bottom: 4px;
}
.sous-titre {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}
.graphique-wrap {
  position: relative;
  height: 240px;
}

/* Tableau */
.bloc-tableau-joueurs {
  margin-bottom: 48px;
}
.filtres-joueurs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 18px 0 16px;
}
#filtre-nom {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--blanc);
  color: var(--text);
}
#filtre-nom:focus {
  outline: none;
  border-color: var(--rouge);
  box-shadow: 0 0 0 2px rgba(227,6,19,0.1);
}
.filtres-decennie {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.btn-decennie {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px;
  background: var(--blanc);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-decennie:hover {
  border-color: var(--rouge);
  color: var(--rouge);
}
.btn-decennie.actif {
  background: var(--marine);
  color: var(--blanc);
  border-color: var(--marine);
}

.tableau-joueurs-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--blanc);
}
.tableau-joueurs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tableau-joueurs th {
  background: var(--bg-alt);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: var(--marine);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--border);
}
.tableau-joueurs th:hover { color: var(--rouge); }
.tableau-joueurs th.num { text-align: right; }
.tableau-joueurs th.tri-actif::after {
  content: ' ▾';
  color: var(--rouge);
  font-size: 0.7em;
}
.tableau-joueurs th.tri-asc::after { content: ' ▴'; color: var(--rouge); font-size: 0.7em; }
.tableau-joueurs td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tableau-joueurs td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-joueurs tr:hover td { background: var(--bg); }
.tableau-joueurs tr:last-child td { border-bottom: none; }

.lien-fiche {
  color: var(--rouge);
  font-weight: 500;
}
.lien-fiche:hover { text-decoration: underline; }

.note-source {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Liens vers autres postes */
.autres-postes {
  margin-bottom: 64px;
}
.autres-postes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.autre-poste-carte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--blanc);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rouge);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.autre-poste-carte:hover {
  box-shadow: 0 2px 10px var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
}
.autre-poste-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1;
}
.autre-poste-label {
  font-size: 0.86rem;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .bandeau-poste-num { font-size: 1.7rem; }
  .tableau-joueurs th, .tableau-joueurs td { padding: 9px 10px; font-size: 0.85rem; }
  .filtres-joueurs { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   CONFRONTATIONS — Hub + pages club
   ============================================================ */
.conf-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 40px 0 64px;
}
.conf-carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.conf-carte:hover {
  border-color: var(--rouge);
  box-shadow: 0 2px 14px var(--shadow);
  text-decoration: none;
}
.conf-carte-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-bottom-left-radius: 3px;
}
.conf-carte-badge.derby { background: var(--or); color: var(--marine); }
.conf-carte-nom {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-right: 64px;
}
.conf-carte-court {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: -10px;
}
.conf-bilan-mini {
  display: flex;
  gap: 6px;
}
.conf-bilan-mini-case {
  flex: 1;
  text-align: center;
  padding: 7px 4px 5px;
  background: var(--bg-alt);
  border-radius: 3px;
}
.conf-bilan-mini-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.conf-bilan-mini-num.v { color: var(--vert); }
.conf-bilan-mini-num.n { color: var(--gris-match); }
.conf-bilan-mini-num.d { color: var(--rouge); }
.conf-bilan-mini-lab {
  font-size: 0.62rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.conf-carte-pied {
  font-size: 0.75rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.conf-carte-voir {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rouge);
}

/* Page club individuelle */
.conf-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0 36px;
}
.conf-stats-case {
  background: var(--blanc);
  padding: 20px 16px;
  text-align: center;
}
.conf-stats-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--marine);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.conf-stats-num.v { color: var(--vert); }
.conf-stats-num.d { color: var(--rouge); }
.conf-stats-lab {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.conf-tableau {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.conf-tableau thead th {
  background: var(--marine);
  color: rgba(255,255,255,0.75);
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: left;
}
.conf-tableau tbody tr { border-bottom: 1px solid var(--border); }
.conf-tableau tbody tr:nth-child(even) td { background: var(--bg-alt); }
.conf-tableau tbody tr:nth-child(odd) td { background: var(--blanc); }
.conf-tableau td { padding: 10px 14px; color: var(--text); }
.conf-tableau td.score {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--marine);
}
.conf-moment {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rouge);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.conf-moment-date {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.conf-moment-score {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--marine);
  margin-bottom: 6px;
}
.conf-moment-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.conf-retour {
  margin: 48px 0 64px;
  padding: 16px 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}
.conf-retour a { color: var(--rouge); font-weight: 600; }
.conf-h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--marine);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.conf-intro {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .conf-grille { grid-template-columns: 1fr 1fr; }
  .conf-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .conf-tableau thead th, .conf-tableau td { padding: 8px 10px; font-size: 0.84rem; }
}
