/* Styles propres aux pages */

/* ── Hero : ciel atmosphérique ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 140px 0 120px; text-align: center;
  background: linear-gradient(rgb(15, 16, 17), rgb(19, 29, 39) 18%, rgb(26, 71, 136) 52%, rgb(64, 138, 193) 82%, rgb(108, 165, 205) 100%);
}
.hero::after { /* fondu vers la page */
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(transparent, var(--color-obsidian)); pointer-events: none;
}
.hero { --out: max(0, calc((var(--scroll, 0.5) - 0.5) * 2)); } /* 0 en haut de page → 1 quand le hero est sorti */
.sky {
  position: absolute; inset: -40px; pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--scroll, 0) * 140px + var(--py, 0) * -14px), 0) scale(calc(1 + var(--out) * 0.12));
  transition: transform 0.9s var(--ease-out);
}
.hero__content {
  opacity: calc(1 - var(--out) * 1.3);
  filter: blur(calc(var(--out) * 10px));
  transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--out) * -90px), 0) scale(calc(1 - var(--out) * 0.06));
  transition: transform 0.6s var(--ease-out);
}
.cloud {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, var(--o, 0.5)); filter: blur(var(--b, 40px));
  width: var(--w); height: calc(var(--w) * 0.32); left: var(--x); top: var(--y);
  animation: drift var(--t, 90s) linear infinite; animation-delay: var(--d, 0s);
}
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(30vw); } }
.hero__content { position: relative; z-index: 2; max-width: 980px; padding-inline: var(--gutter); }
.hero__title { margin-block: var(--space-8) var(--space-6); text-shadow: 0 2px 40px rgba(9, 20, 40, 0.35); }
.hero .lead { color: rgba(255, 255, 255, 0.78); margin-inline: auto; }

/* Barre de démarrage rapide (style « champ de saisie ») */
.quickstart {
  display: flex; align-items: center; gap: 8px; width: min(100%, 560px); margin: var(--space-10) auto 0;
  padding: 6px 6px 6px 22px; border-radius: 12px; text-align: left;
  background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.quickstart:focus-within, .quickstart:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.quickstart__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ash); white-space: nowrap; }
.quickstart select {
  flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font-size: var(--text-body); color: var(--color-pure);
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 8px;
}
.quickstart select:focus { outline: none; }
.quickstart select option { background: var(--color-obsidian); }
.quickstart__go {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: background var(--dur-fast) var(--ease);
}
.quickstart__go:hover { background: var(--color-pure); color: var(--color-void); }
.hero__note { margin-top: var(--space-5); }

/* Bandeau de réassurance */
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.proof span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ash); }
.proof span::before { content: ''; width: 14px; height: 1px; background: var(--color-line-strong); }

/* En-tête de page secondaire */
.page-hero { position: relative; padding-top: clamp(160px, 18vw, 220px); padding-bottom: clamp(48px, 7vw, 90px); text-align: center; }
.page-hero .container > * { margin-inline: auto; }
.page-hero .display, .page-hero .h2 { max-width: 14ch; }
.page-hero .lead { margin-top: var(--space-6); }
.page-hero .eyebrow { margin-bottom: var(--space-8); }
.page-hero .hero__actions { justify-content: center; }
.page-hero--glow::before { /* halo bleu discret derrière le titre */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: -1;
  background: linear-gradient(rgb(15, 16, 17), rgb(19, 29, 39) 40%, var(--color-obsidian));
}
.page-hero > .container.stack .cluster { justify-content: center; }
.page-hero > .container.stack .list { max-width: 640px; margin-inline: auto; text-align: left; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; margin-top: var(--space-10); }

/* ── Tuiles de catégorie : la couleur est l'identité ── */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  --tile: var(--tile-iris);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12);
  min-height: 340px; padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--tile); color: var(--color-void);
}
.tile__icon, .tile__title, .tile__text { transform: translateZ(30px); } /* relief pendant l'inclinaison */
.tile__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.12); transition: transform 0.8s var(--ease-out), background var(--dur-fast); }
.tile__icon svg { width: 20px; height: 20px; }
.tile:hover .tile__icon { transform: rotate(-45deg); background: rgba(0, 0, 0, 0.85); color: var(--tile); }
.tile__title { font-family: var(--font-serif); font-weight: 300; font-size: var(--text-h3); line-height: 1; }
.tile__text { margin-top: var(--space-3); font-size: var(--text-body); opacity: 0.78; max-width: 30ch; }
.tile--iris { --tile: var(--tile-iris); }
.tile--pale { --tile: var(--tile-pale-iris); }
.tile--deep { --tile: var(--tile-deep-iris); color: var(--color-pure); }
.tile--orchid { --tile: var(--tile-orchid); }
.tile--peri { --tile: var(--tile-periwinkle); }
.tile--silver { --tile: var(--color-silver); }
.tile--deep .tile__icon { background: rgba(255, 255, 255, 0.15); }

/* ── Module « produit » : téléphone incliné ── */
.showcase { border-radius: var(--radius-lg); background: var(--color-graphite); padding: clamp(32px, 7vw, 90px); overflow: hidden; }
.showcase__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .showcase__grid { grid-template-columns: 1fr 1fr; } }
/* Le téléphone lui-même est dans phone.css */

/* ── Carte inversée (claire) ── */
.inverted { border-radius: var(--radius-lg); background: var(--color-silver); color: var(--color-void); padding: clamp(32px, 6vw, 80px); }
.inverted .h2, .inverted .h3, .inverted .display { color: var(--color-void); }
.inverted .label { color: rgba(0, 0, 0, 0.55); }
.inverted p { color: rgba(0, 0, 0, 0.7); }
.principles { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }

/* ── Étapes ── */
.steps { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: var(--space-8); border-radius: var(--radius-md); background: var(--color-carbon); min-height: 260px; display: flex; flex-direction: column; gap: var(--space-4); transition: background var(--dur-fast) var(--ease); }
.step:hover { background: #1f1f20; }
.step__n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--color-signal); }
.step h3 { margin-top: auto; }

/* Étapes empilées : chaque carte colorée vient recouvrir la précédente au scroll */
.stack-cards { display: grid; gap: 18px; }
.stack-card {
  --tile: var(--tile-iris);
  position: sticky; top: calc(110px + var(--i, 0) * 22px);
  display: grid; gap: var(--space-6); align-items: end;
  min-height: min(420px, 62vh); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg);
  background: var(--tile); color: var(--color-void);
  transform-origin: center top;
  transform: scale(calc(1 - var(--covered, 0) * 0.06));
  filter: brightness(calc(1 - var(--covered, 0) * 0.35));
}
@media (min-width: 900px) { .stack-card { grid-template-columns: 120px 1fr 1fr; } }
.stack-card__n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; opacity: 0.6; align-self: start; }
.stack-card h3 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(48px, 7vw, 96px); line-height: 0.9; }
.stack-card p { font-size: var(--text-sub); opacity: 0.75; max-width: 30ch; }
/* Contenu : monte en arrivant (--enter 0 → 1), s'efface quand la carte suivante la recouvre (--covered 0 → 1).
   Le paragraphe suit le titre avec un léger retard (--lag). */
.stack-card > * {
  --lag: 0;
  translate: 0 calc((1 - var(--enter, 1)) * (70px + var(--lag) * 40px) - var(--covered, 0) * 40px);
  opacity: calc(min(1, var(--enter, 1) * 1.6 - var(--lag) * 0.4) - var(--covered, 0) * 0.7);
}
.stack-card > p { --lag: 1; }
.stack-card > .stack-card__n { opacity: calc((min(1, var(--enter, 1) * 1.6) - var(--covered, 0) * 0.7) * 0.6); }
.stack-card:nth-child(4n + 1) { --tile: var(--tile-iris); }
.stack-card:nth-child(4n + 2) { --tile: var(--tile-periwinkle); }
.stack-card:nth-child(4n + 3) { --tile: var(--tile-orchid); }
.stack-card:nth-child(4n + 4) { --tile: var(--tile-pale-iris); }

/* Pastilles flottantes autour du téléphone */
.phone-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; font-size: 13px; white-space: nowrap;
  background: rgba(15, 16, 17, 0.75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  translate: 0 calc((0.5 - var(--scroll, 0.5)) * var(--depth, 80px));
}
.phone-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-signal); }
.phone-chip--a { top: 18%; left: 0; --depth: 140px; }
.phone-chip--b { bottom: 20%; right: 0; --depth: -120px; --float-delay: -3s; }
.phone-chip--b i { background: var(--tile-orchid); }
@media (max-width: 600px) { .phone-chip { display: none; } }

/* ── Chiffres ── */
.stats { display: grid; gap: var(--space-8); grid-template-columns: 1fr; text-align: center; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat__value { font-family: var(--font-serif); font-weight: 300; font-size: clamp(64px, 8vw, 110px); line-height: 1; color: var(--color-cloud); }

/* ── Témoignages ── */
.quotes { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { padding: var(--space-8); border-radius: var(--radius-lg); background: var(--color-carbon); }
.quote blockquote { font-family: var(--font-serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--color-cloud); }
.quote figcaption { margin-top: var(--space-6); display: flex; gap: 12px; align-items: center; color: var(--color-ash); font-size: var(--text-small); }

/* ── Appel final ── */
.final-cta {
  position: relative; overflow: hidden; text-align: center; padding-block: clamp(120px, 16vw, 200px);
  background: linear-gradient(var(--color-obsidian), rgb(19, 29, 39) 35%, rgb(26, 71, 136) 75%, rgb(64, 138, 193));
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta .hero__actions { justify-content: center; }

/* ── E-books ── */
.ebook-detail { display: grid; gap: var(--space-12); text-align: left; }
@media (min-width: 900px) { .ebook-detail { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-25); } .ebook-detail__cover { position: sticky; top: 120px; align-self: start; } }
/* Choix de l'offre : programme seul ou pack */
.offers { display: grid; gap: 10px; }
.offer { position: relative; display: block; cursor: pointer; }
.offer input { position: absolute; opacity: 0; }
.offer__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--color-line-strong); transition: box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.offer input:checked + .offer__body { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px var(--color-pure); }
.offer input:focus-visible + .offer__body { outline: 2px solid var(--color-pure); outline-offset: 2px; }
.offer__name { font-size: var(--text-small); }
.offer__price { font-family: var(--font-serif); font-weight: 300; font-size: 26px; line-height: 1; color: var(--color-cloud); }
.offer__note { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--color-signal); }
.buy-box > .tag { justify-self: start; }
.pack-link { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--color-carbon); font-size: var(--text-small); transition: background var(--dur-fast) var(--ease); }
.pack-link:hover { background: #1f1f20; }
.buy-box { display: grid; gap: var(--space-5); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--color-carbon); }

/* ── Générateur de programmes ── */
.builder { display: grid; gap: var(--space-8); }
@media (min-width: 1080px) { .builder { grid-template-columns: 360px 1fr; gap: var(--space-10); } .builder__form { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; } }
.builder > * { min-width: 0; } /* empêche les onglets défilants d'élargir la colonne (débordement mobile) */
.builder__form { padding: var(--space-6); border-radius: var(--radius-md); background: var(--color-carbon); }
.builder__form .form { gap: var(--space-6); }
.builder__output { min-height: 400px; }
.builder__empty { min-height: 420px; border-radius: var(--radius-md); display: grid; place-items: center; text-align: center; padding: 40px; background: var(--color-carbon); color: var(--color-ash); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-block: var(--space-6); }
.week-strip__day {
  padding: 12px 8px; border-radius: 12px; text-align: center; font-size: 12px; min-height: 76px;
  background: var(--color-carbon); color: var(--color-fog);
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out);
}
.week-strip__day strong { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ash); }
.week-strip__day.is-training { background: var(--tile-iris); color: var(--color-void); cursor: pointer; }
.week-strip__day.is-training strong { color: rgba(0, 0, 0, 0.6); }
.week-strip__day.is-training:hover { transform: translateY(-3px); }
.cycle-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cycle-tab { flex: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--color-ash); background: var(--color-carbon); transition: all var(--dur-fast) var(--ease); }
.cycle-tab:hover { color: var(--color-pure); }
.cycle-tab[aria-selected='true'] { background: var(--color-pure); color: var(--color-void); }
.cycle-tab.is-deload { box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.cycle-tab.is-locked { opacity: 0.45; }
.days-grid { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
@media (min-width: 760px) { .days-grid { grid-template-columns: repeat(2, 1fr); } }
.day-card { padding: var(--space-6); border-radius: var(--radius-md); background: var(--color-carbon); animation: card-in 1.2s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 0.1s); }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }
.day-card__head { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.day-card__name { background: transparent; border: 0; font-family: var(--font-serif); font-weight: 300; font-size: 26px; color: var(--color-cloud); width: 100%; padding: 2px 0; border-bottom: 1px dashed transparent; }
.day-card__name:hover, .day-card__name:focus { outline: none; border-bottom-color: var(--color-line-strong); }
.day-card .select { min-height: 34px; padding: 4px 10px; font-size: 13px; width: auto; }
.ex { display: grid; gap: 8px; padding-block: 14px; border-top: 1px solid var(--color-line); }
.ex__top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.ex__name { font-size: 15px; }
.days-grid > *, .ex > * { min-width: 0; }
.ex__top > :first-child { flex: 1; min-width: 0; }
.ex__swap { max-width: 100%; text-overflow: ellipsis; }
.ex__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--color-ash); }
.ex__meta label { display: inline-flex; align-items: center; gap: 6px; }
.ex__meta input { width: 62px; min-height: 32px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--color-line); background: var(--color-void); font-size: 13px; }
.ex__meta input.ex__reps { width: 82px; }
.ex__note { font-size: 13px; color: var(--color-fog); }
.ex__tools { display: flex; gap: 2px; flex: none; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--color-ash); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); font-size: 15px; }
.icon-btn:hover { background: var(--color-steel); color: var(--color-pure); }
.add-ex { display: flex; gap: 8px; margin-top: 12px; }
.add-ex .select { flex: 1; }
.builder__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.title-input { background: transparent; border: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; color: var(--color-cloud); width: 100%; }
.title-input:focus { outline: none; }
.premium-box { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); background: var(--color-graphite); }
.ai-box { display: grid; gap: 10px; margin-top: var(--space-5); padding: var(--space-6); border-radius: var(--radius-md); background: var(--color-void); box-shadow: inset 0 0 0 1px var(--color-line); }

/* ── Graphique de suivi ── */
.chart { width: 100%; height: 260px; }
.chart path.line { fill: none; stroke: var(--color-signal); stroke-width: 2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.5s var(--ease-reveal) forwards; }
.chart path.area { fill: url(#chart-fill); opacity: 0; animation: fade 1.2s 1s forwards; }
.chart circle { fill: var(--color-obsidian); stroke: var(--color-signal); stroke-width: 2; }
.chart text { fill: var(--color-fog); font-size: 11px; font-family: var(--font-mono); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ── Authentification ── */
.auth { min-height: 100svh; display: grid; place-items: center; padding-block: 140px 80px; background: linear-gradient(rgb(15, 16, 17), rgb(19, 29, 39) 55%, var(--color-obsidian)); }
.auth__box { width: 100%; max-width: 460px; margin-inline: auto; text-align: center; }
.auth__box .form { text-align: left; padding: var(--space-8); border-radius: var(--radius-md); background: var(--color-carbon); }

/* ── À propos ── */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, rgb(43, 43, 44), rgb(19, 19, 19)); display: grid; place-items: center; color: var(--color-fog); text-align: center; padding: 20px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Frise du parcours : un point par étape, reliés par un trait vertical */
.timeline { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-8); }
.timeline__item { position: relative; padding-left: 32px; display: grid; gap: var(--space-2); }
.timeline__item::before { content: ''; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-signal); box-shadow: 0 0 0 4px rgba(0, 179, 221, 0.18); }
.timeline__item:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 24px; bottom: calc(-1 * var(--space-8) + 6px); width: 1px; background: var(--color-line); }
.timeline__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-fog); }
.timeline__meta span:first-child { color: var(--color-signal); }
.timeline__item p:last-child { color: var(--color-ash); max-width: 52ch; }

/* Mémoires de recherche */
.research { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .research { grid-template-columns: repeat(2, 1fr); } }
.research__card { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-md); background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line); }
.research__card > p:not([class]) { color: var(--color-ash); }
.research__lab { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-signal); }
.research__title { padding-left: var(--space-4); border-left: 2px solid var(--color-signal); font-size: var(--text-small); line-height: 1.55; color: var(--color-cloud); }
.research__takeaway { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-family: var(--font-serif); font-style: italic; font-size: var(--text-sub); color: var(--color-cloud); }
.research__credentials { display: grid; gap: var(--space-4); margin-top: var(--space-10); }

/* ── Erreur ── */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; background: linear-gradient(rgb(15, 16, 17), rgb(19, 29, 39) 50%, var(--color-obsidian)); }

/* ── Packs (page Programmes) ── */
.pack-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pack-card {
  display: flex; gap: var(--space-6); align-items: center;
  padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-carbon);
  box-shadow: inset 0 0 0 1px var(--color-line);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), translate 0.4s var(--ease-out);
}
/* « translate » (et non « transform ») : ne se mélange pas avec l'animation d'apparition */
.pack-card:hover { background: #1f1f20; box-shadow: inset 0 0 0 1px var(--color-line-strong); translate: 0 -3px; }
/* Deux couvertures droites côte à côte, légèrement superposées */
.pack-card__covers { flex: none; display: flex; }
.pack-card__covers img { display: block; width: 64px; height: auto; border-radius: 6px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.9); }
.pack-card__covers img + img { margin-left: -18px; margin-top: 14px; }
.pack-card__body { display: grid; gap: 6px; min-width: 0; }
.pack-card__title { font-size: var(--text-body); line-height: 1.35; color: var(--color-pure); }
.pack-card__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pack-card__amount { font-family: var(--font-serif); font-weight: 300; font-size: 40px; line-height: 1; color: var(--color-cloud); white-space: nowrap; }
.pack-card__compare { font-size: var(--text-small); color: var(--color-ash); }
.pack-card__cta { margin-top: 8px; font-size: var(--text-small); color: var(--color-pure); }
.pack-card__cta .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.pack-card:hover .pack-card__cta .arrow { transform: translateX(4px); }

/* ── Quiz ── */
.quiz { min-height: 100svh; }
.quiz .h2 { max-width: 16ch; }
.quiz__progress { height: 3px; max-width: 560px; margin: var(--space-10) auto 0; border-radius: 3px; background: var(--color-line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--color-pure); transition: width 0.6s var(--ease-out); }
.quiz__form { max-width: 560px; margin: var(--space-8) auto 0; text-align: left; }
.quiz__step { border: 0; padding: 0; margin: 0; animation: quiz-in 0.6s var(--ease-out) both; }
.quiz__step legend { display: grid; gap: 8px; margin-bottom: var(--space-6); text-align: center; width: 100%; }
@keyframes quiz-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.quiz__options { display: grid; gap: 10px; }
.quiz__option { position: relative; display: block; cursor: pointer; }
.quiz__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quiz__option > span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 60px; padding: 16px 20px; border-radius: 14px;
  background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-sub); transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform 0.3s var(--ease-out);
}
.quiz__option:hover > span { box-shadow: inset 0 0 0 1px var(--color-line-strong); transform: translateX(4px); }
.quiz__option input:checked + span { background: var(--color-pure); color: var(--color-void); box-shadow: none; }
.quiz__option input:focus-visible + span { outline: 2px solid var(--color-pure); outline-offset: 2px; }
.quiz__arrow { opacity: 0.4; transition: transform 0.3s var(--ease-out), opacity var(--dur-fast); }
.quiz__option:hover .quiz__arrow { opacity: 1; transform: translateX(4px); }
.quiz__option[hidden] { display: none; }
.quiz__back { margin-top: var(--space-5); }

/* Résultat : titre centré, carte programme, puis deux offres côte à côte */
.quiz__result { max-width: 880px; margin: var(--space-10) auto 0; text-align: left; animation: quiz-in 0.8s var(--ease-out) both; }
.quiz-result { display: grid; gap: var(--space-6); }
.quiz-result > * { min-width: 0; }
.quiz-result__head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: var(--space-4); }
.quiz-result__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--color-cloud); max-width: 18ch; text-wrap: balance; }
.quiz-result__rating { color: #ffc94d; font-size: var(--text-small); }

.quiz-result__card {
  display: grid; gap: var(--space-8); align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line);
}
@media (min-width: 720px) { .quiz-result__card { grid-template-columns: 200px 1fr; gap: var(--space-10); } }
.quiz-result__card > * { min-width: 0; }
.quiz-result__cover { display: block; width: min(200px, 60%); margin-inline: auto; }
@media (min-width: 720px) { .quiz-result__cover { width: 100%; } }
.quiz-result__cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--color-line); transition: translate 0.4s var(--ease-out); }
.quiz-result__cover:hover img { translate: 0 -4px; }
.quiz-result__info { display: grid; gap: var(--space-4); }
.quiz-result__info .caption { margin-bottom: -8px; }
.quiz-result__why { font-size: var(--text-sub); line-height: 1.55; color: var(--color-pure); }
.quiz-result__points { display: grid; gap: 10px; padding: var(--space-4) 0 0; margin: 0; list-style: none; border-top: 1px solid var(--color-line); }
.quiz-result__points li { position: relative; padding-left: 26px; color: var(--color-ash); line-height: 1.45; }
.quiz-result__points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-success); }
.quiz-result__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fog); }

.quiz-result__offers { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .quiz-result__offers { grid-template-columns: 1fr 1fr; } }
.quiz-result__offers--single { max-width: 420px; width: 100%; margin-inline: auto; grid-template-columns: 1fr; }
.quiz-offer {
  display: grid; gap: 10px; align-content: start;
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line);
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), translate 0.3s var(--ease-out);
}
.quiz-offer:hover { background: #1f1f20; box-shadow: inset 0 0 0 1px var(--color-line-strong); translate: 0 -3px; }
.quiz-offer__price { font-family: var(--font-serif); font-weight: 300; font-size: 44px; line-height: 1; color: var(--color-cloud); }
.quiz-offer__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 28px; font-size: var(--text-small); color: var(--color-ash); }
.quiz-offer .btn { margin-top: var(--space-2); }

.quiz-result__foot { display: grid; justify-items: center; gap: 10px; margin-top: var(--space-4); text-align: center; font-size: var(--text-small); color: var(--color-ash); }

/* ── Ajustements téléphone (en fin de fichier pour primer sur les règles ci-dessus) ── */
@media (max-width: 699px) {
  .tile { min-height: 210px; gap: var(--space-8); padding: var(--space-6); }
  .tiles { gap: 10px; }
  /* E-books de l'accueil : carrousel horizontal à faire glisser */
  .book-row {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .book-row::-webkit-scrollbar { display: none; }
  .book-row > * { flex: 0 0 72%; scroll-snap-align: start; }
  .book-card__placeholder strong { font-size: 28px; }
  .week-strip { gap: 4px; }
  .week-strip__day { padding: 8px 2px; font-size: 10px; min-height: 64px; }
  .ex__meta input { width: 54px; }
  .day-card { padding: var(--space-4); }
  .title-input { font-size: 30px; }
  .stack-card { min-height: 320px; align-content: space-between; }
}

/* ── Impression du programme ── */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .scroll-progress, .no-print, .flash-stack { display: none !important; }
  .print-day { break-inside: avoid; margin-bottom: 20px; }
  .table-wrap { background: none; }
  .table th, .table td { color: #000; border-color: #ccc; }
  .h3, .h6 { color: #000; }
}

/* ── Coaching : sélecteur de durée, formules, étapes ── */
.duration-switch {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto var(--space-8); padding: 4px; border: 0;
  border-radius: var(--radius-pill); background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line);
}
.duration-switch label { position: relative; flex: 1 1 0; }
.duration-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.duration-switch span {
  display: block; padding: 12px 22px; border-radius: var(--radius-pill); text-align: center; white-space: nowrap;
  font-size: var(--text-small); color: var(--color-ash); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.duration-switch label:hover span { color: var(--color-pure); }
.duration-switch input:checked + span { background: var(--color-pure); color: var(--color-void); }
.duration-switch input:focus-visible + span { outline: 2px solid var(--color-pure); outline-offset: 2px; }
@media (max-width: 420px) { .duration-switch span { padding: 11px 12px; font-size: 13px; } }

.co-offers { display: grid; gap: var(--space-3); }
.co-offers > * { min-width: 0; }
@media (min-width: 960px) { .co-offers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.co-offer {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--color-carbon);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
.co-offer--featured { background: var(--color-graphite); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.co-offer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.co-offer__name { font-family: var(--font-serif); font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--color-cloud); }
.co-offer__tagline { color: var(--color-ash); font-size: var(--text-small); }
.co-offer__price { padding: var(--space-4) 0; border-block: 1px solid var(--color-line); }
.co-offer__price[hidden], .co-offer__cta[hidden] { display: none; }
.co-offer__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px, 4vw, 52px); line-height: 1; color: var(--color-pure); }
.co-offer__amount small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ash); white-space: nowrap; }
.co-offer__amount--text { font-size: clamp(30px, 3vw, 38px); }
.co-offer__month { margin-top: 10px; font-size: var(--text-small); color: var(--color-ash); }
.co-offer__caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ash); }
.co-offer__features { list-style: none; padding: 0; display: grid; gap: 12px; font-size: var(--text-small); color: #c9c9ca; }
.co-offer__features li { display: flex; gap: 12px; }
.co-offer__features li::before { content: '→'; flex: none; color: var(--color-pure); }
.co-offer__cta { margin-top: auto; white-space: normal; text-align: center; line-height: 1.3; }
.co-offer__cta .arrow { flex: none; }
/* Version accueil : la carte entière mène à /coaching */
.co-offer--link { transition: background var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease); }
.co-offer--link:hover { background: #222223; translate: 0 -3px; }
.co-offer--featured.co-offer--link:hover { background: #343435; }
.co-offer--link .pack-card__cta { margin-top: auto; }
.co-offer--link:hover .pack-card__cta .arrow { transform: translateX(4px); }
.co-offers__notice {
  max-width: 760px; margin: var(--space-8) auto 0; padding: 16px 20px; border-radius: 12px;
  background: var(--color-carbon); box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-small); line-height: 1.6; color: #c9c9ca; text-align: center;
}
.co-offers__legal { margin-top: 18px; color: var(--color-ash); }
.co-offers__legal a { color: var(--color-ash); text-decoration: underline; text-underline-offset: 3px; }
.co-offers__legal a:hover { color: var(--color-pure); }

.co-steps { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .co-steps { grid-template-columns: repeat(3, 1fr); } }
.co-steps__item { display: grid; align-content: start; gap: 12px; padding: var(--space-8); border-radius: var(--radius-md); background: var(--color-carbon); }
.co-steps__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--color-ash); }
