/* ==========================================================================
   MonPersonalTrainer — feuille de styles
   1. Tokens   2. Base   3. Layout & thèmes   4. Composants   5. Sections
   6. Header / menu / footer   7. Questionnaire   8. Animations
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0b0c0c;
  --ink-2: #141616;
  --ink-3: #1f2222;
  --paper: #f3f2ee;
  --paper-2: #e8e6df;
  --accent: #566a2f; /* seul accent de couleur du site : aplats (boutons, points, barres) */
  --accent-soft: #a3b77a; /* teinte claire du même vert, pour les textes et filets fins sur fond noir */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.75rem, 7.4vw, 7.5rem);
  --fs-h2: clamp(2.125rem, 5.2vw, 4.75rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.section--paper :focus-visible, .section--stone :focus-visible { outline-color: var(--ink); }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 16px;
  background: var(--accent); color: #fff; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* 3. LAYOUT & THÈMES ------------------------------------------------------- */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.section {
  position: relative;
  padding-block: var(--section);
  background: var(--bg);
  color: var(--fg);
  scroll-margin-top: var(--header-h);
}
.section--paper { --bg: var(--paper); --fg: var(--ink); --muted: #5a5d5b; --line: rgba(11, 12, 12, 0.16); --mark: var(--ink); }
.section--stone { --bg: var(--paper-2); --fg: var(--ink); --muted: #555856; --line: rgba(11, 12, 12, 0.18); --mark: var(--ink); }
.section--ink { --bg: var(--ink); --fg: #fff; --muted: rgba(255, 255, 255, 0.62); --line: rgba(255, 255, 255, 0.16); --mark: var(--accent); }
/* deux sections claires consécutives : un filet remplace le changement de fond */
.section--ruled::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
}

/* 4. COMPOSANTS ------------------------------------------------------------ */

/* Titres */
.h2 {
  font-size: var(--fs-h2); font-weight: 500; line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Étiquette de section : numéro + filet + intitulé */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow b { font-weight: 500; color: var(--fg); }
.eyebrow::before { content: ""; order: 1; width: 40px; height: 1px; background: var(--line); }
.eyebrow b { order: 0; }
.eyebrow span { order: 2; }
.eyebrow--plain::before { display: none; }

/* En-tête de section */
.s-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 104px); }
.s-head .h2 { max-width: 16ch; }
@media (min-width: 900px) {
  .s-head--split { grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 64px; }
  .s-head--split .eyebrow { grid-column: 1 / -1; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #fff; color: var(--ink); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--muted); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.8125rem; }

/* Lien fléché */
.link {
  display: inline-flex; align-items: center; gap: 12px; padding-block: 6px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
a.link:hover svg, a:hover > .link svg, a:hover .link svg { transform: translateX(6px); }
.link--soon { background: none; color: var(--muted); }

.tag {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line); color: var(--muted);
}

/* Emplacement média à fournir (photo / vidéo) */
.ph {
  position: relative; overflow: hidden; background-color: var(--ink-2);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
}
.ph::after {
  content: "[ " attr(data-ph) " ]"; position: absolute; right: 16px; top: 16px; max-width: calc(100% - 32px);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); text-align: right;
}
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(> img, > video) { background-image: none; }
.ph:has(> img, > video)::after { display: none; }

/* Contenu à renseigner : rechercher « todo » dans index.html */
.todo {
  font-family: var(--mono); font-size: 0.85em; color: inherit;
  background: color-mix(in srgb, var(--accent) 55%, transparent); padding: 1px 6px;
}
.section--ink .todo { background: transparent; color: var(--accent-soft); border: 1px dashed currentColor; }

/* 5. SECTIONS -------------------------------------------------------------- */

/* 01 — Hero */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(640px, 100svh, 1080px); padding-block: calc(var(--header-h) + 48px) 0;
  overflow: hidden; isolation: isolate; background: var(--bg); color: var(--fg);
}
.hero__media {position: absolute; inset: 0; z-index: -2; }
.hero__media.ph::after { top: calc(var(--header-h) + 20px); right: var(--gutter); }
.hero__media:has(> img, > video)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 12, 12, 0.88) 0%, rgba(11, 12, 12, 0.55) 55%, rgba(11, 12, 12, 0.25) 100%);
}
.hero__inner { display: grid; gap: 32px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__text { display: grid; gap: clamp(22px, 2.4vw, 32px); }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 500; line-height: 0.94; letter-spacing: -0.045em;
}
.hero h1 span { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 i { display: block; font-style: normal; animation: rise 0.9s var(--ease) both; }
.hero h1 span:nth-child(2) i { animation-delay: 0.08s; }
.hero h1 span:nth-child(3) i { animation-delay: 0.16s; color: var(--muted); }
.hero .lead { color: rgba(255, 255, 255, 0.78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Graphique décoratif : une progression planifiée (cycles montée / décharge) */
.graph { display: none; }
@media (min-width: 1280px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 64px; align-items: end; }
  .graph { display: block; padding-bottom: 6px; color: #fff; }
  .graph__bars { display: flex; align-items: flex-end; justify-content: space-between; height: 240px; border-bottom: 1px solid var(--line); }
  .graph__bars span {
    width: 2px; height: calc(var(--h) * 1%); background: currentColor; transform-origin: bottom;
    animation: grow 0.9s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 0.5s);
  }
  .graph__bars span:nth-child(4n) { opacity: 0.3; }
  .graph__bars span:last-child { opacity: 1; background: var(--accent); width: 3px; }
  .graph__axis {
    display: flex; justify-content: space-between; margin-top: 12px;
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  }
}

.proofs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.proofs li {
  display: flex; align-items: center; gap: 8px; padding: 18px 0;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.proofs li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.proofs li:nth-child(n + 3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .proofs { grid-template-columns: repeat(4, 1fr); }
  .proofs li { gap: 12px; padding: 26px 0; font-size: var(--fs-label); letter-spacing: 0.1em; }
  .proofs li:nth-child(n + 3) { border-top: 0; }
}

/* 02 — Profils */
.profiles { display: flex; flex-direction: column; gap: 12px; }
.profile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(420px, 60vw, 680px); padding: clamp(24px, 3.2vw, 48px);
  color: #fff; --muted: rgba(255, 255, 255, 0.66); --line: rgba(255, 255, 255, 0.22); --fg: #fff;
  overflow: hidden; isolation: isolate; scroll-margin-top: calc(var(--header-h) + 16px);
}
.profile__media { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease); }
.profile__media:has(> img)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 12, 12, 0.1) 30%, rgba(11, 12, 12, 0.85) 100%);
}
.profile__index { position: absolute; top: clamp(24px, 3.2vw, 48px); left: clamp(24px, 3.2vw, 48px); }
.profile__title {
  font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 700; font-stretch: 118%;
  line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase;
}
.profile__text { margin-top: 18px; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.profile__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.profile__foot { display: flex; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .profiles { flex-direction: row; }
  .profile { flex: 1 1 0; transition: flex-grow 0.7s var(--ease); }
}
@media (hover: hover) and (min-width: 900px) {
  .profile:hover { flex-grow: 1.35; }
  .profile:hover .profile__media { transform: scale(1.04); }
  .profile__list { opacity: 0.55; transition: opacity 0.5s; }
  .profile:hover .profile__list { opacity: 1; }
}

/* 03 — Méthodologie */
.method { position: relative; display: grid; gap: 0; counter-reset: step; }
.method__step { position: relative; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.method__num {
  display: block; margin-bottom: 20px;
  font-size: clamp(4.5rem, 9vw, 8.5rem); font-weight: 700; font-stretch: 112%; line-height: 0.85; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--fg);
  transition: color 0.9s var(--ease) calc(var(--i, 0) * 140ms + 0.3s);
}
.method__step.is-in .method__num, html:not(.js) .method__num { color: var(--fg); }
.method__step p { margin-top: 12px; color: var(--muted); max-width: 34ch; }
.spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
@media (min-width: 720px) {
  .method { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1100px) {
  .method { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
  .method__step { padding-top: 44px; }
  /* nœud sur le filet : les quatre étapes forment une seule ligne continue */
  .method__step::before {
    content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
    background: var(--fg);
  }
  .method__step:not(:last-child)::after {
    content: ""; position: absolute; top: -1px; left: 0; right: -40px; height: 1px; background: var(--line);
  }
}

/* 04 — Programmes */
.programs { border-top: 1px solid var(--line); }
.program {
  position: relative; display: grid; gap: 14px; padding: clamp(28px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease), background-color 0.4s;
}
.program__num { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--muted); }
.program__name {
  display: flex; align-items: center;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; font-stretch: 120%;
  line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase;
}
.program__name::before {
  content: ""; flex: none; width: 0; height: 0.2em; aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform 0.45s var(--ease), width 0.45s var(--ease), margin 0.45s var(--ease);
}
.program__desc { color: var(--muted); max-width: 40ch; }
.program__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.program__cta { margin-top: 8px; justify-self: start; }
@media (min-width: 1000px) {
  .program { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
  .program__num { grid-column: 1 / -1; }
  .program__cta { margin-top: 0; }
}
@media (hover: hover) {
  .program:hover { background: var(--ink-2); padding-inline: clamp(12px, 1.6vw, 24px); }
  .program:hover .program__name::before { width: 0.2em; margin-right: 0.3em; transform: scale(1); }
}
.programs__more { display: flex; justify-content: flex-end; margin-top: 40px; }

/* 05 — Espace membre */
.member { display: grid; gap: clamp(56px, 8vw, 96px); }
.member .s-head { margin-bottom: clamp(36px, 5vw, 64px); }
.benefits li { display: grid; grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.benefits li:last-child { border-bottom: 1px solid var(--line); }
.benefits small { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--muted); padding-top: 6px; }
.benefits p { grid-column: 2; color: var(--muted); max-width: 44ch; }
.member__cta { margin-top: 40px; }
.member__visual { display: grid; justify-items: center; gap: 24px; align-content: center; }
.phone {
  width: min(100%, 320px); aspect-ratio: 9 / 19; padding: 10px; border-radius: 46px; background: var(--ink);
}
.phone__screen { width: 100%; height: 100%; border-radius: 36px; }
.phone__screen.ph::after { top: 50%; right: 50%; transform: translate(50%, -50%); width: 70%; text-align: center; line-height: 1.7; }
.powered { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--muted); text-align: center; }
@media (min-width: 1000px) {
  .member { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}

/* 06 — Piliers */
.pillars__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.28em;
  font-size: clamp(2.25rem, 4.4vw, 5rem); font-weight: 700; font-stretch: 120%;
  line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase;
}
.pillars__title em { font-style: normal; font-weight: 300; font-stretch: 100%; color: var(--accent); }
.pillars__intro { margin-top: 32px; }
.pillars { display: grid; gap: 0; margin-top: clamp(56px, 8vw, 112px); }
.pillar { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.pillar .h3 { margin: 14px 0 24px; text-transform: uppercase; letter-spacing: 0.02em; font-stretch: 112%; }
.pillar li { padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.82); }
.pillars__note { margin-top: 48px; max-width: 60ch; color: var(--muted); }
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
}

/* 07 — Pourquoi / 11 — FAQ : titre fixe à gauche, liste à droite */
.aside-layout { display: grid; gap: clamp(40px, 6vw, 72px); }
.aside-layout .s-head { margin-bottom: 0; align-content: start; }
.aside-layout .h2 { max-width: none; font-size: clamp(2rem, 4vw, 3.75rem); overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .aside-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 80px; align-items: start; }
  .aside-layout .s-head { position: sticky; top: calc(var(--header-h) + 48px); }
}
.reasons li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons small { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--muted); padding-top: 7px; }
.reasons p { grid-column: 2; color: var(--muted); max-width: 46ch; }

/* 08 — Témoignages */
.t-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.t-head .s-head { margin-bottom: 0; }
.t-nav { display: flex; align-items: center; gap: 16px; }
.t-nav__count { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 0.1em; min-width: 68px; text-align: center; }
.t-nav button {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.25s, opacity 0.25s;
}
.t-nav button:hover { border-color: var(--fg); }
.t-nav button:disabled { opacity: 0.3; cursor: default; }
.t-nav svg { width: 18px; height: 18px; }
.t-nav button:first-child svg { transform: scaleX(-1); }
.t-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 min(88%, 820px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: clamp(28px, 4vw, 56px) 0 0; border-top: 1px solid var(--fg);
}
.t-card blockquote { font-size: clamp(1.375rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; text-wrap: pretty; }
.t-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.t-card__photo { flex: none; width: 60px; height: 60px; border-radius: 50%; }
.t-card__photo.ph::after { display: none; }
.t-card__who { display: grid; }
.t-card__who span { color: var(--muted); font-size: var(--fs-small); }
.t-card__result { margin-left: auto; }

/* 09 — Articles */
.articles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article { display: flex; flex-direction: column; gap: 16px; padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.article__cat { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.article .h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.article .tag { align-self: flex-start; margin-top: auto; }
.articles__more { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
@media (min-width: 720px) {
  .articles { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1100px) {
  .articles { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .article { min-height: 300px; border-bottom: 0; padding-right: 24px; }
}

/* 10 — À propos */
.about { display: grid; gap: clamp(40px, 6vw, 96px); }
.about__photo { aspect-ratio: 4 / 5; width: 100%; max-width: 520px; }
.about__name {
  margin: 24px 0 28px; font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; font-stretch: 120%;
  line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase;
}
.about__facts { margin-top: 40px; }
.about__facts li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.about__facts li:last-child { border-bottom: 1px solid var(--line); }
.about__facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; }
}

/* 11 — FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); font-weight: 500; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 28px 0; color: var(--muted); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* 12 — CTA final */
.final { text-align: left; overflow: hidden; }
.final__title { font-size: clamp(3rem, 11vw, 11rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; }
.final__row { display: grid; gap: 32px; margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 800px) {
  .final__row { grid-template-columns: 1fr auto; align-items: center; }
}

/* 6. HEADER / MENU / FOOTER ------------------------------------------------ */
mpt-header, mpt-footer { display: block; }
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter);
  color: #fff; border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.header.is-scrolled, .header.is-open { background: rgba(11, 12, 12, 0.86); border-color: rgba(255, 255, 255, 0.1); }
@supports (backdrop-filter: blur(1px)) {
  .header.is-scrolled { background: rgba(11, 12, 12, 0.72); backdrop-filter: blur(16px) saturate(1.2); }
}
.header.is-open { background: var(--ink); backdrop-filter: none; }
.header__logo { flex: none; display: block; }
.header__logo svg { height: 26px; width: auto; }
.header__nav { display: none; }
.header__nav ul { display: flex; gap: clamp(18px, 2vw, 34px); }
.header__nav a { position: relative; padding: 8px 0; font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); transition: color 0.25s; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent-soft);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; }
.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.is-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.is-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--ink); color: #fff; overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s 0.35s;
}
.is-open + .menu { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 15px 0;
  font-size: clamp(1.75rem, 7.5vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 40ms + 0.1s);
}
.is-open + .menu li a { opacity: 1; transform: none; }
.menu li small { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); }
.menu .btn { width: 100%; }
@media (min-width: 560px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 1180px) {
  .header__nav { display: block; }
  .burger, .menu { display: none; }
}

.footer { background: var(--ink); color: #fff; --muted: rgba(255, 255, 255, 0.6); --line: rgba(255, 255, 255, 0.16); padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer__top { display: grid; gap: 48px; padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.footer__brand img { width: 220px; height: auto; }
.footer__brand p { margin-top: 24px; max-width: 30ch; color: var(--muted); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.footer h2 { margin-bottom: 18px; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer li { padding: 5px 0; }
.footer li a { transition: color 0.25s; }
.footer li a:hover { color: var(--accent-soft); }
.footer .is-soon { color: var(--muted); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--muted);
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 64px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

/* 7. QUESTIONNAIRE « TROUVER MON PROGRAMME » -------------------------------- */
.quiz {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: #fff; --fg: #fff; --bg: var(--ink); --muted: rgba(255, 255, 255, 0.62); --line: rgba(255, 255, 255, 0.16);
}
.quiz[open] { display: flex; flex-direction: column; animation: fade 0.35s var(--ease); }
.quiz::backdrop { background: var(--ink); }
.quiz__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.quiz__bar p { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quiz__bar p b { color: #fff; font-weight: 500; }
.quiz__close { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.875rem; font-weight: 500; }
.quiz__close::after {
  content: ""; width: 14px; height: 14px; transform: rotate(45deg);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.quiz__progress { flex: none; height: 2px; background: var(--line); }
.quiz__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease); }
.quiz__body { flex: 1; overflow-y: auto; display: grid; align-content: center; padding: 40px var(--gutter) 56px; }
.quiz__step { width: 100%; max-width: 980px; margin-inline: auto; animation: rise-soft 0.5s var(--ease) both; }
.quiz__step h2 { margin: 20px 0 clamp(28px, 4vw, 48px); font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.035em; outline: none; }
.quiz__options { border-top: 1px solid var(--line); }
.quiz__option {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line); text-align: left;
  font-size: clamp(1.375rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em;
  transition: padding 0.4s var(--ease), color 0.25s;
}
.quiz__option svg { flex: none; width: 22px; height: 22px; opacity: 0.4; transition: transform 0.4s var(--ease), opacity 0.25s; }
.quiz__option:hover, .quiz__option:focus-visible { padding-left: 16px; color: var(--accent-soft); }
.quiz__option:hover svg { opacity: 1; transform: translateX(6px); }
.quiz__back { margin-top: 32px; min-height: 44px; font-size: 0.875rem; color: var(--muted); }
.quiz__back:hover { color: #fff; }
.quiz__actions .quiz__back { margin-top: 0; }
.quiz__result p { max-width: 52ch; font-size: var(--fs-lead); color: var(--muted); }
.quiz__result h2 { text-transform: uppercase; font-weight: 700; font-stretch: 120%; font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.92; margin-bottom: 24px; }
.quiz__recap { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 36px; }
.quiz__offers { margin-bottom: 32px; border-top: 1px solid var(--line); }
.quiz__offers li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quiz__offers span { flex: 1 1 180px; font-size: var(--fs-lead); }
.quiz__offers strong { flex: 1 1 140px; font-family: var(--mono); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.04em; }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* 8. ANIMATIONS ------------------------------------------------------------ */
@keyframes rise { from { transform: translateY(105%); } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { from { transform: translateY(5%); } to { transform: translateY(-5%); } }

/* Apparition au scroll — uniquement si JavaScript est actif (classe .js sur <html>) */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Parallaxe légère, sans JavaScript, là où le navigateur le permet */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .parallax { animation: drift linear both; animation-timeline: view(); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
