/* Bodyactive Fitness – site public (direction « Club de quartier ») */

@font-face { font-family: 'Gabarito'; src: url('../fonts/gabarito-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gabarito'; src: url('../fonts/gabarito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gabarito'; src: url('../fonts/gabarito-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F7F4EE;
  --ink: #23211F;
  --muted: #4A4642;
  --quiet: #5C5752;
  --sand: #EDE6DA;
  --sand-2: #F2EEE6;
  --peach: #F6D7C3;
  --brand: #2F5D50;
  --brand-dark: #244A40;
  --line: #DDD5C8;
  --photo: #CFC6B8;
  --white: #FFFFFF;
  --open: #3FA34D;
  --later: #D99A2B;
  --closed: #B5483A;
  --now: #C2452D;
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 32px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: 'Gabarito', 'Trebuchet MS', sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.test-banner { background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 4px; letter-spacing: 0.04em; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, transform .15s; cursor: pointer; font-family: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3A3632; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); background: #FBF9F5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.link-arrow { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; margin: -10px 0; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-back { font-weight: 600; display: inline-block; margin-bottom: 20px; }
.link-back::before { content: '← '; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 56px; height: 56px; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 999px; }
.nav-links a:hover { background: var(--sand-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--sand); }
.lang-switch { display: inline-flex; border: 1.5px solid #D8D1C4; border-radius: 999px; padding: 3px; margin: 0 8px; }
.lang-switch a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--quiet); }
.lang-switch a.is-current { background: var(--ink); color: #fff; font-weight: 700; }
.nav-cta { min-height: 44px; padding: 10px 22px; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #D8D1C4; background: #fff; font: 600 16px var(--text); color: var(--ink); cursor: pointer; }
  .nav-toggle-close { display: none; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .site-nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; background: #fff; border-radius: var(--r-md); padding: 16px; box-shadow: 0 16px 40px rgba(35, 33, 31, .14); flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px 14px; font-size: 18px; }
  .lang-switch { align-self: flex-start; margin: 0; }
}

/* ---------- Annonce épinglée ---------- */
.announce { background: var(--peach); border-radius: 16px; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.announce-tag { font-family: var(--display); font-weight: 700; font-size: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 12px; }
.announce-text { font-weight: 600; }
.announce a { font-weight: 700; }

/* ---------- Accueil : haut de page ---------- */
.hero { padding-top: 28px; }
.hero-intro { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--muted); max-width: 46em; margin-bottom: 24px; }
.hero-intro strong { font-family: var(--display); font-weight: 700; color: var(--ink); }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--photo); min-height: 620px; display: flex; align-items: flex-end; padding: clamp(16px, 2.5vw, 32px); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.today-card { position: relative; background: #fff; border-radius: var(--r-md); padding: clamp(20px, 2.4vw, 28px); width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(35, 33, 31, .12); }
.today-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.today-title { font-weight: 800; font-size: 30px; letter-spacing: -0.015em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--closed); }
.status.is-open .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); }
.status.is-later .status-dot { background: var(--later); }
.today-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--muted); border-bottom: 1.5px solid #EEE8DE; padding-bottom: 16px; }
.today-reason { font-weight: 600; color: var(--ink); flex-basis: 100%; }
.today-courses { display: flex; flex-direction: column; gap: 10px; }
.today-courses h2 { font-size: 17px; font-weight: 700; }
.today-empty { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: baseline; background: var(--chip, var(--sand)); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.chip-time { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-name { font-weight: 700; }
.chip.is-cancelled { background: var(--sand-2); color: var(--quiet); }
.chip.is-cancelled .chip-name { text-decoration: line-through; }
.chip-flag { font-size: 13px; font-weight: 600; color: var(--closed); }

@media (max-width: 640px) {
  .hero-media { min-height: 0; padding: 0; flex-direction: column; background: transparent; border-radius: 0; overflow: visible; }
  .hero-media > img { position: static; height: 300px; border-radius: var(--r-md); margin-bottom: -40px; }
  .hero-media.is-empty::before { content: ''; display: block; height: 220px; width: 100%; background: var(--photo); border-radius: var(--r-md); margin-bottom: -40px; }
  .today-card { margin: 0 8px; width: auto; }
  .today-title { font-size: 26px; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); }
.section-tight { padding-top: clamp(24px, 3vw, 32px); }
.section-first { padding-top: clamp(32px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.h-section { font-weight: 800; font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.02em; line-height: 1.05; }
.section > .h-section { margin-bottom: 28px; }
.h-page { font-weight: 800; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.025em; line-height: 1.02; }
.h-card { font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.lead { font-size: 18px; color: var(--muted); max-width: 40em; }
.lead p + p { margin-top: 10px; }
.page-head { padding-top: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }

/* ---------- Planning de la semaine (tableau : une ligne par horaire) ---------- */
.week-panel { background: #fff; border-radius: var(--r-lg); padding: clamp(10px, 2vw, 24px); }
.week-scroll { overflow-x: auto; scrollbar-width: thin; position: relative; }
.now-line { position: absolute; left: 0; height: 0; border-top: 2px solid var(--now); z-index: 2; pointer-events: none; }
.now-line[hidden] { display: none; }
.now-line.is-end .now-label { top: -26px; }
.now-label { position: absolute; left: var(--label-x, 0); top: -12px; background: var(--now); color: #fff; font: 700 12px/1 var(--text); font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 999px; }
.session { text-decoration: none; color: var(--ink); transition: opacity .2s; position: relative; z-index: 3; }
.session:hover { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(35, 33, 31, .18); }
.session.is-past { opacity: .5; }
.session.is-live { box-shadow: inset 0 0 0 2px var(--now); }
.session-live { display: none; align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; color: #fff; background: var(--now); border-radius: 999px; padding: 2px 8px; }
.session.is-live .session-live { display: inline-block; }
.timetable { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.timetable th, .timetable td { padding: 5px; vertical-align: top; text-align: left; }
.tt-corner, .tt-time { width: 64px; }
.tt-day { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 10px 12px 12px; white-space: nowrap; border-bottom: 1.5px solid #EEE8DE; }
.tt-day .tt-day-short { display: none; }
.tt-day.is-today { color: var(--brand); }
.tt-day.is-today .tt-day-long, .tt-day.is-today .tt-day-short { background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 12px; margin-left: -12px; }
.tt-closed { display: block; font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--closed); margin-top: 4px; }
.tt-time { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 14px; position: sticky; left: 0; background: #fff; z-index: 1; }
.timetable tbody tr + tr > * { border-top: 1px solid #F2EEE6; }
.timetable td.is-today { background: #F8FBF9; }
.timetable td > .session + .session { margin-top: 8px; }
.tt-empty-all { color: var(--quiet); text-align: center; padding: 24px; }
.session { border-radius: 12px; padding: 9px 11px; background: var(--chip, var(--sand)); display: flex; flex-direction: column; gap: 1px; }
.session-name { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.session-meta { font-size: 13px; color: var(--muted); }
.session-flag { font-size: 13px; font-weight: 700; color: var(--closed); }
.session-flag.is-info { color: var(--brand); }
.session.is-cancelled { background: var(--sand-2); }
.session.is-cancelled .session-name { text-decoration: line-through; color: var(--quiet); }
.session.is-hidden, .timetable tr.is-hidden { display: none; }
.week-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid #D8D1C4; background: #fff; font: 600 15px var(--text); color: var(--ink); cursor: pointer; }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Téléphone : vue par jour à la place du tableau */
.week-days { display: none; }
@media (max-width: 700px) {
  .week-scroll, .week-filter { display: none; }
  .week-days { display: block; }
  .week-panel { padding: 14px; }
}
.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
.day-tab { min-height: 56px; border: 0; border-radius: 14px; background: var(--sand-2); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 0; }
.day-tab-name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.day-tab-date { font-size: 12.5px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.day-tab.is-today .day-tab-name { color: var(--brand); }
.day-tab[aria-selected="true"] { background: var(--ink); }
.day-tab[aria-selected="true"] .day-tab-name, .day-tab[aria-selected="true"] .day-tab-date { color: #fff; }
.day-tab.is-today[aria-selected="true"] { background: var(--brand); }
.day-panel + .day-panel { margin-top: 24px; }
.js-tabs .day-panel { display: none; margin-top: 0; }
.js-tabs .day-panel.is-active { display: block; }
.day-panel-title { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 2px 12px; }
.day-panel-today { color: var(--brand); }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: grid; grid-template-columns: 54px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; }
.day-item .session-live { margin-top: 0; }
.di-time { font-family: var(--display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.15; }
.di-end { font-family: var(--text); font-weight: 500; font-size: 13px; color: var(--muted); }
.di-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.day-item .session-name { font-size: 17px; }
.day-empty { color: var(--muted); padding: 14px; background: var(--sand-2); border-radius: 14px; }
.day-empty.is-closed { color: var(--closed); font-weight: 600; }
.day-now { display: flex; align-items: center; gap: 10px; color: var(--now); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.day-now::after { content: ''; flex: 1; border-top: 2px solid var(--now); }

/* ---------- Salles ---------- */
.rooms { display: grid; gap: 24px; }
.room { display: flex; flex-direction: column; gap: 14px; }
.room-text { padding: 0 6px; display: flex; flex-direction: column; gap: 4px; }
.room-text h3 { font-weight: 700; font-size: 24px; }
.room-text p { color: var(--muted); }
.room-photo { border-radius: 28px; overflow: hidden; background: var(--photo); aspect-ratio: 16 / 10; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
a.room-photo { display: block; position: relative; }
.room-count { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.rooms-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Trois salles sur l'accueil : la grande photo s'arrête au même niveau que la dernière,
   et les textes du bas commencent sur la même ligne */
.rooms-3 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "p1 p2" "p1 t2" "p1 p3" "t1 t3";
  column-gap: 24px; row-gap: 14px;
}
.rooms-3 .room { display: contents; }
.rooms-3 .room:nth-child(1) .room-photo { grid-area: p1; aspect-ratio: auto; min-height: 320px; }
.rooms-3 .room:nth-child(1) .room-text { grid-area: t1; }
.rooms-3 .room:nth-child(2) .room-photo { grid-area: p2; background: #D8CFC2; }
.rooms-3 .room:nth-child(2) .room-text { grid-area: t2; padding-bottom: 10px; }
.rooms-3 .room:nth-child(3) .room-photo { grid-area: p3; background: #C4BBAD; }
.rooms-3 .room:nth-child(3) .room-text { grid-area: t3; }
@media (max-width: 860px) {
  .rooms-3 { grid-template-columns: 1fr; grid-template-areas: "p1" "t1" "p2" "t2" "p3" "t3"; }
  .rooms-3 .room:nth-child(1) .room-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .rooms-3 .room-text { padding-bottom: 10px; }
}

/* ---------- Bon à savoir ---------- */
.info-panel { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.info-panel .h-section { font-size: clamp(30px, 3.6vw, 48px); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.info-grid h3 { font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.info-grid p { color: rgba(255, 255, 255, .9); }
@media (max-width: 860px) {
  .info-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .info-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Abonnements + essai ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.duo-card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.duo-card p { color: var(--muted); font-size: 18px; }
.duo-card p strong { color: var(--ink); }
.duo-sand { background: var(--sand); }
.duo-peach { background: var(--peach); }

/* ---------- Cours : index par catégorie ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #E3DCCF; }
.cat-nav a span { color: var(--quiet); font-weight: 500; margin-left: 2px; }
.cat-nav a:hover { border-color: #CFC6B8; color: var(--ink); }
.course-group { margin-top: 40px; scroll-margin-top: 24px; }
.course-group:first-of-type { margin-top: 8px; }
.course-group-title { font-family: var(--text); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); padding: 0 4px 12px; border-bottom: 1.5px solid var(--line); }
.course-index { display: flex; flex-direction: column; }
.course-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(180px, .9fr); gap: 20px 40px; padding: 26px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; align-items: start; }
.course-row:target { background: #fff; border-radius: var(--r-md); border-bottom-color: transparent; padding-left: 20px; padding-right: 20px; }
.course-id { display: flex; gap: 16px; align-items: center; }
.course-mark { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--chip); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: rgba(35, 33, 31, .72); }
.course-thumb { flex: none; width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 3px var(--chip); }
.course-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.015em; line-height: 1.1; }
.course-facts { font-size: 14px; color: var(--quiet); margin-top: 4px; }
.course-desc { color: var(--muted); padding-top: 4px; }
.course-desc p + p { margin-top: 8px; }
.course-when ul { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.course-when li { display: grid; grid-template-columns: 30px 50px 1fr; align-items: baseline; font-size: 15px; }
.cw-day { font-weight: 700; }
.cw-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.cw-coach { color: var(--quiet); }
.course-when li.is-today .cw-day, .course-when li.is-today .cw-time { color: var(--brand); }
.cw-none { font-size: 14px; color: var(--quiet); padding-top: 4px; }
@media (max-width: 900px) {
  .course-row { grid-template-columns: 1fr 1fr; }
  .course-id { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .course-row { grid-template-columns: 1fr; gap: 14px; }
  .course-when ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .course-when li { display: inline-flex; gap: 6px; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 14px; }
}

/* ---------- Le fitness ---------- */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split-main { display: flex; flex-direction: column; gap: 24px; }
.split-main .h-section { margin-bottom: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.hours-card { background: #fff; border-radius: var(--r-md); padding: 12px 24px 16px; max-width: 640px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours-table thead th { font-family: var(--display); font-weight: 700; font-size: 16px; text-align: right; padding: 10px 0 10px 12px; }
.hours-table tbody th { text-align: left; font-weight: 500; padding: 9px 0; color: var(--muted); }
.hours-table td { text-align: right; padding: 9px 0 9px 12px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.hours-table tbody tr > * { border-top: 1px solid #EEE8DE; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--brand); font-weight: 700; }
.hd-short { display: none; }
@media (max-width: 420px) {
  .hours-card { padding: 8px 16px 12px; }
  .hd-long { display: none; }
  .hd-short { display: inline; }
  .hours-table { font-size: 15px; }
}
.closures-box { background: var(--peach); border-radius: var(--r-md); padding: 24px; }
.closures-box h3 { font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.closures-box ul { display: flex; flex-direction: column; gap: 12px; }
.closures-box li { display: flex; flex-direction: column; }
.closures-box span { color: var(--muted); font-size: 15px; }
.prose { color: var(--muted); max-width: 44em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--brand); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure, .gallery-item { display: block; margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--photo); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.info-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.info-block { background: #fff; border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.info-block .h-card { font-size: 26px; }
.address-line { font-weight: 700; }
.map-img { border-radius: var(--r-sm); }

/* ---------- Tarifs : une grille durée × tarif ---------- */
.price-board { background: #fff; border-radius: var(--r-lg); padding: clamp(8px, 2vw, 20px) clamp(16px, 3vw, 36px); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th { text-align: left; font-family: var(--display); font-weight: 700; font-size: 17px; padding: 18px 16px 14px; border-bottom: 1.5px solid #EEE8DE; }
.price-table thead th:nth-child(3) { color: var(--brand); }
.price-table tbody tr + tr > * { border-top: 1px solid #EEE8DE; }
.price-table td, .price-table tbody th { padding: 22px 16px; vertical-align: top; text-align: left; }
.pt-dur { width: 22%; }
.pt-dur-label { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1; }
.price-main { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-cur { font-weight: 600; color: var(--quiet); font-size: 15px; }
.price-num { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-sub { font-size: 14px; color: var(--quiet); margin-top: 4px; }
.price-alt { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E3DCCF; }
.price-alt .price-num { font-size: 22px; }
.price-or { font-size: 14px; color: var(--quiet); }
.price-per { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.price-none { color: var(--quiet); }
.price-table td:nth-child(3) { background: #F6FAF8; }
.price-table thead th:nth-child(3) { background: #F6FAF8; border-radius: 14px 14px 0 0; }
@media (max-width: 720px) {
  .price-board { padding: 8px 16px; }
  .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table tbody th { display: block; width: auto; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 18px 0; }
  .price-table tbody tr + tr { border-top: 1px solid #EEE8DE; }
  .price-table tbody tr + tr > * { border-top: 0; }
  .price-table tbody th { grid-column: 1 / -1; padding: 0 0 12px; }
  .price-table td { padding: 12px; border-radius: 14px; background: var(--sand-2); }
  .price-table td:nth-child(3) { background: #EAF2EE; }
  .price-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
  .price-num { font-size: 26px; }
  .price-alt .price-num { font-size: 19px; }
}
.specials-title { margin: 40px 0 16px; font-size: 26px; }
.specials { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); padding: 8px 24px; max-width: 760px; }
.specials li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; }
.specials li + li { border-top: 1px solid #EEE8DE; }
.specials-name { font-weight: 700; }
.specials-tag { font-size: 13px; font-weight: 600; color: var(--brand); margin-left: 6px; }
.specials-price { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.specials-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.prices-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.prices-foot p { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.empty-note { background: #fff; border-radius: var(--r-md); padding: 28px; color: var(--muted); max-width: 44em; }

/* ---------- Actualités ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.news-item { background: #fff; border-radius: var(--r-md); padding: 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.news-item:not(:has(img)) { grid-template-columns: 1fr; }
.news-item img { border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-item h2 { font-size: 24px; font-weight: 700; margin: 4px 0 8px; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }
.news-item p { color: var(--muted); }
.news-date { font-size: 14px; font-weight: 600; color: var(--quiet); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } }
.article { max-width: 860px; padding-top: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.article .link-back { margin-bottom: 4px; align-self: flex-start; }
.article-img { border-radius: var(--r-md); margin: 8px 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-form-wrap { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .subject-choice legend { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--quiet); }
.form-field input, .form-field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid #DCD4C7; border-radius: var(--r-sm); padding: 12px 14px; min-height: 50px; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); background: #fff; }
.has-error input, .has-error textarea { border-color: var(--closed); }
.field-error { color: #9B3427; font-size: 14px; font-weight: 600; }
.subject-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subject-choice legend { margin-bottom: 8px; padding: 0; }
.pill-radio { position: relative; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid #D8D1C4; font-weight: 600; font-size: 15px; background: #fff; }
.pill-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-radio input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.form-privacy { font-size: 14px; color: var(--quiet); }
.form-privacy a { color: var(--brand); }
.contact-form .btn { align-self: flex-start; }
.form-notice { border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600; }
.form-notice.is-success { background: #DCEBE3; color: #1E4A3D; }
.form-notice.is-error { background: #F7DDD6; color: #7C2416; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { background: var(--sand); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-info p { color: var(--muted); }
.contact-info .link-arrow { margin-top: 8px; font-size: 15px; }

/* ---------- Horaires résumés (pied de page, contact) ---------- */
.hours-summary { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hours-block { display: flex; flex-direction: column; gap: 2px; }
.hours-summary dt { font-weight: 700; color: var(--ink); }
.hours-summary dd { margin: 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 120px); }
.footer-grid { border-top: 1.5px solid var(--line); padding-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 48px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer-brand p { font-size: 15px; color: var(--muted); }
.footer-brand strong { color: var(--ink); }
.site-footer h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-lines { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-lines a { text-decoration: none; }
.footer-social { display: flex; gap: 16px; margin-top: 10px; font-weight: 600; font-size: 15px; }
.footer-bottom { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--quiet); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--quiet); }

/* ---------- Erreur ---------- */
.error-page { align-items: flex-start; padding-top: 64px; }
.error-code { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--quiet); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-arrow::after { transition: none; }
}

/* Tarifs : frais d'inscription et cartes */
.fee-notes { margin-top: 16px; max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.fee-notes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; background: var(--peach); border-radius: var(--r-sm); padding: 14px 20px; }
.fee-name { font-weight: 700; }
.fee-price { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.fee-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.passes-intro { color: var(--muted); margin: -6px 0 16px; }
.pass-label { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.01em; line-height: 1.1; }
.passes-board.is-single { max-width: 760px; }
.pass-table .pt-dur { width: 42%; }
@media (max-width: 720px) {
  .pass-table.is-single tbody tr { grid-template-columns: 1fr auto; align-items: start; }
  .pass-table.is-single tbody th { grid-column: auto; padding: 4px 0 0; }
  .pass-table.is-single td { background: transparent; padding: 0; text-align: right; }
  .pass-table.is-single td::before { display: none; }
  .pass-table.is-single .price-main { justify-content: flex-end; }
  .pass-table .pt-dur { width: auto; }
}

/* ---------- Pictogrammes des cours ----------
   Style B : trait marqué et aplats blancs. Pour le style A (trait fin) :
   stroke-width: 1.7 et .f { fill: none; } */
.course-icon, .chip-icon { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.course-icon .f, .chip-icon .f { fill: #fff; }
.course-mark.has-icon svg { width: 48px; height: 48px; }
.di-icon { display: flex; align-items: center; justify-content: center; }
.di-icon svg { width: 34px; height: 34px; }
.chip-icon { width: 24px; height: 24px; align-self: center; stroke-width: 2.5; flex: none; margin: -4px -2px -4px -4px; }
.chip.is-cancelled .chip-icon { opacity: .5; }

/* ---------- Visite des salles ---------- */
.tour { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.tour-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(20px, 3vw, 44px); align-items: start; scroll-margin-top: 96px; }
.tour-text { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.tour-text h3 { font-weight: 700; font-size: 26px; line-height: 1.15; }
.tour-text p { color: var(--muted); }
.tour-text .tour-count { font-size: 14px; font-weight: 700; color: var(--brand); margin-top: 6px; }
.tour-mosaic { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 12vw, 170px); }
.tm-item { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--photo); }
.tm-item[hidden] { display: none; }
.tm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tm-item:hover img { transform: scale(1.03); }
.tm-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.tm-item:first-child { grid-column: span 2; grid-row: span 2; }
.tm-n1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
.tm-n1 .tm-item, .tm-n1 .room-photo { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; max-height: 420px; width: 100%; }
.tm-n1 .room-photo.is-empty { aspect-ratio: 16 / 6; border-radius: 18px; }
.tm-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 320px); }
.tm-n2 .tm-item:first-child { grid-column: auto; grid-row: auto; }
.tm-n3 { grid-template-columns: 2fr 1fr; }
.tm-n3 .tm-item:first-child { grid-column: 1; grid-row: span 2; }
.tm-n4 { grid-template-columns: 2fr 1fr 1fr; }
.tm-n4 .tm-item:first-child { grid-column: 1; grid-row: span 2; }
.tm-n4 .tm-item:nth-child(4) { grid-column: span 2; }
.tm-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(35, 33, 31, .45); color: #fff; font-family: var(--display); font-weight: 800; font-size: 28px; }
.equipment { margin-top: clamp(36px, 5vw, 56px); background: #fff; border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .tour-room { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tour-mosaic, .tm-n2, .tm-n3, .tm-n4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .tour-mosaic::-webkit-scrollbar { display: none; }
  .tm-item { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .tm-n1 .tm-item, .tm-n1 .room-photo { flex-basis: 100%; width: 100%; }
}

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--r-sm); padding: 0 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--brand); }
.faq-item[open] summary::after { content: '–'; }
.faq-item .prose { padding: 0 0 20px; color: var(--muted); }

/* ---------- Photo agrandie ---------- */
.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 19, 18, .95); color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(20, 19, 18, .95); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(90vw, 1600px); touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.lb-cap { font-size: 15px; color: rgba(255, 255, 255, .85); text-align: center; min-height: 1.4em; }
.lb-count { position: absolute; top: 26px; left: 24px; margin: 0; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 700px) {
  .lb-fig { max-width: 100vw; }
  .lb-img { border-radius: 0; max-height: calc(100dvh - 200px); }
  .lb-cap { padding: 0 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
html.lb-open { overflow: hidden; }
