:root{
  --bg:#0b1c3f;
  --panel:#081633;
  --panel2:#0b1c3f;
  --gold:#d4af37;
  --white:#ffffff;
  --muted:rgba(255,255,255,.75);
  --line:rgba(255,255,255,.10);
  --lineGold:rgba(212,175,55,.35);
  --shadow:0 18px 40px rgba(0,0,0,.35);
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(212,175,55,.12), transparent),
    radial-gradient(900px 400px at 80% 20%, rgba(255,255,255,.06), transparent),
    var(--bg);
  color:var(--white);
}
.container{width:90%;max-width:1200px;margin:auto}

/* HEADER */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(8,22,51,.88);
  backdrop-filter: blur(8px);
  border-bottom:3px solid var(--gold);
}
.header-inner{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 0;
}
.logo-main{height:78px;width:auto;display:block}
nav{display:flex;gap:18px;align-items:center}
nav a{
  color:var(--gold);
  text-decoration:none;
  font-weight:800;
  padding:10px 12px;
  border-radius:10px;
  transition:.25s;
}
nav a:hover{background:rgba(212,175,55,.15)}
nav a.active{
  background:rgba(212,175,55,.2);
  outline:1px solid rgba(212,175,55,.3);
}

/* HERO */
.hero{
  padding:56px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent),
    linear-gradient(180deg, rgba(8,22,51,.70), transparent);
}
.hero h1{
  margin:0;
  font-size:clamp(2.2rem,3.5vw,3.2rem);
  color:var(--gold);
}
.hero p{margin-top:10px;color:var(--muted);font-weight:700}

.hero-home .hero-content{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:center;
}
.hero-actions{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap}

/* BUTTONS */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:12px;
  text-decoration:none;font-weight:900;
}
.btn.gold{background:var(--gold);color:var(--panel)}
.btn.outline{border:1px solid rgba(212,175,55,.55);color:var(--gold);background:transparent}
.btn.small{padding:10px 12px;font-size:.92rem}

/* HERO PANEL */
.hero-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border:1px solid var(--lineGold);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

/* KPI (3 cases) */
.hero-kpi{
  display:grid;
  /* Saison un peu plus large pour afficher 2026 en entier */
  grid-template-columns: 1.25fr 1fr 1fr;
  gap:10px;
}
.kpi{
  background:rgba(11,28,63,.55);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  min-width:0;
}
.kpi-label{
  display:block;
  font-size:.85rem;
  color:rgba(255,255,255,.7);
  font-weight:800;
  white-space:nowrap;
}
.kpi-value{
  display:block;
  margin-top:4px;
  font-size:1.35rem;
  font-weight:950;
  color:var(--gold);
  line-height:1.2;
}

/* Select Saison (2026 non coupé + flèche) */
#season-select{
  width:100%;
  margin-top:4px;
  font-size:1.35rem;
  font-weight:950;
  line-height:1.2;
  color:var(--gold);

  background-color:transparent;
  border:0;
  padding:0;
  padding-right:42px;
  cursor:pointer;

  min-width:88px;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 8px center;
  background-size:18px;

  white-space:nowrap;
}
#season-select option{
  background:var(--panel);
  color:var(--gold);
}

/* SECTIONS */
.section{padding:40px 0}
.section.dark{background:rgba(8,22,51,.60)}
h2{color:var(--gold);margin:0}

/* HOME GRID + CARDS */
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border:1px solid var(--lineGold);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
}
.link{color:var(--gold);text-decoration:none;font-weight:900}
.list{display:grid;gap:12px}

/* MATCH ROW */
.match-row{
  background:rgba(11,28,63,.75);
  border:1px solid var(--line);
  border-left: 4px solid transparent; /* ✅ AJOUT */
  border-radius:12px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.team-name{display:flex;align-items:center;gap:8px;font-weight:900}
.team-logo-inline{width:26px;height:26px;object-fit:contain}
.vs{opacity:.6;font-weight:900}
.score{
  color:var(--gold);
  font-weight:950;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(212,175,55,.15);
  border:1px solid rgba(212,175,55,.3);
}
.match-meta{color:var(--muted);font-size:.9rem;font-weight:800}

/* =========================
   CALENDRIER – DIFFÉRENCIER MATCHS
   (joué / à venir / à programmer)
   ========================= */

/* Match joué */
.match-row.played{
  background: rgba(11,28,63,.85);
  border: 1px solid rgba(212,175,55,.45);
  border-left: 4px solid var(--gold);
  border-left-color: rgba(212,175,55,.85); /* ✅ AJOUT (optionnel mais recommandé) */
  box-shadow: 0 10px 22px rgba(212,175,55,.10);
}

.match-row.played .score{
  background: rgba(11,28,63,.95);          /* sombre */
  color: var(--gold);                      /* texte or */

  border: 1px solid rgba(212,175,55,.55);
  box-shadow:
    0 6px 14px rgba(212,175,55,.25),        /* glow doux */
    inset 0 1px 0 rgba(255,255,255,.08);   /* relief subtil */

  font-weight: 950;
  font-size: 1.05rem;
  padding: 6px 14px;
  min-width: 78px;
  text-align: center;
  letter-spacing: .3px;
}

/* Match à venir (date connue, pas de score) */
.match-row.upcoming{
  background: rgba(11,28,63,.55);
  border-color: rgba(255,255,255,.12);
  border-left-color: rgba(255,255,255,.35);
}

.match-row.upcoming .match-meta{
  color: rgba(255,255,255,.85);
}

/* Match à programmer (pas de date) */
.match-row.tbd{
  opacity: .6;
  border-left-color: rgba(255,255,255,.18);
}

.match-row.tbd .match-meta{
  font-style: italic;
}


/* TABLE */
.table-card{padding:0;overflow-x:auto}
.table{
  width:100%;
  border-collapse:collapse;
  table-layout: auto; /* ✅ laisse le contenu décider */
}

.table th,.table td{padding:14px;border-bottom:1px solid var(--line)}
.table th{text-align:left;color:var(--muted);font-size:.85rem}
.table-footer{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;
}
.muted{color:var(--muted);font-weight:800}

/* TEAMS PAGE */
.teams-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
.team-card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border:1px solid var(--lineGold);
  border-radius:var(--radius);
  padding:22px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,.22);
}
.team-logo{height:90px;margin-bottom:12px}
.players{display:flex;justify-content:center;gap:18px;margin-top:15px;flex-wrap:wrap}
.player img{
  width:90px;height:90px;border-radius:50%;
  border:2px solid var(--gold);
  object-fit:cover;
}
.player span{
  display:block;margin-top:6px;font-weight:900;font-size:.9rem;color:rgba(255,255,255,.85);
}

/* FOOTER */
.footer{
  text-align:center;
  padding:20px;
  background:rgba(8,22,51,.9);
  border-top:2px solid var(--gold);
  font-weight:800;
  color:var(--muted);
}

/* RESPONSIVE */
@media(max-width:900px){
  .home-grid{grid-template-columns:1fr}
  .hero-home .hero-content{grid-template-columns:1fr}
  nav{gap:10px}
  .logo-main{height:64px}
  .hero-kpi{grid-template-columns:repeat(2,1fr)}
}

/* =========================
   Sélecteur saison ultra compact
   ========================= */
.season-dropdown{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:28px; /* espace AVANT les équipes */
}

.season-label{
  font-weight:800;
  color:rgba(255,255,255,.75);
  white-space:nowrap;
}

#season-btn{
  background:#081633;
  color:var(--gold);
  border:1px solid rgba(212,175,55,.55);
  border-radius:8px;
  padding:6px 34px 6px 12px;
  font-weight:900;
  font-size:1rem;
  cursor:pointer;
  position:relative;
}

#season-btn::after{
  content:"";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:6px solid var(--gold);
}

#season-menu{
  position:absolute;
  top:100%;
  left:60px;
  margin-top:6px;

  list-style:none;
  padding:6px 0;
  margin:0;

  background:#081633;
  border:1px solid rgba(212,175,55,.55);
  border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,.4);

  display:none;
  z-index:20;
  min-width:110px;
}

#season-menu li{
  padding:8px 14px;
  font-weight:900;
  color:var(--gold);
  cursor:pointer;
}

#season-menu li:hover{
  background:rgba(212,175,55,.15);
}

/* =========================
   SOMMAIRE CALENDRIER (Aller / Retour)
   ========================= */

/* Conteneur principal */
.calendar-toc{
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--lineGold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
}

/* Titre Sommaire */
.calendar-toc h3{
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 950;
  color: var(--gold);
}

/* Section Aller / Retour */
.toc-section{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,.20);
}
.toc-section:first-of-type{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.toc-section-title{
  margin: 0 0 10px;
  font-weight: 950;
  color: rgba(255,255,255,.9);
}

/* ===== SOMMAIRE : 2 colonnes SANS puces (HTML généré par le JS) ===== */
.calendar-toc .toc-list{
  list-style: none;
  padding: 0;
  margin: 0;

  column-count: 2;
  column-gap: 22px;
}

.calendar-toc .toc-list li{
  break-inside: avoid;
  margin: 6px 0;
  padding-left: 12px;
  position: relative;
}

/* Mobile : 1 colonne */
@media(max-width:700px){
  .calendar-toc .toc-list{
    column-count: 1;
  }
}


/* Liens */
.calendar-toc a{
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
}
.calendar-toc a:hover{
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 700px){
  .toc-two-col{
    grid-template-columns: 1fr;
  }
}
/* =========================
   HOVER – CLASSEMENT (ta table = .table)
   ========================= */
.table tbody tr{
  transition: transform .18s ease, background .18s ease;
}
.table tbody tr:hover{
  transform: translateY(-2px);
  background: rgba(212,175,55,.08);
}

/* Logo inline déjà présent */
.table tbody tr .team-logo-inline{
  transition: transform .18s ease;
}
.table tbody tr:hover .team-logo-inline{
  transform: scale(1.08);
}

/* =========================
   HOVER – CALENDRIER (tes matchs = .match-row)
   ========================= */
.match-row{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.match-row:hover{
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.45);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  background: rgba(11,28,63,.85);
}

.match-row .team-logo-inline{
  transition: transform .18s ease;
}
.match-row:hover .team-logo-inline{
  transform: scale(1.08);
}

/* =========================
   HOVER – HISTORIQUE (ligne)
   ========================= */
.history-row{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.history-row:hover{
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  background: linear-gradient(180deg, rgba(212,175,55,.10), rgba(255,255,255,.02));
}


/* =========================
   HOVERS / INTERACTIONS (Teams)
   ========================= */

/* Carte équipe : lift + glow léger */
.team-card{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  will-change: transform;
}

.team-card:hover,
.team-card:focus-within{
  transform: translateY(-6px);
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(255,255,255,.01));
}

/* Logo équipe : micro-zoom au survol de la carte */
.team-card:hover .team-logo{
  transform: scale(1.04);
}
.team-logo{
  transition: transform .22s ease, filter .22s ease;
}
.team-card:hover .team-logo{
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
}

/* Player : petite réaction “badge” */
.player{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease;
}

.player:hover,
.player:focus-visible{
  transform: translateY(-3px);
  background: rgba(212,175,55,.10);
  outline: 1px solid rgba(212,175,55,.25);
}

/* Photo joueur : zoom + halo */
.player img{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.player:hover img,
.player:focus-visible img{
  transform: scale(1.06);
  border-color: rgba(212,175,55,.95);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

/* Petit effet sur le nom */
.player span{
  transition: color .18s ease;
}
.player:hover span,
.player:focus-visible span{
  color: var(--gold);
}

/* Mobile : feedback au tap */
@media (hover: none){
  .team-card:active{ transform: translateY(-2px); }
  .player:active{ transform: translateY(-1px); }
}

/* =========================
   BADGES (DATE / À PROGRAMMER)
   Ajoutés car le JS affiche maintenant .pill.date et .pill.tbd
   ========================= */

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

/* Badge date (plus important que "À programmer" mais moins que score) */
.pill.date{
  border-color: rgba(212,175,55,.30);
  background: rgba(212,175,55,.10);
  color: rgba(255,255,255,.92);
}

/* Badge "À programmer" (info secondaire) */
.pill.tbd{
  opacity: .8;
  border-style: dashed;
  color: rgba(255,255,255,.72);
}

/* =========================
   IMAGE JOURNÉE (1080x1080)
   ========================= */
.day-card{
  width:1080px;
  height:1080px;
  background:#081633;
  color:#fff;
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  padding:70px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:2px solid rgba(212,175,55,.35);
  border-radius:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}

.day-card-top{display:flex;flex-direction:column;gap:12px;}
.day-card-league{
  color:rgba(255,255,255,.80);
  font-weight:900;
  letter-spacing:.18em;
  font-size:18px;
  text-transform:uppercase;
}
.day-card-title{
  color:var(--gold);
  font-weight:950;
  font-size:54px;
  line-height:1.05;
}

.day-card-list{display:flex;flex-direction:column;gap:18px;margin-top:10px;}

.day-line{
  display:grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

.day-team{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:950;
  font-size:28px;
}
.day-team.right{justify-content:flex-end;}

.day-team img{
  width:44px;
  height:44px;
  object-fit:contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
}

.day-score{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:950;
  font-size:30px;
  color:var(--gold);
  white-space:nowrap;
}
.day-score .sep{opacity:.55;font-weight:900;}
.day-score .stb{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(212,175,55,.12);
  border:1px solid rgba(212,175,55,.35);
  font-size:26px;
}

.day-card-bottom{display:flex;justify-content:flex-end;}
.day-card-footer{color:rgba(255,255,255,.65);font-weight:800;font-size:18px;}

/* =========================
   SOMMAIRE CALENDRIER — OPTION C (2 CARTES)
   ========================= */

/* Grille 2 cartes */
.toc-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Carte */
.toc-card{
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  overflow:hidden;
}

/* En-tête carte */
.toc-card-head{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(212,175,55,.18);
}

.toc-card-title{
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}

.toc-card-badge{
  font-weight: 950;
  color: var(--gold);
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  white-space: nowrap;
}

/* Corps carte */
.toc-card-body{
  padding: 12px 14px 14px;
}

/* Pastilles */
.toc-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.toc-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.30);
  background: rgba(212,175,55,.10);
  color: var(--gold);
  text-decoration:none;
  font-weight: 900;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.toc-chip:hover{
  transform: translateY(-1px);
  background: rgba(212,175,55,.16);
  border-color: rgba(212,175,55,.55);
  text-decoration:none;
}

/* Mobile : 1 colonne */
@media(max-width:700px){
  .toc-cards{ grid-template-columns: 1fr; }
}

/* =================================================
   ACCUEIL (KPI) — Saison dropdown : même rendu qu’avant
   (texte grand + pas de "petit bouton" dans la case KPI)
   ================================================= */

/* Dans la zone KPI uniquement */
.hero-kpi .season-dropdown{
  margin: 4px 0 0;      /* enlève le gros margin-bottom prévu pour d’autres pages */
  gap: 0;
}

/* Le bouton doit ressembler à l'ancien texte "2026" */
.hero-kpi #season-btn{
  width: 100%;
  background: transparent;   /* pas de fond */
  border: 0;                 /* pas de bordure bouton */
  border-radius: 0;
  box-shadow: none;

  padding: 0 42px 0 0;       /* garde la place pour la flèche */
  color: var(--gold);

  font-size: 1.35rem;        /* ✅ même taille que .kpi-value */
  font-weight: 950;          /* ✅ même graisse que .kpi-value */
  line-height: 1.2;

  text-align: left;
}

/* Flèche comme avant (alignée à droite) */
.hero-kpi #season-btn::after{
  right: 8px;
  border-top: 7px solid var(--gold);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

/* Menu déroulant : s'aligne sous la case KPI */
.hero-kpi #season-menu{
  left: 0;                   /* au lieu de left:60px */
  top: calc(100% + 8px);
  min-width: 100%;
}
/* Pénalités — rouge (malus) */
.penalty {
  color: #ff4d4f;          /* rouge clair mais visible */
  font-weight: 800;
  text-align: center;
}

/* Optionnel : rendre le 0 plus discret */
.penalty:empty,
.penalty[data-zero="1"] {
  color: rgba(255,255,255,.35);
  font-weight: 600;
}

.team-link{
  color: inherit;
  text-decoration: none;
}
.team-link:hover{
  text-decoration: underline;
}
/* ===== Pénalités : colonne fine + affichage conditionnel ===== */

/* Par défaut : cachée */
.table:not(.show-penalties) th.col-penalty,
.table:not(.show-penalties) td.col-penalty{
  display: none;
}

/* Si show-penalties : visible + ultra compacte */
.table.show-penalties th.col-penalty,
.table.show-penalties td.col-penalty{
  display: table-cell;
  width: 56px;          /* ✅ clé : force une petite largeur */
  padding: 4px 6px;     /* ✅ padding réduit */
  text-align: center;
  white-space: nowrap;
}
/* Optionnel : titre "Pénal." plus discret */
.table th.col-penalty{
  font-size: .8rem;
  letter-spacing: .02em;
}
