/* Aca Danse — mobile-first. Couleurs et polices issues de la maquette Figma. */
:root {
  --orange: #f4911c;
  --brown: #643d0f;
  --ink: #000;
  --paper: #fff;
  --cream: #f6efe6;
  --display: 'Fraunces', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --hh: 76px; /* header height incl. margin */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 760px) { :root { --hh: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .6em 1em; color: #fff; background: #000; border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Light pages: soft orange blobs ("Déco" ellipses of the mockup). */
.light, .slide.light {
  background:
    radial-gradient(35% 30% at 8% 12%, rgb(244 145 28 / .16), transparent 70%),
    radial-gradient(30% 30% at 95% 42%, rgb(244 145 28 / .14), transparent 70%),
    radial-gradient(35% 35% at 10% 85%, rgb(244 145 28 / .12), transparent 70%),
    radial-gradient(30% 25% at 70% 95%, rgb(255 166 38 / .12), transparent 70%),
    var(--paper);
}

/* Page-to-page transition: pages cross-fade, the header stays put.
   Browsers without cross-document view transitions simply swap pages. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.site-header { view-transition-name: site-header; }
body:has(.intro) .site-header { view-transition-name: none; } /* the intro covers the header */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 12px;
  background: var(--paper);
}
.bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px; height: 56px;
  margin: 0 auto;
  padding: 0 14px 0 8px;
  color: #fff;
  background: #000;
  border-radius: 999px;
  transition: box-shadow .3s;
}
.scrolled .bar { box-shadow: 0 8px 30px rgb(0 0 0 / .25); }
.menu-btn {
  justify-self: start;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  background: none; border: 0; border-radius: 50%;
  cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 28px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), background .2s, width .3s;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -8px; }
.menu-btn span::after { top: 8px; width: 16px; }
.menu-btn:hover, .open .menu-btn { color: var(--orange); }
.open .menu-btn span { background: transparent; }
.open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.open .menu-btn span::after { width: 28px; transform: translateY(-8px) rotate(-45deg); }

.brand {
  display: flex; align-items: center; gap: .3rem;
  color: var(--orange);
  font: 900 1.2rem/1 var(--display);
  text-decoration: none;
}
.brand img { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.quick { justify-self: end; display: flex; align-items: center; gap: .35rem; }
.quick a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: color .2s; }
.quick a:hover { color: var(--orange); }
.quick svg { width: 26px; height: 26px; }

.menu {
  position: absolute; top: calc(100% + 8px); left: 8px;
  min-width: 220px;
  padding: 8px 0;
  background: #000;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgb(0 0 0 / .3);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: block;
  padding: .6rem 1.2rem;
  font: 400 1.1rem/1.3 var(--sans);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.menu a:hover, .menu a[aria-current] { color: #000; background: var(--orange); }

@media (min-width: 760px) {
  .site-header { padding: 14px 24px; }
  .bar { height: 72px; padding: 0 24px 0 18px; }
  .brand { font-size: 1.5rem; gap: .4rem; }
  .brand img { width: 48px; height: 48px; }
  .quick svg { width: 30px; height: 30px; }
  .menu { left: 18px; }
}

/* ---------- Footer ---------- */
.site-footer {
  --icon-bg: #000;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 2rem 16px 2.25rem;
  color: #fff;
  background: #000;
  font: 400 1rem/1.3 var(--sans);
  text-align: center;
}
.site-footer a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }
.site-footer svg { width: 26px; height: 26px; flex: none; }
.f-brand { flex-direction: column; gap: .2rem !important; color: var(--orange); font: 900 1.6rem/1 var(--display); }
.f-brand img { width: 56px; height: 56px; }
@media (min-width: 860px) {
  .site-footer { grid-template-columns: auto 1fr 1fr 1fr; padding: 1.25rem 2.5rem; font-size: 1.2rem; }
}

/* ---------- Shared bits ---------- */
.btn {
  display: inline-block;
  padding: .12em .65em .18em;
  color: #fff;
  font: 300 clamp(1.4rem, 3vw, 2.5rem)/1.2 var(--display);
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  transition: color .25s, background .25s, transform .25s var(--ease);
}
.btn:hover { color: var(--orange); background: rgb(0 0 0 / .35); transform: translateY(-2px); }
.btn-dark {
  padding: .75em 1.4em;
  color: #000;
  font: 500 1rem/1 var(--sans);
  border: 1.5px solid #000;
}
.btn-dark:hover { color: #000; background: var(--orange); border-color: var(--orange); }

/* Heading with a hairline running out to the left edge, as in the mockup. */
.ruled { position: relative; width: fit-content; margin-inline: auto; padding-bottom: .45em; }
.ruled::after {
  content: "";
  position: absolute; bottom: 0;
  left: -100vw;
  width: calc(100vw + 100% + 1rem);
  height: 1px;
  background: currentColor;
  opacity: .7;
  transform-origin: left;
  transition: transform 1.2s .15s var(--ease);
}
.ruled.reveal::after { transform: scaleX(0); }
.ruled.in::after { transform: none; }

.sub { font: italic 400 clamp(1.2rem, 2vw, 1.6rem)/1.35 var(--serif); }
em { color: var(--orange); font-style: normal; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.now { transition: none; } /* on screen at load: no entrance, see reveal() */
.ruled.reveal { transform: none; opacity: 1; } /* heading stays, its line draws in */

.dots { display: flex; justify-content: center; gap: .4rem; margin-top: .75rem; }
.dots button {
  display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.dots button::before {
  content: ""; width: 6px; height: 6px;
  background: currentColor; border-radius: 50%;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: outline-offset .3s, outline-color .3s;
}
.dots button[aria-current]::before { outline: 1px solid currentColor; outline-offset: 5px; }
.carousel.fits .dots, .carousel.fits .arrow { display: none; }

.track {
  position: relative; /* offsetParent of the items: carousel() reads their offsetLeft */
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: center; }

/* ---------- Home ---------- */
.side-dots {
  position: fixed; left: 18px; top: 50%; z-index: 40;
  display: none;
  flex-direction: column; gap: .6rem;
  transform: translateY(-50%);
}
.side-dots a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--orange); }
.side-dots a::before {
  content: ""; width: 7px; height: 7px;
  background: currentColor; border-radius: 50%;
  outline: 1px solid transparent;
  transition: outline-offset .3s, outline-color .3s, transform .2s;
}
.side-dots a[aria-current]::before { outline: 1px solid currentColor; outline-offset: 7px; }
.side-dots a:hover::before { transform: scale(1.4); }
@media (min-width: 900px) { .side-dots { display: flex; } }

.slide {
  position: relative;
  display: grid; place-items: center;
  min-height: calc(100svh - var(--hh));
  padding: 3rem 16px;
  overflow: hidden;
  color: #fff;
  background: #000;
  text-align: center;
}
.slide-bg, .split-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide:not(.light)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .15), rgb(0 0 0 / .45));
  pointer-events: none;
}
.slide > :not(.slide-bg, .split-bg) { position: relative; z-index: 1; }
.slide-content { display: grid; justify-items: center; gap: 1.25rem; max-width: 1100px; }
.slide h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); text-wrap: balance; }
.slide .btn { margin-top: 1rem; }
/* Slow zoom on the background while the section is on screen. */
@media (prefers-reduced-motion: no-preference) {
  .slide-bg, .split-bg img { animation: kenburns 18s ease-in-out infinite alternate; }
}
@keyframes kenburns { to { transform: scale(1.08); } }

.hero { align-content: center; gap: clamp(2rem, 8vh, 5rem); }
.hero-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 1rem; }
.hero h1 {
  color: var(--orange);
  font: 900 clamp(3.2rem, 9vw, 7.5rem)/1 var(--display);
  letter-spacing: -.01em;
  animation: rise 1.1s .2s var(--ease) both;
}
.hero h1 span { white-space: nowrap; }
.hero-logo {
  width: clamp(150px, 24vw, 330px); height: auto;
  filter: drop-shadow(0 10px 40px rgb(0 0 0 / .5));
  animation: spin-in 1.4s var(--ease) both;
}
.tagline { font: 700 clamp(1.6rem, 3.4vw, 3rem)/1.15 var(--serif); animation: rise 1s .6s var(--ease) both; }
.tagline.ruled::after { animation: draw 1.2s .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-25deg) scale(.7); } }
@keyframes draw { from { transform: scaleX(0); } }
@media (min-width: 900px) {
  .hero-logo { margin-left: -2.5rem; }
  .hero-title { transform: translateX(8%); }
}

.split .split-bg { display: grid; grid-template-rows: 1fr 1fr; }
.split .split-bg img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.split-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
@media (min-width: 760px) {
  .split .split-bg { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .split .slide-content { width: 100%; }
  .split-ctas { width: 50%; justify-self: start; } /* over the galas half of the split background */
}

.about { display: block; padding-block: 2.5rem 3rem; color: var(--ink); text-align: left; }
.about-grid { display: grid; gap: 2.5rem; }
.about h2 { margin-bottom: 1rem; color: var(--orange); font-size: clamp(2rem, 3vw, 2.4rem); }
.about p + p { margin-top: 1em; }
.about-grid > div p { max-width: 62ch; font-size: 1rem; }
.where { display: grid; justify-items: center; align-content: start; gap: 1rem; font-style: normal; text-align: center; }
.where .addr { font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--sans); }
.where .place { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--serif); }
.where small { font: italic 400 1.1rem var(--serif); }
.where .tel { display: inline-flex; align-items: center; gap: .5rem; font: 500 clamp(1.4rem, 2.4vw, 2rem)/1 var(--sans); text-decoration: none; }
.where .tel svg { width: 1.2em; height: 1.2em; }
.where .tel:hover { color: var(--orange); }
.photo-gallery .track { grid-auto-columns: 82%; }
.photo-gallery img { width: 100%; aspect-ratio: 300 / 288; object-fit: cover; border-radius: 16px; }
@media (min-width: 860px) {
  .about { min-height: calc(100svh - var(--hh)); padding-left: 60px; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .photo-gallery .track { grid-auto-columns: calc((100% - 2 * 3.5rem) / 3); gap: 3.5rem; }
}
@media (min-width: 900px) {
  html:has(body[data-page="home"]) { scroll-snap-type: y proximity; }
  .slide { scroll-snap-align: start; }
}

/* ---------- Intro (Début) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 1.5rem;
  overflow: hidden;
  color: #fff;
  background: #fff;
  cursor: pointer;
  transition: transform .8s cubic-bezier(.7, 0, .3, 1);
}
.intro.out { transform: translateY(-100%); }
.intro-wedge {
  position: absolute; inset: 0;
  background: #000;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, -10% 100%);
  animation: wedge .8s cubic-bezier(.7, 0, .3, 1) both;
}
@keyframes wedge { from { transform: translateX(100%); } }
.intro-logo, .intro-text { position: relative; }
.intro-logo {
  display: flex; align-items: center; gap: .5rem;
  color: var(--orange);
  font: 900 clamp(2.4rem, 8vw, 6rem)/1 var(--display);
}
.intro-logo img { width: clamp(110px, 20vw, 240px); animation: spin-in 1s .55s var(--ease) both; }
.intro-logo span { animation: rise .8s .7s var(--ease) both; }
.intro-text {
  padding-bottom: .3em;
  font: 700 clamp(2.4rem, 7vw, 6rem)/1 var(--serif);
  border-bottom: 1px solid rgb(255 255 255 / .7);
  animation: rise .8s 1s var(--ease) both;
}
@media (min-width: 900px) {
  .intro { justify-items: end; padding-right: 6vw; }
  .intro-wedge { clip-path: polygon(53% 0, 100% 0, 100% 100%, 13% 100%); }
}

/* ---------- Danses / Activités ---------- */
.select {
  position: relative;
  min-height: calc(100svh - var(--hh));
  padding: 2rem 16px 4rem;
  color: #fff;
  background: linear-gradient(180deg, rgb(0 0 0 / .35), rgb(0 0 0 / .55)), var(--bg) center / cover fixed, #1a0a02;
  text-align: center;
}
.select h1 { max-width: 1100px; margin: 0 auto 2.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.pill-list { display: grid; gap: 1rem; max-width: 1230px; margin: 0 auto; }
.pill-card {
  position: relative;
  display: grid; place-items: center;
  height: clamp(88px, 11vw, 136px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.pill-card img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .5s;
  filter: brightness(.7);
}
.pill-card span {
  padding: 0 1.5rem;
  font: 700 clamp(1.7rem, 5vw, 4rem)/1 var(--serif);
  text-shadow: 0 2px 18px rgb(0 0 0 / .6);
  transition: letter-spacing .5s var(--ease), color .3s;
}
.pill-card:hover img { transform: scale(1.08); filter: brightness(.85); }
.pill-card:hover span { color: var(--orange); letter-spacing: .02em; }
@media (min-width: 760px) { .select { padding: 2.5rem 24px 5rem; } .pill-list { gap: 1.75rem; } }

/* ---------- Fiche cours ---------- */
.page { padding: 1rem 0 4rem; min-height: calc(100svh - var(--hh)); }
.back { display: inline-block; margin-bottom: 1.5rem; font: 500 .95rem var(--sans); text-decoration: none; }
.back:hover { color: var(--orange); }
.fiche { display: grid; gap: 2.5rem; }
.fiche h1 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 600; }
.fiche-tag { margin-bottom: .9rem; font: 900 clamp(1.2rem, 2.6vw, 1.75rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.fiche-text > p { max-width: 64ch; }
.fiche-text { container-type: inline-size; }
.fiche-cards { display: grid; gap: 1rem; margin-top: 2.25rem; }
@container (min-width: 600px) { .fiche-cards { grid-template-columns: repeat(3, 1fr); } } /* three across or stacked, never 2 + 1 */
.fiche-card {
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
  background: linear-gradient(140deg, rgb(244 145 28 / .32), rgb(255 255 255 / .55) 55%, rgb(244 145 28 / .2));
  border: 1.5px solid var(--orange);
  border-radius: 24px;
}
.fiche-card h2 { margin-bottom: .9rem; font: 900 1.3rem/1.25 var(--display); text-wrap: balance; }
.fiche-card p { font-size: 1.05rem; font-weight: 300; line-height: 1.4; }
.fiche-side { display: grid; justify-items: center; align-content: start; gap: 1.75rem; }
.fiche-profs { width: min(100%, 240px); }
.fiche-note { max-width: 30ch; font-weight: 700; line-height: 1.4; text-align: center; text-wrap: balance; }
@media (min-width: 860px) { .fiche-profs { width: 260px; } .fiche-cards { gap: 1.75rem; } }
.fiche-profs .track { grid-auto-columns: 100%; }
.prof { margin: 0; }
.prof img, .prof-empty div {
  width: 100%; aspect-ratio: 250 / 290;
  object-fit: cover;
  border-radius: 18px;
  filter: grayscale(1);
  transition: filter .6s, transform .6s var(--ease);
}
.prof:hover img, .prof.is-active img { filter: none; }
.prof-empty div { display: grid; place-items: center; background: var(--cream); filter: none; }
.prof-empty div img { width: 45%; height: auto; aspect-ratio: auto; opacity: .35; border-radius: 0; filter: grayscale(1); }
.prof figcaption { margin-top: .6rem; font: 600 1.5rem/1.2 var(--serif); text-align: center; }
@media (hover: none) { .prof img { filter: none; } }
@media (min-width: 860px) {
  .fiche { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
}

.horaires { margin-top: 3.5rem; }
.horaires h2, .day h2 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sessions { display: grid; gap: .9rem; }
.session {
  display: grid; gap: .15rem;
  padding: .9rem 1.5rem;
  color: #fff;
  background: linear-gradient(180deg, var(--brown) 34%, var(--orange));
  border-radius: 28px;
  font-family: var(--sans);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(100 61 15 / .2);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.session strong { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; }
.session span { font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 500; }
a.session:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgb(100 61 15 / .3); }
@media (min-width: 760px) { .sessions { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.1rem 1.5rem; } .session { border-radius: 999px; } }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.photo-gallery { margin-top: 3.5rem; }
.fiche-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgb(0 0 0 / .15); font: 500 1rem var(--sans); }
.fiche-nav a { text-decoration: none; }
.fiche-nav a:hover { color: var(--orange); }
.empty { display: grid; gap: 1.5rem; padding-block: 4rem; }

/* ---------- Planning ---------- */
.planning, .galas { position: relative; overflow: hidden; isolation: isolate; }
.planning::before, .galas::before {
  content: "";
  position: absolute; left: -6vw; bottom: 2rem; z-index: -1;
  width: min(45vw, 420px); aspect-ratio: 1;
  background: url(assets/img/logo.webp) center / contain no-repeat;
  opacity: .14;
}
.galas::after {
  content: "";
  position: absolute; right: -2rem; top: -1rem; z-index: -1;
  width: min(30vw, 200px); aspect-ratio: 1;
  background: url(assets/img/logo.webp) center / contain no-repeat;
  opacity: .14;
}
.planning h1, .galas h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.chips {
  display: flex; gap: .5rem;
  margin: 1.5rem -16px 2.5rem;
  padding: 4px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 32px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none;
  padding: .35em .95em;
  font: 400 1rem/1.3 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #000;
  border-radius: 999px;
  transition: color .2s, background .2s, border-color .2s;
}
.chips a:hover { color: var(--orange); border-color: var(--orange); }
.chips a[aria-current] { color: #000; background: var(--orange); border-color: var(--orange); }
@media (min-width: 760px) {
  .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; mask-image: none; }
  .chips a { font-size: 1.1rem; }
}
.day + .day { margin-top: 2.5rem; }
.day h2 { color: var(--orange); }

/* ---------- Tarifs ---------- */
.tarifs {
  position: relative;
  min-height: calc(100svh - var(--hh));
  padding: 2.5rem 0 4rem;
  overflow: hidden;
  color: #fff;
  background: #000;
}
.tarifs-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .8s;
}
.tarifs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .75), rgb(0 0 0 / .45)); }
.tarifs[data-tab="enfants"] [data-for="enfants"],
.tarifs[data-tab="adultes"] [data-for="adultes"],
.tarifs[data-tab="bien-etre"] [data-for="bien-etre"] { opacity: 1; }
.tarifs .wrap { position: relative; }
.tarifs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; }
.tarifs h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.tabs button {
  padding: .3em 1em;
  font: 500 clamp(1rem, 1.8vw, 1.5rem)/1.2 var(--sans);
  background: none;
  border: 1.5px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.tabs button:hover { color: var(--orange); border-color: var(--orange); }
.tabs button[aria-selected="true"] { color: #000; background: var(--orange); border-color: var(--orange); }
.prices { display: grid; gap: 2rem; }
.prices:not([hidden]) { animation: rise .6s var(--ease); }
.col { display: grid; gap: 2rem; align-content: start; }
.amount { color: var(--orange); font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--sans); }
.amount small { font-size: .85em; font-weight: 300; }
.price ul { margin: .75rem 0 0; padding-left: 1.3em; font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1.45 var(--sans); }
.tarifs-note { margin-top: 3rem; font: 400 1rem var(--sans); opacity: .85; }
.tarifs-note a:hover { color: var(--orange); }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(3, 1fr); } .tarifs-head { gap: 1.5rem 4rem; } }

/* ---------- Galas ---------- */
.coverflow { position: relative; margin-top: 1.5rem; }
.coverflow .track {
  gap: 0;
  padding-block: 1rem;
  padding-inline: calc(50% - var(--card) / 2);
  --card: clamp(230px, 62vw, 352px);
  grid-auto-columns: var(--card);
  /* "Ambiance fond" of the mockup: warm edges, clear centre. */
  background: linear-gradient(90deg, rgb(244 145 28 / .28), rgb(244 145 28 / 0) 40% 60%, rgb(244 145 28 / .28)), #fbf5ee;
}
.gala {
  position: relative;
  display: block;
  margin: 0;
  text-decoration: none;
  aspect-ratio: 352 / 550;
  transform: scale(.82);
  transition: transform .6s var(--ease), filter .6s;
  filter: grayscale(1) brightness(.95);
}
.gala.is-active { z-index: 1; transform: none; filter: none; }
.gala img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.gala-cap {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity .5s .1s;
  text-shadow: 0 4px 30px rgb(0 0 0 / .5);
}
.gala.is-active .gala-cap { opacity: 1; }
.gala-cap span { font: 700 clamp(2.4rem, 5vw, 3.3rem)/1 var(--serif); }
.gala-cap strong { font: 700 clamp(3.4rem, 7vw, 4.4rem)/1 var(--display); }
.gala:hover img { box-shadow: 0 20px 50px rgb(244 145 28 / .45); }

/* ---------- Page d'un gala ---------- */
.gala-page { padding-bottom: 3rem; background: #000; color: #fff; }
.gala-page .back { color: #fff; margin: 1.25rem 0 1rem; }
.show { position: relative; }
.show .track { gap: 0; grid-auto-columns: 100%; }
.scene {
  position: relative;
  margin: 0;
  height: max(420px, min(56.25vw, 100svh - var(--hh) - 6rem));
  min-width: 0;
  overflow: hidden;
}
.scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .6), rgb(0 0 0 / .1) 60%); pointer-events: none; }
.scene-text { pointer-events: none; position: absolute; z-index: 1; top: clamp(1.5rem, 6vw, 4rem); left: clamp(1rem, 6vw, 5rem); right: 1rem; max-width: 34rem; }
.scene h2 { font: 400 clamp(2rem, 4.5vw, 3.4rem)/1.1 var(--serif); }
.scene-intro h2 { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--serif); }
.scene-intro h2 strong { display: block; font: 700 clamp(2.8rem, 6vw, 4.4rem)/1 var(--display); }
.scene-intro p { margin-top: 1rem; font: 400 clamp(1rem, 1.5vw, 1.25rem)/1.45 var(--serif); }
/* Au-dessus de la barre de lecture des vidéos. */
.show-cta { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3rem); bottom: 7.5rem; }
.show-cta .btn { font-size: clamp(1rem, 1.6vw, 1.35rem); padding: .35em 1em; background: rgb(0 0 0 / .35); }
.show .dots { color: #fff; }
.show .arrow[data-dir="-1"] { left: 16px; }
.show .arrow[data-dir="1"] { right: 16px; }
.gala-soon { display: grid; gap: 1.5rem; justify-items: start; }
.gala-soon h1, .download h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.download a { font: 500 clamp(1rem, 1.6vw, 1.25rem)/1.5 var(--serif); word-break: break-all; }
.download p + p { margin-top: 1.5rem; }
.coverflow .dots { color: #000; }
.arrow {
  position: absolute; top: calc(50% - 1.5rem); z-index: 2;
  display: none;
  width: 3rem; height: 3rem; padding: 0 0 .15em;
  font: 400 2.2rem/1 var(--serif);
  background: rgb(255 255 255 / .85);
  border: 0; border-radius: 50%;
  box-shadow: 0 6px 20px rgb(0 0 0 / .15);
  cursor: pointer;
  transition: background .2s;
}
.arrow:hover { background: var(--orange); }
.arrow[data-dir="-1"] { left: max(16px, calc(50% - 560px)); }
.arrow[data-dir="1"] { right: max(16px, calc(50% - 560px)); }
@media (hover: hover) and (min-width: 760px) { .arrow { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
