/*
Theme Name: Le Charlie Folie's
Description: Thème bloc du Charlie Folie's, restaurant grill et club à Moulins. Direction « la pièce sombre » : une nuit de bout en bout, les photos comme seules lumières.
Author: Axo-Lab
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: charlie
*/

:root {
  /* Proportions de la palette « Graphite and orange », couleurs prises au lieu :
     la nuit, l'enseigne au néon rouge, l'eau de la piscine. */
  --bg: #141214;
  --surface: #1f1c1f;
  --ink: #ededeb;
  --muted: #b0b0ad;
  --accent: #ff3b4a;
  --accent-ink: #141214;
  --field: #3cc7cb;
  --field-ink: #141214;

  --font: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --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.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 6.4vw, 6.25rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --section: clamp(7rem, 13vw, 14rem);
  --bar: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-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, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
figure.wp-block-image { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:target { scroll-margin-top: calc(var(--bar) + 1rem); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.25rem; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body) / 1 var(--font); text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out);
}
.button:hover { background: var(--ink); }
.button:active { transform: scale(0.97); }
.text-link { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; transition: color 180ms var(--ease-out); }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* ---------- barre ---------- */
.site-header { position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 2rem; height: var(--bar); padding: 0 var(--margin); background: var(--bg); }
.wordmark { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.bar-nav { display: flex; gap: 1.5rem; font-size: var(--step-body); }
.bar-nav a { text-decoration: none; transition: color 180ms var(--ease-out); }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--accent); }
.bar-nav-tel, .bar-toggle { display: none; }

/* ---------- accueil : le titre, les infos et les deux portes ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: center; min-height: calc(100svh - var(--bar)); padding: clamp(1.5rem, 3vw, 3rem) var(--margin); }
.hero-text { grid-column: 1 / 7; }
.hero-title { font-size: clamp(2.5rem, 4.9vw, 5.5rem); letter-spacing: -0.035em; line-height: 0.98; }
.hero-lead { margin-top: 1.5rem; max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.hero .actions { margin-top: 2rem; }
.nowrap { white-space: nowrap; }
.doors { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.door { position: relative; display: flex; flex-direction: column; transition: opacity 240ms var(--ease-out); }
.doors:hover .door:not(:hover), .doors:focus-within .door:not(:focus-within) { opacity: 0.5; }
.door-frame { position: relative; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--bar) - 12rem); min-height: 280px; overflow: hidden; background: var(--surface); }
.door-frame figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.door-frame figure.on, .door-frame:not(.cycling) figure:first-child { opacity: 1; }
.door-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--ease-soft); }
.door:hover .door-frame img { transform: scale(1.04); }
.door-name { margin-top: 1rem; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.door-name a { text-decoration: none; }
.door-name a::after { content: ""; position: absolute; inset: 0; }
.door-line { display: block; margin-top: 0.25rem; color: var(--muted); }
.door-line.live::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; border-radius: 50%; background: var(--field); vertical-align: 0.05em; }

/* ---------- accueil : la bande de photos qui défile ---------- */
.film { overflow: hidden; margin-top: var(--section); }
.film-track { display: flex; gap: 14px; width: max-content; }
.film-pic { flex: none; height: clamp(150px, 19vh, 210px); aspect-ratio: 3 / 2; }
.film-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .film.is-running .film-track { animation: film 70s linear infinite; }
  .film:hover .film-track { animation-play-state: paused; }
}
@keyframes film { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- accueil : la phrase à gauche, les photos à droite ---------- */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: var(--section); padding: 0 var(--margin); }
.intro-text { grid-column: 1 / 6; position: sticky; top: calc(var(--bar) + 14vh); align-self: start; }
.statement { font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 22ch; }
.intro-more { margin-top: 1.5rem; max-width: 38ch; color: var(--muted); }
.intro-photos { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 1.5rem; }
.ip img { width: 100%; height: 100%; object-fit: cover; }
.ip-1 { width: 78%; aspect-ratio: 4 / 5; }
.ip-2 { width: 100%; aspect-ratio: 16 / 10; }
.ip-3 { width: 66%; aspect-ratio: 1; margin-left: auto; }

/* ---------- la carte ---------- */
.carte { padding: clamp(3rem, 6vw, 6rem) var(--margin) 0; }
.carte.is-page { padding-top: var(--section); }
.carte-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; margin-bottom: 3rem; }
.carte-head h2 { grid-column: 1 / 7; font-size: var(--step-head); letter-spacing: -0.03em; }
.carte-head p { grid-column: 8 / 13; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.menu { font-size: var(--step-lead); line-height: 1.5; }
.menu-part { font-size: var(--step-lead); color: var(--accent); margin: 4.5rem 0 1.25rem; letter-spacing: -0.01em; position: sticky; top: var(--bar); background: var(--bg); z-index: 1; padding: 0.25rem 0; }
.menu-part:first-child { margin-top: 0; }
.menu .row { display: grid; grid-template-columns: 40% 1fr auto; gap: 1.5rem; align-items: baseline; }
.menu .d { color: var(--muted); }
.menu .p { text-align: right; font-variant-numeric: tabular-nums; }
.menu .row:hover dt { color: var(--accent); }
.carte-more, .carte-note { margin-top: 3rem; }
.carte-note { color: var(--muted); max-width: 60ch; }

/* ---------- accueil : le club, les phrases défilent, la photo reste ---------- */
.club { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: var(--section); padding: 0 var(--margin); }
.club-text { grid-column: 1 / 6; }
.club-text > h2 { font-size: var(--step-head); letter-spacing: -0.03em; }
.club-step { min-height: 52svh; display: flex; flex-direction: column; justify-content: center; color: var(--muted); transition: color 400ms var(--ease-out); }
.club-step:last-child { min-height: 44svh; }
.club-step h3 { font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); letter-spacing: -0.025em; line-height: 1.05; }
.club-step p { margin-top: 1rem; max-width: 34ch; font-size: var(--step-lead); line-height: 1.4; }
.club-step a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.club-step.on { color: var(--ink); }
.club-frame { grid-column: 7 / 13; position: sticky; top: calc(var(--bar) + 5vh); align-self: start; justify-self: end; width: min(100%, 600px); aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar) - 10vh); background: var(--surface); }
.club-frame figure { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-out); }
.club-frame figure.on, html:not(.js) .club-frame figure.s0 { opacity: 1; }
.club-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- accueil : les photos autour du titre ---------- */
.gallery { position: relative; height: max(100svh, 760px); margin-top: var(--section); }
.gallery-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(30rem, 80vw); z-index: 1; }
.gallery-center h2 { font-size: var(--step-head); letter-spacing: -0.03em; }
.gallery-center p { margin: 1rem auto; color: var(--muted); max-width: 32ch; }
.gallery-center p:last-child { color: var(--ink); }
.g { position: absolute; width: clamp(110px, 13vw, 200px); aspect-ratio: 9 / 10; will-change: transform; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g1 { left: 22vw; top: 6%; }
.g2 { left: 46vw; top: 2%; width: clamp(120px, 14vw, 210px); }
.g3 { left: 66vw; top: 12%; }
.g4 { left: 23vw; top: 62%; }
.g5 { left: 38vw; top: 78%; }
.g6 { left: 60vw; top: 70%; }
.g7 { left: 72vw; top: 44%; width: clamp(100px, 10vw, 160px); }

/* ---------- questions et réponses, en grand ---------- */
.faq { padding: var(--section) var(--margin) 0; }
.faq-table { display: flex; flex-direction: column; gap: clamp(3rem, 4.5vw, 4.5rem); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: baseline; }
.q { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.q.soft { color: var(--muted); font-weight: 400; }
.a { grid-column: 8 / 13; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }

/* ---------- pages intérieures : titre et grande photo ---------- */
.page-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; padding: clamp(2rem, 5vw, 4rem) var(--margin) 0; min-height: calc(88svh - var(--bar)); }
.page-hero-text { grid-column: 1 / 7; padding-bottom: 0.5rem; }
.page-hero h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: 0.98; }
.page-hero .lead { margin-top: 2rem; max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.page-hero .actions { margin-top: 2.5rem; }
.page-hero-pic { grid-column: 7 / 13; aspect-ratio: 4 / 5; max-height: calc(88svh - var(--bar) - 4rem); width: 100%; }
.page-hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.is-short { min-height: 0; padding-top: clamp(4rem, 9vw, 9rem); }
.page-hero.is-short .page-hero-text { grid-column: 1 / 11; }

/* ---------- photo et texte côte à côte ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: center; padding: var(--section) var(--margin) 0; }
.split-pic { grid-column: 1 / 7; aspect-ratio: 4 / 3; }
.split-pic img { width: 100%; height: 100%; object-fit: cover; }
.split-text { grid-column: 8 / 13; }
.split.is-reverse .split-pic { grid-column: 7 / 13; order: 2; }
.split.is-reverse .split-text { grid-column: 1 / 6; order: 1; }
.split h2 { font-size: var(--step-head); letter-spacing: -0.03em; margin-bottom: 2rem; }
.split p { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.split p + p { margin-top: 1.25rem; }

/* ---------- liste à une seule taille ---------- */
.lineup { padding: var(--section) var(--margin) 0; }
.lineup h2 { font-size: var(--step-head); letter-spacing: -0.03em; }
.lineup-intro { margin-top: 1.5rem; max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; color: var(--muted); }
.lineup-rows { margin-top: 3rem; font-size: clamp(1.5rem, 0.9rem + 2vw, 2.5rem); line-height: 1.45; letter-spacing: -0.015em; }
.lineup-rows .row { display: grid; grid-template-columns: 40% 1fr; gap: 1.5rem; }
.lineup-rows dt { color: var(--accent); }

/* ---------- trois photos côte à côte ---------- */
.strip { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 1.5rem; align-items: start; padding: var(--section) var(--margin) 0; }
.strip figure:nth-child(1) { aspect-ratio: 4 / 3; }
.strip figure:nth-child(2) { aspect-ratio: 4 / 5; margin-top: 12vw; }
.strip figure:nth-child(3) { aspect-ratio: 1; margin-top: 4vw; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- bande de couleur, appel à l'action ---------- */
.band { margin-top: var(--section); padding: clamp(4rem, 8vw, 7rem) var(--margin); background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; }
.band h2 { grid-column: 1 / 7; font-size: var(--step-head); letter-spacing: -0.03em; }
.band p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.4; max-width: 32ch; }
.band .actions { grid-column: 8 / 13; }

/* ---------- soirées, offres, horaires ---------- */
.soirees-wrap, .offres-wrap, .form-section { padding: var(--section) var(--margin) 0; }
.soirees-wrap > h2, .offres-wrap > h2, .form-section > h2 { font-size: var(--step-head); letter-spacing: -0.03em; margin-bottom: 3rem; }
.soirees { display: flex; flex-direction: column; gap: 2.5rem; }
.soiree { display: grid; grid-template-columns: 26% 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline; font-size: var(--step-lead); }
.soiree-date { color: var(--accent); }
.soiree-title { font-size: inherit; font-weight: 500; letter-spacing: -0.01em; }
.soiree-time { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }
.soiree-text { grid-column: 2 / 4; color: var(--muted); font-size: var(--step-body); max-width: 60ch; }
.soirees-empty { font-size: var(--step-lead); max-width: 40ch; }
.offres { display: flex; flex-direction: column; gap: 3rem; }
.offre { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.5rem 1.5rem; }
.offre h3 { grid-column: 1 / 7; font-size: clamp(1.5rem, 0.9rem + 2vw, 2.5rem); letter-spacing: -0.02em; }
.offre-meta { grid-column: 8 / 13; color: var(--accent); font-size: var(--step-lead); }
.offre p:last-child { grid-column: 8 / 13; max-width: 46ch; }
.form-section > p { max-width: 50ch; font-size: var(--step-lead); line-height: 1.4; margin: -1.5rem 0 3rem; }

.infos-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding: var(--section) var(--margin) 0; }
.infos-col:first-child { grid-column: 1 / 6; }
.infos-col:last-child { grid-column: 7 / 13; }
.infos-col h2 { font-size: var(--step-head); letter-spacing: -0.03em; margin-bottom: 2rem; }
.infos-col > p, .infos-col ul { margin-top: 1.5rem; }
.infos-col ul { padding-left: 1.1em; font-size: var(--step-lead); line-height: 1.5; }
.horaires { width: 100%; border-collapse: collapse; font-size: var(--step-lead); }
.horaires th, .horaires td { text-align: left; padding: 0.35rem 1rem 0.35rem 0; font-weight: 400; }
.horaires thead th { color: var(--muted); font-size: var(--step-body); }
.horaires tbody th { color: var(--accent); }

/* ---------- plan d'accès (Leaflet, fond OpenStreetMap assombri) ---------- */
.plan-map { position: relative; z-index: 0; width: 100%; aspect-ratio: 16 / 10; background: var(--surface); }
.plan-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.plan .leaflet-container { background: var(--surface); font-family: var(--font); }
.plan .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.85) saturate(0.5); }
.plan .leaflet-bar { border: 0; box-shadow: none; }
.plan .leaflet-bar a { background: var(--bg); color: var(--ink); border-bottom-color: var(--surface); }
.plan .leaflet-bar a:hover { background: var(--surface); }
.plan .leaflet-control-zoom a { font: 500 1.25rem / 30px var(--font); }
.plan-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); outline: 6px solid rgb(255 59 74 / 0.3); }
.plan-pin b { position: absolute; left: 26px; top: -6px; padding: 0.15rem 0.5rem; background: var(--bg); color: var(--ink); font: 500 0.9375rem / 1.4 var(--font); white-space: nowrap; }
.plan figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.plan figcaption a { color: var(--ink); font-size: var(--step-body); }

/* ---------- accueil : nous trouver ---------- */
.find { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; padding: var(--section) var(--margin) 0; }
.find-map { grid-column: 1 / 9; }
.find-text { grid-column: 9 / 13; padding-bottom: 2.25rem; }
.find-text h2 { font-size: var(--step-head); letter-spacing: -0.03em; }
.find-lead { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.4; }
.find-text ul { margin-top: 1.5rem; padding-left: 1.1em; }
.find-text .actions { margin-top: 2rem; }

/* ---------- formulaires ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; max-width: 960px; }
.form .is-wide, .form .field.is-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.5rem; }
.field .opt { color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 0; background: var(--surface); color: var(--ink); font: inherit; }
.field input[type="file"] { padding: 0.85rem 1rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form-note { color: var(--muted); font-size: var(--step-small); }
.form-hp { position: absolute; left: -9999px; }
.form-alert { margin-bottom: 2rem; padding: 1rem 1.25rem; background: var(--field); color: var(--field-ink); max-width: 960px; }
.form-alert.is-error { background: var(--accent); color: var(--accent-ink); }

/* ---------- galerie ---------- */
.mosaic { columns: 3 320px; column-gap: 1.5rem; padding: 4rem var(--margin) 0; }
.mosaic figure { break-inside: avoid; margin-bottom: 1.5rem; cursor: zoom-in; }
.mosaic img { width: 100%; transition: opacity 240ms var(--ease-out); }
.mosaic figure:hover img { opacity: 0.85; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(20 18 20 / 0.94); }
.lightbox-inner { display: grid; place-items: center; width: 100%; height: 100%; padding: 4rem var(--margin); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; }
.lightbox p { margin-top: 1rem; color: var(--ink); text-align: center; }
.lightbox-close { position: fixed; top: 1rem; right: var(--margin); color: var(--ink); background: none; border: 0; font: inherit; font-size: var(--step-lead); cursor: pointer; min-height: 44px; }

/* ---------- textes légaux ---------- */
.prose { max-width: 70ch; padding: clamp(4rem, 9vw, 9rem) var(--margin) 0; }
.prose h1 { font-size: var(--step-head); letter-spacing: -0.03em; margin-bottom: 2.5rem; }
.prose h2 { font-size: var(--step-lead); font-weight: 500; margin: 2.5rem 0 0.75rem; }
.prose p + p { margin-top: 1rem; }

/* ---------- pied de page : le nom sur la terrasse ---------- */
.footer { position: relative; margin-top: var(--section); padding: 3rem var(--margin) 1.25rem; background: var(--surface); }
.footer-top { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: start; }
.footer-nav { grid-column: 1 / 6; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem; }
.footer-contact { grid-column: 6 / 10; }
.footer-book { grid-column: 10 / 13; justify-self: end; }
.footer-top a:not(.button) { text-decoration: none; transition: color 180ms var(--ease-out); }
.footer-top a:not(.button):hover { color: var(--accent); }
.footer-name { margin-top: clamp(2rem, 4vw, 3.5rem); font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap; }
.footer-legal { position: relative; margin-top: 1.5rem; font-size: var(--step-small); }

/* ---------- bouton d'appel ---------- */
.fab { position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 30; display: inline-flex; align-items: center; height: 60px; min-width: 60px; padding: 0 18px; border-radius: 30px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.fab svg { flex: none; }
.fab-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 320ms var(--ease-out), margin 320ms var(--ease-out); }
.fab:hover, .fab:focus-visible { background: var(--ink); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { max-width: 12em; margin-left: 0.6rem; }
.fab:active { transform: scale(0.95); }
.fab.away { opacity: 0; pointer-events: none; transform: scale(0.6); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .fab { animation: fab-in 520ms var(--ease-out) 1.2s both, fab-pop 700ms var(--ease-out) 2.4s 1; }
}
@keyframes fab-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes fab-pop { 40% { transform: scale(1.12); } 100% { transform: none; } }

/* ---------- apparitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .g { transform: none !important; }
}

/* ---------- tablette ---------- */
@media (max-width: 1100px) {
  .bar-nav { gap: 1rem; font-size: 1rem; }
}
@media (max-width: 1000px) {
  .hero { display: block; min-height: 0; }
  .doors { margin-top: 2.5rem; }
  .door-frame { max-height: none; min-height: 0; }
  .split { display: block; }
  .split-pic { max-width: 720px; }
  .split-text { margin-top: 2.5rem; }
  .split p { max-width: 46ch; }
}

/* ---------- téléphone ---------- */
@media (max-width: 860px) {
  :root { --bar: 60px; }
  .bar { gap: 1rem; }
  .wordmark { font-size: 1.25rem; }
  .bar-book { min-height: 38px; padding: 0 0.9rem; font-size: 1rem; }
  .bar-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; background: none; border: 0; color: var(--ink); font: 500 var(--step-body) var(--font); cursor: pointer; }
  .bar-nav { display: none; position: fixed; inset: var(--bar) 0 0; z-index: 25; flex-direction: column; gap: 0.25rem; padding: 2rem var(--margin); background: var(--bg); font-size: 2rem; letter-spacing: -0.02em; overflow-y: auto; }
  .bar-nav.open { display: flex; }
  .bar-nav-tel { display: block; margin-top: 1.5rem; color: var(--muted); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-top: 2rem; }
  .hero-title { font-size: 10vw; }
  .hero-lead { font-size: 1.1875rem; margin-top: 1.25rem; }
  .hero .actions { margin-top: 1.5rem; }
  .doors { gap: 14px; margin-top: 2.5rem; }
  .door-frame { max-height: none; min-height: 0; }
  .door-name { font-size: 1.0625rem; margin-top: 0.75rem; }
  .door-line { font-size: 0.9375rem; }
  .film-pic { height: 120px; }

  .intro { display: block; }
  .intro-text { position: static; }
  .statement { font-size: 1.5rem; }
  .intro-photos { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ip { width: 100% !important; margin: 0 !important; aspect-ratio: 4 / 5 !important; }
  .ip-2 { grid-column: 1 / 3; order: -1; aspect-ratio: 16 / 10 !important; }

  .carte-head { display: block; }
  .carte-head p { margin-top: 1.25rem; }
  .menu .row { grid-template-columns: 1fr auto; grid-template-areas: "n p" "d d"; gap: 0 1rem; margin-bottom: 1.1rem; }
  .menu dt { grid-area: n; font-size: 1.375rem; line-height: 1.25; }
  .menu .p { grid-area: p; font-size: 1.125rem; }
  .menu .d { grid-area: d; font-size: 1rem; }
  .menu-part { font-size: 1.375rem; margin-top: 3.5rem; }

  .club { display: flex; flex-direction: column; }
  .club-frame { order: 2; position: relative; top: 0; width: 100%; max-height: none; margin-top: 2rem; }
  .club-text { order: 1; }
  .club-text > h2 { font-size: 2.25rem; }
  .club-step, .club-step:last-child { min-height: 0; margin-top: 1.75rem; color: var(--ink); }
  .club-step h3 { font-size: 1.5rem; }
  .club-step p { font-size: 1.0625rem; margin-top: 0.5rem; }
  .find { display: flex; flex-direction: column; }
  .find-text { order: 1; padding-bottom: 0; margin-bottom: 2rem; }
  .find-map { order: 2; }
  .find-text h2 { font-size: 2.25rem; }
  .plan-map { aspect-ratio: 4 / 5; }

  .gallery { height: 860px; }
  .gallery-center h2 { font-size: 7.5vw; }
  .g { width: 30vw; }
  .g1 { left: 6vw; top: 3%; } .g2 { left: 52vw; top: 8%; width: 32vw; } .g3 { left: 20vw; top: 22%; }
  .g4 { left: 4vw; top: 66%; } .g5 { left: 38vw; top: 80%; } .g6 { left: 64vw; top: 64%; } .g7 { display: none; }

  .qa, .page-hero, .split, .band, .infos-grid, .offre, .carte-head { display: block; }
  .q { font-size: 1.5rem; }
  .a { margin-top: 0.75rem; font-size: var(--step-body); }

  .page-hero { min-height: 0; padding-top: 2.5rem; }
  .page-hero h1 { font-size: 13vw; }
  .page-hero .lead { font-size: 1.25rem; margin-top: 1.25rem; }
  .page-hero .actions { margin-top: 1.75rem; }
  .page-hero-pic { margin-top: 2.5rem; max-height: none; aspect-ratio: 4 / 5; }
  .split-text { margin-top: 2rem; }
  .split h2, .lineup h2, .band h2, .soirees-wrap > h2, .offres-wrap > h2, .form-section > h2, .infos-col h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
  .split p, .band p { font-size: 1.1875rem; }
  .band p, .band .actions { margin-top: 1.25rem; }
  .lineup-rows { font-size: 1.5rem; }
  .lineup-rows .row { display: block; margin-bottom: 1rem; }
  .lineup-rows dd { color: var(--muted); font-size: 1.0625rem; }
  .soiree { grid-template-columns: 1fr auto; font-size: 1.25rem; }
  .soiree-date { grid-column: 1 / 3; }
  .soiree-title { grid-column: 1; }
  .soiree-time { grid-column: 2; grid-row: 2; }
  .soiree-text { grid-column: 1 / 3; }
  .offre-meta { margin-top: 0.5rem; }
  .offre p:last-child { margin-top: 0.5rem; }
  .infos-col + .infos-col { margin-top: 4rem; }
  .form { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; gap: 14px; }
  .strip figure:nth-child(1) { grid-column: 1 / 3; }
  .strip figure:nth-child(2), .strip figure:nth-child(3) { margin-top: 0; aspect-ratio: 4 / 5; }
  .mosaic { columns: 2 140px; column-gap: 14px; padding-top: 2.5rem; }
  .mosaic figure { margin-bottom: 14px; }

  .footer { padding-top: 2.5rem; padding-bottom: 6rem; }
  .footer-top { display: block; }
  .footer-contact { margin-top: 1.75rem; }
  .footer-book { margin-top: 1.75rem; display: flex; justify-content: flex-start; }
  .footer-name { font-size: 9vw; margin-top: 2rem; }

}
