/* ==========================================================================
   VOLLEYSCORE — identité « éditorial + data » (30/11/2026, 2e version), portée body.v4.
   Typo : Archivo, une seule famille de presse et de sport, jouée sur sa largeur :
   élargie et grasse pour les chiffres et les titres de rubrique (esprit maillot, habillage TV),
   largeur normale pour les titres d'articles et le texte. Casse normale pour les titres.
   Couleurs : le terrain de volley. Fond « salle de nuit », accent orange terrain, bleu zone libre,
   jaune ballon pour les étoiles, rouge réservé au direct. Sous le menu : le liseré rouge du logo.
   ========================================================================== */
body.v4 {
  --ui: 'Archivo', system-ui, sans-serif;
  --display: 'Archivo', system-ui, sans-serif;
  --head: var(--display);
  --r-1: 6px; --r-2: 10px;
  font-family: var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
/* Toutes les polices codées en dur (Barlow, JetBrains Mono, Inter…) suivent l'identité */
body.v4 * { font-family: inherit !important; }
/* Chiffres et titres de rubrique : Archivo élargi et gras */
body.v4 :is(.h6-time, .h6-score, .md-time, .md-score, .mx-sets, .mx-vs, .h5-big, .p3-big b, .p3-ss-c b, .lab-v, .h5-md-t, .h5-md-sc, .nf-code) {
  font-stretch: 125%; font-weight: 800 !important; letter-spacing: -.02em !important;
}
body.v4 :is(.v4-sh h2, .h3-bh h2, .h6-day-h h2, .e5-h h2, .lab-h h2, .kf-h h2, h2.mod-title, h3.mod-title, .wp-h > b, .p3-box-h h2) {
  font-stretch: 118%; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .01em !important; font-size: 15px !important;
}
/* Titres d'articles, noms d'équipe : largeur normale, casse normale */
body.v4 :is(h1, h2, h3, .rx-title, .mx-name, .md-team b, .h6-nm, .day-head, .v4-day, .cc-name, .mg-body h2) {
  text-transform: none; letter-spacing: -.01em;
}

/* ==========================================================================
   CHARTE VOLLEYSCORE (couleurs) — une seule couleur de marque : le rouge du logo.
   --red      rouge VOLLEYSCORE : logo, traits sous l'en-tête et au-dessus du pied de page, boutons, onglet actif,
              liens d'accent, badges. Texte blanc sur fond rouge (--volt-ink).
   --court    = rouge : 1re série des graphiques (équipe à domicile, meilleure valeur).
   --zone     bleu : 2e série des graphiques (équipe à l'extérieur) — jamais comme couleur d'interface.
   --ball     jaune : mise en évidence ponctuelle d'une donnée.
   --live     rouge vif du direct (point qui clignote).
   Pas d'orange. Typographies : Barlow Condensed (logo, titres, scores), Archivo (titres de rubrique),
   Inter / Open Sans (texte), JetBrains Mono (chiffres tabulaires). Voir design/CHARTE.md.
   ========================================================================== */
/* Le terrain */
body.v4[data-theme="dark"], [data-theme="dark"] body.v4, html[data-theme="dark"] body.v4 {
  --bg-page: #0B1115; --bg-card: #121B21; --bg-subtle: #18232A; --bg-hover: #1F2C34;
  --bg-dark: #081014; --bg-dark-2: #0F181D;
  --border: #22313A; --border-strong: #33454F; --border-dark: #22313A;
  --text-main: #EEF2F1; --text-muted: #A9B6B9; --text-dim: #7F8E92;
  --red: #E11D2E; --red-hover: #F2404F; --red-soft: rgba(225, 29, 46, .16);
  --court: #E11D2E; --zone: #4AA3DF; --ball: #F3C623;
  --volt: var(--court); --volt-ink: #FFFFFF;
  --live: #FF3B3B;
}
html:not([data-theme="dark"]) body.v4 {
  --bg-page: #EEF1F0; --bg-card: #FFFFFF; --bg-subtle: #F5F7F6; --bg-hover: #E7ECEB;
  --border: #DCE3E2; --border-strong: #C4CFCD;
  --text-main: #0E171C; --text-muted: #4E5D63; --text-dim: #66757B;
  --red: #C8102E; --red-hover: #A50D26; --red-soft: rgba(200, 16, 46, .10);
  --court: #C8102E; --zone: #1F6FA8; --ball: #C99A00;
  --volt: var(--court); --volt-ink: #FFFFFF;
  --live: #E0261B;
}
body.v4 { background-color: var(--bg-page); color: var(--text-main); }
body.v4 .v4-stars { color: var(--ball) !important; }

/* Liseré rouge du menu (rouge du logo) */
body.v4 .navbar { border-bottom: 3px solid #E11D2E !important; }

/* Sections : surfaces sans bordure, titres en casse normale, pas de barre rouge */
body.v4 .v4-sec { border: 0; border-radius: var(--r-2); background: var(--bg-card); }
body.v4 .v4-sh { border-bottom: 0; min-height: 52px; padding: 14px 18px 6px; }
body.v4 .v4-sh h2 { line-height: 1.1; }
body.v4 .v4-sh h2::before { display: none !important; }
body.v4 .v4-sh .v4-more { font-weight: 600; color: var(--text-muted); }
body.v4 .v4-sh .v4-more:hover { color: var(--text-main); }
body.v4 .v4-note { border-top: 0; color: var(--text-dim); }
body.v4 .h3-box { border: 0; border-radius: var(--r-2); }
body.v4 .h3-bh { border-bottom: 0; }
body.v4 .h3-bh h2 { font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: -.01em; }
body.v4 .h3-bh h2::before { display: none !important; }

/* Boutons segmentés plus calmes */
body.v4 .v4-seg button.on { background: var(--text-main); color: var(--bg-page); }

/* Chiffres de la semaine : grands chiffres en accent, sans cadre */
body.v4 .h5-tiles { background: transparent; gap: 8px; padding: 0 12px 14px; }
body.v4 .h5-tile { border-radius: 12px; background: var(--bg-subtle); min-height: 120px; }
body.v4 .h5-tile::before { display: none; }
body.v4 .h5-tile::after { opacity: .7; }
body.v4 .h5-big { font-weight: 700; letter-spacing: -.03em; }
body.v4 .h5-unit { text-transform: none; font-weight: 600; letter-spacing: 0; color: var(--text-main); }

/* Match du jour : même construction, nouvelle typo */
body.v4 .h6-nm { font-weight: 800; letter-spacing: -.025em !important; line-height: .95; }
body.v4 .h6-time, body.v4 .h6-score { font-weight: 700; letter-spacing: -.04em; }
body.v4 .h6-badge { letter-spacing: .02em; text-transform: none; font-size: 12px; font-weight: 700; background: var(--volt); color: var(--volt-ink); }
body.v4 .h6-day, body.v4 .h6-md { border: 0; }
body.v4 .h6-day-h h2 { font-size: 21px; font-weight: 700; }
body.v4 .h6-vote .vt-h b { letter-spacing: .02em; text-transform: none; font-size: 13px; }

/* Lignes de match et listes : moins de traits */
body.v4 .v4-grp { background: transparent; border-top: 0; color: var(--text-dim); font-weight: 600; }
body.v4 .h6-row, body.v4 .h5-pick, body.v4 .tk-row { border-color: var(--border); }

/* ---------- Accueil éditorial + data ---------- */
.e5-home { display: grid; gap: 22px; }
.e5 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .e5 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; } }
.e5-kick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.e5-kick > span:first-child { color: var(--volt); }
.e5-lg { display: inline-flex; align-items: center; gap: 6px; color: inherit; opacity: .8; }
.e5-lg .crest-img img, .e5-lg img { width: 16px; height: 16px; object-fit: contain; }

/* La une */
.e5-lead { position: relative; display: block; min-height: 520px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #0C0C0A; color: #F3F0E8; text-align: left; font: inherit; cursor: pointer; isolation: isolate; }
.e5-lead .mg-vis { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; z-index: -1; border-radius: 0; }
.e5-lead .mg-vis img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.e5-lead:hover .mg-vis img { transform: scale(1.04); }
.e5-lead .mg-vis .cr-credit { top: 10px; right: 12px; bottom: auto; left: auto; max-width: 70%; }
.e5-lead .mg-vis .s2-crests { display: none; }
.e5-lead-t { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 120px 28px 26px; background: linear-gradient(180deg, transparent, rgba(8, 8, 6, .55) 35%, rgba(8, 8, 6, .92)); }
.e5-lead-t .e5-kick > span:first-child { color: var(--court); }
.e5-lead-t h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 700; line-height: .98; letter-spacing: -.035em !important; max-width: 22ch; text-wrap: balance; }
.e5-lead-t p { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: rgba(243, 240, 232, .78); }
.e5-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Les trois sujets à côté */
.e5-side { display: grid; gap: 14px; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.e5-s { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border: 0; border-radius: 16px; background: var(--bg-card); color: var(--text-main); text-align: left; font: inherit; cursor: pointer; transition: background .2s ease; }
.e5-s:hover { background: var(--bg-hover); }
.e5-s .mg-vis { aspect-ratio: 4 / 3; border-radius: 10px; }
.e5-s .mg-vis .cr-credit, .e5-s .mg-vis .s2-crests { display: none; }
.e5-s .mg-potd-tag { left: 6px; top: 6px; padding: 3px 6px; } .e5-s .mg-potd-tag b { font-size: 12px; }
.e5-s-t { display: grid; gap: 6px; min-width: 0; }
.e5-s-t h3 { margin: 0; font-family: var(--display) !important; font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 979px) { .e5-lead { min-height: 460px; } }
@media (max-width: 600px) {
  .e5-lead { min-height: 420px; border-radius: 14px; }
  .e5-lead-t { padding: 90px 16px 18px; }
  .e5-s { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .e5-s-t h3 { font-size: 16px; }
}

/* Le match du jour et « À l'affiche » */
.e5-today { grid-area: auto; }

/* Donnée + Mag */
.e5-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .e5-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.e5-main, .e5-aside { display: grid; gap: 18px; min-width: 0; }
.e5-h { display: flex; align-items: baseline; gap: 12px; margin: 4px 2px 12px; }
.e5-h h2 { margin: 0; font-size: 26px; font-weight: 700; }
.e5-h .v4-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.e5-cards { display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .e5-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.e5-card { display: grid; align-content: start; gap: 10px; padding: 0; border: 0; background: none; color: var(--text-main); text-align: left; font: inherit; cursor: pointer; }
.e5-card .mg-vis { aspect-ratio: 4 / 3; border-radius: 12px; }
.e5-card .mg-vis .cr-credit, .e5-card .mg-vis .s2-crests { display: none; }
.e5-card .mg-potd-tag b { font-size: 13px; }
.e5-card-t { display: grid; gap: 6px; padding: 0 2px; }
.e5-card-t b { font-family: var(--display) !important; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.e5-card:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Emplacements publicitaires (ads.js) : centrés, à l'écart des boutons */
.e5-ad { display: flex; justify-content: center; margin: 6px 0; }
.e5-ad:empty { display: none; }
/* Annonce du fil du Mag : une carte parmi les cartes (format pavé), pas une rangée vide */
.e5-ad-feed { grid-column: auto; display: grid; place-items: center; align-self: start; min-height: 100%; padding: 10px 0; border-radius: 12px; background: var(--bg-card); }
@media (max-width: 759px) { .e5-ad-feed { grid-column: 1 / -1; } }
.e5-ad-feed:empty { display: none; }
.e5-ad-article { padding: 18px 26px 26px; }
@media (prefers-reduced-motion: reduce) { .e5-lead .mg-vis img { transition: none; } .e5-lead:hover .mg-vis img { transform: none; } }
/* Le logo (SVG) garde son lettrage d origine */
body.v4 svg text { font-family: 'Barlow Condensed', sans-serif !important; }

/* ---------- Emplacements publicitaires (public/ads.js) : place réservée, aucun saut de mise en page ----------
   En aperçu local : un cadre discret « Publicité · taille ». En production et tant que rien n'est configuré : rien. */
body.v4 .ht-ad { min-width: 0; margin: 0; padding: 4px 0; text-align: center; container-type: inline-size; width: 100%; }
body.v4 .ht-ad-box { position: relative; width: min(100%, var(--ad-w)); height: var(--ad-h); margin: 0 auto; overflow: hidden; border-radius: 6px; }
body.v4 .ht-ad-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-dim); font-size: 11px; pointer-events: none; }
body.v4 .ht-ad-preview .ht-ad-box { outline: 1px dashed var(--border-strong); outline-offset: -1px; background: var(--bg-subtle); }
body.v4 .ht-ad ins { position: relative; z-index: 1; }
body.v4 .ht-ad-top { max-width: 1240px; margin: 8px auto; padding: 0 12px; }
@media (min-width: 1100px) { body.v4 .ht-ad-top { --ad-w: 970px !important; } }
@container (max-width: 727px) { body.v4 .ht-ad-article .ht-ad-box { --ad-w: 300px; --ad-h: 250px; } }
@media (max-width: 760px) {
  body.v4 .ht-ad { --ad-w: 300px !important; --ad-h: 250px !important; }
  body.v4 .ht-ad-top { --ad-w: 320px !important; --ad-h: 100px !important; }
}
/* Colonne de droite : le pavé 300×250 tient dans 340 px */
body.v4 .e5-aside .ht-ad { padding: 0; }

/* ---------- 2e version (30/11) : calendrier en tête, une façon presse, « Le fil » ---------- */
.e5-home > * { min-width: 0; }
.e5-rail { min-width: 0; }
.e5-rail .rail-wrap { min-width: 0; max-width: 100%; }
/* La une : une couverture. La photo plein cadre, un voile en bas, le titre en blanc posé dessus */
.e5-lead { display: grid; align-content: end; min-height: 500px; padding: 0; background: #0A0F12; color: #fff; border-radius: var(--r-2); }
.e5-lead .mg-vis { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; border-radius: 0; }
.e5-lead .mg-vis img { object-position: center 28%; }
.e5-lead:hover .mg-vis img { transform: scale(1.03); }
.e5-lead .mg-vis .cr-credit { top: 10px; right: 12px; bottom: auto; left: auto; max-width: 60%; }
.e5-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 13, 0) 28%, rgba(6, 10, 13, .6) 58%, rgba(6, 10, 13, .95) 100%), linear-gradient(90deg, rgba(6, 10, 13, .5), rgba(6, 10, 13, 0) 65%); }
.e5-lead-t { position: relative; display: grid; gap: 12px; padding: 0 30px 28px; background: none; }
.e5-lead-t .e5-kick { gap: 8px; color: #fff; }
.e5-lead-t .e5-kick > span:first-child { padding: 5px 9px 4px; background: var(--court); color: #FFFFFF !important; font-size: 11.5px; line-height: 1; }
.e5-lead-t .e5-lg { opacity: 1; padding: 3px 8px 3px 5px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; }
.e5-lead-t h2 { margin: 0; font-size: clamp(30px, 3.5vw, 52px); font-weight: 800; font-stretch: 106%; line-height: 1.0; letter-spacing: -.025em !important; max-width: 19ch; color: #fff; text-wrap: balance; text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.e5-lead-t p { margin: 0; max-width: 54ch; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .84); }
.e5-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.e5-lead:focus-visible { outline: 3px solid var(--zone); outline-offset: 3px; }
/* Match à la une : les deux écussons sur pastille claire (lisibles même quand le logo est sombre) */
.e5-vs { display: inline-flex; align-items: center; gap: 10px; }
.e5-vs .crest-img { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.e5-vs .crest-img img { width: 38px; height: 38px; object-fit: contain; }
.e5-vs b { font-size: 13px; font-weight: 900; font-stretch: 120%; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.e5-kick > span:first-child { color: var(--court); font-weight: 700; text-transform: uppercase; font-stretch: 112%; font-size: 11px; letter-spacing: .04em; }
/* Le fil */
.e5-fil { display: grid; align-content: start; gap: 0; padding: 14px 16px 6px; border-radius: var(--r-2); background: var(--bg-card); }
.e5-fil-h { margin: 0 0 6px; font-stretch: 118%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: 15px; }
.e5-f { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text-main); text-align: left; font: inherit; cursor: pointer; }
.e5-f:first-of-type { border-top: 0; }
.e5-f .mg-vis { aspect-ratio: 4 / 3; border-radius: 6px; }
.e5-f .mg-vis :is(.cr-credit, .s2-crests, .mg-potd-tag) { display: none; }
.e5-f-t { display: grid; gap: 4px; min-width: 0; }
.e5-f-t h3 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.e5-f-t em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.e5-f:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 980px) { .e5 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) !important; } }
@media (max-width: 600px) { .e5-lead { min-height: 440px; } .e5-lead-t { padding: 0 16px 20px; gap: 10px; } .e5-lead-t h2 { font-size: 29px; } .e5-lead-t p { font-size: 14.5px; } .e5-vs .crest-img { width: 44px; height: 44px; } .e5-vs .crest-img img { width: 32px; height: 32px; } .e5-f { grid-template-columns: 84px minmax(0, 1fr); } }

/* ---------- Le labo ---------- */
.lab { display: grid; gap: 12px; padding: 16px 18px 14px; border-radius: var(--r-2); background: var(--bg-card); }
.lab-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.lab-h h2 { margin: 0; font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.lab-h span { font-size: 12px; color: var(--text-dim); }
.lab-ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lab-ks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lab-ks::-webkit-scrollbar { display: none; }
.lab-ks button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border); background: none; color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lab-ks button:hover { color: var(--text-main); border-color: var(--border-strong); }
.lab-ks button.on { border-color: var(--court); color: var(--text-main); box-shadow: inset 0 -2px 0 var(--court); }
.lab-t { display: grid; }
.lab-r { display: grid; grid-template-columns: 22px minmax(0, 1.6fr) 26px minmax(60px, 1fr) 74px; align-items: center; gap: 12px; padding: 8px 4px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.lab-r:first-child { border-top: 0; }
.lab-r:hover { background: var(--bg-hover); }
.lab-n { font-stretch: 118%; font-weight: 800; color: var(--text-dim); font-size: 13px; text-align: right; }
.lab-r:first-child .lab-n { color: var(--court); }
.lab-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lab-who > span { display: grid; min-width: 0; }
.lab-who b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-who em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lab-who img, .lab-who .team-logo, .lab-who svg { flex: none; }
.lab-lg { display: flex; justify-content: center; }
.lab-lg .g-tag { display: none; }
.lab-bar { height: 6px; border-radius: 3px; background: var(--bg-subtle); overflow: hidden; }
.lab-bar i { display: block; height: 100%; border-radius: 3px; background: var(--court); opacity: .85; }
.lab-r:first-child .lab-bar i { opacity: 1; }
.lab-v { display: grid; justify-items: end; font-stretch: 125%; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.lab-v em { font-style: normal; font-stretch: 100%; font-weight: 500; font-size: 11px; color: var(--text-dim); letter-spacing: 0; }
.lab-note { font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.lab-empty { padding: 14px 4px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 600px) { .lab-r { grid-template-columns: 20px minmax(0, 1fr) 54px; } .lab-lg, .lab-bar { display: none; } }


/* Noms d'équipes du bandeau du match du jour : un peu plus petits, sans coupure */
body.v4 .h6-nm { font-size: clamp(22px, 2.5vw, 40px); overflow-wrap: normal; word-break: normal; }



/* ==========================================================================
   Menu, onglets et filtres (30/11, choix du propriétaire : « bloc inversé ») :
   l'élément actif est un bloc plein aux coins vifs, comme un numéro de maillot ; au survol, une teinte légère.
   Plus de soulignement. Thème sombre : bloc blanc, texte encre ; thème clair : l'inverse.
   ========================================================================== */
body.v4 { --blk-bg: #FFFFFF; --blk-fg: #0B1115; --blk-hover: rgba(255, 255, 255, .07); }
html:not([data-theme="dark"]) body.v4 { --blk-bg: #0E171C; --blk-fg: #FFFFFF; --blk-hover: rgba(14, 23, 28, .07); }
body.v4 :is(.nav-tab, .p3-tabs button, .v4-seg button, .h6-tabs button, .lab-ks button)::after { display: none !important; }
body.v4 :is(.nav-tab, .p3-tabs button, .v4-seg button, .h6-tabs button, .lab-ks button) {
  border-radius: 0 !important; border-color: transparent !important; box-shadow: none !important; background: none;
  transition: background .15s ease, color .15s ease;
}
body.v4 :is(.nav-tab, .p3-tabs button, .v4-seg button, .h6-tabs button, .lab-ks button):hover { background: var(--blk-hover) !important; color: var(--text-main) !important; }
body.v4 :is(.nav-tab.active, .p3-tabs button.on, .v4-seg button.on, .h6-tabs button.on, .lab-ks button.on) {
  background: var(--blk-bg) !important; color: var(--blk-fg) !important; font-weight: 900 !important; font-stretch: 112%;
}
/* Le menu : le bloc ne remplit pas toute la hauteur de la barre */
body.v4 .nav-tab { align-self: center; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; }
body.v4 .h6-tabs, body.v4 .v4-seg { gap: 2px; }
body.v4 .lab-ks button { border: 0 !important; }
@media (prefers-reduced-motion: reduce) { body.v4 :is(.nav-tab, .p3-tabs button, .v4-seg button, .h6-tabs button, .lab-ks button) { transition: none; } }

/* ==========================================================================
   Tout le site à la DA de l'accueil (30/11) : filtres en « bloc inversé », surfaces sans bordure.
   Pastilles (.chip : Stats, Mag, Forum, Vidéos, Galerie), filtre femmes / hommes (.g-filter), barre d'onglets de la fiche match,
   encart de connexion des commentaires, petites étiquettes.
   ========================================================================== */
body.v4 :is(.chip, .g-filter button) {
  border-radius: 0 !important; border-color: transparent !important; background: none !important; box-shadow: none !important;
  color: var(--text-muted) !important; font-weight: 600; transition: background .15s ease, color .15s ease;
}
body.v4 :is(.chip, .g-filter button):hover { background: var(--blk-hover) !important; color: var(--text-main) !important; }
body.v4 :is(.chip.active, .g-filter button.on) { background: var(--blk-bg) !important; color: var(--blk-fg) !important; font-weight: 900 !important; font-stretch: 112%; }
body.v4 :is(.g-filter, .chip-row) { border: 0 !important; background: none !important; border-radius: 0 !important; gap: 2px !important; }
/* Fiche match : barre d'onglets et encarts sans cadre, comme les blocs de l'accueil */
body.v4 :is(.m4-bar, .cm-login) { border: 0 !important; border-radius: var(--r-2) !important; background: var(--bg-card) !important; }
body.v4 :is(.rt-why-c, .md-st, .cm-n) { border-radius: 4px !important; }
@media (prefers-reduced-motion: reduce) { body.v4 :is(.chip, .g-filter button) { transition: none; } }

/* ---------- Fond des affiches de match : une vraie photo floutée (salle du club, match d'un des clubs, grande salle pro) ---------- */
:is(.h6-md, .md-page) .pb-img { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; pointer-events: none; object-fit: cover; object-position: center 40%; }
.h6-md .pb-img { z-index: -2; }
.md-page .pb-img { z-index: -2; filter: blur(7px) brightness(.5) saturate(1.15); }
.h6-md .pb-img { filter: blur(5px) brightness(.62) saturate(1.1); }
.md-page.pbk-venue .pb-img { filter: blur(4px) brightness(.5) saturate(1.1); }
/* voile : couleurs des deux clubs sur les côtés, assombri au centre et en bas pour le score */
.md-page:is(.pbk-photo, .pbk-venue, .pbk-arena)::before { display: none; }
.md-page:is(.pbk-photo, .pbk-venue, .pbk-arena)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 50%, rgba(7, 10, 13, .55), rgba(7, 10, 13, 0) 75%),
    linear-gradient(90deg, color-mix(in srgb, var(--c1) 38%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--c2) 38%, transparent)),
    linear-gradient(180deg, rgba(7, 10, 13, .45), rgba(7, 10, 13, .2) 35%, rgba(7, 10, 13, .82)); }
.pb-credit { position: absolute; right: 14px; bottom: 7px; z-index: 1; font-size: 10px; letter-spacing: .01em; color: rgba(255, 255, 255, .55); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) { :is(.h6-md, .md-page) .pb-img { animation: pb-in .9s ease-out both; } }
@keyframes pb-in { from { opacity: 0; } to { opacity: 1; } }
.lab-lgsel select { min-height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-subtle); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Les clés du match ---------- */
.kf { display: grid; gap: 4px; padding: 16px 18px 14px; border-radius: var(--r-2); background: var(--bg-card); margin-bottom: 16px; }
.kf-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.kf-h h2 { margin: 0; font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.kf-h span { font-size: 12px; color: var(--text-dim); }
.kf-teams { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.kf-teams > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kf-teams b { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.kf-v { font-stretch: 125%; font-weight: 800; font-size: 16px; color: var(--text-muted); letter-spacing: -.02em; }
.kf-v.r { text-align: right; }
.kf-v.best { color: var(--text-main); }
.kf-m { display: grid; gap: 5px; justify-items: center; }
.kf-m em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.kf-bar { display: flex; width: 100%; height: 6px; gap: 3px; }
.kf-bar i { display: block; height: 100%; background: var(--border-strong); }
.kf-bar i.best { background: var(--court); }
.kf-note { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }

/* Écussons sur les affiches : relief discret ; logo sombre posé sur une pastille claire pour rester lisible sur la photo */
:is(.md-page, .h6-md) .crest-img:not(.crest-fallback) img { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
:is(.md-page, .h6-md) .crest-img.is-dark { display: grid; place-items: center; border-radius: 22%; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55); }
:is(.md-page, .h6-md) .crest-img.is-dark img { width: 74%; height: 74%; object-fit: contain; filter: none; }

/* Match du jour : mêmes angles que la une et les onglets (blocs, pas de pilules) */
.h6-badge { border-radius: 4px; padding: 6px 10px; }
:is(.h6-lg, .h6-stake) { border-radius: 6px; }
.h6-vote .vt-b, .h6-cta { border-radius: 10px; }

/* ---------- Modules hérités (V3) : même surface et mêmes titres que les sections V4, partout sur le site ---------- */
body.v4 .mod { border: 0; border-radius: var(--r-2); background: var(--bg-card); }
body.v4 .mod-head, body.v4 .mod-head.neutral { min-height: 52px; padding: 14px 18px 6px; background: none; color: var(--text-main); border-bottom: 0; box-shadow: none; }
body.v4 .mod-title { font-family: var(--head); font-weight: 800; font-size: var(--fs-5, 17px); line-height: 1.1; letter-spacing: .01em; color: var(--text-main); }
body.v4 .mod-head h1.mod-title { font-size: clamp(26px, 2.6vw, 34px); font-stretch: 112%; letter-spacing: -.01em; }
body.v4 .mod-sub, body.v4 .mod-head a.mod-sub { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--text-muted); }
body.v4 .mod-head a.mod-sub:hover { color: var(--text-main); }
body.v4 .mod-head .sp-btn { color: var(--text-main); }

/* Déroulé du match (V4) : marges alignées sur les sections, sans filet */
body.v4 .rb { padding: 4px 18px 16px; border-bottom: 0; }
body.v4 .rb-facts { margin: 0 0 12px; }
body.v4 .mx-facts { gap: 8px; padding: 0 18px 18px; border-top: 0; }
body.v4 .mx-facts div { padding: 10px 12px; border: 0; border-radius: 10px; background: var(--bg-subtle); }
body.v4 .mx-facts b { font-family: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.v4 .m4-pick { grid-template-columns: minmax(0, 1fr) !important; }

/* Bandeau de compétition (V4) : photo floutée derrière le titre, comme les affiches de match */
body.v4 :is(.p3-hero.m3-lg, .p3-hero.p3-soft) { overflow: hidden; }
body.v4 :is(.p3-hero.m3-lg, .p3-hero.p3-soft) .p3-bg { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); opacity: .6; filter: blur(7px) saturate(1.1); }

/* Derniers filtres en pilule : même bloc inversé que les onglets (ranking par ligue, équipe-type, Aujourd’hui / Hier) */
body.v4 .h6-tabs { border-radius: 0 !important; background: none !important; border: 0 !important; padding: 0 !important; }
body.v4 :is(.r3-lgs button, .tw-tabs button) { border-radius: 0 !important; border-color: transparent !important; background: none; color: var(--text-muted); transition: background .15s ease, color .15s ease; }
body.v4 :is(.r3-lgs button, .tw-tabs button):hover { background: var(--blk-hover) !important; color: var(--text-main) !important; }
body.v4 :is(.r3-lgs button.on, .tw-tabs button.on) { background: var(--blk-bg) !important; color: var(--blk-fg) !important; border-color: transparent !important; font-weight: 900; font-stretch: 112%; }
body.v4 .r3-lgs { gap: 2px; }

/* Vidéo du match : bouton dans l'affiche (direct gratuit, replay, temps forts) et rubrique dans le résumé */
.md-watch { display: inline-flex; align-items: center; gap: 10px; justify-self: center; margin: 4px auto 14px; padding: 10px 18px; border: 0; border-radius: 10px; background: #fff; color: #0B1115; font: inherit; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6); }
.md-page { display: grid; }
.md-watch b { font-weight: 800; font-size: 14px; }
.md-watch em { font-style: normal; font-size: 12px; color: #55636B; }
.md-watch-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0B1115; color: #fff; font-size: 11px; }
.md-watch.is-live .md-watch-i { background: #E11D2E; animation: rbPulse 1.6s ease-in-out infinite; }
.md-watch:hover { transform: translateY(-1px); }
.m4-vids-g { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 0 18px 18px; }
.m4-vid { display: grid; gap: 6px; }
.m4-vid-k { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--court); }
@media (prefers-reduced-motion: reduce) { .md-watch.is-live .md-watch-i { animation: none; } }

/* ---------- Pas de texte posé sur un bouton ou sur un autre texte ----------
   Crédits photo : une légende discrète sous le contenu (affiches, bandeaux), jamais au milieu des boutons. */
.md-page .pb-credit { position: relative; right: auto; bottom: auto; z-index: 1; justify-self: end; margin-top: 12px; max-width: 100%; white-space: normal; text-align: right; line-height: 1.35; }
body.v4 .p3-hero .p3-credit { position: relative; left: auto; top: auto; z-index: 2; display: block; max-width: none; padding: 6px 16px 8px; text-align: right; white-space: normal; }
/* Vignettes du Mag : écussons en bas à gauche, crédit en haut à droite (ils ne se croisent plus sur téléphone) */
.mg-vis:has(.s2-crests) .cr-credit { top: 0; bottom: auto; right: 0; max-width: 70%; border-radius: 0 0 0 6px; }
/* Affiche de match sur téléphone : les noms d'équipe ont la place, la chaîne passe sous l'heure sans déborder */
@media (max-width: 600px) {
  .md-page .md-main { grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); gap: 8px; }
  .md-page .md-mid { max-width: 130px; }
  .md-page .md-mid .tv-names { justify-content: center; font-size: 11px; }
  .md-page .md-mid .tv-n { white-space: normal; }
  .md-page .md-team b { font-size: 17px; line-height: 1.05; overflow-wrap: break-word; hyphens: auto; }
}
/* Bandeaux défilants : la carte s'efface complètement sous la flèche (plus de texte coupé par le bouton) */
.rail-wrap.fade-r > .rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 120px), transparent calc(100% - 34px)); mask-image: linear-gradient(90deg, #000 calc(100% - 120px), transparent calc(100% - 34px)); }
.rail-wrap.fade-l > .rail { -webkit-mask-image: linear-gradient(90deg, transparent 34px, #000 120px); mask-image: linear-gradient(90deg, transparent 34px, #000 120px); }
.rail-wrap.fade-l.fade-r > .rail { -webkit-mask-image: linear-gradient(90deg, transparent 34px, #000 120px, #000 calc(100% - 120px), transparent calc(100% - 34px)); mask-image: linear-gradient(90deg, transparent 34px, #000 120px, #000 calc(100% - 120px), transparent calc(100% - 34px)); }
/* Onglet / filtre sélectionné : même lettre que les autres (pas élargie, pas plus grasse), seule la couleur s'inverse.
   Plus joli et plus de décalage quand on clique. */
body.v4 :is(.nav-tab.active, .p3-tabs button.on, .v4-seg button.on, .h6-tabs button.on, .lab-ks button.on, .chip.active, .g-filter button.on, .r3-lgs button.on, .tw-tabs button.on, .m4-bar .v4-seg button.on) {
  font-stretch: 100% !important; font-weight: 800 !important;
}

/* ---------- Partager ---------- */
.sh-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.sh-btn:hover { background: var(--bg-hover); border-color: var(--border-strong, var(--border)); }
.sh-btn.on-dark { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-btn.on-dark:hover { background: rgba(255, 255, 255, .18); }
.md-top .sh-btn { min-height: 28px; padding: 0 10px; font-size: 12px; }
.sh-menu { position: absolute; z-index: 1000; display: grid; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); }
.sh-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.sh-menu button:hover, .sh-menu button:focus-visible { background: var(--bg-hover); outline: none; }
.sh-menu svg { flex: none; }
.mg-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
@media (max-width: 600px) { .md-top .sh-btn span { display: none; } .md-top .sh-btn { padding: 0 8px; } }

/* ---------- Liens officiels : vraies icônes des réseaux, couleur de la marque au survol ---------- */
.soc-row { gap: 6px; }
.soc-a { border-radius: 8px !important; }
.soc-a svg.fill { fill: currentColor; stroke: none; width: 17px; height: 17px; }
.soc-a.instagram:hover { color: #E1306C; } .soc-a.facebook:hover { color: #1877F2; } .soc-a.youtube:hover { color: #FF0000; }
.soc-a.linkedin:hover { color: #0A66C2; } .soc-a.tiktok:hover { color: #25F4EE; } .soc-a.x:hover { color: #fff; }
.soc-a.tickets { gap: 7px; font-weight: 700; font-size: 13px; }
/* Avant-match : billetterie et calendrier, discrets sous le vote */
.md-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.md-link { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.md-link:hover { background: rgba(255, 255, 255, .18); }
.md-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Mag : mention de méthode discrète (une ligne, en bas) */
.mg-method { margin: 14px 18px 4px; font-size: 12px; color: var(--text-dim); }
.mg-method-a { padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mg-method-a:hover { color: var(--text-main); }
/* Labo, mode « Joueurs » : la photo du joueur en vignette ronde (elle s'affichait à sa taille d'origine) */
.lab-who > img, .lab-who > svg:first-child { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--bg-subtle); }
.lab-who > svg:first-child { padding: 2px; }

/* ---------- Éditeur d'articles (back-office) ---------- */
.ed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-count { margin-left: auto; }
.ed-main { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .ed-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ed-lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.ed-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg-subtle); }
.ed-tools button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-main); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ed-tools button:hover { background: var(--bg-hover); }
.ed-write textarea { width: 100%; min-height: 380px; border-radius: 0 0 10px 10px !important; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; }
.ed-prev-body { min-height: 380px; max-height: 640px; overflow: auto; padding: 4px 18px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.ed-help { margin-top: 6px; font-size: 12px; color: var(--text-muted); } .ed-help code { font-size: 11.5px; }
.ed-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; }
.ed-tags input { flex: 1; min-width: 180px; border: 0 !important; background: none !important; }
.ed-chips { display: contents; }
.ed-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 8px; background: var(--bg-subtle); font-size: 13px; font-weight: 600; }
.ed-chip button { border: 0; background: none; color: var(--text-muted); font-size: 16px; cursor: pointer; }
.cma-st.s-review { background: #F59E0B; color: #111; }
/* ---------- Contenu mis en forme (articles de la rédaction, billets) ---------- */
.md h2 { margin: 22px 0 8px; } .md h3 { margin: 18px 0 6px; font-size: 18px; }
.md a { color: var(--zone); text-decoration: underline; text-underline-offset: 2px; }
.md a.md-mention { color: var(--text-main); font-weight: 700; text-decoration-color: var(--court); }
.md blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--court); font-style: italic; color: var(--text-main); }
.md ul, .md ol { margin: 10px 0; padding-left: 22px; } .md li { margin: 4px 0; }
.md hr { margin: 22px 0; border: 0; border-top: 1px solid var(--border); }
.md-fig { margin: 18px 0; } .md-fig img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; }
.md-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.md-yt { position: relative; margin: 18px 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.md-yt button { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.md-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; } .md-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-yt .vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mg-body.md h2, .md h2 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.mg-body.md h3, .md h3 { font-size: 18px; font-weight: 750; }

/* Point par point (feuille de match officielle) — couleurs de la charte : rouge = domicile, bleu = extérieur */
.pbp-legend { display: flex; gap: 14px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.pbp-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.pbp-legend .h::before { background: var(--court); } .pbp-legend .a::before { background: var(--zone); }
.pbp-kfs { display: grid; gap: 10px; margin-bottom: 16px; }
.pbp-kf { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; row-gap: 4px; }
.pbp-kf b { font: 800 18px/1 'Barlow Condensed', sans-serif; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.pbp-kf b:last-of-type { text-align: right; }
.pbp-kf b.win { color: var(--text-main); }
.pbp-kf-l { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.pbp-kf-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 5px; }
.pbp-kf-bar i { display: block; border-radius: 3px; }
.pbp-kf-bar .h { background: var(--court); } .pbp-kf-bar .a { background: var(--zone); }
.pbp-h3 { margin: 16px 0 8px; font: 800 12px/1.2 'Archivo', sans-serif; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--text-main); }
.pbp-h3 small { margin-left: 8px; font: 600 11.5px 'Open Sans', sans-serif; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.pbp-h3.h { color: var(--court); } .pbp-h3.a { color: var(--zone); }
.pbp-set { margin: 0 0 12px; padding: 10px 12px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); }
.pbp-set-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; font-size: 13px; }
.pbp-set-h b { font-weight: 800; }
.pbp-set-h > span.h, .pbp-set-h > span.a { font: 800 15px 'Barlow Condensed', sans-serif; }
.pbp-set-h > span.h { color: var(--court); } .pbp-set-h > span.a { color: var(--zone); }
.pbp-set-h em { font-style: normal; color: var(--text-dim); font-size: 12px; }
.pbp-set-k { margin-left: auto; font-size: 11.5px; color: var(--text-dim); }
.pbp-chart { display: block; width: 100%; height: 96px; }
.pbp-chart .pbp-h { fill: var(--court); opacity: .28; } .pbp-chart .pbp-a { fill: var(--zone); opacity: .28; }
.pbp-chart .pbp-line { fill: none; stroke: var(--text-main); stroke-width: 1.6; opacity: .85; }
.pbp-chart .pbp-zero { stroke: var(--border-strong); stroke-width: 1; }
.pbp-chart .pbp-to line { stroke-width: 1.5; stroke-dasharray: 3 3; }
.pbp-chart .pbp-to.h line { stroke: var(--court); } .pbp-chart .pbp-to.a line { stroke: var(--zone); }
.pbp-rots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .pbp-rots { grid-template-columns: 1fr; } .pbp-set-k { margin-left: 0; width: 100%; } }
.pbp-rot { width: 100%; border-collapse: collapse; font-size: 13px; }
.pbp-rot th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-dim); padding: 4px 0; border-bottom: 1px solid var(--border); }
.pbp-rot th:not(:first-child), .pbp-rot td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.pbp-rot td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pbp-no { display: inline-block; min-width: 22px; font: 800 13px 'Barlow Condensed', sans-serif; color: var(--text-dim); }
.pbp-src { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); }

/* Saison point par point (page compétition) */
.pbp-intro { margin: 4px 0 14px; color: var(--text-muted); font-size: 14px; max-width: 760px; }
.pbp-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pbp-rec { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); display: flex; flex-direction: column; gap: 3px; }
.pbp-rec > span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.pbp-rec > b { font: 900 24px/1.05 'Barlow Condensed', sans-serif; }
.pbp-rec > p { margin: 0; font-size: 12.5px; color: var(--text-muted); flex: 1; }
.pbp-reclink { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--text-main); font-weight: 700; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.pbp-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.pbp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.pbp-table th, .pbp-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pbp-table th:nth-child(-n+2), .pbp-table td:nth-child(-n+2) { text-align: left; }
.pbp-table tbody tr:last-child td { border-bottom: 0; }
.pbp-table th { font-size: 11px; font-weight: 800; color: var(--text-dim); background: var(--bg-subtle); }
.pbp-table th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pbp-table th.on { color: var(--text-main); box-shadow: inset 0 -2px 0 var(--red); }
.pbp-table td.on { font-weight: 800; color: var(--text-main); }
.pbp-table td:first-child { color: var(--text-dim); width: 28px; }
.pbp-team { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-main); font: inherit; font-weight: 700; cursor: pointer; }
.pbp-servers { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (max-width: 720px) { .pbp-servers { grid-template-columns: 1fr; } }
.pbp-servers li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); counter-increment: s; }
.pbp-srv-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pbp-srv-n::before { content: counter(s); width: 18px; color: var(--text-dim); font-weight: 700; font-size: 12px; }
.pbp-srv-n b { white-space: nowrap; }
.pbp-srv-n em, .pbp-srv-v em { font-style: normal; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbp-srv-v { display: flex; flex-direction: column; align-items: flex-end; }
.pbp-srv-v b { font: 800 16px 'Barlow Condensed', sans-serif; }

/* Barre d'onglets de compétition : défile horizontalement plutôt que de déborder sur la colonne de droite */
.p3-tabs { overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
@media (max-width: 560px) {
  .pbp-recs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pbp-rec { padding: 10px; }
  .pbp-rec > b { font-size: 20px; }
  .pbp-rec > p { font-size: 11.5px; }
}
