/* ==========================================================================
   PAGE « LE LIEU » — récit cinématique du Choumi Comedy Club.
   Récit : façade (héros) → l'écrin (âme) → la renaissance (Gad + Paname) →
   aujourd'hui (chiffres) → galerie → CTA. Charte du site (sombre, bleu/cyan,
   Poppins). Réutilise header/footer via chrome.css. Effets pilotés par lieu.js.
   ========================================================================== */

.lieu {
  display: block; overflow-x: clip; /* garde-fou : le glissement latéral des images ne crée jamais de scroll horizontal */
  /* Colonne de contenu UNIQUE : toutes les sections (héros, blocs, chiffres,
     galerie, CTA) partagent la même largeur max et les mêmes marges latérales
     → images et textes alignés au pixel sur toute la page. */
  --lieu-max: 1280px;
  --lieu-gut: clamp(24px, 5vw, 56px);
}
.lieu .accent { color: var(--blue); }
/* Utilitaire : conteneur calé sur la colonne commune. */
.lieu-hero__contenu, .lieu-bloc, .lieu-chiffres, .lieu-soiree__tete, .lieu-cta__contenu {
  width: 100%; max-width: var(--lieu-max); margin-inline: auto; padding-inline: var(--lieu-gut);
}
/* <picture> « transparent » : l'<img> se comporte comme enfant direct de son
   conteneur (object-fit / position: absolute intacts malgré l'AVIF+webp). */
.lieu-hero__media picture, .lieu-bloc__media picture, .pb-photo picture { display: contents; }

/* Kickers / titres partagés ---------------------------------------------- */
/* Kickers (sur-titres « L'écrin », « L'impulsion »…) RETIRÉS de la page Le Lieu (demande Maceo). */
.lieu-kicker { display: none; }
.lieu-h2 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.06; color: var(--white); }
.lieu-h2--centre { text-align: center; }
.lieu-p { margin-top: 16px; color: var(--grey); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; max-width: 46ch; }
.lieu-p--centre { text-align: center; margin-inline: auto; }
.lieu-p strong { color: var(--white); font-weight: 600; }

/* ============ HÉROS : façade plein-cadre ============ */
.lieu-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(96px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); /* marges latérales gérées par la colonne commune sur .lieu-hero__contenu */
  overflow: hidden; isolation: isolate;
}
.lieu-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lieu-hero__media img {
  width: 100%; height: 118%;               /* marge pour la parallaxe */
  object-fit: cover; object-position: center 42%;
  will-change: transform;
}
.lieu-hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, color-mix(in srgb, var(--bg) 8%, transparent) 30%, color-mix(in srgb, var(--bg) 30%, transparent) 58%, color-mix(in srgb, var(--bg) 92%, transparent) 100%),
    radial-gradient(120% 80% at 20% 100%, color-mix(in srgb, var(--nuit) 70%, transparent), transparent 60%);
}
.lieu-hero__contenu { position: relative; } /* largeur/marges = colonne commune */
.lieu-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-size: clamp(12.5px, 1.3vw, 14px); font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.lieu-eyebrow__pt { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.lieu-hero__titre {
  /* Même échelle que le titre de l'accueil (.section-title). */
  font-size: clamp(56px, 4.3vw, 82px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05;
  color: var(--white); text-shadow: 0 6px 40px rgba(0,0,0,.55);
}
.lieu-hero__sous {
  margin-top: clamp(16px, 2vw, 24px); max-width: 40ch;
  color: color-mix(in srgb, var(--white) 92%, transparent); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.lieu-hero__scroll {
  /* Pastille ronde + flèche + onde sonar (même repère visuel que la flèche des
     pages spectacle), SANS texte ni badge « Réserver ». */
  /* Position FIXE, identique au pixel aux boutons flottants des autres pages
     (.cal-fab / .spectacle-fleche) : 24px du coin bas-droit sur tous les formats. */
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); left: auto; transform: none; z-index: 40;
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; color: var(--blue); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent);
  background: color-mix(in srgb, var(--blue) 15%, var(--nuit));
  box-shadow: 0 10px 34px color-mix(in srgb, var(--blue) 32%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .4s ease, transform .28s ease, border-color var(--duree-hover), background var(--duree-hover);
}
.lieu-hero__scroll:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 26%, var(--nuit)); }
.lieu-hero__scroll.is-cache { opacity: 0; pointer-events: none; transform: translateY(12px); }
.lieu-hero__scroll svg { width: 24px; height: 24px; animation: lieu-rebond 1.9s ease-in-out infinite; }
.lieu-hero__scroll::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--blue) 50%, transparent);
  animation: lieu-fleche-sonar 2.2s ease-out infinite;
}
@keyframes lieu-rebond { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes lieu-fleche-sonar { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============ BLOCS récit : image + texte alternés ============ */
.lieu-bloc {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding-block: clamp(48px, 7vw, 104px); /* largeur/marges latérales = colonne commune */
}
.lieu-bloc__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  border: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
  /* Carte CONTENUE (~gabarit du bloc réservation des pages spectacle : 360–520px) :
     la photo tient dans un écran d'ordinateur au lieu de remplir toute la hauteur. */
  width: 100%; max-width: 440px; justify-self: start; /* image calée sur le BORD de la colonne (même marge que le texte) */
}
.lieu-bloc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lieu-bloc__voile { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); pointer-events: none; }
.lieu-bloc--inverse .lieu-bloc__media { grid-column: 2; grid-row: 1; justify-self: end; }
.lieu-bloc--inverse .lieu-bloc__texte { grid-column: 1; grid-row: 1; }
.lieu-bloc__texte { max-width: 560px; }

/* ============ CHIFFRES ============ */
.lieu-chiffres {
  padding-block: clamp(48px, 7vw, 96px); /* largeur/marges = colonne commune */
  text-align: center;
}
.lieu-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
  margin: clamp(36px, 5vw, 56px) 0;
}
.lieu-stat { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.lieu-stat__num {
  font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: 1;
  color: var(--white);
}
.lieu-stat__unite { margin-top: 6px; color: var(--blue); font-size: clamp(14px, 1.35vw, 16px); font-weight: 600; letter-spacing: .2px; }
.lieu-stat__detail { color: var(--grey); font-size: 13px; line-height: 1.45; max-width: 20ch; }

/* ============ GALERIE « Une soirée au choumi » (photobooth coverflow) ============ */
.lieu-soiree { padding: clamp(48px, 7vw, 100px) 0 clamp(60px, 8vw, 108px); overflow: hidden; text-align: center; }
.lieu-soiree__tete { margin-block: 0 clamp(24px, 4vw, 44px); } /* largeur/marges = colonne commune */
.lieu-soiree__tete .lieu-p { margin-inline: auto; }

.pb-stage { position: relative; }
.pb-deck { position: relative; min-height: clamp(430px, 56vh, 560px); outline: none; touch-action: pan-y; }
.pb-deck:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 10px; }
.pb-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.lieu-lightbox__fermer {
  position: fixed; top: clamp(12px, 3vw, 24px); right: clamp(12px, 3vw, 24px); z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--white);
  background: color-mix(in srgb, var(--nuit) 70%, transparent); border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  border-radius: 50%; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lieu-lightbox__fermer svg { width: 20px; height: 20px; }
.lieu-lightbox__fermer:hover { background: color-mix(in srgb, var(--nuit) 90%, transparent); }
.lieu-lightbox__fermer:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pb-card {
  position: absolute; left: 50%; top: 50%; width: clamp(230px, 26vw, 310px);
  background: #F4EFE3; padding: 13px 13px 60px; border-radius: 5px; border: none;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.85), 0 4px 14px rgba(0,0,0,.4);
  transform: translate(-50%, -50%); cursor: pointer;
  transition: transform .62s cubic-bezier(.55,0,.18,1), opacity .5s ease;
}
.pb-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0d0a16; border-radius: 2px; }
.pb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-card.is-active { cursor: zoom-in; }
.pb-cap { position: absolute; left: 0; right: 0; bottom: 13px; display: flex; align-items: center; justify-content: center; }
.pb-cap img { height: 26px; width: auto; }
.pb-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.pb-flash.fire { animation: pb-flash .42s ease-out; }
@keyframes pb-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.pb-shutter { position: absolute; top: 10px; right: 11px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); opacity: 0; transition: opacity .4s; }
.pb-card.is-active .pb-shutter { opacity: .9; }
.pb-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 8px 1px #ff4d6d; animation: pb-glow 1.1s infinite; }
@keyframes pb-glow { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.pb-aide { margin-top: clamp(18px, 2.6vw, 28px); color: var(--grey); font-size: 12.5px; letter-spacing: .3px; }

.lieu-lightbox { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 5vmin; background: rgba(6,5,12,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; cursor: zoom-out; }
.lieu-lightbox.is-open { opacity: 1; visibility: visible; }
.lieu-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--white) 14%, transparent); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); transform: scale(.96); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lieu-lightbox.is-open img { transform: scale(1); }

@media (max-width: 760px) {
  .pb-card { width: clamp(208px, 62vw, 252px); padding-bottom: 52px; }
  .pb-cap img { height: 24px; }
}

/* ============ CTA final plein-cadre ============ */
.lieu-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(420px, 60vh, 620px);
  padding-block: clamp(56px, 9vw, 110px); /* marges latérales = colonne commune (.lieu-cta__contenu) */
  text-align: center;
}
.lieu-cta__media { position: absolute; inset: 0; z-index: -1; }
.lieu-cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lieu-cta__voile { position: absolute; inset: 0; background: radial-gradient(90% 90% at 50% 50%, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 78%, var(--bg)); }
.lieu-cta__contenu { position: relative; } /* largeur/marges = colonne commune ; le contenu reste centré */
.lieu-cta__btn { margin-top: clamp(24px, 3vw, 32px); min-width: 240px; justify-content: center; }

/* ============ Révélation au scroll (data-reveal) ============ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Blocs récit : l'IMAGE entre par SON côté — de la gauche pour un bloc normal, de
   la droite pour un bloc --inverse → alternance gauche / droite d'un bloc à l'autre.
   Le texte, lui, monte en douceur. */
.lieu-bloc[data-reveal] { opacity: 1; transform: none; }
.lieu-bloc[data-reveal] .lieu-bloc__media,
.lieu-bloc[data-reveal] .lieu-bloc__texte { transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.lieu-bloc[data-reveal] .lieu-bloc__media { opacity: 0; transform: translateX(-56px); }
.lieu-bloc--inverse[data-reveal] .lieu-bloc__media { transform: translateX(56px); }
.lieu-bloc[data-reveal] .lieu-bloc__texte { opacity: 0; transform: translateY(30px); transition-delay: .08s; }
.lieu-bloc[data-reveal].is-visible .lieu-bloc__media,
.lieu-bloc[data-reveal].is-visible .lieu-bloc__texte { opacity: 1; transform: none; }

/* ============ Chemin d'animation au scroll (page Le Lieu) ============ */
/* Héros : entrée en cascade au chargement (eyebrow → titre → sous-titre). */
.lieu-hero__contenu > * { animation: lieu-hero-in .9s cubic-bezier(.22,1,.36,1) both; }
.lieu-eyebrow { animation-delay: .12s; }
.lieu-hero__titre { animation-delay: .26s; }
.lieu-hero__sous { animation-delay: .42s; }
@keyframes lieu-hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Chiffres : titre, chaque stat puis la phrase montent en cascade à la révélation. */
.lieu-chiffres[data-reveal] { opacity: 1; transform: none; }
.lieu-chiffres[data-reveal] .lieu-h2,
.lieu-chiffres[data-reveal] .lieu-stat,
.lieu-chiffres[data-reveal] > .lieu-p { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.lieu-chiffres[data-reveal].is-visible .lieu-h2,
.lieu-chiffres[data-reveal].is-visible .lieu-stat,
.lieu-chiffres[data-reveal].is-visible > .lieu-p { opacity: 1; transform: none; }
.lieu-chiffres[data-reveal].is-visible .lieu-stat:nth-child(1) { transition-delay: .12s; }
.lieu-chiffres[data-reveal].is-visible .lieu-stat:nth-child(2) { transition-delay: .20s; }
.lieu-chiffres[data-reveal].is-visible .lieu-stat:nth-child(3) { transition-delay: .28s; }
.lieu-chiffres[data-reveal].is-visible .lieu-stat:nth-child(4) { transition-delay: .36s; }
.lieu-chiffres[data-reveal].is-visible > .lieu-p { transition-delay: .44s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .lieu-bloc { grid-template-columns: 1fr; gap: clamp(24px, 6vw, 40px); }
  .lieu-bloc__media, .lieu-bloc--inverse .lieu-bloc__media { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 11; max-width: none; }
  .lieu-bloc--inverse .lieu-bloc__texte { grid-column: 1; grid-row: auto; }
  .lieu-bloc__texte { max-width: none; }
  .lieu-stats { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 5vw, 36px); }
  /* Sur téléphone, les images pleine largeur : glissement plus marqué pour que
     l'arrivée gauche/droite soit bien visible. */
  .lieu-bloc[data-reveal] .lieu-bloc__media { transform: translateX(-72px); }
  .lieu-bloc--inverse[data-reveal] .lieu-bloc__media { transform: translateX(72px); }
}
@media (max-width: 767.98px) {
  .lieu-hero__media img { object-position: center 38%; }
}
@media (max-width: 460px) {
  .lieu-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .lieu-bloc[data-reveal] .lieu-bloc__media,
  .lieu-bloc[data-reveal] .lieu-bloc__texte,
  .lieu-hero__contenu > *,
  .lieu-chiffres[data-reveal] .lieu-h2,
  .lieu-chiffres[data-reveal] .lieu-stat,
  .lieu-chiffres[data-reveal] > .lieu-p { opacity: 1; transform: none; transition: none; animation: none; }
  .lieu-hero__scroll svg, .lieu-hero__scroll::before, .pb-flash, .pb-dot { animation: none; }
  .pb-card, .lieu-lightbox img { transition: none; }
  .lieu-hero__media img { height: 100%; }
}
