/* Lesto · site vitrine. Système « Élan » (DESIGN.md) : neutres froids, une seule famille (Archivo),
   un seul aplat jaune par écran (l'action à faire), teinte de module seulement sur un chiffre ou une pastille.
   Aucune dépendance : polices auto-hébergées, aucun cookie, aucun script tiers. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo SemiExpanded"; src: url("fonts/ArchivoSemiExpanded-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo Condensed"; src: url("fonts/ArchivoCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --surface2: #ECEEF1;
  --track: #E1E4E9;
  --line: #E3E6EA;
  --line-strong: #CDD2D9;
  --text1: #0F1115;
  --text2: #4B5260;
  --text3: #5D6472;
  --inverse: #FFFFFF;
  --focus: #0F1115;
  --now: #FFD60A;
  --now-pressed: #F0C400;
  --now-on: #0F1115;
  --training: #B23A0A;
  --training-data: #E0500F;
  --training-tint: #FFE8DC;
  --nutrition: #047A55;
  --nutrition-data: #0A9463;
  --nutrition-tint: #DCF6EB;
  --supplements: #6841E6;
  --supplements-data: #7F57F0;
  --supplements-tint: #EDE7FF;
  --todo: #B4202F;
  --todo-tint: #FFF5C2;
  --logo-a: #0F1115;
  --logo-b: #0F1115;
  --shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 8px 24px rgba(15, 17, 21, .06);

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wide: "Archivo SemiExpanded", "Archivo", -apple-system, sans-serif;
  --num: "Archivo Condensed", "Archivo", -apple-system, sans-serif;
  --page: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --surface: #15181D;
    --surface2: #1D2127;
    --track: #272B32;
    --line: #262A31;
    --line-strong: #353A42;
    --text1: #F3F4F6;
    --text2: #A9AFBA;
    --text3: #8B92A0;
    --inverse: #0F1115;
    --focus: #FFD60A;
    --training: #FF9A6B;
    --training-data: #FF7A3F;
    --training-tint: #33190F;
    --nutrition: #4FE3A9;
    --nutrition-data: #2EDB98;
    --nutrition-tint: #0E2A20;
    --supplements: #BBA3FF;
    --supplements-data: #A98AFF;
    --supplements-tint: #221A3B;
    --todo: #FF7F8E;
    --todo-tint: #2B2505;
    --logo-a: #FFFFFF;
    --logo-b: #FFD60A;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text1);
  font: 400 17px/1.45 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 12px; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 10px; }

/* Icônes (Lucide, ISC) */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--logo-a); }
.logo svg { width: 104px; height: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { font: 600 15px/20px var(--sans); text-decoration: none; color: var(--text2); padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text1); background: var(--surface2); }

/* Boutons (rayons Élan : 14 à 16, jamais en pilule) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 16px;
  font: 700 17px/22px var(--sans); text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-now { background: var(--now); color: var(--now-on); }
.btn-now:hover { background: var(--now-pressed); text-decoration: none; }
.btn-quiet { background: var(--surface2); color: var(--text1); }
.btn-quiet:hover { background: var(--track); text-decoration: none; }

/* Scène (corps 3D, moments forts) : toujours sombre, même en thème clair (VITRINE.md) */
.scene {
  --text1: #F3F4F6; --text2: #A9AFBA; --text3: #8B92A0; --surface2: #1D2127; --track: #272B32;
  --line: #262A31; --focus: #FFD60A; --logo-a: #FFFFFF; --logo-b: #FFD60A;
  color: var(--text1);
  background:
    radial-gradient(70% 60% at 72% 38%, rgba(255, 122, 63, .16), transparent 70%),
    radial-gradient(90% 80% at 70% 30%, #1D2127 0%, #0B0D10 62%);
  color-scheme: dark;
}
.scene .nav a:hover, .scene .nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero-text { max-width: 600px; }
.kicker { font: 600 15px/20px var(--sans); color: var(--text2); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kicker span { display: inline-flex; align-items: center; gap: 6px; }
.kicker span + span::before { content: ""; width: 4px; height: 4px; border-radius: 2px; background: var(--text3); margin-right: 8px; }
.display { font: 800 clamp(38px, 6.2vw, 68px)/1.02 var(--wide); letter-spacing: -.025em; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text2); margin-top: 20px; max-width: 34em; }
.lead strong { color: var(--text1); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { font-size: 13px; line-height: 18px; color: var(--text3); margin-top: 14px; }

/* Téléphone */
.phone {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 600 / 1304;
  padding: 9px; border-radius: 46px; background: #0F1115;
  box-shadow: 0 0 0 1px #353A42, 0 2px 0 1px #262A30 inset, 0 40px 80px -20px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #15181D; }
.hero-phone { justify-self: center; }

/* Sections */
.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.h2 { font: 800 clamp(28px, 4vw, 40px)/1.1 var(--wide); letter-spacing: -.02em; }
.section-head p { color: var(--text2); font-size: 19px; line-height: 1.5; margin-top: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--flip > :first-child { order: 2; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones .phone { width: calc(50% - 10px); max-width: 260px; }
.phones .phone:nth-child(2) { margin-top: 48px; }

/* Cartes de module */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { font: 700 19px/24px var(--sans); margin: 16px 0 8px; }
.card p { color: var(--text2); font-size: 16px; line-height: 1.5; }
.chip { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; }
.chip .ic { width: 22px; height: 22px; }
.chip--training { background: var(--training-tint); color: var(--training); }
.chip--nutrition { background: var(--nutrition-tint); color: var(--nutrition); }
.chip--supplements { background: var(--supplements-tint); color: var(--supplements); }
.chip--ink { background: var(--surface2); color: var(--text1); }
.stat { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.stat b { font: 800 40px/44px var(--num); letter-spacing: 0; }
.stat span { font: 600 15px/20px var(--sans); color: var(--text2); }
.stat--training b { color: var(--training-data); }
.stat--nutrition b { color: var(--nutrition-data); }
.stat--supplements b { color: var(--supplements-data); }

/* Liste à puces sobre */
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--text2); }
.points li strong { color: var(--text1); font-weight: 600; }
.points .ic { margin-top: 2px; color: var(--text1); }

/* Chiffres du corps 3D */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.figure { border-top: 2px solid var(--training-data); padding-top: 14px; }
.figure b { display: block; font: 800 clamp(40px, 5vw, 56px)/1 var(--num); color: var(--training-data); }
.figure span { display: block; margin-top: 8px; font: 600 15px/20px var(--sans); color: var(--text2); }

/* Conversation du coach */
.chat { display: grid; gap: 12px; margin-top: 28px; }
.bubble { justify-self: end; max-width: 92%; background: var(--text1); color: var(--inverse); border-radius: 20px 20px 6px 20px; padding: 12px 16px; font-size: 16px; line-height: 1.45; }
.reply { display: flex; gap: 10px; align-items: flex-start; color: var(--text2); font-size: 15px; line-height: 1.45; padding-left: 4px; }
.reply .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--text1); }
.note { margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--text3); }

/* Confidentialité */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust .card h3 { margin-top: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 600; }

/* Formules */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan h3 { font: 800 24px/30px var(--wide); letter-spacing: -.01em; margin: 0; }
.plan .sub { color: var(--text2); margin-top: 6px; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--text3); }
.plan--premium { border-color: var(--line-strong); }
.badge { display: inline-block; font: 600 12px/16px var(--sans); padding: 4px 8px; border-radius: 6px; background: var(--text1); color: var(--inverse); vertical-align: middle; margin-left: 8px; }

/* Contact */
.closing { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.closing .actions { margin-top: 0; justify-content: flex-end; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); margin-top: 88px; padding-top: 32px; padding-bottom: 48px; color: var(--text3); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text2); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--text1); text-decoration: underline; }
.foot .logo svg { width: 76px; }
.foot small { display: block; margin-top: 16px; font-size: 13px; line-height: 18px; }

/* Pages de texte (confidentialité, assistance, mentions) */
.doc { max-width: 760px; padding-top: 32px; }
.doc h1 { font: 800 clamp(32px, 5vw, 44px)/1.08 var(--wide); letter-spacing: -.02em; }
.doc .updated { color: var(--text3); font-size: 15px; margin-top: 12px; }
.doc .intro { font-size: 19px; line-height: 1.5; color: var(--text2); margin-top: 20px; }
.doc h2 { font: 700 22px/28px var(--sans); margin: 48px 0 12px; scroll-margin-top: 16px; }
.doc h3 { font: 700 18px/24px var(--sans); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text2); line-height: 1.6; }
.doc p strong, .doc li strong { color: var(--text1); font-weight: 600; }
.doc ul { padding-left: 20px; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .card { margin-top: 28px; }
.doc .card h2 { margin-top: 0; }
.toc { margin-top: 28px; padding: 20px 24px; border-radius: 20px; background: var(--surface2); }
.toc strong { display: block; font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { color: var(--text2); break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table { width: 100%; overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table--wide table { min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--text1); background: var(--surface2); }
td { color: var(--text2); }
tr:last-child td { border-bottom: 0; }

/* Champ à remplir par le fondateur : visible tant qu'il n'est pas rempli */
.fill { background: var(--todo-tint); color: var(--todo); font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px dashed currentColor; }

/* FAQ */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 17px/24px var(--sans); color: var(--text1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text3); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p, .faq .answer li { color: var(--text2); line-height: 1.6; }

.contact-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact-card p { color: var(--text2); }

/* Page introuvable */
.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; }
.lost .display { font-size: clamp(34px, 6vw, 56px); }
.lost .actions { justify-content: center; }

/* Tablette et téléphone */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; padding-bottom: 0; }
  .hero-phone { width: 260px; aspect-ratio: auto; height: 400px; overflow: hidden; padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .hero-phone img { height: auto; aspect-ratio: 600 / 1304; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .hero-phone::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(11, 13, 16, 0), #0B0D10); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--flip > :first-child { order: 0; }
  .cards, .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .closing { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .closing .actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .top { height: 64px; }
  .logo svg { width: 88px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
  .nav .nav-extra { display: none; }
  .hero-text { max-width: none; }
  .lead { font-size: 17px; }
  .actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 17px; }
  .cards, .trust, .plans { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; }
  .figures { gap: 12px; }
  .figure b { font-size: 36px; }
  .figure span { font-size: 13px; line-height: 18px; }
  .phones { gap: 12px; }
  .phones .phone { width: calc(50% - 6px); padding: 6px; border-radius: 30px; }
  .phones .phone img { border-radius: 25px; }
  .phones .phone:nth-child(2) { margin-top: 32px; }
  .closing { padding: 24px; border-radius: 20px; }
  .foot { margin-top: 64px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
  .doc h2 { margin-top: 40px; }
}

/* Variantes sans style en ligne (la politique de sécurité du site interdit les styles en ligne) */
.cards--row { margin-top: 56px; }
@media (max-width: 960px) and (min-width: 641px) { .cards--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--row .card { padding: 20px; } }
.section-head--tight { margin-bottom: 0; }
.lead--tight { margin-top: 14px; }
