/* Spectacles — positions relevées sur latraverse42.fr (page de 1031 px ; une rangée tous les 448 px).

   Les cartes reprennent la structure de l'ancien site : la classe de couleur (spectacle-ombre / -feu / -ariane)
   est posée sur DEUX éléments imbriqués, la carte extérieure et son contenu. Seule la carte extérieure reçoit
   le survol (son reflet ::after recouvre le contenu) : elle s'agrandit et le reflet doré la traverse, tandis que
   le contenu garde son motif fixe. Les boutons et l'affiche sont posés par-dessus la carte et ne bougent pas.
   Ne pas « simplifier » cette structure : le rendu changerait. */

/* ===== CSS d'origine (fin de la page Spectacles de l'ancien site), repris tel quel ===== */
/* =========================
   CONTENEUR + FOND + EFFETS
   ========================= */
.spectacle-ombre,
.spectacle-feu,
.spectacle-ariane {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  perspective: 800px;
  --bg: transparent; /* sera remplacé par chaque thème */
  background: var(--bg);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* =========================
   MOTIF DORÉ
   ========================= */
.spectacle-ombre::before,
.spectacle-feu::before,
.spectacle-ariane::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(
    45deg,
    rgba(232,196,106,0.08) 0px,
    rgba(232,196,106,0.08) 1px,
    transparent 1px,
    transparent 42px
  );
  opacity: 0.6;
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}

/* =========================
   LUMIÈRE SCÈNE
   ========================= */
.spectacle-ombre::after,
.spectacle-feu::after,
.spectacle-ariane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 10%,
    rgba(232,196,106,0.18) 45%,
    rgba(255,220,140,0.25) 50%,
    rgba(232,196,106,0.18) 55%,
    transparent 90%
  );
  opacity: 0;
  transform: translateX(-60%);
  filter: blur(8px);
  transition: transform 1.2s ease, opacity 0.6s ease;
}

/* =========================
   HOVER IMMERSIF
   ========================= */
.spectacle-ombre:hover::before,
.spectacle-feu:hover::before,
.spectacle-ariane:hover::before {
  transform: translate(60px, -60px) scale(1.1);
  opacity: 1;
}

.spectacle-ombre:hover::after,
.spectacle-feu:hover::after,
.spectacle-ariane:hover::after {
  opacity: 1;
  transform: translateX(80%);
}

.spectacle-ombre:hover,
.spectacle-feu:hover,
.spectacle-ariane:hover {
  transform: scale(1.08) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.6),
    inset 0 0 120px rgba(0,0,0,0.4);
}

/* =========================
   COULEURS PAR CARTE
   ========================= */
.spectacle-ombre { --bg: linear-gradient(135deg,#1a0a0a,#3d1515,#1a0a0a); }
.spectacle-feu { --bg: linear-gradient(135deg,#0a1a10,#15401a,#0a1a10); }
.spectacle-ariane { --bg: linear-gradient(135deg,#0a0a1a,#151540,#0a0a1a); }

/* =========================
   WRAPPER POUR IMAGE
   ========================= */
.spectacle-img-wrapper {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center; /* centre verticalement l’image à l’intérieur du wrapper */
  pointer-events: none; /* laisse passer le hover sur la carte */
}

/* IMAGE DANS LE WRAPPER */
.spectacle-img-wrapper img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
  filter: drop-shadow(0 0 10px rgba(232,196,106,0.2));
}

/* REFLET DORÉ SUR HOVER */
.spectacle-ombre:hover .spectacle-img-wrapper img,
.spectacle-feu:hover .spectacle-img-wrapper img,
.spectacle-ariane:hover .spectacle-img-wrapper img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px rgba(232,196,106,0.4)) brightness(1.05);
}

/* ===== Mise en page ===== */

.contenu-rideau { left: 0; top: 75px; width: 1031px;
  background: url(/static/images/rideau.jpg) 0% 0% repeat; }

.titre-nos { left: 0; top: 79px; width: 143px; height: 126px; display: flex; align-items: center;
  font-family: 'Playfair Display', serif; font-size: 70px; font-weight: 900; font-variant: small-caps; color: #F5EFE0; }
.titre-spectacles { left: 137px; top: 78px; width: 368px; height: 126px; display: flex; align-items: center;
  font-family: 'PlayfairDisplay-Medium Italic', sans-serif; font-size: 70px; font-weight: 600; font-style: italic;
  color: #E8C46A; }
.plume { display: block; left: 875px; top: 112px; width: 93px; height: 80px;
  background: url(/static/images/plume.png) center center / contain no-repeat; }

/* Zone des rangées, comme la zone répétée WEBDEV : elle coupe ce qui dépasse (carte agrandie au survol)
   et fait apparaître une barre de défilement horizontale quand la carte agrandie déborde à droite. */
.zone-rangees { left: 20px; top: 215px; width: 982px; overflow-x: auto; overflow-y: hidden; }
.zone-rangees > * { position: absolute; }
/* Chaque spectacle est regroupé dans un bloc sans boîte propre : ses éléments restent placés dans la zone, comme avant. */
.zone-rangees > .rangee { display: contents; }
.zone-rangees > .rangee > * { position: absolute; }

.saison-filet { left: 11px; width: 30px; height: 1px; background-color: #c9983a; }
.saison { left: 51px; width: 258px; height: 16px; white-space: nowrap;
  font-family: 'DM Mono', sans-serif; font-size: 12px; font-weight: bold; letter-spacing: 0.5em;
  text-transform: uppercase; font-variant: small-caps; color: #E8C46A; }

.carte { left: 6px; width: 950px; height: 356px; z-index: 10; }
.carte > .carte-contenu { width: 950px; height: 356px; }
.carte-nom { margin-left: 40px; width: 535px; height: 43px;
  font-family: 'PlayfairDisplay-Medium Italic', sans-serif; font-size: 32px; font-weight: 700; font-style: italic;
  color: #F5EFE0; line-height: normal; }
.carte-auteur { margin: 6px 0 0 60px; width: 518px; height: 24px;
  font-family: 'Cormorant Garamond', sans-serif; font-size: 20px; color: rgba(245, 239, 224, 0.80); }
.carte-description { margin: 7px 0 0 80px; width: 494px;
  font-family: 'DM Mono', sans-serif; font-size: 14px; color: rgba(245, 239, 224, 0.80); }

/* Le cadre est en 638 px dans la page (618 dans la zone) ; la règle d'origine .spectacle-img-wrapper (right: 16px) décale l'affiche à 622 px. */
.cadre-affiche { left: 618px; width: 303px; height: 310px; z-index: 11; }
.cadre-affiche img { width: 303px; height: 310px; object-fit: contain; background-color: #0e0c0a; display: block; }

.bouton { z-index: 12; box-sizing: border-box; height: 36px; border: 1px solid #c9983a;
  font-family: 'DM Mono', sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #c9983a; text-align: center; padding-top: 11.5px; line-height: normal;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);
  transition: background-color 200ms, border 200ms, box-shadow 200ms, color 200ms; }
.bouton:hover { color: #18181a; background-color: #e8c46a; box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.36); }
.bouton-photos { left: 91px; width: 110px; z-index: 13; }
.bouton-dates { left: 218px; width: 358px; }

.separateur-filet { width: 100px; height: 1px; background-color: #c9983a; }
.separateur-filet.gauche { left: 360px; }
.separateur-filet.droite { left: 529.95px; }
.separateur-etoile { left: 482px; height: 31px; font-family: 'DM Mono', sans-serif; font-size: 22px;
  letter-spacing: 0.5em; font-variant: small-caps; color: #C9983A; }
/* ===== Téléphone : un spectacle après l'autre — saison, affiche, carte, boutons ===== */
@media (max-width: 820px) {
  .page-spectacles #page { background: url(/static/images/rideau.jpg) 0% 0% repeat; }
  .contenu-rideau, .plume { display: none !important; }
  #page > .titre-nos { flex: 0 0 auto; width: auto; height: auto; margin: 22px 0 0 16px; padding-right: 0.2em;
    font-size: 48px; line-height: 1.1; }
  #page > .titre-spectacles { flex: 0 0 auto; width: auto; height: auto; font-size: 48px; line-height: 1.1; }
  #page > .zone-rangees { width: auto; height: auto !important; overflow: visible; padding: 18px 16px 0; }
  .zone-rangees > .rangee { position: relative; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .zone-rangees > .rangee > * { position: relative; top: auto !important; left: auto !important; }
  .saison-filet { display: none; }
  .saison { order: 1; width: auto; height: auto; white-space: normal; font-size: 13px; letter-spacing: 0.35em; }
  .cadre-affiche { order: 2; width: auto; height: auto; display: flex; justify-content: center; }
  .cadre-affiche .spectacle-img-wrapper { position: static; transform: none; margin: 0 auto; }
  .cadre-affiche img { width: min(303px, 100%) !important; height: auto !important; }
  .carte { order: 3; width: auto; height: auto; }
  .carte > .carte-contenu { width: auto; height: auto; padding: 20px 18px 22px; box-sizing: border-box; }
  .carte-nom { margin: 0; width: auto; height: auto; font-size: 28px; line-height: 1.2; }
  .carte-auteur { margin: 6px 0 0 14px; width: auto; height: auto; font-size: 20px; }
  .carte-description { margin: 10px 0 0 14px; width: auto; font-size: 15px; line-height: 1.5; color: rgba(245, 239, 224, 0.88); }
  .bouton { position: relative; width: auto !important; height: auto; padding: 15px 10px 14px; font-size: 12px; line-height: 1.4; }
  .bouton-photos { order: 4; }
  .bouton-dates { order: 5; }
  .separateur-etoile { order: 6; }
}
