/* =================================================================
   Studio Mouvance — feuille de styles
   Direction : éditorial chic & contrasté · jade affirmé
   Polices : Gloock (display, Didone, 1 graisse) + Hanken Grotesk (texte/UI)
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs — base claire */
  --paper: oklch(0.986 0.002 170);
  --surface: oklch(0.966 0.004 178);
  --surface-2: oklch(0.945 0.006 182);
  --ink: oklch(0.175 0.012 185);
  --ink-soft: oklch(0.31 0.012 185);
  --muted: oklch(0.498 0.013 185);
  --line: oklch(0.885 0.006 185);
  --line-strong: oklch(0.82 0.008 185);

  /* Couleurs — sur fond sombre */
  --ink-deep: oklch(0.165 0.013 188);
  --ink-deep-2: oklch(0.215 0.014 188);
  --on-dark: oklch(0.967 0.004 178);
  --muted-on-dark: oklch(0.74 0.012 182);
  --line-on-dark: oklch(0.32 0.013 186);

  /* Marque */
  --primary: oklch(0.62 0.135 168);
  --primary-deep: oklch(0.49 0.118 168);
  --primary-strong: oklch(0.50 0.125 168); /* fond des boutons pleins : jade plus profond pour libellé blanc à 5.5:1 (AA) ; --primary reste vif pour accents/focus */
  --primary-bright: oklch(0.74 0.13 168);
  --accent: oklch(0.70 0.145 38);
  --accent-deep: oklch(0.55 0.142 36);
  --danger: oklch(0.56 0.14 25);
  --on-primary: oklch(0.99 0.005 168);

  /* Typo */
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-body: clamp(1rem, 0.965rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  --fs-h2: clamp(2.05rem, 1.45rem + 2.7vw, 3.5rem);
  --fs-h1: clamp(2.7rem, 1.6rem + 4.9vw, 5.25rem);

  /* Espace */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 6vw, 8rem);
  --container: 1180px;
  --container-wide: 1320px;
  --container-narrow: 680px;

  /* Forme */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Ombres */
  --shadow-1: 0 1px 2px oklch(0.2 0.02 188 / 0.06), 0 6px 18px oklch(0.2 0.02 188 / 0.07);
  --shadow-2: 0 2px 6px oklch(0.2 0.02 188 / 0.08), 0 24px 50px oklch(0.2 0.02 188 / 0.14);
  --shadow-jade: 0 14px 36px oklch(0.62 0.135 168 / 0.28);

  /* Z-index sémantique */
  --z-header: 100;
  --z-drawer: 200;
  --z-toast: 300;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s;
  --t: 0.32s;
  --t-slow: 0.6s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* l'attribut [hidden] doit toujours l'emporter, même sur une classe qui pose display
   (ex. .admin-gate { display:grid }, .view { display:none }) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "ss01";
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--primary); color: var(--on-primary); }

/* Gloock n'existe qu'en 400 : on reste sur sa graisse réelle (pas de faux-bold) ; le contraste Didone porte le poids visuel */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink-deep); color: var(--on-dark); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.lede { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 56ch; line-height: 1.5; }
.section--dark .lede { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--muted-on-dark); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow-jade { color: var(--primary-deep); font-weight: 700; font-size: var(--fs-sm); }
.section--dark .eyebrow-jade { color: var(--primary-bright); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  cursor: pointer; text-align: center;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t) var(--ease-out), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--primary-strong); --btn-fg: var(--on-primary); border-color: var(--primary-strong); }
.btn--primary:hover { box-shadow: var(--shadow-jade); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.section--dark .btn--ghost, .on-dark .btn--ghost { --btn-fg: var(--on-dark); border-color: var(--line-on-dark); }
.section--dark .btn--ghost:hover, .on-dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }
.btn--lg { padding: 1.02em 1.9em; font-size: var(--fs-body); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform var(--t) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline { color: var(--primary-deep); font-weight: 600; border-bottom: 1.5px solid color-mix(in oklch, var(--primary) 45%, transparent); padding-bottom: 1px; transition: border-color var(--t-fast); }
.link-underline:hover { border-color: var(--primary); }
.section--dark .link-underline { color: var(--primary-bright); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.32em 0.72em; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
  background: var(--surface-2); color: var(--ink-soft);
}
.pill--open { background: color-mix(in oklch, var(--primary) 16%, var(--paper)); color: var(--primary-deep); }
.pill--tight { background: color-mix(in oklch, var(--accent) 18%, var(--paper)); color: var(--accent-deep); }
.pill--full { background: color-mix(in oklch, var(--danger) 14%, var(--paper)); color: var(--danger); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ===================================================================
   Header + navigation
   =================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.7rem, 0.4rem + 1vw, 1.1rem) var(--gutter);
  color: var(--on-dark);
  transition: background var(--t) var(--ease-out), color var(--t) var(--ease-out), box-shadow var(--t), padding var(--t);
}
.site-header.is-scrolled {
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px oklch(0.2 0.02 188 / 0.06);
}
.brand { display: inline-flex; align-items: baseline; gap: 0.5ch; font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; letter-spacing: -0.01em; }
.brand .brand-mark { font-weight: 400; }
.brand .brand-accent { color: var(--primary-bright); }
.site-header.is-scrolled .brand-accent { color: var(--primary-deep); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 1.4vw, 2rem); }
.nav a { font-size: var(--fs-sm); font-weight: 600; position: relative; padding: 0.3em 0; opacity: 0.92; transition: opacity var(--t-fast); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 0.9rem; }
.header-right .btn { padding: 0.62em 1.2em; white-space: nowrap; }
/* sur très petit écran, le bouton de retour se réduit à « Retour » pour tenir sur une ligne */
@media (max-width: 430px) { .btn-label-extra { display: none; } }

.nav-toggle { display: none; }

/* Header responsive : la nav desktop laisse place au hamburger + drawer */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 540px) {
  /* le drawer porte déjà le CTA Réserver ; on allège le header */
  .header-right .btn--primary { display: none; }
}

/* drawer mobile — placé hors du header pour ne pas être piégé par backdrop-filter */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: oklch(0.12 0.01 188 / 0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: var(--z-drawer);
  width: min(86vw, 420px); height: 100dvh;
  background: var(--ink-deep); color: var(--on-dark);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t-slow) var(--ease-expo);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer nav { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.5rem; }
.drawer nav a { font-family: var(--font-display); font-size: 1.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-on-dark); }
.drawer nav a:last-child { border-bottom: 0; }
.drawer .drawer-cta { margin-top: auto; padding-top: 2rem; }
.drawer-meta { margin-top: 1.4rem; font-size: var(--fs-sm); color: var(--muted-on-dark); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid currentColor; cursor: pointer; color: inherit; transition: background var(--t-fast); }
.icon-btn:hover { background: color-mix(in oklch, currentColor 12%, transparent); }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  padding-top: 6rem;
  isolation: isolate;
  overflow: hidden; /* borne le parallax de .hero__media pour qu'il ne déborde pas sous le marquee */
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.16 0.01 188 / 0.36) 0%, oklch(0.16 0.01 188 / 0.06) 40%, oklch(0.14 0.012 188 / 0.66) 100%),
    linear-gradient(90deg, oklch(0.14 0.012 188 / 0.4) 0%, transparent 58%);
}
.hero__inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding: 0 var(--gutter) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--primary-bright); }
.hero__sub { font-size: var(--fs-lead); max-width: 46ch; color: oklch(0.94 0.005 180 / 0.92); line-height: 1.45; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(3rem, 2rem + 4vw, 5.5rem); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; writing-mode: vertical-rl; opacity: 0.7; }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ===================================================================
   Marquee disciplines
   =================================================================== */
.marquee { background: var(--paper); color: var(--ink); padding-block: clamp(0.95rem, 0.7rem + 0.9vw, 1.5rem); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: clamp(2.2rem, 1.2rem + 3vw, 4.5rem); width: max-content; animation: marquee 52s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.7rem); letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: clamp(2.2rem, 1.2rem + 3vw, 4.5rem); }
.marquee__track span::after { content: "◆"; color: var(--primary); font-size: 0.4em; opacity: 0.8; transform: translateY(-0.04em); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ===================================================================
   Disciplines — tuiles photo
   =================================================================== */
/* la section grise du planning enchaîne juste sous le bento : pas de blanc inutile */
#disciplines { padding-bottom: 0; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(0.8rem, 0.5rem + 1vw, 1.25rem); }
.disc-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); aspect-ratio: 4 / 5;
  color: var(--on-dark); isolation: isolate;
}
.disc-card--feature { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 720px) { .disc-card--feature { grid-column: span 1; aspect-ratio: 4 / 5; } }

/* Mobile : plutôt qu'un long empilement de tuiles, le bento devient un rail
   que l'on fait glisser au pouce — un seul écran, le geste prolonge la danse. */
.disc-rail-nav { display: none; }
@media (max-width: 720px) {
  .disc-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(80vw, 320px);
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* déborde jusqu'aux bords de l'écran, sans casser l'alignement du container */
    margin-inline: calc(-1 * var(--gutter));
    /* padding = la marge de contenu : combiné au snap centré, les cartes du
       milieu se calent au centre de l'écran, tandis que la première s'aligne à
       fleur du texte (marge gauche) et la dernière à fleur de la marge droite —
       pas de vide flottant aux extrémités, l'aperçu des voisines reste large */
    padding-inline: var(--gutter);
    padding-block: 0.3rem;
  }
  .disc-grid::-webkit-scrollbar { display: none; }
  .disc-card,
  .disc-card--feature { scroll-snap-align: center; aspect-ratio: 4 / 5; }
  /* pas de survol au doigt : le blurb vit au repos pour garder l'info de chaque discipline */
  .disc-card__blurb { max-height: 8rem; opacity: 1; margin-top: 0.2rem; }

  /* pagination : où l'on est dans les six disciplines */
  .disc-rail-nav { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.1rem; }
  .disc-rail-nav span {
    width: 6px; height: 6px; border-radius: var(--r-pill);
    background: var(--line-strong);
    transition: width var(--t) var(--ease-out), background var(--t);
  }
  .disc-rail-nav span.is-on { width: 22px; background: var(--primary); }
  /* le bento desktop colle à la section grise (padding-bottom: 0) ; en rail
     mobile, on rend une respiration sous les pastilles avant le planning */
  #disciplines { padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .disc-grid { scroll-snap-type: none; }
  .disc-rail-nav span { transition: none; }
}
.disc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); z-index: -2; }
.disc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0.14 0.01 188 / 0.12) 0%, oklch(0.14 0.01 188 / 0.18) 45%, oklch(0.12 0.012 188 / 0.9) 100%); transition: background var(--t); }
.disc-card:hover img { transform: scale(1.06); }
.disc-card:hover::after { background: linear-gradient(180deg, oklch(0.14 0.01 188 / 0.2) 0%, oklch(0.5 0.12 168 / 0.18) 45%, oklch(0.12 0.012 188 / 0.92) 100%); }
.disc-card__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.1rem, 0.8rem + 1vw, 1.7rem); display: flex; flex-direction: column; gap: 0.5rem; }
.disc-card__tag { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-bright); }
.disc-card__name { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1; }
.disc-card__blurb { font-size: var(--fs-sm); color: oklch(0.92 0.005 180 / 0.9); max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease-out), opacity var(--t), margin var(--t); }
.disc-card:hover .disc-card__blurb, .disc-card:focus-visible .disc-card__blurb { max-height: 8rem; opacity: 1; margin-top: 0.2rem; }
.disc-card__go { display: inline-flex; align-items: center; gap: 0.4ch; font-weight: 600; font-size: var(--fs-sm); color: var(--on-dark); margin-top: 0.4rem; }
@media (prefers-reduced-motion: reduce) {
  .disc-card__blurb { max-height: none; opacity: 1; margin-top: 0.2rem; }
}
/* flèche « Réserver » qui glisse au survol */
.disc-card__go svg { transition: transform var(--t) var(--ease-out); }
.disc-card:hover .disc-card__go svg, .disc-card:focus-visible .disc-card__go svg { transform: translateX(4px); }

/* Desktop : bento pleine largeur, mosaïque asymétrique immersive */
@media (min-width: 1024px) {
  #disciplines { overflow-x: clip; }
  #disciplines .disc-grid {
    width: 100vw; margin-inline: calc(50% - 50vw);
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: minmax(220px, 28vh) minmax(220px, 28vh) minmax(190px, 22vh);
    grid-template-areas:
      "classique classique jazz    hiphop"
      "classique classique contemp hiphop"
      "salsa     barre     barre   barre";
    gap: clamp(5px, 0.45vw, 10px);
  }
  #disciplines .disc-card { aspect-ratio: auto; height: 100%; border-radius: 0; }
  #disciplines .disc-card:nth-child(1) { grid-area: classique; }
  #disciplines .disc-card:nth-child(2) { grid-area: jazz; }
  #disciplines .disc-card:nth-child(3) { grid-area: hiphop; }
  #disciplines .disc-card:nth-child(4) { grid-area: contemp; }
  #disciplines .disc-card:nth-child(5) { grid-area: salsa; }
  #disciplines .disc-card:nth-child(6) { grid-area: barre; }
  /* la grande tuile parle plus fort, son blurb reste visible au repos */
  #disciplines .disc-card--feature .disc-card__name { font-size: clamp(2.6rem, 1.6rem + 2.6vw, 3.8rem); }
  #disciplines .disc-card--feature .disc-card__blurb { max-height: 9rem; opacity: 1; margin-top: 0.35rem; font-size: var(--fs-body); }
}

/* ===================================================================
   Planning
   =================================================================== */
.plan-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.plan-tab { padding: 0.5em 1.05em; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all var(--t-fast); }
.plan-tab:hover { border-color: var(--ink); }
.plan-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.plan-day { margin-bottom: 2.4rem; }
.plan-day__head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.plan-day__name { font-family: var(--font-display); font-size: var(--fs-h4); }
.plan-day__date { font-size: var(--fs-sm); color: var(--muted); }

.slot {
  display: grid; grid-template-columns: 7.5rem 1fr auto auto; align-items: center; gap: 1rem;
  padding: 0.95rem 1.1rem; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.section--surface .slot { background: var(--paper); }
.slot + .slot { margin-top: 0.55rem; }
.slot:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.slot__time { font-variant-numeric: tabular-nums; font-weight: 700; }
.slot__time small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.slot__main { min-width: 0; }
.slot__title { font-weight: 700; font-size: 1.02rem; }
.slot__meta { font-size: var(--fs-sm); color: var(--muted); }
.slot__meta .sep { opacity: 0.5; padding-inline: 0.4ch; }
.slot__cta { white-space: nowrap; }
.slot__cta.is-full { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 680px) {
  .slot { grid-template-columns: 1fr; gap: 0.55rem; }
  .slot__status { justify-self: start; }
  .slot__cta { justify-self: start; }
}

/* ===================================================================
   Studio / about
   =================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3 / 4; }

/* Studio « Deux salles » : image plein cadre à gauche + voile jade léger à droite, le texte empiète sur l'image */
.studio-media { position: relative; }
.studio-media__main { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.studio-media__tag {
  position: absolute; left: 0; bottom: 1.2rem; z-index: 2;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark); background: var(--ink-deep);
  padding: 0.55em 1em 0.55em 1.1rem;
}
@media (min-width: 980px) {
  #studio { overflow-x: clip; position: relative; padding-block: 0; }
  /* la bande image+jade touche les deux bords et se fond dans la section voisine : clair en haut, sombre en bas */
  #studio::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 2;
    background: linear-gradient(180deg, var(--paper) 0%, transparent 60%);
    pointer-events: none;
  }
  #studio::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 2;
    background: linear-gradient(180deg, transparent 0%, transparent 30%, var(--ink-deep) 100%);
    pointer-events: none;
  }
  /* la section passe pleine largeur pour que l'image touche le bord gauche de l'écran */
  #studio > .container--wide { max-width: none; padding: 0; }
  #studio .split {
    grid-template-columns: 1fr minmax(27rem, 41%);
    align-items: stretch; gap: 0;
    min-height: min(86vh, 800px);
  }
  /* image : toute la place à gauche, pleine hauteur, jusqu'au bord */
  #studio .studio-media { height: 100%; }
  #studio .studio-media__main { height: 100%; aspect-ratio: auto; }
  /* panneau texte : voile jade léger (couleur du site), empiète sur l'image, fond à angles droits */
  #studio .studio-text {
    align-self: stretch; position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    background: color-mix(in oklch, var(--primary) 9%, var(--paper));
    margin-left: clamp(-7rem, -5vw, -3.5rem);
    padding: clamp(2.8rem, 3.4vw, 4.6rem);
    padding-right: clamp(2.8rem, 6vw, 6rem);
    box-shadow: -26px 0 64px oklch(0.15 0.02 188 / 0.13);
  }
  /* margin-bottom : un peu plus d'air entre le titre et le texte dans le panneau jade */
  #studio h2 { font-size: clamp(2.4rem, 1.3rem + 2.6vw, 3.6rem); max-width: 16ch; margin-bottom: 1.6rem; }
}

/* Mobile / tablette portrait (<= 860px) : le panneau jade du desktop disparaît,
   la section retombait en simple empilement (photo géante + mur de texte).
   On rejoue la dramaturgie scène -> lumière en immersif : photo plein cadre bord
   à bord, vrai titre de section en surimpression blanche sur un voile sombre,
   puis le corps et les stats sur le fond clair de la page en dessous. */
@media (max-width: 860px) {
  /* pas de padding haut : la photo immersive démarre directement la section */
  #studio { padding-top: 0; }
  /* row-gap 0 : c'est la marge négative du bloc texte qui gère le chevauchement */
  #studio .split { row-gap: 0; }

  /* photo : plein cadre, déborde le gutter du container jusqu'aux bords écran */
  #studio .studio-media {
    margin-inline: calc(-1 * var(--gutter));
    position: relative; z-index: 1;
  }
  #studio .studio-media__main { aspect-ratio: 4 / 5; }
  /* apparition : simple fondu sur mobile (on annule le glissé latéral data-reveal="left") */
  .js-anim #studio .studio-media[data-reveal] { transform: none; }
  /* voile bas (même grammaire que .disc-card / .cta-band) : porte le titre blanc à >= 4.5:1 */
  #studio .studio-media::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top,
      oklch(0.12 0.012 188 / 0.92) 0%,
      oklch(0.14 0.012 188 / 0.5) 28%,
      transparent 54%);
  }
  /* le badge « Deux studios · cœur de Montpellier » faisait doublon avec le titre : masqué sur mobile */
  #studio .studio-media__tag { display: none; }

  /* bloc texte remonté : le titre (1er enfant) chevauche le bas de l'image, le corps
     suit ensuite sur le fond clair de la page. Chevauchement par marge négative
     (fiable en grille) plutôt qu'en position absolue. */
  #studio .studio-text {
    position: relative; z-index: 2;
    margin-top: -6.2rem;
  }
  /* titre réel de la section, en surimpression blanche légèrement transparente sur le bas de l'image */
  #studio #studio-title {
    margin: 0 0 2rem;
    color: oklch(0.967 0.004 178 / 0.85);
    font-size: clamp(1.95rem, 1.4rem + 2.6vw, 2.7rem);
    text-shadow: 0 1px 22px oklch(0.12 0.015 188 / 0.5);
  }

  /* sur mobile, on retire les paragraphes de prose (trop denses ici, effet « page tapée ») :
     photo + titre + stats + points clés suffisent. Le texte reste dans le DOM pour le desktop/SEO. */
  #studio .studio-text .flow { display: none; }

  /* stats : détachées par un filet, juste sous le titre */
  #studio .facts { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
}

.facts { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2rem; }
.fact { flex: 0 1 auto; }
.fact dt { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0.2rem; }
/* nombre + unité gardés sur une seule ligne : empêche la coupure « 5 / professeurs » (Gloock plus large que Bodoni) ; à l'étroit, c'est la stat entière qui passe à la ligne */
.fact dd { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.05; white-space: nowrap; }
.section--dark .fact dd { color: var(--on-dark); }
/* Mobile : 3 colonnes compactes, nombre en gros + unité en petit dessous (Hanken), centrés dans chaque colonne */
@media (max-width: 540px) {
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 0.7rem; align-items: start; }
  .fact { text-align: center; }
  .fact dd { display: flex; flex-direction: column; align-items: center; white-space: normal; font-size: 1.6rem; line-height: 1; }
  .fact__u { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.01em; margin-top: 0.3rem; }
}

.tick-list { list-style: none; padding-inline-start: 0; display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.tick-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.tick-list svg { width: 1.4rem; height: 1.4rem; color: var(--primary); margin-top: 0.1rem; }

/* ===================================================================
   Professeurs
   =================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 1.8rem); }
.teacher { }
.teacher__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; margin-bottom: 1rem; background: var(--surface-2); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); filter: grayscale(0.2); }
.teacher:hover .teacher__photo img { transform: scale(1.04); filter: grayscale(0); }
.teacher__name { font-family: var(--font-display); font-size: var(--fs-h4); }
.teacher__role { color: var(--primary-deep); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.5rem; }
.section--dark .teacher__role { color: var(--primary-bright); }
.teacher__bio { font-size: var(--fs-sm); color: var(--muted); }
.section--dark .teacher__bio { color: var(--muted-on-dark); }

/* Mobile : empilées, quatre cartes à grande photo 3:4 faisaient défiler ~2400px.
   La section devient une distribution éditoriale — portrait vignette + texte en
   regard, séparés par un filet — les quatre profs lisibles d'un coup, sans swipe. */
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; gap: 0; }
  .teacher {
    display: grid;
    grid-template-columns: clamp(76px, 22vw, 94px) 1fr;
    grid-template-areas:
      "photo name"
      "photo role"
      "photo bio";
    column-gap: clamp(0.9rem, 0.5rem + 2vw, 1.3rem);
    row-gap: 0.1rem;
    align-items: start;
    padding-block: clamp(1.05rem, 0.7rem + 1.6vw, 1.5rem);
    border-top: 1px solid var(--line-on-dark);
  }
  .teacher__photo {
    grid-area: photo;
    align-self: start;
    aspect-ratio: 1;
    width: 100%;
    margin-bottom: 0;
  }
  /* portraits en pleine couleur : sans survol au doigt, le grayscale de repos
     les ferait paraître éteints */
  .teacher__photo img { filter: none; }
  .teacher__name { grid-area: name; }
  .teacher__role { grid-area: role; margin-bottom: 0; }
  .teacher__bio  { grid-area: bio; margin-top: 0.45rem; max-width: 60ch; }
}

/* ===================================================================
   Tarifs
   =================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem); }
.price {
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.price--feature { background: var(--ink-deep); color: var(--on-dark); border-color: var(--ink-deep); }
.price--feature .price__name { color: var(--on-dark); }
/* Bureau : on aplatit l'en-tête et le bloc détails dans la colonne flex de la
   carte (display:contents) ; l'ordre reproduit exactement la carte d'origine —
   nom · tag · prix · sous-titre · liste · bouton. Le filet pointillé et le
   bouton « Détails » ne servent qu'en version mobile (masqués ici). */
.price__head, .price__details { display: contents; }
.price__lead, .price__more { display: none; }
.price__name { font-family: var(--font-display); font-size: var(--fs-h4); margin-bottom: 0.3rem; order: 0; }
.price__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--primary-deep); margin-bottom: 1rem; order: 1; }
.price--feature .price__tag { color: var(--primary-bright); }
.price__amount { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1; margin-bottom: 0.2rem; order: 2; }
.price__amount small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.price--feature .price__amount small { color: var(--muted-on-dark); }
.price__per { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.2rem; order: 3; }
.price--feature .price__per { color: var(--muted-on-dark); }
.price__list { list-style: none; display: grid; gap: 0.6rem; font-size: var(--fs-sm); margin-bottom: 1.6rem; order: 4; }
.price__list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; }
.price__list svg { width: 1.1rem; height: 1.1rem; color: var(--primary); margin-top: 0.25rem; }
.price--feature .price__list svg { color: var(--primary-bright); }
.price .btn { margin-top: auto; order: 5; }

/* Mobile : liste éditoriale (≤ 560px, là où la grille tombe sur une colonne).
   Plus de cartes : lignes « nom ····· prix » reliées par un filet pointillé,
   bénéfices repliés sous « Détails », vedette en bande jade. */
@media (max-width: 560px) {
  .price-grid { display: block; }
  .price {
    display: block;
    padding: 1.05rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .price:last-child { border-bottom: 0; }
  .price:hover { transform: none; box-shadow: none; }

  /* ligne de base : nom à gauche, prix à droite, filet pointillé entre les deux */
  .price__head { display: flex; align-items: baseline; gap: 0.6rem; }
  .price__name { margin: 0; }
  /* espaceur invisible : pousse le prix à droite, sans filet pointillé */
  .price__lead { display: block; flex: 1 1 auto; }
  .price__amount {
    flex: 0 0 auto; margin: 0;
    font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
    white-space: nowrap;
  }
  .price__amount small { font-size: var(--fs-xs); }
  .price__tag { margin: 0.35rem 0 0; }
  .price__per { margin: 0.15rem 0 0; font-size: var(--fs-xs); }

  /* bénéfices repliables : bouton « Détails » + liste toujours rendue, animée
     en hauteur par le JS (pas de <details> natif → mesure de hauteur fiable,
     aucun claquement ; le chevron suit la classe .is-open, donc synchrone). */
  .price__details { display: block; margin-top: 0.55rem; }
  .price__more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: none; border: 0; cursor: pointer;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.03em;
    color: var(--primary-deep); padding: 0.2rem 0;
  }
  .price__more::after {
    content: ""; width: 0.46rem; height: 0.46rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform var(--t-fast) var(--ease-out);
  }
  .price__details.is-open .price__more::after { transform: translateY(0.08rem) rotate(-135deg); }
  /* la liste s'anime en hauteur (JS) ; padding intérieur pour se replier sans trou */
  .price__list { padding: 0.55rem 0 0; margin: 0; }

  .price .btn { margin-top: 0.85rem; }

  /* formule vedette : bande jade légère (ni carte sombre, ni bord-rayure) */
  .price--feature {
    background: color-mix(in oklch, var(--primary) 8%, var(--paper));
    color: var(--ink); /* bande jade claire : texte foncé (sinon bénéfices blancs invisibles) */
    border: 0; border-radius: var(--r);
    padding: 1.05rem 1rem; margin-block: 0.4rem;
  }
  .price--feature .price__name,
  .price--feature .price__amount { color: var(--ink); }
  .price--feature .price__tag { color: var(--primary-deep); }
  .price--feature .price__amount small,
  .price--feature .price__per { color: var(--muted); }
  .price--feature .price__list svg { color: var(--primary); }
  .price--feature .btn--light { --btn-bg: var(--primary-strong); --btn-fg: var(--on-primary); border-color: var(--primary-strong); }
}

/* ===================================================================
   Témoignages
   =================================================================== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.2rem, 0.8rem + 1.4vw, 2rem); }
.quote { display: flex; flex-direction: column; gap: 1.2rem; }
.quote__text { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem); line-height: 1.32; }
.quote__text::before { content: "“"; color: var(--primary); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1ch; }
.quote__who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.quote__name { display: block; font-weight: 700; font-size: var(--fs-sm); }
.quote__role { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--muted); }
.section--dark .quote__role { color: var(--muted-on-dark); }

/* ===================================================================
   CTA bandeau
   =================================================================== */
.cta-band { position: relative; color: var(--on-dark); isolation: isolate; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, oklch(0.13 0.012 188 / 0.92) 0%, oklch(0.13 0.012 188 / 0.62) 55%, oklch(0.45 0.11 168 / 0.4) 100%); }
.cta-band .container { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.cta-band h2 { max-width: 18ch; margin-bottom: 1.2rem; }
.cta-band p { max-width: 48ch; color: oklch(0.93 0.005 180 / 0.9); font-size: var(--fs-lead); margin-bottom: 2rem; }

/* ===================================================================
   Contact / infos pratiques
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: clamp(2.4rem, 1.8rem + 3vw, 3.2rem); } }

/* Intro : trait jade « en-tête de papeterie » comme accent éditorial (un seul, délibéré) */
.contact-intro { min-width: 0; }
.contact-intro::before {
  content: ""; display: block; width: 2.6rem; height: 2px;
  background: var(--primary); border-radius: 2px; margin-bottom: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
}
.contact-intro .lede { max-width: 40ch; }

/* Liste « informations pratiques » à filets : fini les pastilles rondes génériques */
.info-list { margin-top: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); border-bottom: 1px solid var(--line); }
.info-row {
  display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 0.95rem;
  align-items: center; padding-block: clamp(0.95rem, 0.78rem + 0.6vw, 1.3rem);
  border-top: 1px solid var(--line);
}
.info-row__ic { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 1.35rem; height: 1.35rem; color: var(--primary-deep); }
.info-row__label { grid-column: 2; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted); margin-bottom: 0.3rem; }
.info-row__value { grid-column: 2; font-weight: 600; color: var(--ink); line-height: 1.34; }
.info-row__sep { margin-inline: 0.5ch; color: var(--primary); font-weight: 700; }

/* Téléphone : détail-signature en Gloock, l'aboutissement de « Appelez, on répond » */
.info-row--tel { align-items: baseline; }
.info-row--tel .info-row__value { line-height: 1; }
.info-row__tel {
  font-family: var(--font-display); font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2rem);
  line-height: 1; letter-spacing: -0.01em; color: var(--primary-deep);
  transition: color var(--t-fast);
}
.info-row__tel:hover { color: var(--primary); }
.info-row__mail {
  border-bottom: 1.5px solid color-mix(in oklch, var(--primary) 35%, transparent);
  padding-bottom: 1px; transition: color var(--t-fast), border-color var(--t-fast);
}
.info-row__mail:hover { color: var(--primary-deep); border-color: var(--primary); }

/* Carte : recadrée en figure, ombrée et légendée — un objet, pas une dalle */
.map-figure { margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.map-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow-1); }
.map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.32) contrast(1.04); transition: filter var(--t) var(--ease-out); }
.map-card:hover iframe { filter: grayscale(0) contrast(1); }
.map-figure__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.map-figure__place { font-size: var(--fs-sm); color: var(--muted); }
.map-figure__link { display: inline-flex; align-items: center; gap: 0.45ch; font-weight: 600; font-size: var(--fs-sm); color: var(--primary-deep); transition: color var(--t-fast); }
.map-figure__link .arrow { transition: transform var(--t) var(--ease-out); }
.map-figure__link:hover { color: var(--primary); }
.map-figure__link:hover .arrow { transform: translateX(3px); }
@media (max-width: 860px) { .map-card { aspect-ratio: 5 / 4; } }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--ink-deep); color: var(--on-dark); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-on-dark); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-brand .brand { font-size: 1.6rem; color: var(--on-dark); }
.footer-brand p { color: var(--muted-on-dark); max-width: 36ch; margin-top: 1rem; font-size: var(--fs-sm); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-on-dark); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li { color: var(--on-dark); font-size: var(--fs-sm); opacity: 0.86; }
.footer-col a:hover { opacity: 1; color: var(--primary-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.6rem; font-size: var(--fs-xs); color: var(--muted-on-dark); }
.footer-bottom a:hover { color: var(--primary-bright); }

/* ===================================================================
   Réservation — stepper
   =================================================================== */
.resv-shell { min-height: 100svh; display: grid; grid-template-columns: 1.45fr 1fr; }
@media (max-width: 940px) { .resv-shell { grid-template-columns: 1fr; } }
.resv-main { padding: clamp(5.5rem, 4rem + 4vw, 7rem) var(--gutter) 3rem; }
.resv-aside { background: var(--ink-deep); color: var(--on-dark); padding: clamp(5.5rem, 4rem + 4vw, 7rem) var(--gutter) 3rem; position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto; }
@media (max-width: 940px) { .resv-aside { position: static; height: auto; } }
.resv-inner { max-width: 620px; margin-inline: auto; width: 100%; }

.steps { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.step-chip { display: inline-flex; align-items: center; gap: 0.5ch; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.step-chip .num { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: var(--fs-xs); }
.step-chip.is-active { color: var(--ink); }
.step-chip.is-active .num { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.step-chip.is-done .num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step-sep { width: 1.4rem; height: 1px; background: var(--line-strong); }
@media (max-width: 560px) { .step-chip .label { display: none; } .step-sep { width: 0.7rem; } }

.resv-step { display: none; animation: fade-up var(--t-slow) var(--ease-out); }
.resv-step.is-active { display: block; }
.resv-step h2 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.resv-step .step-lede { color: var(--muted); margin-bottom: 1.8rem; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1rem 1.1rem; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
@media (hover: hover) { .choice:hover { border-color: var(--line-strong); transform: translateY(-2px); } }
.choice:active { transform: translateY(0); }
.choice.is-selected { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 8%, var(--paper)); box-shadow: 0 0 0 1.5px var(--primary) inset; }
.choice__name { font-weight: 700; }
.choice__sub { font-size: var(--fs-sm); color: var(--muted); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.occ-list { display: grid; gap: 0.55rem; }
.occ {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem; cursor: pointer; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t-fast), background var(--t-fast);
}
@media (hover: hover) { .occ:not([data-disabled]):hover { border-color: var(--line-strong); } }
.occ.is-selected { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 8%, var(--paper)); box-shadow: 0 0 0 1.5px var(--primary) inset; }
.occ[data-disabled] { cursor: not-allowed; background: var(--surface); border-style: dashed; }
.occ[data-disabled] .occ__date, .occ[data-disabled] .occ__meta { color: var(--muted); }
.occ[data-disabled] .occ__date { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.occ__date { font-weight: 700; font-variant-numeric: tabular-nums; }
.occ__date small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.occ__meta { font-size: var(--fs-sm); color: var(--muted); }
.occ input { position: absolute; opacity: 0; pointer-events: none; }

/* Formulaire */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.4rem; }
/* les cartes de choix (« Pour moi » / case à cocher) sont aussi des <label> :
   on les soustrait au style générique des libellés de champ pour qu'elles gardent leur mise en page */
.field .choice { display: flex; margin-bottom: 0; font-size: var(--fs-body); font-weight: 400; }
.field .check { display: flex; margin-bottom: 0; font-size: var(--fs-body); font-weight: 400; }
.field .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8em 0.95em; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 22%, transparent); }
.field textarea { resize: vertical; min-height: 5rem; }
.field--error input, .field--error select { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: var(--fs-sm); margin-top: 0.35rem; display: none; }
.field--error .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.check input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.check span small { display: block; color: var(--muted); font-size: var(--fs-sm); }

.resv-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; }
.resv-actions .btn--text { background: transparent; border-color: transparent; color: var(--muted); padding-inline: 0.4em; }
.resv-actions .btn--text:hover { color: var(--ink); box-shadow: none; transform: none; }

/* Récap (aside) */
.recap-card { }
.recap-card .recap-disc { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--on-dark); margin-bottom: 0.3rem; }
.recap-empty { color: var(--muted-on-dark); }
.recap-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-on-dark); }
.recap-line dt { color: var(--muted-on-dark); font-size: var(--fs-sm); }
.recap-line dd { text-align: right; font-weight: 600; }
.recap-note { margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: var(--r); background: color-mix(in oklch, var(--primary) 16%, var(--ink-deep)); font-size: var(--fs-sm); color: var(--on-dark); display: flex; gap: 0.6rem; }
.recap-note svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--primary-bright); }

/* Confirmation */
.confirm { text-align: center; max-width: 520px; margin-inline: auto; }
.confirm__check { width: 76px; height: 76px; margin: 0 auto 1.6rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--primary) 16%, var(--paper)); color: var(--primary-deep); animation: pop var(--t-slow) var(--ease-out); }
.confirm__check svg { width: 38px; height: 38px; }
.confirm h2 { font-size: var(--fs-h2); margin-bottom: 0.6rem; }
.confirm__card { text-align: left; margin: 2rem 0; padding: 1.4rem 1.5rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.confirm__card .recap-line dt { color: var(--muted); }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
/* note d'honnêteté démo : ne s'affiche que sur mobile, là où le récap sombre est masqué à l'étape 4 */
.confirm__note { display: none; }

/* ===================================================================
   Réservation — affinage mobile (parcours fluide, atteignable au pouce)
   =================================================================== */
@media (max-width: 940px) {
  /* le header est collant en flux : on supprime le double-vide en tête de colonne */
  .resv-main { padding-top: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); padding-bottom: 1.25rem; }
  .steps { margin-bottom: 1.8rem; }

  /* récap sombre : panneau de fin compact, plus un grand aplat noir vide */
  .resv-aside { padding-top: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); padding-bottom: clamp(2rem, 1.6rem + 2vw, 2.8rem); }

  /* étape 4 : le récap sombre fait doublon avec la carte de confirmation → on le retire,
     et l'honnêteté du mode démo passe sous la confirmation */
  .resv-shell.is-confirmed .resv-aside { display: none; }
  .confirm__note {
    display: inline-flex; align-items: flex-start; gap: 0.45rem;
    margin: 1.8rem auto 0; max-width: 40ch;
    font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); text-align: left;
  }
  .confirm__note svg { flex: none; margin-top: 0.15rem; color: var(--primary-deep); }

  /* barre d'action collante : le CTA reste sous le pouce pendant tout le défilement */
  .resv-step.is-active .resv-actions {
    position: sticky; bottom: 0; z-index: 5;
    margin: 1.8rem calc(-1 * var(--gutter)) 0;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklch, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
    border-top: 1px solid var(--line);
    align-items: center; gap: 0.7rem;
  }
  /* CTA principal : occupe la largeur restante, libellé sur une seule ligne */
  .resv-actions .btn--primary { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-block: 0.95em; }
  .resv-actions .btn--text { flex: 0 0 auto; min-height: 44px; padding-inline: 0.6em; }
  /* étape 1 : pas de bouton retour, le CTA prend toute la largeur */
  .resv-step[data-step="1"] .resv-actions > span { display: none; }

  /* boutons de confirmation : pile pleine largeur, alignement net */
  .confirm__actions { flex-direction: column; align-items: stretch; }
  .confirm__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  /* créneaux : 2 rangées (date + pastille / détails) au lieu d'un 3-colonnes écrasé */
  .occ {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date pill" "meta meta";
    align-items: center; column-gap: 0.8rem; row-gap: 0.3rem; padding: 0.85rem 1rem;
  }
  .occ__date { grid-area: date; }
  .occ > .pill { grid-area: pill; align-self: center; }
  .occ__meta { grid-area: meta; line-height: 1.4; }
}

/* ===================================================================
   Espace gérant
   =================================================================== */
.admin-body { background: var(--surface-2); min-height: 100vh; }
.admin-gate { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); }
.gate-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); box-shadow: var(--shadow-2); }
.gate-card .brand { font-size: 1.5rem; margin-bottom: 1.6rem; }
.gate-card h1 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.gate-note { font-size: var(--fs-sm); color: var(--muted); margin: 1.2rem 0 0.4rem; padding: 0.9rem 1rem; background: color-mix(in oklch, var(--accent) 12%, var(--paper)); border-radius: var(--r-sm); }

/* App bar */
.app-bar { position: sticky; top: 0; z-index: var(--z-header); display: flex; align-items: center; gap: 1rem; padding: 0.6rem var(--gutter); background: color-mix(in oklch, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
.app-bar__brand { display: flex; align-items: center; gap: 0.7rem; }
.app-bar__brand .brand { font-size: 1.2rem; transition: opacity var(--t-fast); }
.app-bar__brand a.brand:hover { opacity: 0.72; }
.app-bar__tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--primary-deep); padding: 0.25em 0.6em; background: color-mix(in oklch, var(--primary) 14%, var(--paper)); border-radius: var(--r-pill); }
/* Le badge « Espace gérant » reste visible sur mobile, comme sur bureau ;
   le bloc marque peut faire passer le badge sous le nom si la place manque. */
@media (max-width: 700px) { .app-bar__brand { flex-wrap: wrap; } }

.view-switch { position: relative; display: inline-flex; gap: 2px; margin-inline: auto; background: var(--surface-2); padding: 3px; border-radius: var(--r-pill); }
/* pastille active : glisse d'un onglet à l'autre (positionnée par le JS) */
.view-switch__pill { position: absolute; z-index: 0; top: 3px; left: 0; height: calc(100% - 6px); width: 0; border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--shadow-1); transition: transform 0.42s var(--ease-expo), width 0.42s var(--ease-expo); will-change: transform, width; pointer-events: none; }
.view-tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 0.5em 1.1em; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); white-space: nowrap; }
.view-tab:hover { color: var(--ink); }
.view-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
/* avec la pastille JS active, l'onglet sélectionné n'a plus son propre fond
   (la pastille le porte et glisse) ; sans JS, le fond par onglet reste en secours */
.view-switch.has-pill .view-tab[aria-selected="true"] { background: transparent; box-shadow: none; }
@media (max-width: 760px) { .view-tab { padding: 0.5em 0.75em; font-size: var(--fs-xs); } }

.app-bar__actions { display: flex; align-items: center; gap: 0.5rem; }
.app-bar__actions .btn { padding: 0.55em 1em; font-size: var(--fs-sm); }

/* menu déroulant (kebab, via <details>) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 224px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 0.4rem; display: grid; gap: 1px; z-index: 20; animation: view-in 0.18s var(--ease-out); }
.menu__list button { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; padding: 0.6rem 0.7rem; border: 0; background: transparent; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); cursor: pointer; transition: background var(--t-fast); }
.menu__list button:hover { background: var(--surface-2); }
.menu__list button svg { color: var(--muted); }
.menu__list hr { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0.2rem; }

/* main + vues */
.app-main { max-width: 1340px; margin-inline: auto; padding: clamp(1rem, 0.7rem + 1.4vw, 1.8rem) var(--gutter) 4rem; }
.view { display: none; }
.view.is-active { display: block; animation: view-in 0.4s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* bandeau KPI compact (pas de gros chiffres dégradés) */
.kpi-strip { max-width: 1340px; margin: 1rem auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.kpi { display: inline-flex; align-items: baseline; gap: 0.5ch; font-size: var(--fs-sm); }
.kpi__label { color: var(--muted); }
.kpi__value { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi__value .accent { color: var(--primary-deep); }
.kpi-sep { width: 1px; height: 1.1rem; background: var(--line-strong); }
@media (max-width: 600px) { .kpi-sep { display: none; } .kpi-strip { gap: 0.3rem 1.1rem; } }

/* en-tête de vue + navigation */
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.day-nav { display: flex; align-items: center; gap: 0.5rem; }
.day-nav h2 { font-size: var(--fs-h4); min-width: 13ch; text-align: center; }
.icon-btn--sm { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.icon-btn--sm:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--sm { padding: 0.5em 1em; font-size: var(--fs-sm); }

/* légende du calendrier */
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.9rem; font-size: var(--fs-xs); color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 0.4ch; }
.lg::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.lg--open::before { background: color-mix(in oklch, var(--primary) 45%, var(--paper)); }
.lg--tight::before { background: color-mix(in oklch, var(--accent) 48%, var(--paper)); }
.lg--full::before { background: color-mix(in oklch, var(--danger) 45%, var(--paper)); }

/* Vue Semaine — liste par jour (affichée à la place de la grille sous 860px) */
.cal-list { display: none; }
.cal-day { margin-bottom: 1.5rem; }
.cal-day:last-child { margin-bottom: 0; }
.cal-day__head { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.4rem 0.2rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.cal-day__name { font-weight: 700; }
.cal-day__date { font-size: var(--fs-sm); color: var(--muted); }
.cal-day.is-today .cal-day__name { color: var(--primary-deep); }
.cal-day.is-today .cal-day__head { border-bottom-color: color-mix(in oklch, var(--primary) 45%, var(--line)); }
.cal-day__empty { font-size: var(--fs-sm); color: var(--muted); padding: 0.2rem 0.2rem 0.4rem; }
.cal-row { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.7rem; align-items: center; width: 100%; text-align: left; padding: 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.cal-row + .cal-row { margin-top: 0.4rem; }
.cal-row:hover { border-color: color-mix(in oklch, var(--primary) 35%, var(--line)); background: color-mix(in oklch, var(--primary) 5%, var(--paper)); }
.cal-row__time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.cal-row__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cal-row__title { font-weight: 600; }
.cal-row__sub { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-row.is-past { opacity: 0.6; }
.day-rows { margin-top: 0.2rem; }
/* Cours du jour dépliables en place (même UI que le bloc « en cours »), sans modal */
.day-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; transition: border-color var(--t-fast); }
.day-item + .day-item { margin-top: 0.4rem; }
.day-item:hover, .day-item.is-open { border-color: var(--line-strong); }
.day-item .cal-row { border: 0; border-radius: 0; background: transparent; }
.cal-row--toggle { grid-template-columns: 3.4rem 1fr auto; }
.cal-row__end { display: inline-flex; align-items: center; gap: 0.6rem; }
.cal-row__chev { color: var(--muted); flex: none; transition: transform 0.3s var(--ease-out); }
.day-item.is-open .cal-row__chev { transform: rotate(180deg); }
.day-item__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.76, 0, 0.24, 1); }
.day-item.is-open .day-item__detail { grid-template-rows: 1fr; }
.day-item__inner { overflow: hidden; min-height: 0; }
.day-item__pad { padding: 0.1rem 0.7rem 0.9rem; }
.day-item__pad .next-class__foot { margin-top: 0.5rem; }
.day-item__pad .fill-bar { flex: 1 1 160px; }
.day-detail__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

@media (max-width: 860px) {
  .cal { display: none; }
  .cal-list { display: block; }
  .cal-legend { display: none; }
}

/* calendrier semaine */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal__grid { display: grid; grid-template-columns: 4rem repeat(6, 1fr); }
@media (max-width: 900px) { .cal { overflow-x: auto; } .cal__grid { min-width: 760px; } }
.cal__corner { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cal__day-head { padding: 0.7rem 0.5rem; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cal__day-head .d-name { font-weight: 700; font-size: var(--fs-sm); }
.cal__day-head .d-date { font-size: var(--fs-xs); color: var(--muted); }
.cal__day-head.is-today { background: color-mix(in oklch, var(--primary) 12%, var(--paper)); }
.cal__day-head.is-today .d-name { color: var(--primary-deep); }
.cal__col { position: relative; border-right: 1px solid var(--line); min-height: 100%; }
.cal__col.is-today { background: color-mix(in oklch, var(--primary) 6%, transparent); }
.cal__time { font-size: var(--fs-xs); color: var(--muted); text-align: right; padding: 0.2rem 0.5rem 0 0; border-right: 1px solid var(--line); height: var(--hour-h, 56px); position: relative; }
.cal__time span { position: relative; top: -0.5em; }
.cal__timecol { position: relative; }
.cal__hour-line { height: var(--hour-h, 56px); border-bottom: 1px solid var(--line); }
.cal__hour-line:last-child { border-bottom: 0; }
.cal-ev {
  position: absolute; left: 3px; right: 3px;
  border-radius: 7px; padding: 0.32rem 0.45rem; overflow: hidden; cursor: pointer;
  background: color-mix(in oklch, var(--primary) 15%, var(--paper));
  border: 1px solid color-mix(in oklch, var(--primary) 40%, var(--paper));
  border-left: 3px solid var(--primary);
  color: var(--ink); font-size: 0.72rem; line-height: 1.15;
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.cal-ev:hover { transform: scale(1.015); box-shadow: var(--shadow-1); z-index: 5; }
.cal-ev.is-tight { background: color-mix(in oklch, var(--accent) 16%, var(--paper)); border-color: color-mix(in oklch, var(--accent) 42%, var(--paper)); border-left-color: var(--accent); }
.cal-ev.is-full { background: color-mix(in oklch, var(--danger) 13%, var(--paper)); border-color: color-mix(in oklch, var(--danger) 38%, var(--paper)); border-left-color: var(--danger); }
.cal-ev__t { font-weight: 700; }
.cal-ev__title { font-weight: 600; }
.cal-ev__fill { font-variant-numeric: tabular-nums; opacity: 0.8; }
/* note : border-left ici est l'accent fonctionnel d'un évènement d'agenda
   (convention calendrier), pas une bande décorative sur une carte de contenu. */

/* Modal générique (dialog) */
.modal { width: min(560px, 94vw); margin: auto; border: 0; border-radius: var(--r-xl); padding: 0; box-shadow: var(--shadow-2); color: var(--ink); background: var(--paper); }
.modal::backdrop { background: oklch(0.12 0.01 188 / 0.45); }
.modal[open] { animation: modal-in 0.32s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
.modal__close { position: absolute; top: 0.8rem; right: 0.8rem; width: 38px; height: 38px; }
.modal__head { padding: 1.4rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); padding-right: 3.5rem; }
.modal__head h3 { font-size: var(--fs-h4); }
.modal__head .meta { color: var(--muted); font-size: var(--fs-sm); margin-top: 0.25rem; }
.modal__body { padding: 1.2rem 1.6rem; max-height: 62vh; overflow-y: auto; }
.modal__foot { padding: 1rem 1.6rem 1.4rem; border-top: 1px solid var(--line); display: flex; gap: 0.7rem; }
.modal__foot--split { justify-content: space-between; border-top: 0; padding-top: 0.6rem; }

/* Détail réservation (infos perso) */
.person-id { display: flex; align-items: center; gap: 0.85rem; }
.person-id .att__av { width: 2.7rem; height: 2.7rem; font-size: var(--fs-sm); flex: none; }
.person-id__txt { min-width: 0; }
.person-info { display: grid; gap: 0.75rem; }
.person-row { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; align-items: start; font-size: var(--fs-sm); color: var(--ink-soft); }
.person-row svg { width: 1.05rem; height: 1.05rem; color: var(--muted); margin-top: 0.18rem; }
.person-row a { color: var(--primary-deep); font-weight: 600; }
.person-row a:hover { text-decoration: underline; }
.person-present { color: var(--primary-deep); }
.person-cancel:hover { border-color: var(--danger); color: var(--danger); }

/* note de cours */
.note-edit { margin-bottom: 1.1rem; }
.note-edit label { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; }
.note-edit label svg { width: 1rem; height: 1rem; }
.note-edit textarea { width: 100%; min-height: 2.7rem; padding: 0.6em 0.8em; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface); resize: vertical; font-size: var(--fs-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.note-edit textarea:focus { outline: none; border-style: solid; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 20%, transparent); }

/* roster (inscrits + check-in) */
.roster-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.roster-head h4 { font-size: var(--fs-sm); color: var(--muted); font-weight: 700; }
.roster { display: grid; gap: 0.1rem; }
.att { display: grid; grid-template-columns: 2.2rem 1fr auto auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--t-fast); }
.att:last-child { border-bottom: 0; }
/* survol jade discret : toute la ligne ouvre la fiche détail de l'élève */
.att:hover { background: color-mix(in oklch, var(--primary) 6%, var(--paper)); }
.att__av { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: color-mix(in oklch, var(--primary) 16%, var(--paper)); color: var(--primary-deep); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); }
/* avatar « présent » : une seule source, réutilisée par le roster et la fiche perso */
.att.is-present .att__av, .att__av.is-present-av { background: var(--primary); color: var(--on-primary); }
.att__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.att__name { font-weight: 600; }
.att__meta { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-mini { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.12em 0.5em; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); margin-left: 0.35rem; }
.tag-mini--trial { background: color-mix(in oklch, var(--accent) 18%, var(--paper)); color: var(--accent-deep); }
.checkin { display: inline-flex; align-items: center; gap: 0.35ch; padding: 0.34em 0.75em; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); cursor: pointer; transition: all var(--t-fast); white-space: nowrap; }
.checkin:hover { border-color: var(--primary); color: var(--primary-deep); }
.checkin.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.checkin svg { width: 13px; height: 13px; }
.att__cancel { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all var(--t-fast); }
.att__cancel:hover { border-color: var(--danger); color: var(--danger); }
.att__cancel svg { width: 15px; height: 15px; }
@media (max-width: 540px) {
  /* « Pointer » sur la même ligne, juste à gauche de la croix (comme sur desktop) */
  .att { grid-template-columns: 2.2rem 1fr auto auto; grid-template-areas: "av who checkin cancel"; column-gap: 0.55rem; align-items: center; }
  .att__av { grid-area: av; }
  .att__who { grid-area: who; }
  .checkin { grid-area: checkin; }
  .att__cancel { grid-area: cancel; }
}

.empty-note { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty-note svg { width: 2rem; height: 2rem; color: var(--line-strong); margin-bottom: 0.6rem; }

/* VUE AUJOURD'HUI */
/* Bloc « en cours » : surface claire + liseré jade (plus de slab sombre) ; les composants internes reprennent leurs styles clairs par défaut */
.next-class { position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); margin-bottom: 1.6rem; box-shadow: var(--shadow-1); }
.next-class::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--primary); }
.next-class__roster { margin-top: 1.1rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.next-class__top { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); color: var(--primary-deep); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.7rem; }
.next-class__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.05; color: var(--ink); }
.next-class__meta { color: var(--muted); margin-top: 0.4rem; }
.next-class__foot { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin-top: 1.1rem; }
.next-class__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.next-class .fill-bar { flex: 1 1 160px; }
/* mobile : le bloc « en cours » déborde le gutter de .app-main pour occuper toute la largeur */
@media (max-width: 640px) {
  .next-class { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
}

.fill-bar { height: 7px; border-radius: var(--r-pill); background: color-mix(in oklch, var(--ink) 10%, var(--paper)); overflow: hidden; min-width: 80px; }
.fill-bar__in { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 0.7s cubic-bezier(0.76, 0, 0.24, 1); }

.day-section-title { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 1.8rem 0 0.8rem; }
.class-note-tag { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--accent-deep); background: color-mix(in oklch, var(--accent) 10%, var(--paper)); padding: 0.55rem 0.75rem; border-radius: var(--r-sm); margin: 0.9rem 0; }
.class-note-tag svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; }

/* VUE RÉSERVATIONS */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.4rem; }
.search { position: relative; flex: 1 1 220px; }
.search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 0.62em 0.9em 0.62em 2.5rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 18%, transparent); }
.select { padding: 0.6em 2em 0.6em 0.9em; border: 1px solid var(--line); border-radius: var(--r-pill); background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8581' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; -webkit-appearance: none; appearance: none; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.select:focus { outline: none; border-color: var(--primary); }
.select--block { width: 100%; }
.list-count { font-size: var(--fs-sm); color: var(--muted); margin-left: auto; }

.resv-group { margin-bottom: 1.4rem; }
.resv-group__date { font-weight: 700; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0.5rem; }
.resv-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: center; padding: 0.7rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.resv-row:hover { border-color: color-mix(in oklch, var(--primary) 35%, var(--line)); background: color-mix(in oklch, var(--primary) 5%, var(--paper)); }
.resv-row + .resv-row { margin-top: 0.4rem; }
.resv-row__time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.resv-row__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.resv-row__name { font-weight: 600; }
.resv-row__sub { font-size: var(--fs-sm); color: var(--muted); }
/* présence + icône détail regroupées à droite (toujours en dernière colonne) */
.resv-row__end { display: inline-flex; align-items: center; gap: 0.55rem; }
.resv-row__present { font-size: var(--fs-xs); font-weight: 700; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 0.3ch; white-space: nowrap; }
.resv-row__present svg { width: 13px; height: 13px; }
/* icône « détail » (ouvre la fiche de l'élève) : info discret, jade au survol */
.resv-row__detail { width: 19px; height: 19px; color: var(--muted); flex: none; transition: color var(--t-fast); }
.resv-row:hover .resv-row__detail { color: var(--primary-deep); }
@media (max-width: 560px) {
  /* unifié avec les lignes d'Aujourd'hui (.cal-row) : carte compacte sur une ligne */
  .resv-row { grid-template-columns: 3.4rem 1fr auto; column-gap: 0.7rem; padding: 0.7rem; }
}

/* lignes de cases à cocher (modal d'ajout) */
.check-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.3rem; }
.check--sm { padding: 0.4rem 0; border: 0; gap: 0.5rem; font-size: var(--fs-sm); align-items: center; }
.check--sm input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }

/* ===================================================================
   Espace gérant — responsive / mobile
   =================================================================== */
@media (max-width: 760px) {
  /* app-bar : les onglets de vue prennent leur propre ligne, pleine largeur */
  .app-bar { flex-wrap: wrap; gap: 0.55rem 0.8rem; padding-block: 0.55rem; }
  /* la marque prend la place restante (flex-basis 0 = elle ne « réserve » pas sa
     largeur de contenu, sinon flex-wrap renverrait les actions en 2e ligne) et
     peut faire passer le badge sous le nom en dernier recours ; les actions
     gardent leur taille et restent TOUJOURS sur la 1re ligne */
  .app-bar__brand { flex: 1 1 0; min-width: 0; }
  .app-bar__actions { flex: 0 0 auto; margin-left: auto; }
  .view-switch { order: 3; flex-basis: 100%; margin-inline: 0; }
  .view-tab { flex: 1; text-align: center; }
  .kpi-strip { margin-top: 0.7rem; }
}
@media (max-width: 460px) {
  .app-bar__actions .btn .lbl { display: none; } /* « Ajouter » en icône seule */
  /* boutons d'action réduits proportionnellement pour tenir sur une seule ligne
     avec la marque + le badge (iPhone) */
  .app-bar__actions { gap: 0.4rem; }
  .app-bar__actions .btn { padding: 0.46em 0.6em; }
  .app-bar__actions .btn svg { width: 14px; height: 14px; }
  .app-bar__actions .icon-btn { width: 36px; height: 36px; }
  .app-bar__tag { font-size: 0.62rem; padding: 0.22em 0.5em; }
}
@media (max-width: 560px) {
  /* en-tête de vue : pas de débordement du libellé de date */
  .day-nav { gap: 0.3rem; }
  .day-nav h2 { min-width: 0; font-size: var(--fs-body); }
  .view-head { gap: 0.6rem; }
  /* toolbar liste : recherche pleine largeur, filtres côte à côte */
  .search { flex-basis: 100%; }
  .list-toolbar .select { flex: 1; }
  .list-count { flex-basis: 100%; margin-left: 0; }
  /* cibles tactiles plus généreuses */
  .att__cancel { width: 40px; height: 40px; }
  .checkin { padding: 0.5em 0.95em; }
  .icon-btn--sm { width: 42px; height: 42px; }
  /* le « reste de la journée » ouvre la feuille du bas : plus de chevron de
     dépliage (la pastille reste seule, alignée à droite) */
  .cal-row--toggle .cal-row__chev { display: none; }
  /* modales en feuille du bas, plus accessibles au pouce */
  .modal { width: 100%; max-width: 100%; margin: auto auto 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal[open] { animation: sheet-in 0.34s var(--ease-out); }
  .modal__body { max-height: 64vh; }
  .modal__foot--split .btn { flex: 1; justify-content: center; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .modal[open], .view.is-active, .menu__list { animation: none; }
  .fill-bar__in, .day-item__detail, .cal-row__chev, .view-switch__pill { transition: none; }
}

/* ===================================================================
   Toast
   =================================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.toast { background: var(--ink-deep); color: var(--on-dark); padding: 0.8rem 1.2rem; border-radius: var(--r-pill); box-shadow: var(--shadow-2); font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 0.6rem; animation: toast-in var(--t) var(--ease-out); }
.toast svg { width: 1.2rem; height: 1.2rem; color: var(--primary-bright); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ===================================================================
   Motion — reveals, chorégraphie, parallax
   Les révélations rehaussent un défaut DÉJÀ visible : les états cachés
   vivent sous .js-anim, ajouté par le JS uniquement quand le mouvement
   est permis. Sans JS / reduced-motion / rendu headless = tout visible,
   rien n'est conditionné à une transition.
   =================================================================== */
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); will-change: opacity, transform; }
.js-anim [data-reveal="left"] { transform: translateX(-34px); }
.js-anim [data-reveal="right"] { transform: translateX(34px); }
.js-anim [data-reveal="scale"] { transform: scale(0.93); }
.js-anim [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 102% 0); transition: clip-path 0.9s var(--ease-expo); will-change: clip-path; }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal-delay="2"] { transition-delay: 0.14s; }
[data-reveal-delay="3"] { transition-delay: 0.21s; }
[data-reveal-delay="4"] { transition-delay: 0.28s; }
[data-reveal-delay="5"] { transition-delay: 0.35s; }

/* Hero : entrée en cascade — titre, puis sous-titre, CTA et indice de scroll.
   Même mouvement pour tous (fondu + montée + zoom + flou), joué à l'apparition via
   @keyframes (fiable, indépendant du JS et du timing de chargement). Multi-canal pour
   rester visible même si le flou n'est pas accéléré matériellement. */
.hero-title { transform-origin: left center; }
.hero-title .ht-line { display: block; }

/* Mouvement permis : mise au point complète, cascade rapide */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero__sub, .hero__cta {
    animation: hero-focus-in 0.85s both var(--ease-out);
    will-change: opacity, filter, transform;
  }
  .hero-title   { animation-delay: 0.12s; }
  .hero__sub    { animation-delay: 0.24s; }
  .hero__cta    { animation-delay: 0.34s; }
  .hero__scroll {
    animation: hero-scroll-in 0.85s 0.46s both var(--ease-out);
    will-change: opacity, transform;
  }
}
@keyframes hero-focus-in {
  0%   { opacity: 0; filter: blur(22px); transform: translateY(28px) scale(1.10); }
  60%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0)    scale(1); }
}
/* l'indice « Découvrir » revient à son opacité de repos (0.7), pas 1 */
@keyframes hero-scroll-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0.7; transform: none; }
}

/* reduce-motion : fondu d'opacité seul (pas de mouvement), cascade rapide */
@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero__sub, .hero__cta { animation: hero-fade-in 0.6s both var(--ease-out); }
  .hero__sub { animation-delay: 0.1s; }
  .hero__cta { animation-delay: 0.18s; }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero : léger Ken Burns + support parallax */
.hero__media { will-change: transform; }
.js-anim .hero__media img { animation: kenburns 22s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.03); } }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; z-index: calc(var(--z-header) + 1); will-change: transform; pointer-events: none; }

/* Marquee : fondu des bords */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }

/* Chiffres animés */
[data-countup] { font-variant-numeric: tabular-nums; }

/* Planning : échelonnement des créneaux (déclenché par JS) */
.slot.slot-in { animation: slot-rise 0.5s var(--ease-out) both; }
@keyframes slot-rise { from { opacity: 0; transform: translateY(14px); } }

/* Calendrier gérant : apparition douce des cours */
.cal-anim .cal-ev { animation: ev-in 0.45s var(--ease-out) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(7px) scale(0.97); } }

/* Confirmation : récap qui se révèle ligne par ligne */
.confirm .recap-line { animation: fade-up 0.6s var(--ease-out) both; }
.confirm .recap-line:nth-child(2) { animation-delay: 0.05s; }
.confirm .recap-line:nth-child(3) { animation-delay: 0.1s; }
.confirm .recap-line:nth-child(4) { animation-delay: 0.15s; }
.confirm .recap-line:nth-child(5) { animation-delay: 0.2s; }
.confirm .recap-line:nth-child(6) { animation-delay: 0.25s; }
.confirm .recap-line:nth-child(7) { animation-delay: 0.3s; }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } }

@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none; }
  .js-anim .hero__sub, .js-anim .hero__cta { opacity: 1 !important; transform: none !important; transition: none; }
  .js-anim .hero__scroll { opacity: 0.7 !important; transition: none; }
  .js-anim .hero__media img { animation: none; }
  .slot.slot-in, .cal-anim .cal-ev, .confirm .recap-line { animation: none; }
  .scroll-progress { display: none; }
  .resv-step, .confirm__check { animation: none; }
  .btn, .disc-card img, .teacher__photo img, .price, .cal-ev { transition: none; }
  .price__list { transition: none; }
  *::after { transition: none; }
}

/* ===================================================================
   Utilitaires
   =================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 500; background: var(--ink); color: var(--paper); padding: 0.6em 1em; border-radius: var(--r-sm); transition: top var(--t-fast); }
.skip-link:focus { top: 1rem; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flow > * + * { margin-top: 1.1rem; }
.divider-soft { border: 0; border-top: 1px solid var(--line); margin-block: var(--section-y); }
.nowrap { white-space: nowrap; }
