/* O'Vestiaire — Les soirées : agenda, karaoké, thèmes, matchs, fiches */

/* ---------- En-tête : les deux prochaines affiches ---------- */
.s-head__posters { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.6vw, 36px); perspective: 900px; }
.s-poster { position: relative; display: block; width: 46%; aspect-ratio: 3 / 4; border-radius: var(--alv-radius); overflow: hidden; border: 1px solid var(--alv-hair); background: #000; box-shadow: var(--alv-shadow-2); transform-style: preserve-3d; will-change: transform; }
.s-poster--b { margin-top: clamp(28px, 4vw, 56px); }
.s-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.s-poster:hover .poster__glare, .s-poster:focus-visible .poster__glare { opacity: 1; }
.s-poster[hidden] + .s-poster--b { margin-top: 0; }

/* ---------- Agenda ---------- */
.events { display: grid; gap: clamp(56px, 6vw, 96px); }
.event { display: grid; grid-template-columns: 92px minmax(180px, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; perspective: 900px; }
.event__date { align-self: start; padding: 14px 0 12px; }
.event__date b { font-size: 40px; }
.event__poster { width: 100%; }
.event__body { display: grid; gap: 16px; align-content: center; max-width: 560px; }
.event__body h3 a:hover { opacity: .85; }
.event__body p { margin: 0; color: var(--alv-ink-soft); }
.event__body .label { margin: 0; }
.event__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.event__tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--alv-hair); font: 700 12px/1 var(--alv-font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--alv-ink-soft); }
.event__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }
.link--btn { background: none; border: 0; cursor: pointer; color: inherit; }
.link--btn svg { width: 16px; height: 16px; color: var(--alv-gold-solid); }

/* ---------- Karaoké mensuel ---------- */
.karaoke { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; perspective: 900px; }
.karaoke__col { perspective: 900px; }
.karaoke__poster { aspect-ratio: 1054 / 1492; }
.poster-cap { margin: 14px 4px 0; font: 700 12px/1.4 var(--alv-font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--alv-ink-soft); }
.karaoke .lead { margin: 26px 0 28px; max-width: 40ch; }
.next { display: grid; gap: 6px; margin-bottom: 32px; padding: 22px 26px; max-width: 460px; border-radius: var(--alv-radius); border: 1px solid var(--alv-line); background: var(--alv-surface); box-shadow: var(--alv-shadow-1); }
.next__date { font: 400 clamp(30px, 3vw, 44px)/1 var(--alv-font-display); text-transform: uppercase; letter-spacing: -.03em; color: var(--alv-cream); }
.next__note { font-size: 14px; color: var(--alv-ink-soft); }

/* ---------- Soirées à thème ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.theme { display: flex; flex-direction: column; overflow: hidden; }
.theme .media { aspect-ratio: 4 / 5; flex: none; }
.theme__body { display: grid; gap: 10px; align-content: start; padding: 22px 24px 26px; flex: 1; }
.theme__body p:last-child { margin: 0; font-size: 15px; color: var(--alv-ink-soft); }

/* ---------- Tous les matchs ---------- */
.matchs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.matchs__media { aspect-ratio: 4 / 3; border-radius: var(--alv-radius); border: 1px solid var(--alv-line); box-shadow: var(--alv-shadow-2); }
.matchs__media figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 6px; background: rgba(10, 9, 4, .72); backdrop-filter: blur(6px); font: 700 12px/1 var(--alv-font-label); letter-spacing: .16em; text-transform: uppercase; }
.matchs .lead { margin: 26px 0 22px; max-width: 42ch; }
.sports { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sports li { font: 700 13px/1 var(--alv-font-label); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Fiche d'une soirée ---------- */
.fiche { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; perspective: 900px; }
.fiche__poster { width: 100%; aspect-ratio: 3 / 4; }
.fiche__poster img { object-position: 50% 20%; }
.fiche__body { max-width: 560px; }
.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font: 700 12px/1 var(--alv-font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--alv-ink-faint); }
.crumbs a { color: var(--alv-ink-soft); } .crumbs a:hover { color: var(--alv-gold-solid); }
/* Tampon « Soirée terminée » : posé sur l'affiche, hors du flux (aucun décalage quand il paraît).
   Au repos il est incliné par le CSS ; main.js l'y amène depuis un angle plus grand (macaron). */
.badge-past { padding: 8px 14px; border-radius: 6px; background: var(--alv-red); color: #fff; font: 700 12px/1 var(--alv-font-label); letter-spacing: .2em; text-transform: uppercase; }
.fiche__poster .badge-past { position: absolute; inset: auto 6% 22% auto; z-index: 2; width: max-content; height: max-content; margin: 0; padding: 12px 22px; pointer-events: none; font-size: clamp(14px, 1.5vw, 18px); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); transform: rotate(calc(var(--alv-stamp-rest) * 1deg)); }
/* Reflet or unique à l'arrivée de l'affiche (classe posée par main.js, retirée à la fin) */
.fiche__poster::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 238, 186, .5) 50%, transparent 62%) 120% 0 / 260% 100% no-repeat; }
.fiche__poster.is-sheen::after { animation: alv-badge-sheen var(--alv-dur-sheen) var(--alv-ease-in-out) 1 both; }
.fiche__date { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fiche__date .date-chip { width: 74px; }
.fiche__date .label { margin: 0; }
.fiche h1 { margin-bottom: 22px; line-height: .9; }
.fiche .lead { max-width: 44ch; margin-bottom: 26px; }
.fiche__infos { list-style: none; margin: 0 0 22px; padding: 18px 0; display: grid; gap: 12px; border-block: 1px solid var(--alv-hair); font-size: 16px; }
.fiche__infos li { display: flex; align-items: flex-start; gap: 14px; }
.fiche__infos svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--alv-gold-solid); }
.fiche__infos a:hover { color: var(--alv-gold-solid); }
.fiche .event__tags { margin-bottom: 30px; }
/* Retour du bouton Partager : le libellé change sur place (largeur tenue par la grille), la région status reste dans la page, hors écran */
.share-lab { display: inline-grid; }
.share-lab > span { grid-area: 1 / 1; }
.share-lab .is-b, [data-share].is-done .share-lab .is-a, [data-share].is-fail .share-lab .is-a { visibility: hidden; }
[data-share].is-done .share-lab .is-b, [data-share].is-fail .share-lab .is-b { visibility: visible; }
[data-share].is-done { color: var(--alv-gold-solid); border-color: var(--alv-gold-solid); }
.share-ok { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.other { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; overflow: hidden; max-width: 760px; }
.other .media { aspect-ratio: auto; align-self: stretch; }
.other .media img { height: 100%; object-fit: cover; object-position: 50% 20%; }
.other__body { display: flex; align-items: center; gap: 24px; padding: 24px 32px; }
.other__body h3 { margin: 6px 0 14px; font-size: clamp(26px, 2.6vw, 38px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 80px minmax(160px, 240px) minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .s-head__posters { justify-content: flex-start; max-width: 460px; }
  .event { grid-template-columns: 76px minmax(0, 1fr); gap: 20px 22px; }
  .event__poster { grid-column: 2; grid-row: 1; max-width: 360px; }
  .event__body { grid-column: 1 / -1; }
  .karaoke, .matchs, .fiche { grid-template-columns: 1fr; }
  .karaoke__col, .fiche__poster { max-width: 380px; }
  .matchs__media { max-width: 560px; }
}
@media (max-width: 640px) {
  .s-poster { width: 46%; }
  .events { gap: 64px; }
  .event__actions .btn { flex: 1 1 100%; }
  .event__actions { gap: 14px 22px; }
  .themes {
    display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--alv-gutter); gap: 14px; touch-action: pan-x pan-y;
    margin-inline: calc(-1 * var(--alv-gutter)); padding: 6px var(--alv-gutter) 18px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .themes::-webkit-scrollbar { display: none; }
  .themes > * { flex: 0 0 78%; scroll-snap-align: start; }
  .fiche .page-head__actions .btn { flex: 1 1 100%; }
  .other { grid-template-columns: 120px minmax(0, 1fr); }
  .other__body { padding: 16px 18px; gap: 14px; }
  .other__body .date-chip { display: none; }
}

/* ---------- Peaufinage 05/10 ---------- */
.poster--tall, .s-poster.poster--tall, .fiche__poster.poster--tall { aspect-ratio: 2 / 3; } /* affiche du Duo : 1024×1536, vue entière */
.theme .media img.is-contain { object-fit: contain; background: #000; } /* 3 Beaux Dégâts (9:16) : affiche entière sur fond noir */
.matchs__photos { position: relative; }
.matchs__media { margin: 0; }
.matchs__guest { position: absolute; right: -28px; bottom: -40px; width: 34%; z-index: 2; border-color: var(--alv-gold-solid); }
.matchs__guest img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .matchs__guest { position: relative; right: auto; bottom: auto; width: min(56%, 240px); margin: -36px 0 0 auto; display: block; }
}
@media (min-width: 641px) { #karaoke .h-section--sm { line-height: 1.02; } } /* la virgule de « Karaoké, » ne touche plus la ligne du dessous */ /* la virgule de « Karaoké, » ne heurte plus la ligne rouge */
.other .date-chip { flex: none; width: 74px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -16px; }
.themes:focus-visible { outline: 2px solid var(--alv-gold-solid); outline-offset: 6px; border-radius: 12px; }
@media (min-width: 1181px) { .fiche .page-head__actions { flex-wrap: nowrap; } .fiche .page-head__actions .btn { padding-inline: 20px; } }

.events-empty { max-width: 52ch; }
@media (max-width: 900px) { .matchs__guest { margin-right: 10px; } }

/* plus aucune affiche à venir : l’en-tête passe sur une colonne */
.page-head__grid:has(> .s-head__posters[hidden]) { grid-template-columns: minmax(0, 1fr); }
/* une seule affiche restante : elle ne flotte plus en décalé */
.s-head__posters:has(> .s-poster[hidden]) .s-poster--b { margin-top: 0; }
.other .media { position: relative; }
.other__cap { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 5px; background: rgba(10, 9, 4, .78); font: 700 10px/1 var(--alv-font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--alv-ink-soft); }
@media (max-width: 640px) { .fiche__poster { max-width: 280px; justify-self: center; } }
