/* ==========================================================================
   BADPAD — refonte (prototype local)
   Tous les tokens viennent de DESIGN.md. Les pages n'utilisent que des noms.
   ========================================================================== */

@font-face { font-family: 'Josefin Sans'; src: url(../fonts/josefin-sans.woff2) format('woff2'); font-weight: 100 700; font-display: swap; }
@font-face { font-family: 'Cabin'; src: url(../fonts/cabin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* Couleur */
  --red: #8A2533;
  --red-deep: #5B1225;
  --red-on-dark: #E06A7A;
  --taupe: #8F8980;
  --taupe-ink: #6B655D;
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --paper: #FFFFFF;
  --paper-2: #F4F1EC;
  --line: #E4DFD8;
  --line-dark: #2A2A2A;
  --muted-dark: #B5B5B5;

  /* Typo */
  --font-display: 'Josefin Sans', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Cabin', 'Segoe UI', system-ui, sans-serif;
  --fs-display: clamp(2.75rem, 1.6rem + 5.4vw, 6rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.08rem + .2vw, 1.25rem);
  --fs-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;

  /* Espacement (base 8) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(64px, 10vw, 128px);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Forme */
  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 12px 32px rgba(14, 14, 14, .10);
  --rule: 4px;

  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; margin: 0; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1; }
h2 { font-size: var(--fs-h2); line-height: 1.05; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--red-on-dark); outline-offset: 2px; border-radius: 2px; }
.on-light :focus-visible, .section:not(.dark) :focus-visible { outline-color: var(--red); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--red); color: #fff; padding: 12px 16px; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; text-decoration: none; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 0 0 var(--s-4);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.dark .eyebrow { color: var(--red-on-dark); }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.muted { color: var(--taupe-ink); }
.dark .muted { color: var(--muted-dark); }
.small { font-size: var(--fs-small); }

/* Barre verticale rouge (signature du site actuel) */
.title-bar { position: relative; padding-left: 28px; }
.title-bar::before { content: ""; position: absolute; left: 0; top: .08em; bottom: .18em; width: 6px; background: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px 12px;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--red-deep); --btn-bd: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; margin-top: -2px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.dark .btn--ghost, .hero .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.7); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--sm { min-height: 40px; padding: 11px 16px 9px; font-size: .8125rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

.link {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; text-decoration-color: var(--red);
  display: inline-flex; align-items: center; gap: 8px;
}
.link:hover { color: var(--red); }
.dark .link { text-decoration-color: var(--red-on-dark); }
.dark .link:hover { color: var(--red-on-dark); }
.link svg { width: 16px; height: 16px; margin-top: -3px; transition: transform .18s; }
.link:hover svg { transform: translateX(3px); }

.btn svg, .link svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Barre utilitaire + en-tête ---------- */
.topbar { background: var(--ink); color: var(--muted-dark); font-size: var(--fs-small); }
.topbar .container { display: flex; gap: var(--s-5); align-items: center; justify-content: space-between; min-height: 38px; }
.topbar ul { list-style: none; display: flex; gap: var(--s-5); align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--red-on-dark); }
.topbar .open-now { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); }
.topbar .dot.is-open { background: #3DBE6B; box-shadow: 0 0 0 3px rgba(61,190,107,.25); }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 1.6vw, 28px); }
.nav a {
  position: relative; display: block; padding: 8px 0 6px;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: var(--ink);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); }
.header-cta { flex: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { order: 2; }
  .nav {
    position: fixed; inset: var(--nav-top, 110px) 0 0 0; background: var(--ink); color: #fff;
    padding: var(--s-6) var(--gutter); overflow-y: auto; display: none; margin: 0;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { color: #fff; font-size: 1.75rem; padding: 18px 0 14px; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red-on-dark); }
  .nav .nav-extra { display: block; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 480px) { .header-cta { display: none; } .brand img { width: 112px; } }
.nav-extra { display: none; margin-top: var(--s-6); color: var(--muted-dark); font-size: var(--fs-body); }
.nav-extra a { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; border-bottom: var(--rule) solid var(--red); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.86) 0%, rgba(14,14,14,.62) 48%, rgba(14,14,14,.28) 100%); }
@media (max-width: 760px) { .hero__media::after { background: linear-gradient(180deg, rgba(14,14,14,.78) 0%, rgba(14,14,14,.7) 60%, rgba(14,14,14,.88) 100%); } }
.hero__inner { min-height: min(86svh, 820px); display: grid; align-content: end; padding-block: clamp(96px, 14vh, 160px) var(--s-7); }
.hero h1 { font-size: var(--fs-display); line-height: .95; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--red-on-dark); }
.hero .lead { margin-top: var(--s-5); max-width: 52ch; color: #EDEDED; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__monogram { position: absolute; right: -4%; bottom: -10%; width: min(46vw, 560px); opacity: .07; z-index: -1; filter: grayscale(1) brightness(3); pointer-events: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s-8); border-top: 1px solid rgba(255,255,255,.22); }
.facts li { list-style: none; padding: var(--s-5) var(--s-4) 0 0; }
.facts li + li { padding-left: var(--s-5); border-left: 1px solid rgba(255,255,255,.22); }
.facts b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; font-weight: 700; }
.facts span { display: block; margin-top: 6px; color: var(--muted-dark); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: var(--s-4) var(--s-3) var(--s-4) 0; }
  .facts li + li { padding-left: 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid rgba(255,255,255,.22); }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}

/* Bandeau de page (pages internes) */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); border-bottom: var(--rule) solid var(--red); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(14,14,14,.62); }
.page-hero .container { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero .title-bar::before { background: var(--red-on-dark); }
.page-hero p { margin-top: var(--s-4); margin-bottom: 0; color: #E6E6E6; font-size: var(--fs-lead); max-width: 60ch; }
.breadcrumb { font-size: var(--fs-small); color: var(--muted-dark); margin-bottom: var(--s-5); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--red-on-dark); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--paper-2); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: var(--s-4) 0 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.prose h2 { margin-bottom: var(--s-5); }
.prose h3 { margin: var(--s-6) 0 var(--s-3); }
.prose ul { list-style: none; display: grid; gap: var(--s-3); margin: var(--s-5) 0; }

.checklist { list-style: none; display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; }
.checklist li .icon { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.dark .checklist li .icon { color: var(--red-on-dark); }
.checklist b { display: block; font-weight: 600; }

/* Photos */
.photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .6s; }
.photo--color img { filter: none; }
a:hover .photo img, .photo:hover img { filter: grayscale(0); }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(14,14,14,.78); color: #fff; padding: 6px 10px 4px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; border-radius: var(--r-sm); }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1 { aspect-ratio: 1; }
.ratio-16-10 { aspect-ratio: 16 / 10; }

.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-3); }
.mosaic > :first-child { grid-row: span 2; }
@media (max-width: 600px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .mosaic > :first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3/2; } }

/* ---------- Cartes sport (accueil) ---------- */
.sports { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 820px) { .sports { grid-template-columns: 1fr; } }
.sport {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: end;
  min-height: clamp(420px, 52vw, 600px); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-md); overflow: hidden;
  color: #fff; text-decoration: none; background: var(--ink);
}
.sport > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.06); transition: filter .5s, transform .8s; }
.sport::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,14,0) 25%, rgba(14,14,14,.9) 92%); }
.sport:hover > img { filter: grayscale(0); transform: scale(1.03); }
.sport h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1; }
.sport ul { list-style: none; margin: var(--s-4) 0 var(--s-5); display: grid; gap: 6px; color: #E9E9E9; }
.sport li::before { content: "—"; color: var(--red-on-dark); margin-right: 10px; }
.sport .price-tag { position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); background: var(--red); color: #fff; padding: 10px 14px 8px; border-radius: var(--r-sm); font-family: var(--font-display); text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; line-height: 1.2; text-align: right; }
.sport .price-tag b { display: block; font-size: 1.5rem; letter-spacing: 0; }
.sport .link { color: #fff; }

/* ---------- Agenda tournois ---------- */
.agenda { list-style: none; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.agenda li { display: grid; grid-template-columns: 92px 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-4) var(--s-5); background: var(--ink); }
.section:not(.dark) .agenda { background: var(--line); border-color: var(--line); }
.section:not(.dark) .agenda li { background: var(--paper); }
.agenda .date { font-family: var(--font-display); line-height: 1; text-transform: uppercase; }
.agenda .date b { display: block; font-size: 2.5rem; font-weight: 700; }
.agenda .date span { font-size: .75rem; letter-spacing: .12em; color: var(--muted-dark); }
.section:not(.dark) .agenda .date span { color: var(--taupe-ink); }
.agenda .what h3 { font-size: 1.25rem; letter-spacing: .03em; }
.agenda .what p { margin: 4px 0 0; color: var(--muted-dark); font-size: var(--fs-small); }
.section:not(.dark) .agenda .what p { color: var(--taupe-ink); }
.agenda .tag { display: inline-block; font-family: var(--font-display); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px 2px; border-radius: 3px; border: 1px solid currentColor; margin-left: 8px; vertical-align: 3px; color: var(--red-on-dark); }
.section:not(.dark) .agenda .tag { color: var(--red); }
.agenda .fee { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.agenda li.is-past { opacity: .45; }
.agenda li.is-past .fee::after { content: " · passé"; font-weight: 400; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) {
  .agenda li { grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-4); }
  .agenda .date b { font-size: 2rem; }
  .agenda .fee { grid-column: 2; font-size: 1rem; }
}
.month-title { font-size: 1.5rem; margin: var(--s-7) 0 var(--s-4); }
.month-title:first-child { margin-top: 0; }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); display: flex; flex-direction: column; }
.price-card--featured { border-top: var(--rule) solid var(--red); }
.price-card .kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-eyebrow); color: var(--taupe-ink); font-weight: 600; }
.price-card h3 { margin-top: 6px; }
.price-card .hours { margin: 6px 0 0; color: var(--taupe-ink); font-size: var(--fs-small); }
.price { display: flex; align-items: baseline; gap: 8px; margin: var(--s-5) 0 var(--s-2); }
.price b { font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2vw, 4rem); line-height: .9; font-weight: 700; letter-spacing: -.01em; }
.price span { color: var(--taupe-ink); }
.price-card .sub { margin: 0; color: var(--ink); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .spacer { flex: 1; min-height: var(--s-5); }

.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-table caption { text-align: left; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: var(--fs-h3); padding-bottom: var(--s-4); letter-spacing: .02em; }
.rate-table th, .rate-table td { text-align: left; padding: 14px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-eyebrow); letter-spacing: .12em; color: var(--taupe-ink); font-weight: 600; }
.rate-table td.num, .rate-table th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.rate-table td.num { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.rate-table td small { display: block; color: var(--taupe-ink); font-size: var(--fs-small); }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; } }
.offer { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); background: var(--paper); }
.offer h3 { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.offer h3 .icon { color: var(--red); }
.offer .rate-table td, .offer .rate-table th { padding-block: 10px 8px; }
.offer ul.facts-list { list-style: none; display: grid; gap: 6px; margin: var(--s-4) 0 0; color: var(--taupe-ink); font-size: var(--fs-small); }
.offer ul.facts-list li::before { content: "—"; color: var(--red); margin-right: 8px; }

.badge-todo { display: inline-block; background: #FFF3C4; color: #5A4500; border: 1px dashed #B58900; font-family: var(--font-body); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; letter-spacing: 0; text-transform: none; vertical-align: middle; }

.callout { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-left: var(--rule) solid var(--red); background: var(--paper-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout .icon { color: var(--red); margin-top: 2px; }
.callout p { margin: 0; }

/* ---------- Cours ---------- */
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 960px) { .course-list { grid-template-columns: 1fr; } }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.course .photo { border-radius: 0; }
.course__body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.course .age { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-eyebrow); color: var(--red); font-weight: 600; }
.course h3 { margin: 6px 0 var(--s-4); }
.course dl { margin: 0 0 var(--s-5); display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9375rem; }
.course dt { color: var(--taupe-ink); }
.course dd { margin: 0; font-weight: 500; }
.course .price { margin: auto 0 0; }
.course .price b { font-size: 2.5rem; }

/* ---------- Emplacement module externe ---------- */
.embed-slot {
  position: relative; width: 100%; min-height: var(--h, 600px); border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2) repeating-linear-gradient(135deg, transparent 0 14px, rgba(143,137,128,.08) 14px 15px);
  border: 1px solid var(--line);
}
.embed-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.embed-slot__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6); color: var(--taupe-ink); }
.embed-slot__placeholder .icon { width: 40px; height: 40px; color: var(--red); }
.embed-slot__placeholder strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-size: 1.125rem; }
.embed-slot__placeholder p { margin: 0; max-width: 42ch; font-size: var(--fs-small); }
.embed-slot__spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.embed-slot.is-loaded .embed-slot__placeholder { display: none; }
.embed-meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; align-items: center; margin-top: var(--s-3); font-size: var(--fs-small); color: var(--taupe-ink); }
.embed-meta code { font-size: .8125rem; background: var(--paper-2); padding: 2px 6px; border-radius: 3px; }
.dark .embed-slot { background-color: var(--ink-2); border-color: var(--line-dark); }
.dark .embed-meta { color: var(--muted-dark); }

/* ---------- Infos pratiques ---------- */
.info-list { list-style: none; display: grid; gap: var(--s-5); }
.info-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-4); }
.info-list .icon { color: var(--red); }
.dark .info-list .icon { color: var(--red-on-dark); }
.info-list h3 { font-size: 1rem; letter-spacing: .1em; margin-bottom: 4px; }
.info-list p { margin: 0; }
.info-list a { text-decoration-color: var(--red); text-underline-offset: 4px; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--red); font-weight: 600; }

/* ---------- Bandeau réservation ---------- */
.book-band { background: var(--red); color: #fff; }
.book-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-7); }
.book-band h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.book-band p { margin: 8px 0 0; color: #F6DCE0; }
.book-band .btn { --btn-bg: #fff; --btn-fg: var(--red); --btn-bd: #fff; }
.book-band .btn:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.book-band .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.75); }
.book-band :focus-visible { outline-color: #fff; }

/* ---------- Affiches ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-4); }
.poster { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); aspect-ratio: 4/5; box-shadow: var(--shadow); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.poster:hover img { transform: scale(1.02); }

/* Lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(14,14,14,.92); }
dialog.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: var(--r-md); }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: var(--s-4); }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-eyebrow); font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #CFC8BF; border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--taupe-ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(138,37,51,.18); }
.field .error { display: none; color: var(--red); font-size: var(--fs-small); margin-top: 6px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field.has-error .error { display: block; }
.form-status { display: none; padding: var(--s-4); border-radius: var(--r-sm); font-weight: 500; }
.form-status.is-success { display: block; background: #E7F5EC; color: #1C5A33; border: 1px solid #A7D8B8; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: var(--rule) solid var(--red); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s-7); padding-block: var(--s-8) var(--s-7); }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; gap: var(--s-6); } }
.site-footer h2 { font-size: .9375rem; letter-spacing: .14em; color: #fff; margin-bottom: var(--s-4); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-brand img { width: 150px; margin-bottom: var(--s-4); }
.social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: var(--r-sm); }
.social a:hover { border-color: var(--red-on-dark); }
.partners { border-top: 1px solid var(--line-dark); }
.partners .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-7); padding-block: var(--s-5); }
.partners p { margin: 0; font-size: var(--fs-small); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.partners img { height: 36px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .7; transition: opacity .2s; }
.partners a:hover img { opacity: 1; }
.legal { border-top: 1px solid var(--line-dark); }
.legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-4); font-size: var(--fs-small); }

/* ---------- Barre « Réserver » mobile ---------- */
.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book {
    display: flex; gap: var(--s-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(14,14,14,.96); border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-book.is-visible { transform: none; }
  .mobile-book .btn { flex: 1; }
  .mobile-book .btn--ghost { flex: 0 0 auto; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
  body { padding-bottom: 72px; }
}

/* ---------- Divers ---------- */
.stack-sm > * + * { margin-top: var(--s-3); }
.stack > * + * { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
/* Apparition douce : uniquement si JS a armé la page (html.js-reveal), jamais de contenu caché sinon */
.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s, transform .6s; }
.legal-text h2 { font-size: 1.5rem; margin: var(--s-7) 0 var(--s-4); }
.legal-text h2:first-child { margin-top: 0; }
.proto-banner { background: #FFF3C4; color: #5A4500; font-size: .8125rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #E8D37A; }
.proto-banner a { color: inherit; font-weight: 600; }
.nav .nav-extra a { display: inline; font-family: var(--font-body); font-size: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 0; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
