/* =========================================================
   ATLAS GYM — Template de site pour salle de sport
   ---------------------------------------------------------
   Sommaire
   1. Variables (couleurs, rayons…)  <- c'est ici qu'on personnalise
   2. Base
   3. Mise en page & utilitaires
   4. Boutons
   5. En-tête & navigation
   6. Hero (accueil)
   7. Sections génériques
   8. Cours, planning, coachs, témoignages, FAQ
   9. Tarifs
   10. Réservation
   11. Formulaires
   12. Cookies
   13. Pied de page
   14. Pages légales
   15. Responsive & accessibilité
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --brand: #d6ff3d;          /* couleur principale (boutons, accents) */
  --brand-600: #c4ee1c;      /* survol */
  --brand-tint: #f4ffc9;     /* fond léger de la couleur principale */
  --brand-ink: #0b0f14;      /* texte posé SUR la couleur principale */

  --ink: #0b0f14;
  --ink-2: #2a323d;
  --muted: #5b6676;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --dark: #0b0f14;
  --dark-2: #141a22;
  --dark-line: rgba(255, 255, 255, .14);

  --danger: #d92d20;
  --ok: #12805c;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 15, 20, .05), 0 12px 32px rgba(11, 15, 20, .08);
  --container: 1180px;
  --header-h: 72px;

  /* Polices système : rapides et sans appel à un serveur tiers (RGPD).
     Pour une police perso, voir le README. */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #4c8dff; outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 3. Mise en page & utilitaires ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Apparition au scroll (désactivée sans JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 10px 24px rgba(196, 238, 28, .35); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: rgba(127, 127, 127, .14); }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.link-btn {
  background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px;
  font-size: inherit; color: inherit;
}
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---------- 5. En-tête & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(11, 15, 20, .05); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 900; letter-spacing: .06em; font-size: 1.05rem; }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.logo__mark .icon { width: 22px; height: 22px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { border-color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -25%;
  width: min(70vw, 900px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(214, 255, 61, .26), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 25%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 25%, #000 5%, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 span { color: var(--brand); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 34rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.75rem; }
.hero__checks { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.hero__checks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__checks .icon { color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--ink); }
.hero .eyebrow, .section--dark .eyebrow, .page-hero .eyebrow { color: rgba(255, 255, 255, .72); }
.hero .eyebrow::before, .section--dark .eyebrow::before, .page-hero .eyebrow::before { background: var(--brand); }

/* Visuel décoratif du hero (aucune image nécessaire) */
.hero__visual { position: relative; min-height: 460px; }
.glass {
  position: absolute; padding: 1.25rem 1.4rem; border-radius: 22px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.glass--main { left: 8%; right: 4%; top: 14%; padding: 1.6rem; }
.glass__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .4rem; }
.glass__title { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .3rem; }
.glass__meta { font-size: .92rem; color: rgba(255, 255, 255, .72); margin-bottom: 1rem; }
.progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-bottom: .6rem; }
.progress span { display: block; height: 100%; border-radius: 8px; background: var(--brand); }
.glass--a { left: -2%; bottom: 8%; display: flex; align-items: center; gap: .8rem; animation: float 6s ease-in-out infinite; }
.glass--b { right: 0; bottom: 20%; display: flex; align-items: center; gap: .8rem; animation: float 7s ease-in-out -2s infinite; }
.glass__ico { width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.glass strong { display: block; line-height: 1.2; }
.glass small { color: rgba(255, 255, 255, .7); }
@keyframes float { 50% { transform: translateY(-12px); } }

.stats { border-top: 1px solid var(--dark-line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.75rem 1rem 1.75rem 0; }
.stat + .stat { padding-left: 1.75rem; border-left: 1px solid var(--dark-line); }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--brand); }
.stat span { font-size: .92rem; color: rgba(255, 255, 255, .72); }

/* Bandeau défilant */
.marquee { overflow: hidden; background: var(--brand); color: var(--brand-ink); padding: 1.05rem 0; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; gap: 2rem; padding-right: 2rem; white-space: nowrap; }
.marquee__group span::after { content: "✦"; margin-left: 2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sous-pages : bandeau de titre */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%;
  width: 700px; aspect-ratio: 1; background: radial-gradient(circle, rgba(214, 255, 61, .22), transparent 62%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .4em; }
.page-hero p { max-width: 40rem; color: rgba(255, 255, 255, .78); font-size: 1.1rem; margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: rgba(255, 255, 255, .6); margin-bottom: 1.25rem; }
.breadcrumb a { color: inherit; }

/* ---------- 7. Sections génériques ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: rgba(255, 255, 255, .72); }
.hl { background: linear-gradient(transparent 62%, var(--brand) 62%); padding: 0 .1em; }
.section--dark .hl, .page-hero .hl, .hero .hl { background: none; color: var(--brand); }

.card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card--hover { transition: transform .25s, box-shadow .25s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.icon-wrap { width: 52px; height: 52px; border-radius: 15px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 1.25rem; }
.icon-wrap .icon { width: 26px; height: 26px; }

.tag { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: var(--bg-soft); font-size: .8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tag--hot { background: #ffe3dc; color: #a4210b; }
.tag--chill { background: #dcf5ef; color: #0b6b5c; }
.tag--all { background: #e6ecff; color: #2b4bb0; }

.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f14' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Photos : remplacez le fond par une <img> (voir README) */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  background: linear-gradient(145deg, #1c2430, #0b0f14);
  display: flex; align-items: flex-end; color: #fff;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__label { position: relative; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(214, 255, 61, .3), transparent 55%); }
.photo > .icon { position: absolute; right: 1.5rem; top: 1.5rem; width: 64px; height: 64px; opacity: .5; color: var(--brand); stroke-width: 1.5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.cta-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: var(--brand); color: var(--brand-ink);
  padding: clamp(2rem, 6vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.cta-band h2 { margin-bottom: .25em; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* ---------- 8. Cours, planning, coachs, avis, FAQ ---------- */
.class-card {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 250px; padding: 1.5rem; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  transition: transform .25s;
}
.class-card:hover { transform: translateY(-4px); }
.class-card::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.class-card > .icon { position: absolute; top: 1.4rem; left: 1.5rem; width: 34px; height: 34px; }
.class-card h3 { font-size: 1.55rem; margin-bottom: .3em; }
.class-card p { color: rgba(255, 255, 255, .88); margin-bottom: .9rem; font-size: .96rem; }
.class-card .tag { background: rgba(255, 255, 255, .2); color: #fff; margin-right: .3rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tabs [role="tab"] {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; transition: background .2s, color .2s;
}
.tabs [role="tab"]:hover { background: var(--bg-soft); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.js .tab-panel__title { display: none; }
.tab-panel__title { margin: 1.5rem 0 .6rem; }
.sessions { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.session { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 1rem; align-items: center; padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
.session__time { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.session__name { font-weight: 700; display: block; }
.session__coach { font-size: .9rem; color: var(--muted); }
.session__spots { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.sessions__empty { padding: 2rem 1.4rem; color: var(--muted); }

.coach { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: grid; place-items: center; color: #fff; font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--brand);
}
.coach .role { display: block; font-weight: 700; color: var(--ink); margin-bottom: .75rem; }
.coach .btn { margin-top: 1rem; }

.quote { display: flex; flex-direction: column; gap: 1.1rem; }
.stars { display: flex; gap: .15rem; color: #f5b301; }
.stars .icon { fill: currentColor; stroke: none; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--muted); }
.quote footer .avatar { width: 44px; height: 44px; font-size: .95rem; margin: 0; box-shadow: none; }
.quote footer strong { display: block; color: var(--ink); }

.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--brand); }
.faq details > div { padding: 0 3rem 1.4rem 0; color: var(--muted); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .7rem 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-list .icon-wrap { width: 44px; height: 44px; margin: 0; border-radius: 13px; flex: none; }
.contact-list .icon-wrap .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; line-height: 1.3; }
.contact-list a { color: var(--muted); }

/* ---------- 9. Tarifs ---------- */
.billing { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.billing button { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.35rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; transition: background .2s, color .2s; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.badge { display: inline-block; padding: .12rem .6rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }

[data-billing="monthly"] [data-show="annual"],
[data-billing="annual"] [data-show="monthly"] { display: none !important; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.6rem; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { background: var(--dark); color: #fff; border-color: var(--dark); transform: translateY(-10px); box-shadow: var(--shadow); }
.plan--featured:hover { transform: translateY(-14px); }
.plan__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan__freq { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .2rem; }
.plan__freq strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; font-weight: 900; }
.plan__name { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.plan--featured .plan__name { color: rgba(255, 255, 255, .6); }
.price { margin-bottom: 1.4rem; min-height: 5.8rem; }
.price__main { display: flex; align-items: baseline; gap: .35rem; margin: 0 0 .25rem; }
.price__main strong { font-size: 3rem; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.price__main span { color: var(--muted); font-weight: 600; }
.plan--featured .price__main span { color: rgba(255, 255, 255, .65); }
.price__note { margin: 0; font-size: .9rem; color: var(--muted); }
.plan--featured .price__note { color: rgba(255, 255, 255, .7); }
.plan .check-list { margin-bottom: 1.75rem; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan--featured .btn--dark { background: var(--brand); color: var(--brand-ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--ink); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 0; }
.price-table tbody th { font-weight: 700; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table td strong { font-size: 1.1rem; }
.price-table .save { color: var(--ok); font-weight: 700; }

.ticket { display: flex; flex-direction: column; }
.ticket__price { font-size: 2.6rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; margin: .4rem 0 .2rem; color: var(--ink); }
.ticket__sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }
.ticket .btn { margin-top: auto; }
.ticket--free { background: var(--brand-tint); border-color: var(--brand); }
.ticket--free p { color: var(--ink-2); }

.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps-list li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps-list li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem;
}
.steps-list h3 { margin-bottom: .3em; }
.steps-list p { color: var(--muted); }

/* ---------- 10. Réservation ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.25rem; }
.step__head { display: flex; align-items: center; gap: .9rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.step__num { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .95rem; font-weight: 800; transition: background .2s, color .2s; }
.step.is-done .step__num { background: var(--brand); color: var(--brand-ink); }
.step.has-error { border-color: var(--danger); }
.step__error { color: var(--danger); font-weight: 600; font-size: .92rem; margin: .9rem 0 0; }
.step__hint { color: var(--muted); font-size: .95rem; margin: 0; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .day input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.choice__body {
  display: flex; flex-direction: column; gap: .15rem; height: 100%;
  padding: 1.15rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.choice:hover .choice__body { border-color: #b8c0cc; }
.choice input:checked + .choice__body { border-color: var(--ink); background: var(--brand-tint); box-shadow: 0 0 0 3px var(--brand); }
.choice input:focus-visible + .choice__body { outline: 3px solid #4c8dff; outline-offset: 3px; }
.choice__title { font-weight: 800; font-size: 1.05rem; }
.choice__meta { color: var(--muted); font-size: .9rem; }
.choice__price { margin-top: .6rem; font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; }
.choice--coach .choice__body { align-items: center; text-align: center; }
.choice--coach .avatar { width: 72px; height: 72px; font-size: 1.4rem; margin-bottom: .6rem; box-shadow: none; }

.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.week-nav__label { font-weight: 700; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover:not(:disabled) { background: var(--bg-soft); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.day { position: relative; display: block; cursor: pointer; }
.day__body { display: grid; justify-items: center; gap: .05rem; padding: .7rem .15rem; border: 2px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, background .2s; }
.day__dow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day__num { font-size: 1.35rem; font-weight: 900; line-height: 1.15; }
.day__mon { font-size: .72rem; color: var(--muted); }
.day:hover .day__body { border-color: #b8c0cc; }
.day input:checked + .day__body { background: var(--ink); border-color: var(--ink); color: #fff; }
.day input:checked + .day__body .day__dow, .day input:checked + .day__body .day__mon { color: rgba(255, 255, 255, .75); }
.day input:focus-visible + .day__body { outline: 3px solid #4c8dff; outline-offset: 3px; }
.day input:disabled + .day__body { background: var(--bg-soft); opacity: .5; cursor: not-allowed; }
.day input:disabled ~ * , .day.is-off { cursor: not-allowed; }

.slots .step__hint { grid-column: 1 / -1; }
.slots-title { font-weight: 700; margin-bottom: .75rem; }
.slots-title::first-letter, .summary dd::first-letter, .confirmation dd::first-letter { text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.slot { position: relative; display: block; cursor: pointer; }
.slot__body { display: block; text-align: center; padding: .7rem .4rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.slot:hover .slot__body { border-color: #b8c0cc; }
.slot input:checked + .slot__body { background: var(--brand); border-color: var(--ink); color: var(--brand-ink); }
.slot input:focus-visible + .slot__body { outline: 3px solid #4c8dff; outline-offset: 3px; }
.slot input:disabled + .slot__body { background: var(--bg-soft); color: #9aa3b0; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .4rem; vertical-align: -1px; border: 2px solid var(--line); }
.legend .l-free::before { background: #fff; }
.legend .l-sel::before { background: var(--brand); border-color: var(--ink); }
.legend .l-off::before { background: var(--bg-soft); border-color: transparent; }

.summary { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--dark); color: #fff; border-radius: var(--radius); padding: 1.75rem; }
.summary h2 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.summary dl { margin: 0 0 1.25rem; }
.summary dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: .9rem; }
.summary dd { margin: .1rem 0 0; font-weight: 700; }
.summary dd.is-empty { color: rgba(255, 255, 255, .4); font-weight: 500; font-style: italic; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--dark-line); margin-bottom: 1rem; }
.summary__total strong { font-size: 1.9rem; letter-spacing: -.04em; color: var(--brand); }
.summary__notes { margin: 1.25rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.summary__notes li { display: flex; gap: .55rem; margin-bottom: .45rem; }
.summary__notes .icon { color: var(--brand); margin-top: .2em; }

.confirmation { max-width: 40rem; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(2rem, 6vw, 3.5rem); box-shadow: var(--shadow); }
.confirmation__ok { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.confirmation__ok .icon { width: 38px; height: 38px; stroke-width: 3; }
.confirmation dl { text-align: left; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; margin: 1.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; }
.confirmation dt { color: var(--muted); }
.confirmation dd { margin: 0; font-weight: 700; text-align: right; }
.confirmation__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.ref { display: inline-block; padding: .3rem .9rem; border-radius: 8px; background: var(--ink); color: var(--brand); font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* ---------- 11. Formulaires ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 0; }
.field__help { color: var(--muted); font-size: .85rem; margin: 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #8a1c14; border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-weight: 600; }

/* ---------- 12. Cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 120; left: 1rem; bottom: 1rem; width: min(440px, calc(100% - 2rem));
  background: var(--dark); color: #fff; border-radius: 22px; padding: 1.4rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4); border: 1px solid var(--dark-line);
  animation: rise .5s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.cookie-banner p { font-size: .9rem; color: rgba(255, 255, 255, .78); margin-bottom: 1.1rem; }
.cookie-banner a { color: var(--brand); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cookie-banner__actions .btn { padding: .75rem 1rem; font-size: .92rem; }
.cookie-banner__actions .btn--light { background: #fff; color: var(--ink); }
.cookie-banner__actions .btn--light:hover { background: #e9edf2; }
.cookie-banner__custom { grid-column: 1 / -1; justify-self: center; color: #fff; font-size: .9rem; margin-top: .35rem; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.cookie-dialog { width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.cookie-dialog::backdrop { background: rgba(11, 15, 20, .65); }
.cookie-dialog__inner { padding: 1.75rem; }
.cookie-dialog h2 { font-size: 1.5rem; }
.cookie-dialog__intro { color: var(--muted); font-size: .95rem; }
.cookie-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cookie-cat h3 { font-size: 1rem; margin-bottom: .25em; }
.cookie-cat p { margin: 0; color: var(--muted); font-size: .88rem; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.cookie-dialog__actions .btn { flex: 1 1 auto; padding: .75rem 1.1rem; font-size: .92rem; }

.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; border-radius: 30px; background: #c5ccd6; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: var(--brand); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: .55; }
.switch input:focus-visible + .switch__track { outline: 3px solid #4c8dff; outline-offset: 3px; }

/* ---------- 13. Pied de page ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .75); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--brand); }
.site-footer .link-btn { text-decoration: none; }
.site-footer p { font-size: .95rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dark-line); display: grid; place-items: center; font-weight: 800; font-size: .8rem; transition: background .2s, color .2s; }
.socials a:hover { background: var(--brand); color: var(--brand-ink); }
.footer__bottom { border-top: 1px solid var(--dark-line); padding: 1.4rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; }

/* ---------- 14. Pages légales ---------- */
.prose { max-width: 50rem; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4rem; }
.prose a { text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: .92rem; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.toc strong { display: block; margin-bottom: .5rem; }
.toc ol { list-style: decimal; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; break-inside: avoid; }
.id-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .96rem; }
.id-table th, .id-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.id-table th { width: 38%; color: var(--ink); font-weight: 700; background: var(--bg-soft); }
.id-table--wide th { width: auto; }
.todo { background: #fff0a8; padding: .05em .35em; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.callout { display: flex; gap: .9rem; align-items: flex-start; background: #fff8d6; border: 1px solid #f0dc7a; border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 2.5rem; color: #5c4a00; }
.callout .icon { margin-top: .2em; }
.callout p { margin: 0; color: inherit; font-size: .95rem; }

/* ---------- 15. Responsive & accessibilité ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-4px); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .booking { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: 2; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem 1rem 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11, 15, 20, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 820px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .toc ol { columns: 1; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .plans, .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .session { grid-template-columns: 70px 1fr; row-gap: .35rem; }
  .session .tag, .session__spots { grid-column: 2; justify-self: start; }
  .days { gap: .3rem; }
  .day__body { padding: .55rem 0; border-radius: 10px; }
  .day__num { font-size: 1.15rem; }
  .day__mon { display: none; }
  .step { padding: 1.25rem; }
  .confirmation dl { grid-template-columns: 1fr; }
  .confirmation dd { text-align: left; }
  .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
  .glass--main { left: 0; right: 0; }
  .id-table th, .id-table td { display: block; width: 100%; }
  .hours th, .hours td { font-size: .95rem; }
}

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

@media print {
  .site-header, .cookie-banner, .site-footer, .skip-link { display: none !important; }
}
