/* Vitrine LKB, style « cinéma » : photos noir et blanc plein cadre, titres à empattements, accent métal.
   Couleurs et polices viennent des réglages du commerce (bloc <style> dans index.html). */

:root {
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --step-head: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
  --step-display: clamp(5.5rem, 2rem + 11vw, 14rem);

  --m: clamp(16px, 4.4vw, 72px);
  --gap: clamp(8px, 1vw, 16px);
  --section: clamp(104px, 12vw, 200px);
  --r: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; line-height: 1; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: var(--step-head); letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); font-size: var(--step-lead); letter-spacing: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:target { scroll-margin-top: 24px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.nb { filter: grayscale(1) contrast(1.06); }
.petit { font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: var(--m); top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.evitement:focus { top: 12px; }
.js .sans-js { display: none; }

.lien { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.06em; transition: text-decoration-color 180ms ease, color 180ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
@media (hover: hover) and (pointer: fine) { .lien:hover { text-decoration-color: currentColor; } }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.bouton:active { transform: scale(0.97); }
.bouton-grand { min-height: 60px; padding: 0 32px; font-size: var(--step-body); }
.bouton-inverse { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .bouton:hover { background: var(--ink); color: var(--bg); } }

.tete-section { padding-inline: var(--m); display: grid; gap: 20px; max-width: calc(46rem + 2 * var(--m)); }
.tete-section p { color: var(--muted); max-width: 44ch; }

/* ---------- en-tête posé sur la photo ---------- */
.entete { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 40px; padding: 24px var(--m); }
.marque { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-decoration: none; margin-right: auto; }
.logo { display: block; color: var(--accent); overflow: visible; }
.logo-lettre { font-family: var(--font-display); font-size: 46px; fill: var(--ink); }
.logo-petit { width: 40px; height: 40px; }
.logo-petit .logo-anneau { stroke-width: 6; }
.logo-petit .logo-lettre { font-size: 52px; }
.entete-nav { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.entete-nav a { text-decoration-color: transparent; }
.entete-menu { display: none; }

/* ---------- premier écran ---------- */
.hero { position: relative; height: max(660px, 100svh); overflow: hidden; background: var(--surface); }
.hero-fond { position: absolute; inset: 0; }
.hero-fond img { object-position: 62% 30%; filter: grayscale(1) contrast(1.08) brightness(0.58); }
.hero-texte { position: absolute; left: var(--m); top: 30%; width: min(38rem, calc(100% - 2 * var(--m))); display: grid; gap: 28px; }
.hero-phrase { font-size: var(--step-lead); line-height: 1.35; }
.hero-statut { display: grid; gap: 4px; }
.statut-ligne { color: var(--accent); font-weight: 500; }
.hero-bas { position: absolute; left: var(--m); right: var(--m); bottom: clamp(28px, 6vh, 64px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-titre { display: grid; gap: 0; }
.hero-nom { font-family: var(--font); font-size: var(--step-lead); line-height: 1.2; }
.hero-mot { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.02em; white-space: nowrap; padding-bottom: 0.2em; transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.hero-mot.sort { opacity: 0; transform: translateY(-14px); }
.hero-mot .l { display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .hero-mot .l { animation: lettre 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); } }
@keyframes lettre { from { opacity: 0; transform: translateY(0.35em) rotate(4deg); } }

/* ---------- le salon ---------- */
.salon { margin-top: var(--section); }
.salon-scene { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.salon-fenetre { position: absolute; inset: 0; overflow: hidden; background: var(--surface); }
.salon-fenetre img { object-position: 60% 50%; filter: grayscale(1) contrast(1.06) brightness(0.55); }
.salon-titre { position: relative; font-size: clamp(3rem, 1rem + 7vw, 9rem); line-height: 0.95; text-align: center; padding-inline: var(--m); }
html.scenes-anim .salon-scene { place-items: start center; }
html.scenes-anim .salon-titre { margin-top: 12svh; }
.salon-titre .mot { display: inline-block; }
.salon-texte { margin-top: clamp(64px, 8vw, 128px); padding-inline: var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: start; }
.salon-texte .lead { grid-column: 1 / 7; }
.salon-texte > p:not(.lead) { grid-column: 8 / 13; color: var(--muted); }
.salon-texte .faits { grid-column: 1 / 13; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 24px; padding: 24px; background: var(--surface); }
.faits dt { color: var(--muted); font-size: var(--step-small); }

/* ---------- le rituel du fauteuil (film 3D) ---------- */
.film { margin-top: var(--section); }
.film-scene { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); display: grid; align-items: center; }
.film-repli { position: absolute; inset: 0; }
.film-repli img { filter: grayscale(1) contrast(1.05) brightness(0.32); }
.film-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.film-textes { position: relative; padding: 96px var(--m); display: grid; gap: 64px; max-width: calc(34rem + 2 * var(--m)); }
.etape h2, .etape h3 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: 0.98; margin-bottom: 18px; }
.etape p { color: var(--ink); font-size: var(--step-lead); line-height: 1.35; max-width: 26ch; }
.etape .bouton { margin-top: 28px; }
.film-sabot { display: none; }
/* avec WebGL : la scène reste à l'écran pendant 6 écrans de défilement */
html.webgl .film { height: 620svh; }
html.webgl .film-scene { position: sticky; top: 0; height: 100svh; }
html.film-pret .film-toile { opacity: 1; }
html.film-pret .film-repli { opacity: 0; transition: opacity 1.2s ease; }
html.webgl .film-textes { position: absolute; left: 0; top: 0; bottom: 0; width: min(40rem, 46vw); max-width: none; padding: 0 var(--m); display: block; }
html.webgl .etape { position: absolute; left: var(--m); right: 0; top: 50%; opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 28px)); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), visibility 0s 600ms; pointer-events: none; }
html.webgl .etape.active { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), visibility 0s; }
html.webgl .film-sabot { display: flex; align-items: baseline; gap: 0.15em; position: absolute; right: var(--m); top: 12svh; font-family: var(--font-display); font-size: clamp(5rem, 2rem + 9vw, 11rem); line-height: 0.9; color: var(--accent); font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
html.webgl .film-sabot.visible { opacity: 1; transform: none; }
.film-sabot-mm { font-size: 0.3em; color: var(--ink); }

/* ---------- le dégradé au défilement ---------- */
.degrade { margin-top: var(--section); }
.dg-scene { min-height: 100svh; padding: clamp(32px, 6vh, 72px) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.dg-photo { grid-column: 1 / 7; position: relative; aspect-ratio: 1; max-height: 84svh; overflow: hidden; background: var(--surface); }
.dg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-couleur { position: absolute; inset: 0; }
.dg-ligne { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); display: none; }
.dg-texte { grid-column: 8 / 13; display: grid; gap: 24px; }
.dg-texte > p:not(.dg-sabot):not(.dg-legende) { color: var(--muted); max-width: 40ch; }
.dg-sabot { display: flex; align-items: baseline; gap: 0.2em; font-family: var(--font-display); font-size: clamp(5rem, 2rem + 8vw, 11rem); line-height: 0.9; color: var(--accent); font-variant-numeric: tabular-nums; }
.dg-unite { font-size: 0.32em; color: var(--ink); }
.dg-legende { color: var(--muted); font-size: var(--step-small); margin-top: -12px; }
html.scenes-anim .dg-ligne { display: block; }
html.scenes-anim .dg-couleur { clip-path: inset(100% 0 0 0); }

/* ---------- prestations et tarifs ---------- */
.prestations { margin-top: var(--section); overflow-x: clip; }
.rail-scene { display: grid; gap: 40px; align-content: center; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--m); scroll-padding-inline: var(--m); }
.rail::-webkit-scrollbar { display: none; }
.rail-piste { display: flex; gap: var(--gap); width: max-content; }
.vignette { position: relative; display: flex; flex-direction: column; flex: none; width: clamp(260px, 30vw, 460px); height: min(64svh, 600px); text-decoration: none; scroll-snap-align: start; }
html.scenes-anim .grand .rail { overflow: visible; }
html.scenes-anim .grand .rail-scene { min-height: 100svh; }
.vignette-photo { position: relative; flex: 1; overflow: hidden; background: var(--surface); }
.vignette img { position: absolute; inset: 0; transition: transform 900ms var(--ease-soft), filter 600ms ease; }
.vignette-texte { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 16px; }
.vignette-nom { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.1; }
.vignette-prix { color: var(--accent); font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .vignette:hover img { transform: scale(1.04); filter: none; } }
.vignette:active img { transform: scale(1.02); }
.tarif-complet { margin-top: 88px; padding-inline: var(--m); columns: 3 18rem; column-gap: clamp(32px, 4vw, 72px); }
.categorie { break-inside: avoid; margin-bottom: 48px; }
.categorie h3 { margin-bottom: 14px; }
.ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 7px 0; text-decoration: none; }
.ligne-duree { color: var(--muted); white-space: nowrap; }
.ligne-prix { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
a.ligne .ligne-nom { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.06em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { a.ligne:hover .ligne-nom { text-decoration-color: currentColor; } }
.savoir { padding: 24px; background: var(--surface); }
.points { display: grid; gap: 10px; color: var(--muted); }

/* ---------- les barbiers ---------- */
.equipe { margin-top: var(--section); }
.equipe-liste { margin-top: 56px; padding-inline: var(--m); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap) clamp(16px, 2vw, 32px); align-items: start; }
.barbier figure { aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.barbier-nom { will-change: transform; }
.barbier img { transition: transform 900ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .barbier:hover img { transform: scale(1.03); } }
.b2 { margin-top: clamp(40px, 6vw, 96px); }
.barbier-nom { position: relative; font-family: var(--font-display); font-size: clamp(4rem, 2rem + 5vw, 8rem); line-height: 0.8; margin: -0.42em 0 0 18px; }
.barbier-spec { margin-top: 18px; color: var(--muted); }
.barbier-lien { display: inline-block; margin-top: 8px; color: var(--accent); text-decoration-color: currentColor; }

/* ---------- réserver ---------- */
.reserver { margin-top: var(--section); padding-block: clamp(80px, 9vw, 140px); background: var(--surface); }
.reserver-grille { margin-top: 48px; padding-inline: var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.resa { grid-column: 1 / 9; display: grid; gap: 32px; }
.etape-titre { display: block; font-weight: 500; margin-bottom: 12px; }
.bloc { width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: max(1rem, var(--step-body)); transition: background-color 180ms ease, color 180ms ease; }
select.bloc { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c8a26b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; cursor: pointer; }
select.bloc option, select.bloc optgroup { background: var(--surface); color: var(--ink); }
.bloc::placeholder { color: var(--muted); }
.bloc[aria-invalid="true"] { background: var(--ink); color: var(--bg); }
.choix { display: grid; gap: var(--gap); }
.choix-equipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choix-jours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choix-heures { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.pastille { position: relative; display: block; }
.pastille input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pastille > span { display: flex; flex-direction: column; justify-content: center; min-height: 56px; height: 100%; padding: 10px 16px; background: var(--surface-2); transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.pastille small { font-size: var(--step-small); color: var(--muted); }
.pastille input:checked + span { background: var(--accent); color: var(--accent-ink); }
.pastille input:checked + span small { color: var(--accent-ink); }
.pastille input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pastille input:active + span { transform: scale(0.97); }
.pastille input:disabled { cursor: not-allowed; }
.pastille input:disabled + span { background: transparent; color: var(--muted); }
.choix-heures .pastille > span { align-items: center; font-variant-numeric: tabular-nums; min-height: 52px; }
.choix-heures .pastille input:disabled + span { text-decoration: line-through; }
@media (hover: hover) and (pointer: fine) { .pastille input:not(:checked):not(:disabled):hover + span { background: var(--ink); color: var(--bg); } }
.vide { grid-column: 1 / -1; padding: 16px 0; color: var(--muted); }
.ticket { display: grid; gap: var(--gap); margin-top: 8px; }
.ticket-recap { display: flex; align-items: center; min-height: 72px; padding: 14px 20px; background: var(--surface-2); color: var(--muted); }
.ticket-recap.plein { color: var(--ink); font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.2; }
.ticket-ligne { display: flex; gap: var(--gap); }
.ticket-champ { flex: 1; }
.ticket-champ .bloc { min-height: 60px; }
.petit.erreur { color: var(--ink); font-weight: 600; }
.horaires { grid-column: 10 / 13; display: grid; gap: 16px; }
.semaine li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.semaine .plages { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.semaine li.aujourdhui, .semaine li.aujourdhui .plages { color: var(--accent); }
.horaires-note { color: var(--muted); font-size: var(--step-small); }

/* ---------- nous trouver ---------- */
.lieu { position: relative; display: grid; place-items: center; min-height: max(560px, 86svh); overflow: hidden; text-align: center; background: var(--surface); }
.lieu-fond { position: absolute; inset: 0; }
.lieu-fond img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.42); }
.lieu-texte { position: relative; display: grid; justify-items: center; gap: 12px; padding: 48px var(--m); }
.repere { color: var(--accent); margin-bottom: 12px; }
.lieu-texte h2 { margin-bottom: 8px; }

/* ---------- bandeau défilant ---------- */
.bandeau { overflow: hidden; padding-block: clamp(56px, 7vw, 112px) 0; }
.bandeau-piste { display: flex; gap: 0.35em; width: max-content; font-family: var(--font-display); font-size: clamp(3.5rem, 1.5rem + 6vw, 8rem); line-height: 1; white-space: nowrap; }
.bandeau-piste span { padding-right: 0.35em; }
.bandeau .sep { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { html:not(.scenes-anim) .bandeau-piste { animation: bandeau 48s linear infinite; } }
@keyframes bandeau { to { transform: translateX(-50%); } }

/* ---------- pied ---------- */
.pied { padding: clamp(72px, 8vw, 128px) var(--m) 40px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.pied-marque { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; }
.pied nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.pied-mention { max-width: 44ch; margin-top: 24px; }

/* ---------- intro « coup de ciseaux » ---------- */
.intro { display: none; }
html.scenes-anim .intro { display: block; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--bg); animation: intro-secours 0s 4.5s forwards; }
/* deux moitiés exactement égales : le logo de chacune tombe pile au centre de l'écran, sans décalage */
.intro-moitie { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); }
.intro-haut { top: 0; }
.intro-bas { top: 50%; }
.intro-moitie .intro-logo { visibility: hidden; }
.intro-entier { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.intro-entier .intro-logo { top: calc(var(--t) / -2); }
.intro-moitie { overflow: hidden; }
/* le même logo dans chaque moitié : centré sur la ligne de coupe, chaque moitié n'en montre que sa part */
.intro-logo { --t: min(52vmin, 340px); position: absolute; left: 50%; width: var(--t); margin-left: calc(var(--t) / -2); display: grid; justify-items: center; gap: 22px; }
.intro-haut .intro-logo { bottom: calc(var(--t) / -2); }
.intro-bas .intro-logo { top: calc(var(--t) / -2); }
.intro-logo .logo { width: var(--t); height: var(--t); }
.intro-nom { position: absolute; left: 50%; top: calc(100% + 22px); transform: translateX(-50%); font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; white-space: nowrap; }
.intro-trait { position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@keyframes intro-secours { to { visibility: hidden; } }

/* ---------- fenêtre de démonstration ---------- */
.demo { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / 0.5); } /* taste-skill-ignore : vraie fenêtre */
.demo::backdrop { background: rgb(0 0 0 / 0.65); }
.demo form { padding: 28px; display: grid; gap: 18px; }
.demo h2 { font-size: var(--step-lead); }
.demo-message { padding: 16px 18px; background: var(--surface-2); white-space: pre-line; }
.demo-message:empty { display: none; }
.demo-actions { display: flex; flex-wrap: wrap; gap: var(--gap); }

/* ---------- mouvement (le contenu reste visible sans JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: monte 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 350ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  html:not(.scenes-anim) .hero-fond img { animation: approche 2400ms var(--ease-soft) both; }
  html.scenes-anim .hero [data-rise] { animation: none; opacity: 1; transform: none; }
  html:not(.scenes-anim) .lieu-fond img { animation: derive 28s var(--ease-soft) infinite alternate; }
}
@keyframes monte { to { opacity: 1; transform: none; } }
@keyframes approche { from { transform: scale(1.1); } to { transform: none; } }
@keyframes derive { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- tablette ---------- */
@media (max-width: 68em) {
  .entete-nav { display: none; }
  .salon-texte .lead, .salon-texte > p:not(.lead) { grid-column: 1 / 13; }
  .salon-texte .faits { grid-template-columns: 1fr 1fr; }
  .dg-photo { grid-column: 1 / 7; }
  .dg-texte { grid-column: 7 / 13; padding-left: 16px; }
  .resa { grid-column: 1 / 13; }
  .horaires { grid-column: 1 / 13; margin-top: 48px; max-width: 28rem; }
  .choix-equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- téléphone ---------- */
@media (max-width: 47.99em) {
  :root { --gap: 8px; --section: 96px; }
  .entete { padding: 16px var(--m); gap: 16px; }
  .entete-action { display: none; }
  .marque { font-size: 1.5rem; gap: 10px; }
  .logo-petit { width: 34px; height: 34px; }
  .entete-menu { display: block; position: relative; }
  .entete-menu summary { list-style: none; cursor: pointer; padding: 10px 0 10px 16px; font-weight: 500; }
  .entete-menu summary::-webkit-details-marker { display: none; }
  .entete-menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 10px 20px 16px; background: var(--surface-2); }
  .entete-menu nav a { padding: 10px 0; font-size: 1.125rem; }
  .hero { height: max(620px, 100svh); }
  .hero-fond img { object-position: 66% 30%; filter: grayscale(1) contrast(1.08) brightness(0.5); }
  .hero-texte { top: 96px; gap: 20px; }
  .hero-phrase, .hero-nom { font-size: 1.25rem; }
  .hero-bas { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-mot { font-size: clamp(4.25rem, 21vw, 6rem); }
  .bouton-grand { width: 100%; }
  .salon-scene { height: 88svh; }
  .salon-texte { grid-template-columns: 1fr; }
  .salon-texte .faits { grid-template-columns: 1fr; padding: 20px; }
  .dg-scene { grid-template-columns: 1fr; align-content: center; gap: 20px; padding-block: 20px; }
  .dg-photo, .dg-texte { grid-column: 1 / -1; padding-left: 0; }
  .dg-photo { width: min(100%, 52svh); }
  .dg-texte { gap: 14px; }
  .dg-texte h2 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .dg-texte > p:not(.dg-sabot):not(.dg-legende) { font-size: 1rem; }
  .dg-sabot { font-size: clamp(3.5rem, 18vw, 5rem); }
  .rail { overflow: visible; padding-inline: var(--m); }
  .rail-piste { width: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .vignette { width: auto; height: auto; }
  .vignette-photo { flex: none; height: 46vw; }
  html.webgl .film-textes { width: auto; right: 0; top: auto; height: 46svh; padding: 0; }
  html.webgl .film-textes::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 55%, transparent); } /* taste-skill-ignore : voile neutre sous le texte, sur la 3D */
  html.webgl .etape { top: auto; bottom: 5svh; left: var(--m); right: var(--m); transform: translateY(24px); }
  html.webgl .etape.active { transform: none; }
  .etape h2, .etape h3 { font-size: clamp(2.125rem, 9vw, 2.75rem); margin-bottom: 12px; }
  .etape p { font-size: 1.0625rem; }
  html.webgl .film-sabot { right: auto; left: var(--m); top: 11svh; font-size: clamp(4rem, 20vw, 6rem); }
  .vignette:first-child { grid-column: 1 / -1; }
  .vignette:first-child .vignette-photo { height: 90vw; }
  .vignette-texte { flex-direction: column; gap: 2px; padding-top: 10px; }
  .vignette-nom { font-size: 1.125rem; }
  .tarif-complet { margin-top: 64px; columns: 1; }
  .equipe-liste { margin-top: 40px; grid-template-columns: 1fr; gap: 56px; }
  .b2 { margin-top: 0; }
  .barbier figure { aspect-ratio: 4 / 5; }
  .barbier-nom { font-size: clamp(3.75rem, 18vw, 5rem); }
  .reserver { padding-block: 72px; }
  .reserver-grille { margin-top: 32px; }
  .choix-jours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choix-heures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .choix-heures .pastille > span { padding: 10px 4px; }
  .ticket-ligne { flex-direction: column; }
  .lieu { min-height: 560px; }
}

body { overflow-x: clip; }

/* ---------- titres en capitales (réglage titresCapitales) ---------- */
html.capitales h1, html.capitales h2, html.capitales h3, html.capitales .barbier-nom, html.capitales .pied-marque, html.capitales .bandeau-piste { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; letter-spacing: -0.02em; }
html.capitales h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: 0; }
html.capitales .barbier-nom { font-size: clamp(3rem, 1.5rem + 4vw, 6rem); }
html.capitales .bandeau-piste { font-size: clamp(2.75rem, 1.2rem + 5vw, 6.5rem); }
html.capitales .marque { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.02em; }
html.capitales .logo-lettre { font-family: var(--font-display); font-weight: 800; }
html.capitales .intro-nom, html.capitales .vignette-nom { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }

/* ---------- films au défilement (sections .seq) ---------- */
.seq { position: relative; background: var(--bg); }
.seq + * { margin-top: 0; }
.seq-scene { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; }
.seq-poster, .seq-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq-poster img { width: 100%; height: 100%; object-fit: cover; }
.seq-toile { opacity: 0; transition: opacity 0.6s ease; }
.seq-prete .seq-toile { opacity: 1; }
.seq-voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 9 8 / 0.82) 0%, rgb(10 9 8 / 0.45) 38%, rgb(10 9 8 / 0) 62%); } /* taste-skill-ignore : voile neutre sous le texte, sur l'image */
.seq-textes { position: relative; padding: 120px var(--m); display: grid; gap: 72px; max-width: calc(40rem + 2 * var(--m)); }
.seq-etape h1, .seq-etape h2, .seq-etape h3 { font-size: clamp(2.25rem, 3.6vw, 4.5rem); line-height: 0.98; margin-bottom: 24px; hyphens: manual; }
.seq-etape .ligne { display: block; white-space: nowrap; }
.seq-texte { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; color: var(--ink); }
.seq-statut { margin-top: 22px; display: grid; gap: 4px; }
.seq-boutons { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.seq-second { font-weight: 500; text-decoration-color: currentColor; }
/* avec les films : la scène reste à l'écran pendant le défilement, une étape à la fois */
html.seq-on .seq { height: var(--hauteur, 260svh); }
html.seq-on .seq-scene { position: sticky; top: 0; height: 100svh; }
html.seq-on .seq-textes { position: absolute; inset: 0 auto 0 0; width: min(56rem, 62vw); max-width: none; padding: 0 var(--m); display: block; }
html.seq-on .seq-etape { position: absolute; left: var(--m); right: 0; top: 50%; opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 32px)); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), visibility 0s 700ms; }
html.seq-on .seq-etape.active { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), visibility 0s; }
html.seq-on .seq-haut .seq-etape { transition-duration: 0s; }
.seq-haut .seq-etape h1 { font-size: clamp(2.5rem, 4.2vw, 5.25rem); }

/* ---------- noir et or : finitions ---------- */
html.capitales .entete { background: linear-gradient(rgb(10 9 8 / 0.7), rgb(10 9 8 / 0)); position: fixed; } /* taste-skill-ignore : voile neutre sous la barre posée sur l'image */
html.capitales .entete-action { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); } /* taste-skill-ignore : bouton à contour, pas une ombre */
@media (hover: hover) and (pointer: fine) { html.capitales .entete-action:hover { background: var(--accent); color: var(--accent-ink); } }
html.capitales .salon-fenetre img { filter: brightness(0.62); }
html.capitales .rail-piste { width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.capitales .vignette { width: auto; height: min(70svh, 640px); }

@media (max-width: 47.99em) {
  .seq-voile { background: linear-gradient(0deg, rgb(10 9 8 / 0.92) 0%, rgb(10 9 8 / 0.6) 34%, rgb(10 9 8 / 0) 58%); } /* taste-skill-ignore : voile neutre sous le texte */
  html.seq-on .seq-textes { inset: auto 0 0 0; width: auto; height: 62svh; }
  .seq-poster img { object-position: var(--cadre-tel, 50%) 50%; }
  html.seq-on .seq-etape { top: auto; bottom: 7svh; left: var(--m); right: var(--m); transform: translateY(28px); }
  html.seq-on .seq-etape.active { transform: none; }
  .seq-etape h1, .seq-etape h2, .seq-etape h3, .seq-haut .seq-etape h1 { font-size: 7.6vw; margin-bottom: 14px; }
  .seq-texte { font-size: 1.0625rem; }
  .seq-boutons { margin-top: 22px; }
  .seq-boutons .bouton { width: 100%; }
  html.capitales .rail-piste { grid-template-columns: 1fr 1fr; }
  html.capitales .vignette { height: auto; }
  html.capitales .entete { position: absolute; }
}
/* les titres des étapes d'un film gardent tous la même taille */
html.capitales .seq-etape h3 { font-size: clamp(2.25rem, 3.6vw, 4.5rem); letter-spacing: -0.02em; }
html.capitales .lieu-fond img { filter: brightness(0.36) saturate(0.6) sepia(0.3); }
@media (max-width: 47.99em) { html.capitales .seq-etape h3 { font-size: 7.6vw; } }
@media (max-width: 47.99em) {
  html.capitales .salon-titre { font-size: 8.2vw; }
  html.capitales .lieu-texte h2 { font-size: 6.8vw; }
}
