/* ==================================================================
   Soirée de Gala 2026 — L'École à l'Hôpital
   Les variables de couleurs et de polices sont injectées par index.php
   depuis les réglages du back-office.
   ================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* --navh est mesurée par site.js (hauteur réelle de la barre figée).
   Le pixel retranché fait passer le haut de la section juste sous la
   barre : aucune lisière de la section précédente ne dépasse. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh, 4rem) - 1px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;

  /* Garde-fou contre un débordement horizontal accidentel.
     « hidden » ferait du body un conteneur de défilement, ce qui
     neutralise tout position: sticky à l'intérieur — c'est le piège
     classique. « clip » coupe pareil sans créer ce conteneur ; la
     première ligne ne sert que de repli pour les navigateurs qui ne
     connaissent pas encore « clip ». */
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ------------------------------ Trame ----------------------------- */

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 3rem); }
.center { text-align: center; }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.section--dark { background: var(--bg-alt); }

.section--dark::before,
.section--dark::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(1180px, 100% - 3rem); height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 38%, transparent), transparent);
}
.section--dark::before { top: 0; }
.section--dark::after  { bottom: 0; }

/* --------------------------- Typographie -------------------------- */

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.eyebrow--gold { color: var(--gold); }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  max-width: 60ch; margin-inline: auto;
}

.prose p { margin: 0 0 1.15rem; color: color-mix(in srgb, var(--ink) 84%, transparent); }
.prose p:last-child { margin-bottom: 0; }
.prose--center { max-width: 62ch; margin-inline: auto; }

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--gold);
  margin: 2rem 0 0;
  padding-left: 1.3rem;
  border-left: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
}

/* Sans photo, la citation ne peut plus s'appuyer sur un filet à gauche :
   elle se centre sous un filet horizontal. Déclarée après .pullquote,
   à spécificité égale, pour l'emporter. */
.pullquote--center {
  border-left: 0; padding-left: 0; padding-top: 1.4rem;
  margin-inline: auto; max-width: 48ch; text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.quote {
  margin: 2rem 0 0; padding: 1.5rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 5%, transparent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem; line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 92%, transparent);
}

/* ----------------------------- Boutons ---------------------------- */

.btn {
  --btn-bg: var(--gold);
  display: inline-block;
  padding: .95rem 2.2rem;
  background: var(--btn-bg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--gold) 70%, transparent);
}
.btn--lg { padding: 1.1rem 2.9rem; font-size: .82rem; }
.btn--sm { padding: .62rem 1.25rem; font-size: .68rem; letter-spacing: .14em; }
.btn--outline {
  background: transparent; color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.btn--outline:hover { background: var(--gold); color: var(--bg); }

/* --------------------------- Navigation --------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.15rem clamp(1.5rem, 4vw, 3rem);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem;
  border-bottom-color: color-mix(in srgb, var(--gold) 20%, transparent);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; margin-right: auto;
}
.nav__brand img { max-height: 42px; width: auto; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: .76rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; opacity: .78; position: relative; padding-bottom: 3px;
  transition: opacity .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .28s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }

/* Le lien vers une autre page reste toujours accessible : les ancres,
   elles, font doublon avec le défilement et disparaissent sur petit écran. */
.nav__page { color: var(--gold); opacity: 1; }

@media (max-width: 900px) {
  .nav__links { gap: 1rem; }
  .nav__links a:not(.nav__page) { display: none; }
}
@media (max-width: 768px) {
  /* Le bouton de la barre fait doublon avec la barre fixe du bas. */
  .nav .btn--sm { display: none; }
  .nav__brand { font-size: .9rem; letter-spacing: .09em; }
  .nav__brand img { max-height: 34px; }
  .nav__links a { font-size: .68rem; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .nav { gap: .8rem; }
  .nav__links a { font-size: .62rem; }
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 7rem 1.5rem 5rem; text-align: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 22s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 40%, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 45%, var(--bg) 100%);
}
/* Sans photo : fond dégradé sobre */
.hero__media:not(:has(img)) { background: radial-gradient(130% 100% at 50% 0%, var(--bg-alt) 0%, var(--bg) 70%); }

.hero__inner { position: relative; z-index: 2; max-width: 56rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.1rem + 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 60%, transparent);
}

.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  margin: 1.9rem auto; max-width: 20rem; color: var(--gold); font-size: 1rem;
}
.hero__rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.hero__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem);
  color: color-mix(in srgb, var(--ink) 92%, transparent);
  margin: 0 0 1.1rem;
}
.hero__meta {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  margin: 0 0 2.4rem;
}
.hero__cta { margin: 0; }

.countdown {
  display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 3.2rem);
  margin-top: 3rem;
}
.countdown div { text-align: center; }
.countdown strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block; margin-top: .4rem; font-size: .64rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 36px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 12px; display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span { width: 3px; height: 7px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.9s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(9px); opacity: .25; } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* --------------------------- Bouton son --------------------------- */

/* Placé dans le bandeau : note de musique quand le son joue,
   note barrée quand il est coupé. */
.soundbtn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.soundbtn:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); transform: scale(1.06); }
.soundbtn svg { width: 19px; height: 19px; overflow: visible; }

/* Par défaut le son est coupé : la barre est visible et la note atténuée. */
.soundbtn .slash { opacity: 1; transition: opacity .2s ease; }
.soundbtn .note  { opacity: .55; transition: opacity .2s ease; }
.soundbtn[aria-pressed="true"] .slash { opacity: 0; }
.soundbtn[aria-pressed="true"] .note  { opacity: 1; }
.soundbtn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border-color: var(--gold);
}

@media (max-width: 420px) { .soundbtn { width: 34px; height: 34px; } .soundbtn svg { width: 17px; height: 17px; } }

/* --------------------------- Repères ------------------------------ */

.reperes { padding: 2.6rem 0; background: var(--bg-alt); border-block: 1px solid color-mix(in srgb, var(--gold) 20%, transparent); }
.reperes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.repere { background: var(--bg-alt); padding: .6rem clamp(.8rem, 2vw, 2rem); text-align: center; }
.repere__title {
  margin: 0 0 .35rem; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.repere__sub {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: color-mix(in srgb, var(--ink) 85%, transparent);
}
@media (max-width: 720px) {
  .reperes__grid { grid-template-columns: 1fr; }
  .repere { padding-block: 1rem; }
}

/* ------------------------ Sections en deux colonnes --------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.section--reverse .split__media { order: -1; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.split__media { position: relative; }
.split__media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); border-radius: 2px;
}
/* Portrait d'artiste : il s'immobilise pendant que la biographie défile,
   et repart avec la page une fois le texte terminé. Rien de plus qu'un
   position: sticky — pas de script, pas de saccade, et le navigateur
   gère le cas où le texte est plus court que l'image : l'effet ne se
   déclenche tout simplement pas.
   Réservé aux grands écrans : en une seule colonne, il n'aurait aucun
   sens. La colonne passe en alignement haut, sinon l'image n'a pas de
   course devant elle. */
@media (min-width: 861px) {
  .section--artist .split { align-items: start; }
  .section--artist .split__media {
    position: sticky;
    top: calc(var(--navh, 4rem) + 2.5rem);
  }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .section--reverse .split__media { order: 0; }
  .split__media::after { inset: 10px -10px -10px 10px; }
}

.ph {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, var(--bg-alt), color-mix(in srgb, var(--bg) 85%, var(--gold)));
  border: 1px dashed color-mix(in srgb, var(--gold) 38%, transparent);
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; padding: 1.5rem;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph small { display: block; margin-top: .4rem; letter-spacing: .06em; text-transform: none; opacity: .7; }

/* --------------------------- Chiffres clés ------------------------ */

.stats { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem 1.5rem; }
.stat { text-align: center; }
.stat__num {
  margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--gold);
}
.stat__label {
  margin: 0; font-size: .78rem; letter-spacing: .1em;
  color: color-mix(in srgb, var(--ink) 66%, transparent); text-wrap: balance;
}

/* ---------------------------- Programme --------------------------- */

.programme__label {
  text-align: center; margin: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.programme { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; }
.programme__step {
  display: grid; grid-template-columns: 5.5rem 20px 1fr; align-items: start;
  gap: 1rem; padding: 1.4rem 0; position: relative;
}
.programme__step + .programme__step { border-top: 1px solid color-mix(in srgb, var(--gold) 16%, transparent); }
.programme__time {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--gold);
  line-height: 1.3; font-variant-numeric: tabular-nums;
}
.programme__dot { position: relative; height: 1.35rem; display: grid; place-items: center; }
.programme__dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}
.programme__desc strong { display: block; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.programme__desc em {
  display: block; margin-top: .3rem; font-style: normal; font-size: .93rem;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
}
@media (max-width: 560px) {
  .programme__step { grid-template-columns: 4.2rem 14px 1fr; gap: .7rem; }
  .programme__time { font-size: 1.15rem; }
}

/* ------------------- Mention du prestataire ------------------------
   Le logo HelloAsso est officiel et n'est pas retouché : il est
   simplement rendu en monochrome dans l'encre du site, traitement
   admis pour un logo partenaire sur fond sombre — et le seul qui
   reste lisible ici. On ne le teinte pas en doré : recolorer un logo
   de marque est contraire à la charte de son propriétaire.
   ------------------------------------------------------------------- */

.powered {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; flex-wrap: wrap;
  margin: 2.2rem 0 0;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.powered a { display: inline-flex; align-items: center; line-height: 0; }
.powered img {
  height: 26px; width: auto;
  /* Aplatit le logo en blanc, puis on le teinte via l'opacité. */
  filter: brightness(0) invert(1);
  opacity: .72;
  transition: opacity .25s ease;
}
.powered a:hover img { opacity: 1; }
@media (max-width: 420px) { .powered { gap: .5rem; font-size: .72rem; } }

/* ----------------------------- Galerie ---------------------------- */

.gallery {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
/* Toutes les vignettes ont la même proportion, quelle que soit celle de
   la photo : la grille reste régulière avec des portraits, des paysages
   et des panoramiques mélangés. La photo entière reste visible au clic,
   dans la visionneuse. */
.gallery__item {
  position: relative; margin: 0; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 3;
}
.gallery__item img,
.strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  /* Recadrage légèrement haut : sur une photo de groupe, ce sont les
     visages qu'on garde, pas les pieds. */
  object-position: 50% 40%;
  transition: transform .7s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.gallery__item:hover img,
.strip__item:hover img { transform: scale(1.06); }
.gallery__item figcaption,
.strip__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
  font-size: .78rem; letter-spacing: .08em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover figcaption,
.strip__item:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ------------ Bande d'aperçu (page d'accueil seulement) ------------
   Une seule rangée, qui défile horizontalement et déborde d'un bord à
   l'autre de l'écran : la section reste basse, alors que la grille
   complète des photos vit sur la page des éditions.
   ------------------------------------------------------------------- */

.strip { position: relative; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }

.strip__rail {
  display: flex; gap: 10px;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: clamp(1.5rem, 4vw, 3rem);
  /* L'ascenseur horizontal est masqué : le dégradé de droite et le
     débord de la dernière vignette suffisent à montrer qu'on peut
     faire défiler. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.strip__rail::-webkit-scrollbar { display: none; }
.strip__rail:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.strip__item {
  position: relative; margin: 0;
  flex: 0 0 auto;
  width: clamp(190px, 24vw, 310px);
  aspect-ratio: 3 / 2;
  overflow: hidden; border-radius: 2px;
  scroll-snap-align: start;
}

/* Dégradé de bord : la bande semble continuer au-delà de l'écran.
   Il s'efface quand on a atteint la dernière photo. */
.strip::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: clamp(2rem, 6vw, 5rem);
  background: linear-gradient(to left, var(--bg-alt), transparent);
  pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.strip.has-arrows::after { opacity: 1; }
.strip.is-end::after { opacity: 0; }

/* Flèches — posées par le script, et seulement si ça déborde. */
.strip__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--gold); cursor: pointer;
  transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.strip.has-arrows .strip__arrow { display: grid; }
.strip__arrow svg { width: 20px; height: 20px; }
.strip__arrow:hover { background: var(--bg); transform: scale(1.06); }
.strip__arrow[disabled] { opacity: 0; pointer-events: none; }
.strip__arrow--prev { left: clamp(.5rem, 1.5vw, 1rem); }
.strip__arrow--next { right: clamp(.5rem, 1.5vw, 1rem); }
/* Au doigt, on fait glisser : les flèches ne servent à rien. */
@media (hover: none) { .strip .strip__arrow { display: none !important; } }

@media (max-width: 520px) { .strip__item { aspect-ratio: 4 / 3; } }

/* Section resserrée : deux fois moins de respiration qu'une section
   de texte, l'aperçu n'a pas à occuper un écran entier. */
.section--tight { padding: clamp(3rem, 5.5vw, 4.5rem) 0; }
.section--tight .gallery-link { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.h2--compact { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.4rem); margin-bottom: 1rem; }

/* --------------------------- Témoignages -------------------------- */

.testimonials {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
}
.testimonial {
  margin: 0; padding: 2.2rem 1.9rem 1.9rem; position: relative;
  background: var(--bg-alt);
  border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
  border-radius: 2px;
  display: flex; flex-direction: column;
}
.testimonial__mark {
  position: absolute; top: .1rem; left: 1.2rem; margin: 0;
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1;
  color: color-mix(in srgb, var(--gold) 28%, transparent);
}
.testimonial__body {
  position: relative; margin: 0 0 1.5rem; flex: 1;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.16rem; line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 92%, transparent);
}
.testimonial footer { display: flex; align-items: center; gap: .85rem; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial footer strong { display: block; font-size: .92rem; font-weight: 500; }
.testimonial footer em {
  display: block; font-style: normal; font-size: .78rem;
  color: color-mix(in srgb, var(--ink) 58%, transparent); line-height: 1.4;
}

/* --------------------------- Partenaires -------------------------- */

.partners {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.partner {
  display: grid; place-items: center; min-height: 64px; padding: .5rem 1rem;
  text-decoration: none;
  opacity: .72; filter: grayscale(1) brightness(1.7);
  transition: opacity .3s ease, filter .3s ease;
}
.partner:hover { opacity: 1; filter: none; }
.partner img { max-height: 58px; width: auto; object-fit: contain; }
.partner span {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .1em;
  text-transform: uppercase; filter: none;
}

/* ---------------------------- Réservation ------------------------- */

.booking { background: linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--bg) 70%, var(--bg-alt))); }

.offers {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem;
}
.offer {
  display: flex; flex-direction: column; text-align: center;
  padding: 2.4rem 1.7rem;
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-radius: 2px;
  transition: border-color .3s ease, transform .3s ease;
}
.offer:hover { border-color: color-mix(in srgb, var(--gold) 65%, transparent); transform: translateY(-4px); }
.offer__kicker {
  margin: 0 0 .7rem; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
.offer__title {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2;
}
.offer__price {
  margin: 0 0 .5rem; font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1; color: var(--gold);
}
.offer__note {
  margin: 0 0 1.9rem; flex: 1;
  font-size: .84rem; color: color-mix(in srgb, var(--ink) 62%, transparent); text-wrap: balance;
}

.booking__foot { margin-top: clamp(3rem, 6vw, 4.5rem); }
.deadline {
  display: inline-block; margin: 0 0 1.8rem; padding: .55rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 2px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--ink));
}
.legal {
  margin: 2rem auto 0; max-width: 46ch;
  font-size: .8rem; line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* ------------------------------ Footer ---------------------------- */

.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: var(--bg-alt);
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  font-size: .9rem;
}
.footer p { margin: 0 0 .55rem; }
.footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.footer a:hover { border-bottom-color: var(--gold); }
.footer__logo { max-height: 56px; width: auto; margin: 0 auto 1.4rem; }
.footer__sig {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--gold); margin-bottom: 1rem;
}
.footer__org { color: color-mix(in srgb, var(--ink) 58%, transparent); font-size: .84rem; }
.footer__links { margin-top: 1.2rem; font-size: .8rem; }
.footer__links p { display: inline; }

/* -------------------------- CTA mobile ---------------------------- */

.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 65; display: none;
  padding: 1.05rem; text-align: center; text-decoration: none;
  background: var(--gold); color: var(--bg);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.8);
}
@media (max-width: 768px) { .sticky-cta { display: block; } body { padding-bottom: 3.4rem; } }

/* ------------------------- Apparition douce ----------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ----------------------------- Impression ------------------------- */

@media print {
  .nav, .sound, .sticky-cta, .hero__scroll, .countdown { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .footer, .reperes, .stats { background: #fff !important; }
}

/* ==================================================================
   Page « Éditions précédentes »
   ================================================================== */

.page-editions { padding-top: 0; }
body.is-locked { overflow: hidden; }

.pagehead {
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-alt) 0%, var(--bg) 72%);
}
.pagehead__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.8rem); line-height: 1.08;
  margin: 0 0 .8rem; text-wrap: balance;
}
.pagehead__date {
  margin: 0 0 1.4rem; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.pagehead__intro { margin-top: 1rem; }
.pagehead__count {
  margin: 1.6rem 0 0; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.backlink { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.backlink:hover { border-bottom-color: currentColor; }

/* Chapitre d'une édition */
.edition__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.2rem; margin-bottom: .6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.edition__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.15;
  margin: 0 0 .35rem;
}
.edition__date {
  margin: 0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.edition__intro { max-width: 62ch; margin: 1.4rem 0 0; }
.edition .gallery { margin-top: clamp(1.8rem, 4vw, 2.6rem); }

.edition__more { margin: 1.8rem 0 0; text-align: center; }
.edition__more a {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding-bottom: 2px; transition: border-color .2s;
}
.edition__more a:hover { border-bottom-color: var(--gold); }

.gallery--full { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .gallery--full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery--full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .gallery--full { grid-template-columns: 1fr; } }

/* La photo devient un bouton : on neutralise le style natif. */
.gallery__open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; line-height: 0;
}
.gallery__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.empty-note {
  text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: color-mix(in srgb, var(--ink) 65%, transparent);
  padding: 2rem 0;
}

/* Liens sous la bande de l'accueil : le bouton mène à la dernière
   édition, le lien discret à la collection complète. */
.gallery-link {
  margin: clamp(2.2rem, 5vw, 3rem) 0 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.gallery-link__all {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.gallery-link__all:hover {
  color: var(--gold);
  border-bottom-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

/* ==================================================================
   Visionneuse plein écran
   ================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 96%, #000);
  animation: lbIn .22s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  grid-column: 2; margin: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  max-height: 100%;
}
.lightbox__figure img {
  max-width: 100%; max-height: calc(100vh - 11rem);
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 30px 80px -30px #000;
}
.lightbox__figure figcaption {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 85%, transparent);
  text-align: center; max-width: 60ch;
}
.lightbox__figure figcaption[hidden] { display: none; }

.lightbox__nav, .lightbox__close {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  color: var(--gold); cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, transform .2s, border-color .2s;
}
.lightbox__nav {
  width: clamp(40px, 7vw, 52px); height: clamp(40px, 7vw, 52px);
  font-size: 1.7rem; line-height: 1; padding-bottom: 4px;
}
.lightbox__nav:hover, .lightbox__close:hover {
  background: var(--gold); color: var(--bg); transform: scale(1.06);
}
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__nav[hidden] { visibility: hidden; display: grid; }

.lightbox__close {
  position: absolute; top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem);
  width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; padding-bottom: 3px;
}

.lightbox__counter {
  position: absolute; bottom: clamp(.8rem, 3vw, 1.4rem); left: 50%; transform: translateX(-50%);
  margin: 0; font-size: .72rem; letter-spacing: .22em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-variant-numeric: tabular-nums;
}
.lightbox__counter[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 3.5rem .8rem 3rem; }
  .lightbox__figure { grid-column: 1; }
  .lightbox__figure img { max-height: calc(100vh - 12rem); }
  .lightbox__nav {
    position: absolute; bottom: 2.6rem;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
  }
  .lightbox__nav--prev { left: 1rem; grid-column: 1; }
  .lightbox__nav--next { right: 1rem; grid-column: 1; }
}

/* ==================================================================
   Écoute de l'artiste
   ================================================================== */

.artmedia {
  margin-top: 2.2rem; padding-top: 1.8rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.artmedia__title {
  margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.artmedia__intro {
  margin: 0 0 1.3rem; font-size: .93rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

/* ------------------------- Lecteur audio -------------------------- */

.player {
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--gold) 4%, transparent);
  overflow: hidden;
}
.player__list { list-style: none; margin: 0; padding: 0; }

.player__track {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem .9rem;
  transition: background .2s ease;
}
.player__track + .player__track {
  border-top: 1px solid color-mix(in srgb, var(--gold) 14%, transparent);
}
.player__track.is-playing { background: color-mix(in srgb, var(--gold) 9%, transparent); }

.player__play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  font-size: .62rem; line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.player__play:hover { background: var(--gold); color: var(--bg); transform: scale(1.06); }
.player__icon--pause { display: none; letter-spacing: 1px; }
.player__track.is-playing .player__icon--play  { display: none; }
.player__track.is-playing .player__icon--pause { display: block; }
.player__track.is-playing .player__play { background: var(--gold); color: var(--bg); }

.player__meta { flex: 1; min-width: 0; }
.player__meta strong {
  display: block; font-weight: 400; font-size: .98rem; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player__meta em {
  display: block; font-style: normal; font-size: .8rem; margin-top: .1rem;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player__time {
  flex: none; font-size: .78rem; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}

.player__bar { height: 3px; background: color-mix(in srgb, var(--gold) 14%, transparent); }
.player__progress { height: 100%; cursor: pointer; position: relative; }
.player__progress span {
  display: block; height: 100%; width: 0; background: var(--gold);
  transition: width .15s linear;
}

/* ---------------------- Vignette de la vidéo ---------------------- */

.ytfacade { margin-top: 1.5rem; }
.ytfacade__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  position: relative; background: var(--bg-alt);
  border-radius: 3px; overflow: hidden; line-height: 0;
}
.ytfacade__btn img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
  filter: saturate(.85) brightness(.9);
}
.ytfacade__btn:hover img { transform: scale(1.03); filter: none; }

.ytfacade__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  transition: background .25s ease, transform .25s ease;
}
.ytfacade__play::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 16px solid var(--gold);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transition: border-color .25s ease;
}
.ytfacade__btn:hover .ytfacade__play { background: var(--gold); transform: translate(-50%, -50%) scale(1.08); }
.ytfacade__btn:hover .ytfacade__play::after { border-left-color: var(--bg); }

.ytfacade__note {
  margin: .6rem 0 0; font-size: .74rem; line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 48%, transparent);
}
.ytfacade iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 3px; display: block;
}
.ytfacade.is-playing .ytfacade__note { display: none; }

/* Vignette YouTube absente : fond sobre plutôt qu'une image cassée. */
.ytfacade.is-novignette .ytfacade__btn {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--bg-alt), color-mix(in srgb, var(--bg) 88%, var(--gold)));
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.ytfacade.is-novignette .ytfacade__btn img { display: none; }
