/* Bloc « Les prochains événements » (26/11) : un carrousel d'affiches sur la bande nuit.
   Remplace, pour ce bloc, les règles .affiches et .billet de la feuille commune (elles ne servent plus).
   Marquage : .defile (la piste qui défile, ses flèches, son repère), .ev (une affiche), .suite (la dernière case, vers la billetterie). */

/* La bande nuit garde son dégradé et ses lueurs ; un liseré d'or en haut et en bas */
.affiche { box-shadow: inset 0 1px 0 rgba(235, 209, 147, .34), inset 0 -1px 0 rgba(235, 209, 147, .18); }

/* ---------- les outils, à côté du titre : le lien vers la billetterie et les deux flèches */
.defile__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 14px; }
.defile__fleches { display: flex; gap: 10px; }
.defile__fleches[hidden], .defile__repere[hidden], .defile__piste[hidden] { display: none; }
.defile__fleche { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 100%); color: #fff;
  /* conseil D7 des vidéos du 28/11 : une ombre de contact et une moyenne sous la grande, allégée (même rendu de loin, mieux posé) */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .28), 0 5px 10px -6px rgba(0, 0, 0, .4), 0 14px 24px -16px rgba(0, 0, 0, .66);
  /* conseil A4 : « scale » s'ajoute aux transitions déjà là, pour l'appui */
  transition: background-color .2s, box-shadow .2s, transform .25s var(--courbe), opacity .2s, scale .12s var(--courbe); }
.defile__fleche .icone { width: 20px; height: 20px; }
.defile__fleche--prec .icone { transform: scaleX(-1); }
.defile__fleche:focus-visible { background: var(--accent); color: var(--accent-texte);
  box-shadow: inset 0 0 0 1px var(--accent-bord), inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px color-mix(in srgb, var(--bouton-ombre) 60%, transparent), 0 5px 10px -6px color-mix(in srgb, var(--bouton-lueur) 50%, transparent), 0 14px 26px -14px color-mix(in srgb, var(--bouton-lueur) 80%, transparent); }
/* conseil A4 des vidéos du 28/11 : la flèche se réduit à 0,97 sous le doigt (au lieu de 0,94), sauf éteinte et pour qui demande moins d'animations */
@media (prefers-reduced-motion: no-preference) { .defile__fleche:not([aria-disabled="true"]):active { scale: .97; } }
/* Au bout de la piste : la flèche s'éteint mais garde le clavier (aria-disabled, pas disabled) */
.defile__fleche[aria-disabled="true"], .defile__fleche[aria-disabled="true"]:hover, .defile__fleche[aria-disabled="true"]:focus-visible { opacity: .38; cursor: default; transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 100%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }

/* ---------- la piste : elle part de l'alignement de la page et file jusqu'au bord de l'écran, la carte suivante dépasse */
.defile { --bord: max(var(--gouttiere), calc((100% - 1240px) / 2)); --carte: clamp(272px, 82vw, 540px); }
.defile__piste { display: flex; gap: 14px; margin: 0; padding: 12px var(--bord) 38px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--bord); -webkit-overflow-scrolling: touch; }
.defile__piste:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
/* Avec le script, les flèches et le repère remplacent la barre de défilement */
.defile--script .defile__piste { scrollbar-width: none; }
.defile--script .defile__piste::-webkit-scrollbar { display: none; }
.defile__piste > li { display: flex; flex: 0 0 var(--carte); min-width: 0; scroll-snap-align: start; }
.defile__piste > li.defile__suite { flex-basis: clamp(216px, 60vw, 300px); }

/* ---------- une affiche : l'image en grand, ses couleurs en fond flou, le texte dessus */
.ev { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 24px; color: #fff;
  background: linear-gradient(165deg, #1B2B63 0%, #0D1738 100%);
  /* conseils des vidéos du 28/11 : D7 ombre en trois couches (contact, moyenne, grande allégée) ; A1 l'ombre suit la même courbe que le mouvement ;
     A13 le retour au repos dure 20 % de moins que la montée (.35s au survol, voir plus bas) */
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 10px 18px -10px rgba(0, 0, 0, .4), 0 34px 54px -30px rgba(0, 0, 0, .72); transition: transform .28s var(--courbe), box-shadow .28s var(--courbe); }
/* Décor seulement : le voile qui assure la lecture du texte, puis le liseré d'or et le reflet du haut */
.ev::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 48, .12) 0%, rgba(11, 21, 48, .5) 42%, rgba(9, 16, 38, .9) 68%, rgba(8, 14, 34, .96) 100%); }
.ev::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(235, 209, 147, .36), inset 0 1px 0 rgba(255, 255, 255, .42); }
.ev__fond { position: absolute; z-index: -2; top: -15%; left: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: blur(36px) saturate(1.7) brightness(.6); pointer-events: none; }
.ev__image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ev__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--courbe);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%); }
/* Décor seulement : un léger assombrissement des bords, pour qu'une image à fond blanc se fonde dans la carte */
.ev__image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 95% at 50% 40%, rgba(11, 21, 48, 0) 52%, rgba(11, 21, 48, .3) 100%); }
.ev__genre { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, rgba(22, 36, 78, .88) 0%, rgba(9, 17, 42, .94) 100%);
  box-shadow: inset 0 0 0 1px rgba(235, 209, 147, .55), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 18px -10px rgba(0, 0, 0, .58); color: #fff; font: 650 .78rem/1.2 var(--police); letter-spacing: .01em; }   /* conseil D7 du 28/11 : contact + portée allégée */

.ev__corps { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "date texte" "action action"; gap: 14px; flex: 1; padding: 14px 16px 16px; }
.ev__date { grid-area: date; padding-right: 14px; border-right: 1px dashed rgba(255, 255, 255, .36); }
.ev__date time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; height: 100%; text-align: center; }
.ev__date b { padding: 0 .05em; background: var(--accent-clair); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 3.3rem/1 var(--police); letter-spacing: -.05em; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.ev__date span { color: rgba(255, 255, 255, .92); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.ev__texte { grid-area: texte; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ev h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 2px; font: 750 1.18rem/1.2 var(--police); letter-spacing: -.02em; }
.ev h3 a { color: #fff; text-decoration: none; }
.ev h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toute l'affiche mène à l'événement */
.ev__ligne { display: flex; align-items: flex-start; gap: 8px; min-width: 0; color: rgba(255, 255, 255, .92); font-size: .9rem; line-height: 1.45; }
.ev__ligne .icone { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent-clair-uni); }
.ev__ligne span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.ev__action { grid-area: action; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ev__prix { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1.14rem; font-weight: 750; white-space: nowrap; }
.ev__prix .icone { width: 19px; height: 19px; color: var(--accent-clair-uni); }
.ev__action .bouton { position: relative; z-index: 2; min-height: 46px; padding: 0 24px; transition: background .2s, box-shadow .2s, color .2s, scale .12s var(--courbe); }
/* conseils des vidéos du 28/11 : D7 l'ombre du bouton en deux couches (contact + portée allégée) ; A4 il se réduit à 0,97 à l'appui */
.ev__action .bouton--plein { box-shadow: inset 0 0 0 1px var(--accent-bord), inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(16, 24, 40, .3), 0 8px 18px -12px rgba(16, 24, 40, .46); }
@media (prefers-reduced-motion: no-preference) { .ev__action .bouton:active { scale: .97; } }

/* ---------- la dernière case : la suite est dans la billetterie */
.suite { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; width: 100%; min-height: 260px; padding: 24px 22px; overflow: hidden; border-radius: 24px; color: #fff;
  background: radial-gradient(90% 60% at 100% 0%, rgba(235, 209, 147, .34), rgba(235, 209, 147, 0) 70%), linear-gradient(165deg, #24356F 0%, #1A2156 52%, #3A1F4E 100%);
  /* conseils D7 (trois couches) et A13 (retour au repos plus court que la montée) des vidéos du 28/11, comme l'affiche */
  box-shadow: inset 0 0 0 1px rgba(235, 209, 147, .4), inset 0 1px 0 rgba(255, 255, 255, .34), 0 1px 2px rgba(0, 0, 0, .22), 0 10px 18px -10px rgba(0, 0, 0, .4), 0 34px 54px -30px rgba(0, 0, 0, .72); transition: transform .28s var(--courbe); }
.suite__decor { position: absolute; top: 20px; right: -22px; width: 150px; height: 150px; color: var(--accent-clair-uni); opacity: .22; transform: rotate(-14deg); }
.suite h3 { font: 750 1.3rem/1.2 var(--police); letter-spacing: -.02em; }
.suite p { color: rgba(255, 255, 255, .9); font-size: .92rem; line-height: 1.5; }
.suite__lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--accent-clair-uni); font-weight: 700; text-decoration: none; }
.suite__lien::after { content: ""; position: absolute; inset: 0; }
.suite__lien .icone { width: 18px; height: 18px; transition: transform .25s var(--courbe); }
.suite__lien:hover { color: #fff; }

/* ---------- le repère de position : un trait d'or sur un rail, et le compte */
.defile__repere { display: flex; align-items: center; gap: 16px; }
.defile__rail { position: relative; flex: 1; max-width: 300px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.defile__curseur { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 4px; background: var(--accent-clair); transition: left .15s linear; }
.defile__compte { color: rgba(255, 255, 255, .9); font: 600 .88rem/1.4 var(--police); font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  /* Au doigt, un survol reste collé après l'appui : la flèche ne passe à l'or qu'à la souris ou au clavier */
  .defile__fleche:not([aria-disabled="true"]):hover { background: var(--accent); color: var(--accent-texte);
    box-shadow: inset 0 0 0 1px var(--accent-bord), inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px color-mix(in srgb, var(--bouton-ombre) 60%, transparent), 0 5px 10px -6px color-mix(in srgb, var(--bouton-lueur) 50%, transparent), 0 14px 26px -14px color-mix(in srgb, var(--bouton-lueur) 80%, transparent); }
  .ev:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 14px 24px -12px rgba(0, 0, 0, .45), 0 44px 64px -30px rgba(0, 0, 0, .82); transition-duration: .35s; }
  .ev:hover .ev__image img { transform: scale(1.04); }
  .suite:hover { transform: translateY(-5px); transition-duration: .35s; }
  .suite:hover .suite__lien .icone { transform: translateX(3px); }
}

@media (min-width: 720px) {
  .defile__piste { gap: 24px; padding-bottom: 32px; }
  .ev__image { aspect-ratio: 2 / 1; }
  .ev__corps { gap: 16px 22px; padding: 16px 22px 20px; }
  .ev__date { padding-right: 22px; }
  .ev__date time { min-width: 88px; }
  .ev__date b { font-size: 4.3rem; }
  .ev__date span { font-size: .86rem; }
  .ev h3 { font-size: 1.4rem; }
  .suite { padding: 30px 26px; }
}

@media (min-width: 900px) {
  .defile__outils { flex: none; flex-wrap: nowrap; justify-content: flex-end; }
  .ev__corps { grid-template-areas: "date texte" "date action"; }
  /* Des cartes libres : une affiche sur deux descend d'un cran */
  .defile__piste > li:nth-child(odd) { margin-bottom: 22px; }
  .defile__piste > li:nth-child(even) { margin-top: 22px; }
}
