/* ==========================================================================
   LE SURPLOMB - salle de bloc, Nantes Chantenay
   --------------------------------------------------------------------------
   Aesthetique : "sportif-mineral". Ce n'est PAS un design system officiel,
   c'est du CSS natif (Grid + custom properties). Aucune dependance npm.

   Verrous de coherence appliques dans toute la page :
   - Un seul accent : --accent (orange brique). Aucune autre couleur d'accent.
   - Un seul rayon : 0px partout, boutons compris (systeme "tout angle vif").
   - Un seul theme a la fois : clair OU sombre, jamais une section inversee.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Palette claire (par defaut) */
  --bg: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #e7e7e2;
  --ink: #14161a;
  --ink-2: #3d434b;
  --muted: #676e78;
  --line: #d7d7d1;

  --accent: #e4572e;        /* aplats, gros titres, fonds de bouton */
  --accent-strong: #b33a16; /* petit texte accentue : 5.3:1 sur --bg */
  --on-accent: #14161a;     /* texte sur aplat accent : 4.9:1 */
  --accent-hover: #9d310f;  /* survol : blanc dessus = 7.3:1 */
  --on-accent-hover: #ffffff;

  /* Bloc "mis en avant" (tarif principal). Jamais une inversion de theme :
     en clair c'est un aplat encre, en sombre une surface haute + filet accent. */
  --feature-bg: #14161a;
  --feature-ink: #f2f2f0;
  --feature-border: #14161a;
  --feature-muted: rgba(242, 242, 240, .72);

  /* Bandeau de reservation : la carte doit rester PLUS claire que la bande
     en clair, et plus claire aussi en sombre (elevation coherente). */
  --band: #e7e7e2;
  --band-card: #ffffff;

  --shadow: 0 22px 60px rgba(20, 22, 26, .10);
  --shadow-sm: 0 6px 18px rgba(20, 22, 26, .07);

  /* Typographie */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;

  /* Rythme */
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 132px);
  --radius: 0px;
  --nav-h: 68px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: .5s var(--ease);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101215;
    --surface: #171a1f;
    --surface-2: #1f242a;
    --ink: #f2f3f4;
    --ink-2: #c6cbd2;
    --muted: #98a0aa;
    --line: #2a3037;

    --accent: #f2683b;
    --accent-strong: #f2683b; /* 6.1:1 sur --bg */
    --on-accent: #14161a;     /* 6.8:1 sur l'accent */
    --accent-hover: #ff8a5c;  /* survol : encre dessus = 7.9:1 */
    --on-accent-hover: #14161a;

    --feature-bg: #1f242a;
    --feature-ink: #f2f3f4;
    --feature-border: #f2683b;
    --feature-muted: rgba(242, 243, 244, .68);

    --band: #171a1f;
    --band-card: #252b32;

    --shadow: 0 22px 60px rgba(0, 0, 0, .5);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #101215;
  --surface: #171a1f;
  --surface-2: #1f242a;
  --ink: #f2f3f4;
  --ink-2: #c6cbd2;
  --muted: #98a0aa;
  --line: #2a3037;

  --accent: #f2683b;
  --accent-strong: #f2683b;
  --on-accent: #14161a;
  --accent-hover: #ff8a5c;
  --on-accent-hover: #14161a;

  --feature-bg: #1f242a;
  --feature-ink: #f2f3f4;
  --feature-border: #f2683b;
  --feature-muted: rgba(242, 243, 244, .68);

  --band: #171a1f;
  --band-card: #252b32;

  --shadow: 0 22px 60px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
}

/* ---------- 2. BASE ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }   /* sinon les marges UA (40px) retrecissent les colonnes */
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- 3. TYPOGRAPHIE ---------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.h-display {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.035em;
}

.h-section {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  text-transform: uppercase;
  line-height: .98;
  max-width: 18ch;
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 52ch;
}

.body-max { max-width: 60ch; }

.section-intro {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
}

/* Un seul eyebrow sur toute la page (section Tarifs). */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

/* ---------- 4. BOUTONS --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;          /* aucun libelle de CTA ne passe a la ligne */
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-sm { padding: 11px 18px; font-size: 14px; }

.btn .ph { font-size: 17px; }

/* ---------- 5. NAVIGATION ------------------------------------------------ */

.top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav { background: var(--bg); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); background: var(--surface); }

.nav-burger { display: none; }

/* Panneau mobile */
.mobile-panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 39;
  background: var(--bg);
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
/* Le CTA du panneau ne doit PAS heriter du style des liens du menu
   (Archivo 1.9rem majuscules) : il deborderait de son aplat. */
.mobile-panel .btn {
  margin-top: 28px;
  padding: 17px 24px;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--on-accent);
}
body.is-locked { overflow: hidden; }

/* ---------- 6. HERO (split asymetrique) ---------------------------------- */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-items: center;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Le titre doit tenir sur 2 lignes exactement : la coupe tombe apres "SANS". */
.hero h1 { max-width: 14ch; }
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 26px;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  width: 100%;          /* sans cette ligne, aspect-ratio + max-height retrecit la colonne */
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 620px);
  overflow: hidden;
  background: var(--surface-2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 7. BANDEAU CHIFFRES ------------------------------------------ */

.facts {
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 3.5vw, 44px);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}
.fact-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.fact-n span { color: var(--accent); }
.fact-t {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 26ch;
}

/* ---------- 8. LES ESPACES (bento : 5 contenus = 5 cellules) ------------- */

.bento {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(236px, auto);
  gap: 14px;
}

.cell {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.cell h3 { color: var(--ink); }
.cell p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Cellules photo : le texte passe en blanc sur un voile sombre,
   ce n'est pas une inversion de theme, c'est une image. */
.cell-photo { border: 0; padding: 0; }
.cell-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.cell-photo:hover img { transform: scale(1.04); }
/* Le voile part assez bas pour que la photo reste lisible sur la moitie haute
   de la cellule. Sans ce padding-top, le degrade recouvre toute la vignette. */
.cell-photo .cell-body {
  position: relative;
  z-index: 2;
  padding: 76px 26px 26px;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 11, 13, .9) 30%, rgba(10, 11, 13, .55) 62%, rgba(10, 11, 13, 0));
}
.cell-photo .cell-body h3 { color: #fff; }
.cell-photo .cell-body p { color: rgba(255, 255, 255, .82); }

.cell-accent {
  background: var(--accent);
  border-color: var(--accent);
}
.cell-accent h3, .cell-accent p { color: var(--on-accent); }
.cell-accent p { opacity: .78; }

.cell-a { grid-column: span 4; grid-row: span 2; }
.cell-b { grid-column: span 2; }
.cell-c { grid-column: span 2; }
.cell-d { grid-column: span 3; }
.cell-e { grid-column: span 3; }

/* Squelette de chargement, calque sur la forme finale */
.ph-img { position: relative; background: var(--surface-2); }
.ph-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ink) 7%, transparent) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.ph-img.is-loaded::after { display: none; }
@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -60% 0; }
}

/* ---------- 9. OUVERTURE (image + carte en debord) ----------------------- */

.setting { position: relative; }
.setting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 0;
}
.setting-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.setting-media img { width: 100%; height: 100%; object-fit: cover; }

.setting-card {
  /* La carte chevauche l'image : sans position:relative, l'<img> (contenu
     remplace) se peint AU-DESSUS du fond de la carte et rogne le texte. */
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 48px);
  margin-left: clamp(-96px, -6vw, -40px);
  box-shadow: var(--shadow);
}
.setting-card h2 { margin-bottom: 18px; }

.setting-list { margin-top: 26px; display: grid; gap: 18px; }
.setting-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
}
.setting-list .ph {
  color: var(--accent-strong);
  font-size: 21px;
  line-height: 1.35;
}
.setting-list b { display: block; color: var(--ink); font-weight: 600; }
.setting-list span { color: var(--muted); }

/* ---------- 10. TARIFS (split asymetrique, pas 3 cartes egales) ---------- */

.plans {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plan-side { display: grid; gap: 14px; }

.plan {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.plan-main {
  background: var(--feature-bg);
  border-color: var(--feature-border);
}
.plan-main h3, .plan-main .plan-price { color: var(--feature-ink); }
.plan-main .plan-desc,
.plan-main .plan-feats li { color: var(--feature-muted); }
.plan-main .plan-feats .ph { color: var(--accent); }

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
  margin-top: 18px;
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 8px;
}
.plan-main .plan-price small { color: var(--feature-muted); }

.plan-desc { margin-top: 14px; font-size: 15px; color: var(--muted); }

.plan-feats { margin-top: 24px; display: grid; gap: 11px; }
.plan-feats li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
}
.plan-feats .ph { color: var(--accent-strong); font-size: 17px; line-height: 1.5; }

.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-main .btn { margin-top: 32px; }
.plan-side .plan .btn { margin-top: 26px; }

.plan-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 11. AVIS (deux colonnes de citations, colonne droite decalee) - */

.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.voice-col { display: grid; gap: clamp(34px, 4vw, 60px); align-content: start; }
.voice-col-offset { margin-top: clamp(0px, 7vw, 96px); }
.voice { border-top: 2px solid var(--accent); padding-top: 26px; }
.voice blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
}
.voice figcaption {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--muted);
}
.voice figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- 12. HORAIRES (deux blocs groupes, peu de filets) ------------- */

.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
}
.hours-block h3 { margin-bottom: 22px; }
.hours-block + .hours-block { }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-block: 13px;
  font-size: 16px;
}
.hours-row dt { color: var(--ink); font-weight: 500; }
.hours-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.hours-group + .hours-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hours-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

.course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  padding-block: 15px;
  align-items: baseline;
}
.course-row + .course-row { border-top: 1px solid var(--line); }
.course-row b { color: var(--ink); font-weight: 600; font-size: 16px; }
.course-row p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.course-when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-strong);
  white-space: nowrap;
}

/* ---------- 12b. ACTUALITE (carrousel a accroche horizontale) ------------ */
/* Piste en grille a flux colonne + scroll-snap. Aucune librairie, aucun
   calcul de position en JavaScript : les fleches appellent scrollIntoView sur
   la bonne vignette et le CSS decide de la douceur du defilement.
   Toutes les vignettes ont exactement la meme structure (image 4:3, date,
   titre sur deux lignes reservees, texte sur trois lignes) : les quatre
   bandes sont donc alignees d'une vignette a l'autre. */

.carousel { --slide-gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(36px, 4vw, 56px); }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--slide-gap)) / 3);
  gap: var(--slide-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }

.post { scroll-snap-align: start; min-width: 0; }

.post-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 22px;
}
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-media img { transform: scale(1.04); }

.post-date {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-strong);
}
.post h3 {
  margin-bottom: 10px;
  min-height: 2.3em;   /* deux lignes reservees : les textes restent alignes */
}
.post p {
  font-size: 15px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
}
.carousel-nav .icon-btn:disabled {
  opacity: .35;
  cursor: default;
  border-color: var(--line);
}
.carousel-nav .icon-btn:disabled:hover { background: none; border-color: var(--line); }

/* ---------- 13. CTA + FORMULAIRE ---------------------------------------- */

.signup { background: var(--band); }
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.signup-aside .lead { margin-top: 20px; }
.signup-meta {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.signup-meta li { display: flex; gap: 11px; align-items: center; }
.signup-meta .ph { color: var(--accent-strong); font-size: 19px; }

.form {
  background: var(--band-card);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}
.field { display: grid; gap: 7px; margin-bottom: 20px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .005em;
}
.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field .hint { font-size: 13.5px; color: var(--muted); }
.field .err {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-strong);
  display: none;
}
.field.has-error input,
.field.has-error select { border-color: var(--accent-strong); }
.field.has-error .err { display: block; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}
.consent input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); }
.consent label { font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.consent.has-error label { color: var(--accent-strong); }

.form .btn-primary { width: 100%; }
.form.is-sending .btn-primary { opacity: .72; pointer-events: none; }
.form.is-sending .btn-label::after {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin-left: 10px;
  vertical-align: -1px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-done {
  display: none;
  background: var(--band-card);
  border: 1px solid var(--accent);
  padding: clamp(28px, 3vw, 44px);
}
.form-done .ph { font-size: 34px; color: var(--accent-strong); }
.form-done h3 { margin: 14px 0 10px; }
.form-done p { color: var(--muted); font-size: 15.5px; }
.is-sent .form { display: none; }
.is-sent .form-done { display: block; }

.form-alert {
  display: none;
  margin-bottom: 20px;
  padding: 13px 16px;
  border-left: 3px solid var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 14.5px;
  color: var(--ink);
}
.form.has-alert .form-alert { display: block; }

/* ---------- 14. PIED DE PAGE -------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.foot h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot address { font-style: normal; font-size: 15.5px; line-height: 1.75; }
.foot-links { display: grid; gap: 10px; font-size: 15.5px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-bottom a { color: var(--muted); }

/* ---------- 14b. RETOUR EN HAUT ----------------------------------------- */
/* z-index 30 : sous la barre (40) et sous le panneau mobile (39), pour ne
   jamais flotter par-dessus le menu ouvert. */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: max(clamp(16px, 3vw, 32px), env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s, background .25s var(--ease), color .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { text-decoration: none; }
.to-top:hover { background: var(--accent-hover); color: var(--on-accent-hover); }
.to-top:active { transform: translateY(1px); }

/* ---------- 15. MOTION --------------------------------------------------- */

/* Reveal au scroll : hierarchie de lecture, pilote par IntersectionObserver. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Entree du hero au chargement. */
.hero-copy > * {
  animation: rise .9s var(--ease) both;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-media { animation: rise 1s var(--ease) .1s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ph-img::after { display: none; }
}

/* ---------- 16. RESPONSIVE ---------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
  .setting-card { margin-left: -32px; }
  .signup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }

  .hero { min-height: 0; padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: none; }
  .hero-media { aspect-ratio: 5 / 4; max-height: none; }

  .facts-grid { grid-template-columns: 1fr; gap: 24px; }
  .fact-t { max-width: none; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .cell-a { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .cell-b, .cell-c, .cell-d, .cell-e { grid-column: span 1; }

  .setting-grid { grid-template-columns: 1fr; }
  .setting-card { margin-left: 0; margin-top: -48px; margin-inline: clamp(16px, 5vw, 48px) 0; }

  .carousel-track { grid-auto-columns: calc((100% - var(--slide-gap)) / 2); }

  .plans { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; gap: clamp(34px, 4vw, 60px); }
  .voice-col-offset { margin-top: 0; }
  .hours-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  /* Une vignette entiere plus un apercu de la suivante : l'apercu est
     l'indice qu'il y a de quoi faire glisser. */
  .carousel-track { grid-auto-columns: 84%; }
  .post h3 { min-height: 0; }


  /* Sous 620px, le CTA ne tient plus sur la meme ligne que la marque et le
     burger. Il reste accessible dans le panneau et juste sous le titre. */
  .nav-actions .btn { display: none; }
  .brand { font-size: 15.5px; }

  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: span 1; min-height: 240px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .setting-card { margin-inline: 0; margin-top: -32px; }
  .course-row { grid-template-columns: 1fr; }
}
