/* ==========================================================================
   VOLLEYSCORE — Accueil V2 (pleine largeur, éditorial)
   ========================================================================== */
body.wide .shell { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
body.wide #left-col, body.wide #right-col { display: none; }
body.wide .demo-notice { display: none !important; }

.v2 { display: flex; flex-direction: column; gap: 26px; padding-top: 4px; }
.v2-switch { font-size: 12px; color: var(--text-dim); text-align: right; }
.v2-switch button { color: var(--red); font-weight: 700; }
.v2-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.v2-sec-head h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.v2-sec-head button { font-size: 12px; font-weight: 800; color: var(--red); }

/* Bandeau direct (cartes) */
.lc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.lc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; text-align: left; transition: border-color 120ms, transform 120ms, box-shadow 120ms; }
.lc:hover { border-color: var(--text-dim); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.lc.live { border-color: rgba(225,29,46,.55); box-shadow: inset 0 3px 0 var(--red); }
.lc-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.lc-head > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-head > span:last-child { margin-left: auto; }
.lc-live { color: var(--red); font-weight: 900; letter-spacing: .03em; animation: pulse-live 1.6s ease-in-out infinite; }
.lc-ft { color: var(--text-dim); }
.lc-time { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--text-main); }
.lc-team { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.lc-team .lc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-team b { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--text-muted); }
.lc-team.win { font-weight: 800; } .lc-team.win b { color: var(--text-main); }
.lc.live .lc-team b { color: var(--red); }
.lc-cur { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); }

/* La une */
.v2-une { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.v2-une-side { display: flex; flex-direction: column; gap: 18px; }
.s2-story { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.s2-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0B0E13; }
.s2-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.s2-story:hover .s2-media > img { transform: scale(1.035); }
.s2-media .vplay { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.s2-media .vplay::after { left: 22px; top: 18px; border-width: 11px 0 11px 18px; }
.s2-tag { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 900; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; color: #fff; background: rgba(11,14,19,.8); backdrop-filter: blur(4px); }
.s2-tag.t-upset { background: var(--amber); } .s2-tag.t-leader { background: var(--red); } .s2-tag.t-next { background: #1D4ED8; } .s2-tag.t-streak { background: #15803D; }
.s2-text { display: flex; flex-direction: column; gap: 6px; }
.s2-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.s2-kicker .crest-img { width: 15px; height: 15px; }
.s2-dot { color: var(--text-dim); }
.s2-title { font-family: 'Newsreader', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.18; color: var(--text-main); letter-spacing: -.005em; }
.s2-lead .s2-title { font-size: 36px; line-height: 1.08; }
.s2-side .s2-title { font-size: 20px; }
.s2-small .s2-title { font-size: 16px; }
.s2-dek { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.s2-lead .s2-dek { font-size: 16px; }
.s2-story:hover .s2-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.v2-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 4px; border-top: 1px solid var(--border); }
.v2-more .s2-story { padding-top: 14px; }

/* Duel de logos (quand aucune image n'existe) */
.s2-duel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; background: radial-gradient(90% 120% at 15% 20%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 60%), radial-gradient(90% 120% at 85% 80%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 60%), #0B0E13; }
.s2-duel::after { content: ''; position: absolute; inset: 0; opacity: .06; background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 60px); }
.s2-duel-logo .crest-xl { width: 30%; height: auto; min-width: 70px; max-width: 150px; aspect-ratio: 1; }
.s2-duel-logo { display: flex; width: 32%; justify-content: center; }
.s2-duel-logo .crest-img { width: 100%; height: auto; aspect-ratio: 1; }
.s2-vs { position: relative; z-index: 1; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 28px; color: rgba(255,255,255,.65); }

/* Rail vidéo */
.v2-vrail { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.v2-vrail .vthumb { border-radius: 10px; }

/* Blocs de données */
.v2-blocks { display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; gap: 22px; padding-top: 6px; border-top: 1px solid var(--border); }
.v2-block { padding-top: 14px; min-width: 0; }
.s2-table, .s2-results { display: flex; flex-direction: column; }
.s2-trow { display: grid; grid-template-columns: 22px 20px 1fr auto 26px; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.s2-trow:hover, .s2-res:hover, .s2-lead-row:hover { background: var(--bg-hover); }
.s2-trow .n { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 12px; color: var(--text-dim); }
.s2-trow .n.top { color: var(--green); }
.s2-trow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-trow .fm { display: inline-flex; gap: 2px; }
.s2-trow .fm i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.s2-trow .fm i.V { background: var(--green); } .s2-trow .fm i.D { background: var(--red); }
.s2-trow b { font-family: 'JetBrains Mono', monospace; text-align: right; }
.s2-res { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
.s2-res .rl, .s2-res .rr { display: flex; align-items: center; gap: 6px; min-width: 0; }
.s2-res .rr { justify-content: flex-end; text-align: right; }
.s2-res .rl span, .s2-res .rr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-res .w { font-weight: 800; }
.s2-res b { font-family: 'JetBrains Mono', monospace; font-size: 14px; padding: 2px 7px; border-radius: 4px; background: var(--bg-subtle); }
.s2-lead-list { margin-bottom: 14px; }
.s2-lead-title { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.s2-lead-row { width: 100%; display: grid; grid-template-columns: 16px 20px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.s2-lead-row .n { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-weight: 800; }
.s2-lead-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-lead-row b { font-family: 'JetBrains Mono', monospace; }

@media (max-width: 960px) {
  .v2-une { grid-template-columns: 1fr; }
  .v2-une-side { display: grid; grid-template-columns: 1fr 1fr; }
  .v2-more { grid-template-columns: 1fr 1fr; }
  .v2-blocks { grid-template-columns: 1fr; }
  .s2-lead .s2-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .v2-une-side, .v2-more { grid-template-columns: 1fr; }
  .s2-lead .s2-title { font-size: 25px; }
  .lc-rail { grid-auto-columns: 78%; }
  .v2-vrail { grid-auto-columns: 82%; }
}

.s2-tag.t-video { background: var(--red); }
/* Un seul club : grand logo centré */
.s2-duel:not(:has(.s2-vs)) .s2-duel-logo { width: 46%; }
.s2-lead .s2-duel:not(:has(.s2-vs)) .s2-duel-logo { width: 34%; }

/* Pages intérieures : une colonne, largeur de lecture confortable */
body.wide.inner .shell { max-width: 1040px; }

/* Finition : listes de l'accueil qui mêlent toutes les ligues → écusson de la compétition + H/F sur chaque ligne */
.s2-res { grid-template-columns: 38px 1fr auto 1fr; }
.s2-res .lg, .s2-lead-row .lg { display: inline-flex; align-items: center; gap: 3px; }
.s2-res .lg .g-tag, .s2-lead-row .lg .g-tag { transform: scale(.85); }
.s2-lead-row { grid-template-columns: 16px 20px minmax(0, 1fr) auto auto; }
/* Classements : une seule rangée de puces qui défile, au lieu de quatre lignes empilées */
.s2-lg-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.s2-lg-chips::-webkit-scrollbar { display: none; }
.s2-lg-chips .chip { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.s2-res2 { display: grid; gap: 3px; width: 100%; padding: 7px 4px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.s2-res2:hover { background: var(--bg-hover); }
.s2-res2 .lg { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-dim); text-transform: uppercase; }
.s2-res2 .lg em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-res2 .lg .g-tag { transform: scale(.85); }
.s2-res2 .tm { display: grid; grid-template-columns: 20px minmax(0, 1fr) 22px; align-items: center; gap: 6px; color: var(--text-dim); }
.s2-res2 .tm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-res2 .tm b { font-family: 'JetBrains Mono', monospace; text-align: right; font-size: 14px; }
.s2-res2 .tm.w { color: var(--text); font-weight: 800; }

/* Visuels « duel » : fond partagé en diagonale aux couleurs des deux clubs (style plateau TV), score au centre */
.s2-duel.two { background:
  linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)),
  linear-gradient(104deg, color-mix(in srgb, var(--c1) 78%, #05070B) 0 49.6%, rgba(255,255,255,.85) 49.6% 50.4%, color-mix(in srgb, var(--c2) 78%, #05070B) 50.4% 100%); }
.s2-duel.one { background:
  radial-gradient(70% 90% at 50% 45%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%),
  linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, #05070B), #05070B 75%); }
.s2-duel::after { opacity: .05; }
.s2-duel-logo .crest-img { filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); }
.s2-vs { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 6px 12px; border-radius: 10px; background: rgba(5,7,11,.78); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-style: italic; font-size: clamp(22px, 3vw, 34px); letter-spacing: .02em; }
.s2-vs.score i { font-style: normal; opacity: .55; margin: 0 4px; }

/* « En images » : mosaïque de photos libres (1 grande + 4) */
.hp-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 16 / 6.2; }
.hp-tile { position: relative; overflow: hidden; border-radius: 10px; background: #0B0E13; padding: 0; }
.hp-tile.big { grid-row: span 2; }
.hp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hp-tile:hover img { transform: scale(1.03); }
.hp-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(5,7,11,.85)); color: #fff; text-align: left; font-size: 12px; }
.hp-cap b { font-weight: 800; }
.hp-cap em { flex-basis: 100%; font-style: normal; font-size: 10px; opacity: .75; }
@media (max-width: 720px) { .hp-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; } .hp-tile { aspect-ratio: 4 / 3; } .hp-tile.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; } }

/* Photos et illustrations des histoires : écussons des clubs posés sur l'image (style plateau TV) */
.s2-media img { filter: saturate(1.03); }
.s2-crests { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(5,7,11,.72); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.s2-crests .crest-img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.s2-crest-score { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .02em; }
.s2-small .s2-crests { left: 8px; bottom: 8px; padding: 4px 7px; gap: 5px; }
.s2-small .s2-crest-score { font-size: 15px; }
.s2-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,7,11,.35)); pointer-events: none; }
