/* ═══════════════════════════════════════════════════════════
   TC-SITE — template one-page hyper léger
   Personnalisation : tout passe par les variables ci-dessous.
   ═══════════════════════════════════════════════════════════ */

/* ── Polices auto-hébergées (latin, variables) + fallback métrique anti-CLS ── */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "MuseoModerno";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/museomoderno-latin.woff2") format("woff2");
}
/* Arial recalibré aux métriques de chaque police : le texte s'affiche
   immédiatement à la bonne taille, le swap se fait sans décalage */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  ascent-override: 103.31%;
  descent-override: 29.07%;
  line-gap-override: 0%;
  size-adjust: 103.19%;
}
@font-face {
  font-family: "MuseoModerno Fallback";
  src: local("Arial");
  ascent-override: 104.60%;
  descent-override: 40.65%;
  line-gap-override: 0%;
  size-adjust: 109.47%;
}

:root {
  /* Palette Damogym — orange énergie / sable / encre nuit */
  --accent:       #ee5a1f;
  --accent-dark:  #cf4712;
  --accent-soft:  #ee5a1f1f;
  --cream:        #ead8c1;
  --cream-soft:   #f7efe4;
  --bg:           #ffffff;
  --surface:      #ffffff;
  --ink:          #101527;
  --ink-soft:     #2a3042;
  --muted:        #6b7280;
  --line:         #e9e1d6;
  --line-cool:    #e5e7eb;
  --sand:         #d8b48a;
  --ink-lift:     #1e2439;

  /* Typographie */
  --font-body:    "Manrope", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "MuseoModerno", "MuseoModerno Fallback", var(--font-body);

  /* Rythme */
  --radius:       10px;
  --radius-sm:    8px;
  --shadow:       none;
  --shadow-lift:  0 6px 18px rgba(0, 0, 35, .07);
  --ease-smooth:  cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  interpolate-size: allow-keywords; /* accordéons FAQ fluides (navigateurs récents) */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Motif de fond : hachures diagonales très fines (tuile SVG 7px, ~2 % d'encre).
     Donne du grain aux sections blanches sans jamais concurrencer le texte ;
     les sections crème/bande le recouvrent avec leur lavis dithéré. */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M-1 6 L8 -3 M-1 13 L8 4' stroke='%23101527' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: 4px;
}

/* ── Système d'icônes (sprite <symbol>/<use>) ─────────────── */
.icon {
  --ic2: var(--accent); /* couleur du détail bichrome */
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 15px; height: 15px; stroke-width: 2.5; --ic2: currentColor; }

.container { width: min(920px, 100% - 3rem); margin-inline: auto; }
.container-wide { width: min(1180px, 100% - 3rem); }
.container-narrow { max-width: 720px; }

/* ── Titres ───────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.35; color: var(--ink); margin-bottom: .5rem; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
  margin-top: 1.3rem;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: 600 .8125rem/1.3 var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth), background-color .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-cool);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-lift); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .75rem; }
.btn-block { width: 100%; justify-content: center; }

.btn .arrow { transition: transform .25s var(--ease-smooth); }
.btn:hover .arrow { transform: translateX(5px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* pas de filet bas : le flou seul détache le header du contenu */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, var(--cream) 0 38%, transparent 40%),
    var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:not(.btn) { position: relative; padding-block: .3em; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease-smooth);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
  padding-top: 9.5rem;
  padding-bottom: 3rem;
  min-height: 92vh;
}

/* Visuel hero : image HD découpée dans une forme de marque (masque SVG) */
.hero-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  width: min(100%, 440px);
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 458 555'%3E%3Crect x='0' y='110' width='300' height='445' rx='150' fill='%23fff'/%3E%3Crect x='322' y='0' width='136' height='330' rx='68' fill='%23fff'/%3E%3Ccircle cx='390' cy='470' r='68' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 458 555'%3E%3Crect x='0' y='110' width='300' height='445' rx='150' fill='%23fff'/%3E%3Crect x='322' y='0' width='136' height='330' rx='68' fill='%23fff'/%3E%3Ccircle cx='390' cy='470' r='68' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: floatY 9s ease-in-out infinite;
}
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 35, .06);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.hero-card .dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-card .dot::after {
  /* halo pulsant en transform/opacity uniquement (compositeur GPU) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ringPulse 2.4s ease-out infinite;
}
.hero-card .dot-cream { background: var(--sand); }
@keyframes ringPulse {
  0%        { transform: scale(1); opacity: .4; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.float-1 { top: 2%; left: -4%;  animation: floatY 6s   ease-in-out infinite; z-index: 2; }
.float-2 { bottom: -3%; right: -5%; animation: floatY 7.5s ease-in-out infinite reverse; z-index: 2; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin-top: .5rem;
}
.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}
.hero-stats strong::after { content: "+"; color: var(--accent); }
.hero-stats li:last-child strong::after { content: ""; }
.hero-stats span { font-size: .82rem; line-height: 1.4; display: block; color: var(--ink-soft); }

/* Flèche de scroll rebondissante (bas du hero) */
.scroll-down {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 1.5rem;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--accent);
  animation: bounceDown 1.6s infinite;
}
.scroll-down .icon { rotate: 90deg; width: 22px; height: 22px; --ic2: currentColor; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(-22%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50%      { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

/* ── Sections ─────────────────────────────────────────────── */
/* Rythme resserré : le template d'origine montait à 9,5 rem de chaque côté,
   ce qui creusait des trous entre les sections sur grand écran. */
.section { padding-block: clamp(3.4rem, 6.5vw, 5.6rem); }
.section-band.section { padding-block: 4.2rem 3.4rem; }
#contact.section { padding-block: clamp(3rem, 5vw, 4.4rem) clamp(3.5rem, 6vw, 5.5rem); }
/* deux sections claires qui se suivent : on évite d'additionner les marges */
.section + .section:not(.section-cream):not(.section-band) { padding-top: clamp(2.2rem, 4vw, 3.4rem); }
/* Fonds de section : images dithérées dont le fondu au blanc est intégré
   aux bords — la section fond dans la page sans couture ni bande CSS */
.section-cream {
  background: var(--bg) url("../images/bg-wash.webp") center / 100% 100% no-repeat;
}
.section-band {
  position: relative;
  background: var(--bg) url("../images/bg-band.webp") center / 100% 100% no-repeat;
}

/* Garde anti-débordement : sans min-width 0, un enfant de grille/flex se
   dimensionne sur son min-content (image large, texte insécable) et impose
   cette largeur au document — le viewport mobile s'élargit et tout le
   contenu se retrouve tassé à gauche. */
.grid > *, .gallery > *, .split > *, .steps > *, .info-cards > * { min-width: 0; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cartes : filet fin, petit rayon, pas d'ombre au repos ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dbe0; }

/* ── Atouts : blocs nus centrés, sans carte ───────────────── */
.atout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .75rem;
}
.atout .card-icon { margin-inline: auto; }
.atout h3 { font-size: 1.05rem; font-weight: 700; }
.atout p { font-size: .875rem; font-weight: 500; line-height: 1.55; color: var(--ink-soft); margin-top: .35rem; }

/* Icône nue, sans pastille : posée directement sur la carte */
.card-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--ink);
}
.card-icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.7;
}
.card p { font-size: .9rem; line-height: 1.55; }
.card h3 { font-size: 1.05rem; font-weight: 600; }

/* ── Situations ───────────────────────────────────────────── */
.situation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: .875rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .2s;
}
.situation:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dbe0; }
.situation .card-icon { margin-bottom: .9rem; }
.situation h3 { font-size: 1.05rem; font-weight: 600; }

/* ── Illustrations : tracés qui se dessinent au scroll ────── */
.draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s ease-out .35s;
}
.draw-slow { transition-duration: 1.5s; transition-timing-function: ease-in-out; }
.reveal.visible .draw-path,
.visible .draw-path { stroke-dashoffset: 0; }

.underline-marker { position: relative; display: inline-block; }
.underline-marker svg {
  position: absolute;
  left: 0; bottom: -.08em;
  width: 100%; height: .16em;
  overflow: visible;
}

/* Circuit mobile : tracé à angles arrondis + nœuds + point de données (affiché < 960px) */
.pipe-mobile { display: none; }
.pipe-mobile .trace {
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}
.pipe-mobile .pipe-guide {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}
.pipe-mobile .pipe-stub path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}
.pipe-mobile .pipe-stub circle { fill: var(--accent); }
.pipe-mobile .pipe-stub,
.pipe-mobile .pipe-end {
  opacity: 0;
  transition: opacity .5s ease-out 1.4s;
}
.pipe-mobile .pipe-end {
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pipe-mobile .pipe-node { opacity: 0; transition: opacity .45s ease-out; }
.pipe-mobile .pipe-node .halo { fill: var(--accent-soft); }
.pipe-mobile .pipe-node .in { fill: var(--accent); }
.pipe-mobile .pipe-node text {
  fill: #fff;
  font: 700 14px var(--font-body);
  text-anchor: middle;
  dominant-baseline: central;
}
.pipe-mobile .data-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  transition: opacity .4s ease-out 2s;
}
.pipe-mobile .pipe-node:nth-of-type(1) { transition-delay: .25s; }
.pipe-mobile .pipe-node:nth-of-type(2) { transition-delay: .65s; }
.pipe-mobile .pipe-node:nth-of-type(3) { transition-delay: 1.05s; }
.pipe-mobile .pipe-node:nth-of-type(4) { transition-delay: 1.45s; }
.pipe-mobile.visible .pipe-node,
.pipe-mobile.visible .pipe-stub,
.pipe-mobile.visible .pipe-end,
.pipe-mobile.visible .data-dot { opacity: 1; }

.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  top: -3.4rem; left: 0;
  width: 100%; height: 86px;
  z-index: 0;
  pointer-events: none;
}
/* couleurs pilotées ici (le CSS prime sur les attributs SVG) :
   la ligne suit la palette :root lors d'une duplication */
.steps-line path { stroke: var(--line-cool); }
.steps-line .draw-path { stroke: var(--accent); }

/* ── Processus ────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 4.2rem;
}
.step {
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.step-num {
  position: absolute;
  top: -1rem; left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  scale: 0;
  transition: scale .45s cubic-bezier(.34, 1.56, .64, 1);
}
.step.visible .step-num { scale: 1; }

/* Chorégraphie : chaque étape s'active quand le trait l'atteint
   (tracé 1.5s ease-in-out → passages à ~0.35 / 0.7 / 1.05 / 1.4 s) */
.steps .step:nth-child(1) { transition-delay: .35s; }
.steps .step:nth-child(2) { transition-delay: .7s; }
.steps .step:nth-child(3) { transition-delay: 1.05s; }
.steps .step:nth-child(4) { transition-delay: 1.4s; }
.steps .step:nth-child(1) .step-num { transition-delay: .5s; }
.steps .step:nth-child(2) .step-num { transition-delay: .85s; }
.steps .step:nth-child(3) .step-num { transition-delay: 1.2s; }
.steps .step:nth-child(4) .step-num { transition-delay: 1.55s; }
.step { text-align: center; }
.step h3 { font-size: 1.05rem; font-weight: 600; }
.step p { font-size: .875rem; line-height: 1.55; }

/* ── Offres ───────────────────────────────────────────────── */
.pricing-grid { align-items: stretch; }
.pricing { display: flex; flex-direction: column; position: relative; }
.pricing-featured { border-color: var(--accent); }
.pricing-featured:hover { border-color: var(--accent); }
.badge {
  position: absolute;
  top: -0.85rem; left: 50%;
  translate: -50% 0;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: .35em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing h3 { font-size: 1.05rem; font-weight: 600; }
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: .5rem;
}
.price-note { font-size: .8rem; color: var(--muted); margin-bottom: 1.3rem; }
.features { flex: 1; margin-bottom: 1.6rem; display: grid; gap: .6rem; }
.features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .875rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 14px; height: 14px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Témoignages ──────────────────────────────────────────── */
.quote {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.quote blockquote { font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.quote figcaption strong { display: block; font-size: .9rem; color: var(--ink); }
.quote figcaption span { font-size: .8rem; color: var(--muted); }

/* ── Bande citation : photo pleine largeur + voile encre ──── */
.strip {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  color: #fff;
  background: var(--ink) url("../images/bande.webp") center / cover no-repeat;
}
/* voile dégradé : lisible partout, la photo reste perceptible */
.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(16, 21, 39, .93) 0%, rgba(16, 21, 39, .82) 45%, rgba(16, 21, 39, .62) 100%);
}
.strip-eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.strip-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 1.4rem;
  text-wrap: balance;
}
.strip-sign {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.8rem;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}
.strip-rule {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Panneau divisé : image pleine hauteur + colonne texte ── */
.split {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  /* décrochement volontaire : l'image déborde légèrement vers le haut */
  transform: translateY(-8px);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-copy h2 { margin-bottom: 1.3rem; }
.split-copy p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 46ch;
}
.split-facts {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  margin-top: 2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.split-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.split-facts span {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ── Galerie : mosaïque éditoriale, pas une rangée de vignettes ── */
.gallery {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 215px);
  gap: 1rem;
}
.shot {
  grid-column: span 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-soft);
}
.shot-tall  { grid-column: span 3; grid-row: span 2; }
.shot-third { grid-column: span 2; }
.shot-wide  { grid-column: span 6; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-smooth);
}
.shot:hover img { transform: scale(1.03); }

/* ── Cartes d'informations pratiques (contact) ────────────── */
.info-cards {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.info-card {
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  background: var(--surface);
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dbe0; }
.info-card .card-icon { margin-bottom: .8rem; }
.info-card .card-icon .icon { width: 30px; height: 30px; }
.info-card h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.info-card p { font-size: .95rem; line-height: 1.5; color: var(--ink); margin-top: .5rem; }
.info-card p a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.info-card p a:hover { color: var(--accent); }
.info-card .info-note { font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .55rem; }

/* ── Planning des cours ───────────────────────────────────── */
.planning { margin-top: 2.6rem; }

/* barre de jours : le soulignement glisse d'un onglet à l'autre (translateX) */
.day-tabs {
  position: relative;
  display: flex;
  gap: .2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-ink {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(0);
  transition: transform .35s var(--ease-smooth), width .35s var(--ease-smooth);
  pointer-events: none;
}
.day-tab {
  flex: 1 0 auto;
  appearance: none;
  background: none;
  border: 0;
  padding: .85rem 1.1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s var(--ease-smooth);
}
.day-tab:hover { color: var(--ink-soft); }
.day-tab.is-active { color: var(--ink); }
.day-tab .d-short { display: none; }

.day-panels { position: relative; }
.day-panel[hidden] { display: none; }
.day-panel.is-active { animation: slotsIn .38s var(--ease-smooth) both; }
@keyframes slotsIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.slots { list-style: none; margin: 0; padding: 0; }
.slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.05rem .4rem;
  border-bottom: 1px solid var(--line-cool);
  transition: background-color .2s var(--ease-smooth), padding-left .25s var(--ease-smooth);
}
.slot:last-child { border-bottom: 0; }
.slot:hover { background: var(--surface); padding-left: .9rem; }
.slot-time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  min-width: 4.4rem;
  font-variant-numeric: tabular-nums;
}
.slot-time i { font-style: normal; font-size: .95rem; font-weight: 600; color: var(--muted); }
.slot-body h3 { font-size: 1rem; font-weight: 600; color: var(--ink); }
.slot-body p { font-size: .84rem; color: var(--muted); margin: .15rem 0 0; }
.slot-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 3px;
  white-space: nowrap;
}
.slot-tag.t-doux  { background: #eaf3ec; color: #2e7d43; }
.slot-tag.t-moyen { background: #fdf1dc; color: #8a6216; }
.slot-tag.t-fort  { background: var(--accent-soft); color: var(--accent-dark); }
.planning-foot {
  margin-top: 1.4rem;
  font-size: .8rem;
  color: var(--muted);
}

/* ── Programme personnalisé : formulaire multi-étapes ─────── */
.prog {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.prog-intro h2 { margin-bottom: 1.2rem; }
.prog-intro > p { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); max-width: 44ch; }
.prog-args { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.prog-args li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: .7rem;
}
.prog-args .icon { color: var(--accent); flex: none; margin-top: .15rem; }

.prog-form {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lift);
}
.prog-head { margin-bottom: 1.6rem; }
.prog-bar {
  height: 3px;
  background: var(--line-cool);
  border-radius: 3px;
  overflow: hidden;
}
.prog-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .45s var(--ease-smooth);
}
.prog-count { margin: .7rem 0 0; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.prog-count strong { color: var(--accent); }

.prog-step { border: 0; padding: 0; margin: 0; }
.prog-step[hidden] { display: none; }
.prog-step.is-active { animation: stepIn .35s var(--ease-smooth) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
.prog-step legend {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.1rem;
  padding: 0;
}
.prog-step .legend-2 { display: block; margin-top: 1.6rem; font-size: 1rem; }
.prog-step .legend-2 em { font-style: normal; font-weight: 500; font-size: .82rem; color: var(--muted); }

.choices { display: grid; gap: .6rem; }
.choices-row { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.choice-in {
  display: block;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease-smooth), background-color .2s var(--ease-smooth), transform .2s var(--ease-smooth);
}
.choice-in b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); }
.choice-in i { display: block; font-style: normal; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.choice:hover .choice-in { border-color: #cfd4db; transform: translateY(-2px); }
.choice input:checked + .choice-in {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice input:focus-visible + .choice-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-sm .choice-in { text-align: center; padding: .75rem .5rem; }
.choice-sm .choice-in b { font-size: .85rem; }

/* ── Contrôle segmenté (sexe) ─────────────────────────────── */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  padding: .25rem;
  background: var(--cream-soft);
  border-radius: 10px;
  margin-bottom: 1.6rem;
}
.seg-item { position: relative; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-item span {
  display: block;
  text-align: center;
  padding: .55rem .4rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .2s var(--ease-smooth), color .2s var(--ease-smooth);
}
.seg-item input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
.seg-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── Curseurs (âge, taille, poids) ────────────────────────── */
.ranges { display: grid; gap: 1.35rem; }
.range-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .5rem; }
.range-top label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.range-val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1; }
.range-val i { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: .2rem; }
.range-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  /* --p est mis à jour en JS : remplissage de la piste jusqu'au curseur */
  --p: 50%;
}
.range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--line-cool) var(--p));
}
.range-field input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--line-cool) var(--p));
}
.range-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 5px rgba(0, 0, 35, .16);
  transition: transform .18s var(--ease-smooth);
}
.range-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 5px rgba(0, 0, 35, .16);
}
.range-field input[type="range"]:hover::-webkit-slider-thumb,
.range-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.range-field input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Indice de masse corporelle, calculé en direct ────────── */
.imc {
  margin-top: 1.8rem;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: var(--bg);
}
.imc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.imc-lab { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.imc-val { display: flex; align-items: baseline; gap: .55rem; }
.imc-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--ink); }
.imc-cat { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--accent); }
.imc-gauge { position: relative; display: flex; gap: 2px; height: 7px; }
.imc-seg { flex: 1; border-radius: 4px; }
.imc-seg.s1 { flex: .9; background: #cfd8e3; }
.imc-seg.s2 { flex: 1.3; background: #9ccfa9; }
.imc-seg.s3 { flex: 1;  background: #f0c987; }
.imc-seg.s4 { flex: 1.3; background: #e9a68e; }
.imc-cursor {
  position: absolute;
  top: -4px;
  left: 0;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: var(--ink);
  transform: translateX(0);
  transition: transform .35s var(--ease-smooth);
}
.imc-scale { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Silhouettes (morphologie) ────────────────────────────── */
.morphos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.morpho { position: relative; cursor: pointer; }
.morpho input { position: absolute; opacity: 0; width: 0; height: 0; }
.morpho-in {
  display: block;
  text-align: center;
  padding: 1rem .7rem .9rem;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease-smooth), background-color .2s var(--ease-smooth), transform .2s var(--ease-smooth);
}
.morpho-in svg {
  display: block;
  width: 42px;
  height: 88px;
  margin: 0 auto .6rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s var(--ease-smooth);
}
.morpho-in b { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); }
.morpho-in i { display: block; font-style: normal; font-size: .74rem; line-height: 1.35; color: var(--muted); margin-top: .25rem; }
.morpho:hover .morpho-in { border-color: #cfd4db; transform: translateY(-2px); }
.morpho input:checked + .morpho-in { border-color: var(--accent); background: var(--accent-soft); }
.morpho input:checked + .morpho-in svg { stroke: var(--accent-dark); }
.morpho input:focus-visible + .morpho-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: .8rem; }

/* ── Étiquettes multi-sélection ───────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: block;
  padding: .5rem .9rem;
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .2s var(--ease-smooth), background-color .2s var(--ease-smooth), color .2s var(--ease-smooth);
}
.chip:hover span { border-color: #cfd4db; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-lg span { padding: .6rem 1.05rem; font-size: .88rem; }

/* ── Bilan calculé ────────────────────────────────────────── */
.bilan {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
}
.bilan-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
}
.stat-lab { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-val { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--ink); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-sub { display: block; font-style: normal; font-size: .72rem; line-height: 1.35; color: var(--muted); margin-top: .15rem; }
.bilan-txt { font-size: .88rem; line-height: 1.6; color: var(--ink); margin: 1rem 0 0; }
.bilan-split { display: flex; gap: 3px; height: 26px; margin-top: .9rem; border-radius: 6px; overflow: hidden; }
.bilan-split span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.bilan-warn { font-size: .72rem; line-height: 1.45; color: var(--ink-soft); margin: 1rem 0 0; opacity: .85; }

.prog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.prog-fields label {
  display: grid;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.prog-fields input {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .2s;
}
.prog-fields input:focus { outline: 0; border-color: var(--accent); }
.prog-recap {
  margin-top: 1.1rem;
  padding: .9rem 1rem;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.prog-recap:empty { display: none; }

.prog-nav {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.8rem;
}
/* [hidden] doit toujours l'emporter : .btn et .prog-nav déclarent un display
   (inline-flex / flex) plus spécifique que la règle par défaut du navigateur */
.prog-nav[hidden], .prog-nav .btn[hidden] { display: none; }
.prog-nav .prog-next { margin-left: auto; }
.prog-nav .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.prog-err {
  margin: .8rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.prog-err:empty { display: none; }

.prog-done { text-align: center; padding: 1rem 0 .5rem; animation: stepIn .4s var(--ease-smooth) both; }
.prog-done[hidden] { display: none; }
.prog-done-mark {
  width: 54px; height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.prog-done-mark .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.prog-done h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.prog-done-txt { font-size: .9rem; line-height: 1.6; color: var(--ink-soft); max-width: 40ch; margin: 0 auto 1.4rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: grid; gap: .9rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-list details:hover { border-color: #d9dbe0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.4rem; top: 50%;
  translate: 0 -50%;
  width: 16px; height: 16px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: rotate .35s var(--ease-smooth);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 1.4rem 1.3rem; font-size: .9rem; color: var(--muted); }
.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease-smooth), content-visibility .4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-form { margin-top: 2.4rem; display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  padding: .8em 1em;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { justify-self: start; }

/* ── RGPD : consentement + mention sous le formulaire ─────── */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: .12rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }
.form-note {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
}

/* ── Pages légales ────────────────────────────────────────── */
.legal { padding-block: clamp(7rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.legal .updated { font-size: .82rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.4rem 0 .8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.legal p { margin-bottom: .9rem; }
.legal ul { padding-left: 1.1rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal dl { margin-bottom: 1rem; }
.legal dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .9rem; }
.legal dd { font-size: .92rem; line-height: 1.6; color: var(--ink); margin: .2rem 0 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.legal-flag {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 2.2rem;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink);
}
.form-status { font-weight: 700; color: var(--accent); min-height: 1.5em; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
/* flex-wrap indispensable : sans lui, la rangée de liens impose sa largeur
   min-content au document entier et élargit le viewport mobile */
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  font-weight: 600;
  min-width: 0;
}
.footer-inner nav a:hover { color: var(--accent); }
.footer-inner > * { min-width: 0; }
.footer-inner p { max-width: 100%; }

/* ── Révélations au scroll ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.visible { opacity: 1; transform: none; }
/* décalages en cascade */
.d-1 { transition-delay: .08s; }
.d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; }
.d-4 { transition-delay: .32s; }

/* ── Accessibilité : mouvement réduit ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .step-num { scale: 1; }
  .draw-path { stroke-dashoffset: 0; }
  .pipe-mobile .data-dot { display: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .steps-line { display: none; }
  .pipe-mobile {
    display: block;
    width: min(310px, 82%);
    margin: 2.2rem auto .8rem;
  }
  .steps .step,
  .steps .step .step-num { transition-delay: 0s; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .step::before { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 7.5rem; }
  .hero-visual { min-height: 300px; }
  .info-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* galerie : 2 colonnes, la tall reprend une hauteur normale */
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 26vw, 190px); }
  .shot, .shot-tall, .shot-third, .shot-wide { grid-column: span 1; grid-row: span 1; }
  .shot-wide { grid-column: span 2; }
  /* hero en 1 colonne : les pastilles ne peuvent plus déborder du conteneur
     (en desktop leurs -4/-5 % mordent sur la marge, ici il n'y en a plus) */
  .float-1 { top: 1%; left: 2%; }
  .float-2 { bottom: 0; right: 2%; }
  /* panneau divisé : image au-dessus, texte dessous */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-media { transform: none; max-height: 380px; }
  .split-copy p { max-width: none; }
  /* programme : intro au-dessus du formulaire */
  .prog { grid-template-columns: 1fr; gap: 2.2rem; }
  .prog-intro > p, .prog-done-txt { max-width: none; }
  /* planning : les jours se réduisent à leur abréviation et défilent */
  .day-tab { flex: 0 0 auto; padding: .8rem .95rem; }
  .day-tab .d-long { display: none; }
  .day-tab .d-short { display: inline; }
}

@media (max-width: 640px) {
  .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 48vw, 230px); }
  .shot, .shot-tall, .shot-third, .shot-wide { grid-column: span 1; }
  .split-facts { gap: 1.8rem; }
  .split-facts strong { font-size: 2rem; }
  .strip-quote { font-size: 1.2rem; }
  /* planning : créneaux en deux lignes, l'intensité passe sous le libellé */
  .slot { grid-template-columns: auto 1fr; gap: .3rem 1rem; padding: .95rem .2rem; }
  .slot-time { font-size: 1.15rem; min-width: 3.9rem; }
  .slot-tag { grid-column: 2; justify-self: start; margin-top: .35rem; }
  .slot:hover { padding-left: .2rem; background: none; }
  /* programme : choix en 2 colonnes, coordonnées empilées */
  .choices-row { grid-template-columns: repeat(2, 1fr); }
  .prog-fields { grid-template-columns: 1fr; }
  .bilan-stats { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; gap: .2rem; }
  /* silhouettes : en ligne, texte à droite du dessin */
  .morphos { grid-template-columns: 1fr; gap: .5rem; }
  .morpho-in { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; text-align: left; padding: .8rem .9rem; }
  .morpho-in svg { width: 28px; height: 58px; margin: 0; }
  .morpho-in b, .morpho-in i { grid-column: 2; }
  .morpho-in i { margin-top: .1rem; }
  .prog-nav { flex-wrap: wrap; }
  .prog-nav .prog-next { width: 100%; justify-content: center; margin-left: 0; order: -1; }
  /* footer empilé : la rangée de liens ne doit jamais contraindre la largeur */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer-inner nav { gap: .7rem 1.2rem; }
  .footer-inner p { font-size: .82rem; line-height: 1.5; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: .8rem; }

  /* calibration typo mobile */
  h1 { font-size: 2.25rem; line-height: 1.15; }
  h2 { font-size: 1.5rem; }
  .lead { font-size: .95rem; }

  /* hero mobile : vignette masquée compacte au-dessus du titre */
  .hero-visual {
    order: -1;
    min-height: auto;
    margin-bottom: .5rem;
  }
  .hero-photo { width: 180px; animation: none; }
  .hero-card { display: none; }

  /* menu mobile */
  .site-header .brand { position: relative; z-index: 60; }
  .nav-toggle {
    display: grid;
    gap: 6px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    position: relative;
    z-index: 60;
  }
  .nav-toggle span {
    width: 26px; height: 3px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .35s var(--ease-smooth), opacity .25s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

  /* Menu mobile : feuille déroulante depuis le haut, fondu 300ms */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4.2rem 0 0;
    font-size: .95rem;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 35, .10);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-smooth);
    z-index: 55;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: .8rem 1.5rem;
    font-weight: 700;
    color: var(--ink);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn {
    display: flex;
    width: 100%;
    margin-top: .6rem;
    border-radius: 0;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    font-size: .875rem;
  }
}
