/* ===========================================
   SPECTACLE 
   =========================================== */

:root {
  --main-font: "citrus-gothic-rough", sans-serif;
  --black-light: #211d1d;
  --filet: rgba(255, 255, 255, 0.2);
  --bg-site: #1b1818;
  --header-height: 80px;
  --text-grey: #a69595;
  --btn: #473c3c;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HERO ===== */

.spectacle-hero-simple {
  position: relative;
  z-index: 5;
}

.spectacle-single {
  background: var(--black-light);
}

.spectacle-hero-simple .parallax-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
}

.spectacle-hero-simple .parallax {
  height: 100%;
  clip-path: inset(0 0 0 0);
}

.spectacle-hero-simple .parallax::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.spectacle-hero-simple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* ===== HERO META (icone + titres) ===== */

.spectacle-hero-meta {
  display: flex;

  gap: 1.5rem;
}

/* Box icône */
.spectacle-icon-box {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spectacle-icon-box::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: -0.75rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.spectacle-icon-box img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.spectacle-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
}

/* Contenu du hero */
.spectacle-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4rem 2rem;
  color: #fff;
}

.spectacle-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.2;
}

.spectacle-subtitle {
  font-family: var(--main-font);
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
}

@media (max-width: 1024px) {
  .spectacle-icon-box {
    width: 120px;
    height: 120px;
  }

  .spectacle-hero-meta {
    gap: 1.25rem;
  }

  .spectacle-titles {
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .spectacle-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .spectacle-icon-box {
    width: 80px;
    height: 80px;
  }

  .spectacle-icon-box::after {
    display: none;
  }

  .spectacle-titles {
    padding: 0;
  }

  .spectacle-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .spectacle-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .spectacle-icon-box {
    width: 64px;
    height: 64px;
  }

  .spectacle-subtitle {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spectacle-icon-box::after {
    transition: none;
  }
}

/* ===== CONTENU ===== */

.spectacle-content-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 3rem;
}
/* Colonne gauche */
.spectacle-distribution {
  border-right: 1px solid var(--filet);
  padding-right: 2rem;
}

.spectacle-content-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.residence-content-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--text-grey);
}

.spectacle-distribution-content {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.spectacle-content-large {
  position: relative;
  color: #fff;
  padding: 0rem 4rem 8rem;
  margin: auto;
  max-width: 1600px;
  background-color: var(--black-light);
  z-index: 5;
}

/* Colonne droite */
.spectacle-description {
  max-width: 800px;
}
.spectacle-content-simple {
  position: relative;
  z-index: 5;
  background: var(--black-light);
  color: #fff;
  padding: 1rem 1.5rem 6rem;
}

.spectacle-text {
  max-width: 800px;
  margin: 0 auto;
}

.spectacle-text a {
  color: #fff;
  text-decoration: underline;
}

.spectacle-content-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black-light);
  z-index: -1;
}

/* ===== BLOCS COLONNE GAUCHE ===== */

.spectacle-block {
  margin-bottom: 3rem;
}

.spectacle-content-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 1.25rem;
  opacity: 0.85;
  color: var(--text-grey);
}

/* Agenda */
.spectacle-agenda {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spectacle-agenda li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.agenda-date {
  display: block;
  font-weight: 600;
}

.agenda-lieu {
  display: block;
  opacity: 0.75;
}

.agenda-value {
  text-transform: uppercase;
}

.agenda-label {
  text-transform: uppercase;
  font-weight: bold;
}

/* Partenaires */
.spectacle-partenaires {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
}

.spectacle-partenaires p {
  font-size: 0.9rem;
}

.spectacle-partenaires li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/*HAshtag */
.spectacle-hashtags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spectacle-hashtag {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  text-decoration: none;
}

.spectacle-hashtag:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-email {
  display: inline-flex;
  align-items: center; /* 🔥 clé */
  gap: 6px;
  line-height: 1.2;
}

.contact-email svg {
  flex-shrink: 0;
  opacity: 0.8;
  width: 16px;
  height: 16px;
}

.contact-email:hover svg {
  opacity: 1;
}

/* ===========================================
   REVUE DE PRESSE
   =========================================== */
.spectacle-presse {
  position: relative;
  overflow: hidden;
}

.spectacle-presse::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 420px;
  height: 420px;

  background-image: var(--presse-icon);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  opacity: 0.06;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.spectacle-presse > * {
  position: relative;
  z-index: 1;
}

.spectacle-presse::before {
  top: 75%;
  left: 80%;
  right: auto;
  transform: translate(-50%, -50%);
  opacity: 0.04;
}

.presse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-items: center;
}

.presse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  position: relative;
  max-width: 420px;
}

.presse-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 2rem;
  font-style: italic;
  color: #fff;
}

.presse-card__author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.presse-card__sep {
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .presse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .presse-grid {
    grid-template-columns: 1fr;
  }
}

/* GALERIE */

.spectacle-galerie-masonry {
  column-count: 2;
  column-gap: 1rem;
  margin: 3rem 0 0;
}

@media (min-width: 768px) {
  .spectacle-galerie-masonry {
    column-count: 3;
  }
}

.spectacle-galerie-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Image */
.spectacle-galerie-item img {
  transition: transform 0.6s ease;
}

/* Voile sombre */
.spectacle-galerie-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover / focus */
.spectacle-galerie-item:hover img,
.spectacle-galerie-item:focus-within img {
  transform: scale(1.06);
}

.spectacle-galerie-item:hover::after,
.spectacle-galerie-item:focus-within::after {
  opacity: 1;
}

.spectacle-galerie-item:hover::before,
.spectacle-galerie-item:focus-within::before {
  transform: scaleX(1);
}

/* Dossier artistique */

.spectacle-btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;

  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.spectacle-btn-pdf:hover {
  background: #fff;
  color: #1b1818;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .spectacle-hero-simple .parallax-container {
    height: 60vh;
    min-height: unset;
    max-height: unset;
  }

  .spectacle-hero-simple .parallax::before {
    height: 80vh;
  }

  .spectacle-title {
    font-size: 1.8rem;
  }

  .spectacle-hero-inner {
    padding: 3rem 1.5rem;
  }

  .spectacle-content-simple {
    padding: 1rem 2rem 6rem;
  }
  .spectacle-content-large {
    padding: 0 2rem 2rem;
  }
}

@media (max-width: 1024px) {
  .spectacle-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* On enlève la séparation verticale */
  .spectacle-distribution {
    border-right: none;
    padding-right: 0;
  }

  /* Largeur naturelle */
  .spectacle-description {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .spectacle-distribution {
    order: 2;
  }

  .spectacle-description {
    order: 1;
  }
}

@media (max-width: 768px) {
  .spectacle-galerie-masonry {
    column-count: 1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .spectacle-galerie-masonry {
    column-count: 2;
  }
}
/* ===== ACCORDEON MOBILE ===== */
@media (max-width: 1024px) {
  /* Ordre des colonnes */
  .spectacle-content-grid {
    display: flex;
    flex-direction: column;
  }

  .spectacle-description {
    order: 1;
  }

  .spectacle-distribution {
    order: 2;
  }

  /* Accordéon */

  .spectacle-block {
    margin-bottom: 0rem;
  }

  .spectacle-documents-buttons {
    margin-bottom: 2rem;
  }

  .is-accordion .spectacle-content-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    margin: 0; /* ✅ évite les décalages */

    cursor: pointer;
  }

  .is-accordion .spectacle-content-title::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%; /* ✅ centrage vertical */
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
  }

  .is-accordion.is-open .spectacle-content-title::after {
    content: "–";
  }

  .spectacle-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .is-accordion.is-open .spectacle-accordion-content {
    max-height: 1000px;
  }

  .spectacle-distribution .spectacle-block {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Pas de filet après le dernier bloc */
  .spectacle-distribution .spectacle-block:last-child {
    border-bottom: none;
  }
}
