/* =========================================================
   GUIDESPORTIF — Rubrique Ligue Magnus
   ========================================================= */

/* ---------- Hero & navigation ---------- */
.hero-magnus{ position: relative; padding: 30px 0 60px; background: #0A1628; color: rgba(255,255,255,.8); overflow: hidden; }
.hero-magnus::before{ content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(11,132,198,.55), transparent 50%), radial-gradient(circle at 0% 100%, rgba(255,90,31,.25), transparent 45%); }
.hero-magnus::after{ content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent); }
.hero-magnus .container{ z-index: 1; }
.hm-saison{ display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 8px; }
.hero-magnus h1{ color: #fff; font-size: clamp(46px, 7vw, 88px); letter-spacing: -.05em; line-height: .95; margin-bottom: 18px; }
.hm-txt{ font-size: 17px; max-width: 640px; }
.hm-chiffres{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hm-chiffres div{ padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.hm-chiffres strong{ display: block; font-family: var(--f-titre); font-size: 26px; color: #fff; line-height: 1.1; }
.hm-chiffres span{ font-size: 13px; }
.hm-tv{ display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 22px; background: #fff; color: var(--txt); box-shadow: var(--ombre-h); transition: transform .25s; }
.hm-tv:hover{ transform: translateY(-3px); color: var(--txt); }
.hm-tv strong{ display: block; font-family: var(--f-titre); color: var(--ink); font-size: 18px; }
.hm-tv small{ font-size: 14px; line-height: 1.45; display: block; }
.hm-tv > .ico{ flex-shrink: 0; color: var(--ink); }
.hm-tv-ico{ width: 52px; height: 52px; border-radius: 16px; background: var(--sport); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.hm-tv-ico .ico{ width: 26px; height: 26px; }

.nav-magnus{ background: #0A1628; position: sticky; top: 132px; z-index: 800; }
.nav-magnus-inner{ display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 54px; }
.nav-magnus-inner::-webkit-scrollbar{ display: none; }
.nm-titre{ display: inline-flex; align-items: center; gap: 7px; color: #7DD3FC; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-right: 12px; white-space: nowrap; }
.nav-magnus a{ padding: 8px 14px; border-radius: 100px; color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav-magnus a:hover{ color: #fff; background: rgba(255,255,255,.08); }
.nav-magnus a.actif{ background: #fff; color: #0A1628; }
.subnav-inner a.subnav-special{ color: #fff; background: #0A1628; }
.subnav-inner a.subnav-special:hover, .subnav-inner a.subnav-special.actif{ background: var(--sport); color: #fff; }

/* ---------- Logos ---------- */
.eq-logo{ display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; }
.eq-logo img{ width: 100%; height: 100%; object-fit: contain; }
.eq-logo-xs{ width: 24px; height: 24px; }
.eq-logo-s{ width: 34px; height: 34px; }
.eq-logo-m{ width: 58px; height: 58px; }
.eq-logo-l{ width: 84px; height: 84px; }
.eq-logo-xl{ width: 120px; height: 120px; padding: 12px; border-radius: 30px; background: #fff; box-shadow: var(--ombre-h); }
.eq-logo-vide{ border-radius: 50%; background: var(--fond); font-weight: 800; font-size: 11px; color: var(--ink); }
.bandeau-logos{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 24px; border-radius: var(--r); background: var(--fond); margin-bottom: 46px; }
.bandeau-logos a{ transition: transform .25s; }
.bandeau-logos a:hover{ transform: scale(1.12); }

/* ---------- Matchs ---------- */
.liste-matchs{ display: flex; flex-direction: column; gap: 8px; }
.match{ display: grid; grid-template-columns: 96px 1fr 86px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ligne); transition: box-shadow .2s, border-color .2s; }
.match:hover{ box-shadow: var(--ombre); border-color: transparent; }
.match-date{ font-size: 13px; color: var(--gris); font-weight: 500; }
.match-eq{ display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); min-width: 0; font-size: 15px; }
.match-eq span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-dom{ justify-content: flex-end; text-align: right; }
.match-fini .match-eq{ color: var(--gris); font-weight: 500; }
.match-fini .match-eq.gagnant{ color: var(--ink); font-weight: 700; }
.match-score{ text-align: center; line-height: 1.1; }
.match-score strong{ display: inline-block; font-family: var(--f-titre); font-size: 19px; color: var(--ink); background: var(--fond); padding: 6px 10px; border-radius: 10px; min-width: 70px; }
.match-score small{ display: block; font-size: 11px; color: var(--gris); margin-top: 3px; }
.match-vs{ display: inline-block; font-family: var(--f-titre); font-weight: 700; color: var(--sport); background: var(--sport-soft); padding: 6px 10px; border-radius: 10px; min-width: 70px; }
.match-diff{ display: flex; gap: 6px; justify-content: flex-end; }
.diff{ display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; letter-spacing: .02em; }
.diff .ico{ width: 13px; height: 13px; }
.diff-tv{ background: #FEE2E2; color: #B91C1C; }
.diff-magnus{ background: #0A1628; color: #fff !important; }
.diff-magnus:hover{ background: var(--sport); }
.match-fini .diff-magnus{ opacity: .45; }
.prochain-match{ margin-bottom: 20px; }

/* ---------- Classement ---------- */
.classement{ width: 100%; border-collapse: collapse; font-size: 14px; }
.classement th{ font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 700; padding: 8px 6px; text-align: center; }
.classement th:nth-child(2){ text-align: left; }
.classement-compact td:last-child, .classement-compact th:last-child{ text-align: right; width: 60px; }
.classement td{ padding: 7px 6px; text-align: center; border-top: 1px solid var(--ligne); }
.classement td:first-child{ font-weight: 700; color: var(--gris); width: 26px; }
.classement td:nth-child(2){ text-align: left; }
.classement tr.zone-playoffs td:first-child{ box-shadow: inset 3px 0 0 var(--sport); }
.classement tr.zone-maintien td:first-child{ box-shadow: inset 3px 0 0 #F59E0B; }
.cl-eq{ display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.encart-classement{ background: #fff; box-shadow: inset 0 0 0 1px var(--ligne); }
.legende-classement{ display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gris); margin: 12px 0 6px; flex-wrap: wrap; }
.lg{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-playoffs{ background: var(--sport); }
.lg-maintien{ background: #F59E0B; margin-left: 8px; }
.mention-classement{ font-size: 12px; color: var(--gris); line-height: 1.5; margin: 0; }
.liste-champions{ list-style: none; padding: 0; margin: 0 0 14px; }
.liste-champions li{ display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--ligne); }
.liste-champions strong{ font-family: var(--f-titre); color: var(--sport); width: 44px; }

/* ---------- Cartes équipes ---------- */
.carte-equipe{ position: relative; height: 100%; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--ligne); transition: all .3s; }
.carte-equipe:hover{ transform: translateY(-4px); box-shadow: var(--ombre-h); border-color: transparent; }
.ce-haut{ display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ce-rang{ font-family: var(--f-titre); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; }
.ce-rang sup{ font-size: 12px; }
.carte-equipe h2{ font-size: 21px; margin-bottom: 6px; }
.carte-equipe h2 a{ color: var(--ink); }
.ce-lieu{ font-size: 14px; color: var(--gris); display: flex; gap: 6px; margin-bottom: 16px; }
.ce-lieu .ico{ color: var(--sport); }
.ce-stats{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ce-stats span{ font-size: 13px; padding: 5px 11px; border-radius: 100px; background: var(--fond); }
.ce-stats strong{ color: var(--ink); }
.ce-reseaux{ display: flex; gap: 4px; }

/* ---------- Fiche équipe ---------- */
.entete-equipe .ecl-inner .eq-logo-xl{ flex-shrink: 0; }
.stats-equipe{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.stats-equipe div{ background: #fff; border-radius: 14px; padding: 12px; }
.stats-equipe strong{ display: block; font-family: var(--f-titre); font-size: 22px; color: var(--ink); line-height: 1.1; }
.stats-equipe sup{ font-size: 11px; }
.stats-equipe span{ font-size: 12px; color: var(--gris); }
.forme{ display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gris); }
.forme span{ margin-right: 6px; }
.forme i{ width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; }
.forme .f-V{ background: #16A34A; }
.forme .f-D{ background: #DC2626; }
.forme .f-P{ background: #F59E0B; }
.titres-annees{ font-family: var(--f-titre); font-weight: 700; color: var(--ink); line-height: 1.8; }
.onglets{ display: flex; gap: 6px; margin-bottom: 14px; }
.onglet{ padding: 9px 16px; border-radius: 100px; border: 1px solid var(--ligne); background: #fff; font-weight: 600; font-size: 14px; color: var(--txt); }
.onglet.actif{ background: var(--ink); border-color: var(--ink); color: #fff; }
.effectif-titre{ font-size: 16px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--sport); padding-bottom: 8px; }
.effectif-titre small{ color: var(--gris); font-weight: 500; }
.effectif{ list-style: none; padding: 0; margin: 0; }
.effectif li{ display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--ligne); }
.ef-num{ width: 34px; height: 34px; border-radius: 10px; background: var(--fond); display: grid; place-items: center; font-family: var(--f-titre); font-weight: 800; color: var(--ink); font-size: 14px; flex-shrink: 0; }
.ef-nom{ font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.25; }
.ef-nom small{ display: block; font-weight: 400; color: var(--gris); font-size: 12px; }

/* ---------- Calendrier ---------- */
.outils-calendrier{ align-items: center; top: 186px; }
.case-tv{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); padding: 10px 16px; border: 1.5px solid var(--ligne); border-radius: 100px; cursor: pointer; }
.case-tv .ico{ color: #B91C1C; }
.journee{ margin-bottom: 30px; scroll-margin-top: 260px; }
.journee h2 small{ font-size: 14px; font-weight: 500; color: var(--gris); font-family: var(--f-txt); margin-left: 6px; }
.journee-courante h2{ color: var(--sport); }

/* ---------- Palmarès ---------- */
.champion-en-titre{ display: flex; gap: 28px; align-items: center; padding: 30px; border-radius: 28px; background: linear-gradient(135deg, #FEF3C7, #FFF7E6); margin-bottom: 40px; }
.champion-en-titre h2{ font-size: clamp(28px, 4vw, 40px); margin: 0; }
.champion-en-titre p{ margin: 8px 0 0; }
.champion-en-titre .surtitre{ color: #B45309; }
.palmares{ width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.palmares th{ width: 70px; font-family: var(--f-titre); color: var(--sport); padding: 8px 0; vertical-align: top; }
.palmares td{ padding: 8px 0; border-bottom: 1px solid var(--ligne); font-weight: 600; color: var(--ink); }
.palmares td a{ display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.palmares td small{ font-weight: 400; color: var(--gris); }
.palmares .sans-titre td{ color: var(--gris); font-weight: 400; }
.classement-titres{ list-style: none; padding: 0; margin: 0 0 12px; counter-reset: ct; }
.classement-titres li{ counter-increment: ct; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.classement-titres li::before{ content: counter(ct); width: 22px; font-weight: 700; color: var(--gris); font-size: 13px; }
.classement-titres li > a, .classement-titres li > span{ flex: 1; display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.classement-titres strong{ font-family: var(--f-titre); font-size: 18px; color: var(--sport); }

/* ---------- Regarder ---------- */
.option-tv{ height: 100%; padding: 32px; border-radius: 26px; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.option-tv h2{ color: #fff; font-size: 34px; letter-spacing: -.03em; }
.option-tv strong{ color: #fff; }
.option-tv .liste-check .ico{ color: #4ADE80; }
.option-tv .liste-check{ margin: 18px 0 24px; }
.option-magnus{ background: linear-gradient(135deg, #0A1628, #0B4F7A); }
.option-sef{ background: linear-gradient(135deg, #1E3A8A, #DC2626); }
.ot-etiquette{ display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,.15); margin-bottom: 14px; }

@media (max-width: 991px){
  .nav-magnus{ top: 122px; }
  .match{ grid-template-columns: 1fr 76px 1fr; grid-template-areas: "date date date" "dom score ext" "diff diff diff"; row-gap: 8px; }
  .match-date{ grid-area: date; }
  .match-dom{ grid-area: dom; }
  .match-score{ grid-area: score; }
  .match-ext{ grid-area: ext; }
  .match-diff{ grid-area: diff; justify-content: center; }
  .outils-calendrier{ position: static; }
}
@media (max-width: 767px){
  .nav-magnus{ position: static; }
  .match-eq{ font-size: 13px; gap: 6px; }
  .match-eq span{ white-space: normal; }
  .champion-en-titre{ flex-direction: column; align-items: flex-start; }
  .bandeau-logos{ justify-content: center; }
}
