/* Pages publiques (Musculation, Nutrition, Méthode, imports, offres…).
   Elles chargent landing.css et landing-v2.css : couleurs, verre, boutons, barre, héros, bloc final et pied
   de page sont ceux de l’accueil. Ce fichier ne pose que la mise en page propre aux pages de contenu. */
.public-skip { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 650; }
.public-skip:focus { top: 12px; }

/* Guides et outils : mêmes variables, verre et boutons que les pages produit. */
.editorial-meta { width: min(1160px, 100% - 48px); margin: -24px auto 20px; color: var(--muted); font-size: 13px; }
.editorial-meta a { color: var(--action); text-underline-offset: 3px; }
.resource-grid, .resource-formulas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.resource-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.resource-kind { display: block; color: var(--gold-text); font-size: 12px; font-weight: 700; margin: 0 0 16px; }
.public-content .resource-action { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
.public-content .resource-options .public-card { padding: 24px; }
.resource-table { overflow-x: auto; border-radius: 18px; margin: 24px 0; }
.resource-table table { min-width: 500px; margin: 0; }
.resource-sources { margin: 24px 0; padding-left: 22px; color: var(--muted); }
.resource-sources li { margin: 16px 0; line-height: 1.65; }
.resource-sources a { overflow-wrap: anywhere; }
.demo-rm { max-width: 400px; }
.rm-demo-series { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.rm-demo-series b { font-size: 38px; letter-spacing: -.04em; }
.rm-demo-series span { color: var(--muted); }
.rm-demo-series small, .rm-demo-result small { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.rm-demo-result { padding: 22px; border: 1px dashed var(--brand); border-radius: 18px; background: var(--soft); }
.rm-demo-result > span { color: var(--muted); font-size: 13px; }
.rm-demo-result > b { display: block; margin-top: 8px; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--action); }
.rm-calculator { margin: 28px 0; padding: 28px; }
.rm-calculator fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
.rm-calculator legend { color: var(--ink); font-size: 19px; font-weight: 750; margin-bottom: 10px; padding: 0; }
.rm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 24px 0; }
.rm-field { min-width: 0; }
.rm-field:first-child { grid-column: 1; }
.rm-field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.rm-field input, .rm-field select { width: 100%; min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); }
.rm-field [aria-invalid=true] { border-color: #ad3e3e; }
.public-content .rm-field p { margin-top: 8px; font-size: 12px; line-height: 1.55; }
.rm-calculator .btn { width: 100%; min-height: 52px; }
.rm-calculator .btn:disabled { opacity: .5; cursor: not-allowed; }
.public-content .rm-error { color: #9b3030; font-size: 14px; padding: 12px 16px; background: #fff3f3; border-radius: 12px; }
.rm-output { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rm-output [hidden], .rm-calculator [hidden] { display: none !important; }
.public-content [data-rm-series] { font-size: 14px; }
.rm-estimates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.rm-estimates > div { border: 1px dashed var(--brand); background: var(--soft); padding: 20px; border-radius: 18px; }
.rm-estimates > div > span { color: var(--muted); font-size: 13px; font-weight: 650; }
.rm-estimates p { margin: 8px 0 0; color: var(--ink); white-space: nowrap; }
.rm-estimates strong { font-size: clamp(24px, 3vw, 42px); color: var(--action); line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.public-content .rm-private { font-size: 12px; line-height: 1.6; margin: 20px 0 0; }
.public-content .rm-formula { color: var(--ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.resource-formulas .public-card { padding: 22px; }
.resource-formulas .public-card p + p { margin-top: 16px; }
@media (max-width: 900px) {
  .resource-options { grid-template-columns: 1fr; }
  .editorial-meta { margin-top: -8px; }
}
@media (max-width: 600px) {
  .resource-grid, .resource-formulas { grid-template-columns: 1fr; }
  .rm-calculator { padding: 20px; }
  .rm-fields { grid-template-columns: 1fr; }
  .rm-estimates { gap: 10px; }
  .rm-estimates > div { padding: 16px 12px; }
  .rm-estimates strong { font-size: 30px; }
  .rm-demo-series b { font-size: 32px; }
}

/* Barre : toujours en verre sur ces pages ; lien de la page courante marqué. */
.public-page .nav-inner { position: relative; }
.public-page .nav-links a[aria-current="page"] { color: var(--ink); background: var(--glass-strong); }
.public-page .nav-links .nav-pop a[aria-current="page"] { background: var(--soft); }
.public-menu > summary { list-style: none; }
.public-menu > summary::-webkit-details-marker { display: none; }
.public-menu .sheet { position: absolute; inset: calc(100% + 10px) 0 auto; }
/* Dans la barre, le flou du verre ne voit pas la page : la feuille est donc presque opaque. */
.public-menu .sheet { background: rgba(255, 255, 255, .97); }
.public-menu .sheet .btn { display: inline-flex; }
.public-menu[open] .sheet { opacity: 1; transform: none; pointer-events: auto; }
.public-menu[open] .burger span { background: transparent; }
.public-menu[open] .burger span::before { transform: translateY(6px) rotate(45deg); }
.public-menu[open] .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.public-menu .sheet a[aria-current="page"] { background: var(--glass-strong); color: var(--action); }
@media (min-width: 721px) { .public-menu .sheet { left: auto; width: 360px; } }

/* Héros : même paysage, même voile et même typographie que l’accueil, sur une hauteur de page de contenu. */
.public-hero { min-height: auto; padding: 150px 0 96px; }
/* Le paysage et son voile s’effacent dans le fond de page au lieu de s’arrêter sur une ligne. */
.public-hero::after { display: none; }
.public-hero .hero-bg, .public-hero::before { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.pt { margin-left: -.09em; }
.public-hero h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px; text-wrap: balance; }
.public-hero .lead { max-width: 560px; }
.public-hero .fine { max-width: 520px; }
.public-stage { position: relative; aspect-ratio: 1; width: min(440px, 100%); justify-self: center; display: grid; place-items: center; }
.public-stage .stage-ring { inset: 6%; }
.public-pico { position: relative; width: 66%; filter: drop-shadow(0 26px 30px rgba(39, 106, 217, .22)); animation: float 6s ease-in-out infinite; }

/* Contenu : sections aérées, titres de l’accueil, cartes en verre. */
.public-content { width: min(1080px, 100% - 48px); margin: 0 auto; padding: 24px 0 96px; }
.public-content > section { padding: 56px 0; }
.public-content > section + section { border-top: 1px solid var(--line); }
.public-content h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; margin: 0 0 20px; max-width: 820px; text-wrap: balance; }
.public-content h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.public-content p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 70ch; margin: 0 0 16px; text-wrap: pretty; }
.public-content a { color: var(--action); font-weight: 600; text-underline-offset: 4px; }
.public-content a:hover { color: var(--action-hover); }

.public-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.public-card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.public-card::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--action), var(--glow)); }
.public-card p { font-size: 15.5px; margin: 0; }

.public-note { margin: 24px 0; padding: 22px 26px; border-radius: 20px; background: var(--soft); color: var(--ink); }
.public-note p:last-child { margin-bottom: 0; }

.public-steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.public-steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 76px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--muted); }
.public-steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(36, 99, 214, .7); }
.public-steps strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* Questions : même rendu que la FAQ de l’accueil. */
.public-content details { margin: 12px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .7); }
.public-content details[open] { background: rgba(255, 255, 255, .9); }
.public-content summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.public-content summary::-webkit-details-marker { display: none; }
.public-content summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.public-content details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.public-content details p { margin: 12px 0 0; font-size: 16px; }

/* Liens « Pour aller plus loin » : pastilles en verre. */
.public-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.public-content .public-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; transition: transform .25s var(--ease), background .2s; }
.public-content .public-links a::after { content: "→"; color: var(--action); transition: transform .25s var(--ease); }
.public-content .public-links a:hover { background: var(--glass-strong); transform: translateY(-2px); }
.public-content .public-links a:hover::after { transform: translateX(3px); }

/* Tableaux éventuels des pages méthode et imports. */
.public-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; background: var(--glass); border-radius: 18px; overflow: hidden; }
.public-content th, .public-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }

/* Bloc final de l’accueil, actions centrées. */
.public-final { margin-bottom: 40px; }
.public-final .hero-actions { justify-content: center; margin-top: 28px; }

.public-error .public-hero { min-height: 70svh; display: grid; align-items: center; }

@media (max-width: 900px) {
  .public-hero { padding: 118px 0 56px; }
  .public-stage { width: min(300px, 70%); margin-top: 8px; }
  .public-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .public-hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .public-content { width: calc(100% - 32px); padding-bottom: 64px; }
  .public-content > section { padding: 44px 0; }
  .public-content p { font-size: 16px; }
  .public-card { padding: 22px; }
  .public-steps li { padding: 18px 18px 18px 64px; }
  .public-steps li::before { left: 16px; top: 16px; width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-pico { animation: none; }
}

/* ——— Pages à identité propre ———
   Même monde que l’accueil ; chaque page a sa lumière et montre son écran au travail.
   Musculation : matin froid. Nutrition : lumière dorée sur fond crème. Sources : relevé topographique. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.public-page ::selection { background: rgba(36, 99, 214, .18); }
.page-nutri { --bg: #F6F3EC; --hero-veil: linear-gradient(90deg, #F6F3EC 0%, rgba(246, 243, 236, .93) 32%, rgba(246, 243, 236, 0) 64%); }
.page-nutri ::selection { background: rgba(199, 154, 67, .3); }
.page-nutri .backdrop { background: linear-gradient(180deg, #F8F4EB 0%, #F6F1E5 50%, #F3EDE0 100%); }
.page-nutri .a1 { background: radial-gradient(closest-side, rgba(214, 168, 88, .26), transparent); }
.page-nutri .a2 { background: radial-gradient(closest-side, rgba(244, 204, 146, .32), transparent); }
.page-nutri .a4 { background: radial-gradient(closest-side, rgba(117, 167, 255, .16), transparent); }
.page-sources { --bg: #F1F4F7; --hero-veil: linear-gradient(90deg, #F1F4F7 0%, rgba(241, 244, 247, .94) 34%, rgba(241, 244, 247, .15) 66%); }
.page-sources .backdrop { background: linear-gradient(180deg, #F2F5F8 0%, #EDF1F5 50%, #F0F2F4 100%); }
.page-sources .aur { opacity: .4; }

/* Le même paysage, à la lumière de chaque page. */
.page-muscu { --bg: #EDF3FB; --hero-veil: linear-gradient(90deg, #EDF3FB 0%, rgba(237, 243, 251, .93) 32%, rgba(237, 243, 251, 0) 64%); }
.page-muscu .backdrop { background: linear-gradient(180deg, #EBF2FC 0%, #E6EEFA 50%, #EEF2F8 100%); }
.page-muscu .a1 { background: radial-gradient(closest-side, rgba(36, 99, 214, .34), transparent); }
.page-muscu .a3 { background: radial-gradient(closest-side, rgba(117, 167, 255, .3), transparent); }
.page-muscu .public-hero .hero-bg img { filter: saturate(1.25) hue-rotate(10deg) contrast(1.08) brightness(.97); }
.page-muscu .public-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(36, 99, 214, .5), rgba(117, 167, 255, .22) 38%, transparent 68%); mix-blend-mode: multiply; }
.page-nutri .public-hero .hero-bg img { filter: sepia(.3) saturate(1.2) hue-rotate(-10deg) brightness(1.03); }
.page-nutri .public-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(215deg, rgba(240, 170, 80, .5), rgba(246, 214, 160, .16) 45%, transparent 72%); mix-blend-mode: soft-light; }
.page-sources .public-hero .hero-bg img { filter: grayscale(.8) contrast(1.1) brightness(1.05); }
.page-sources .public-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: url(/assets/topo-ink.svg) center / 520px 520px repeat; }

/* Héros : une carte de l’app à l’échelle, Pico posé sur son coin. */
.demo-stage { position: relative; justify-self: center; width: min(440px, 100%); padding: 36px 0 24px; }
.demo-card { position: relative; margin: 0; padding: 22px 20px 18px; border-radius: 26px; background: rgba(255, 255, 255, .94); box-shadow: 0 34px 60px -30px rgba(20, 50, 100, .48), 0 2px 8px rgba(20, 38, 58, .06); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); font-size: 14px; animation: demo-in .9s var(--ease) .15s both; }
@keyframes demo-in { from { opacity: 0; transform: translateY(22px) scale(.98); } }
.demo-tag { position: absolute; top: -12px; left: 20px; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px dashed #9AA8B7; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.demo-head b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.demo-head > div span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.demo-pico { position: absolute; z-index: 2; width: 150px; pointer-events: none; filter: drop-shadow(0 20px 22px rgba(39, 106, 217, .24)); animation: float 6s ease-in-out infinite; }
.page-muscu .demo-pico { right: -34px; top: -66px; width: 136px; }
.page-nutri .demo-pico { left: -74px; bottom: -14px; width: 140px; }
.page-sources .demo-pico { right: -50px; bottom: -22px; width: 132px; }
.dico { width: 18px; height: 18px; flex: none; }

/* Musculation : la séance en cours. */
.rest-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--soft); color: var(--action); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rest-pill b { font-variant-numeric: tabular-nums; }
.rest-pill .dico { width: 15px; height: 15px; }
.sets { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.sets th { padding: 0 4px 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-align: center; }
.sets td { padding: 9px 4px; text-align: center; font-weight: 750; background: #F2F5F9; }
.sets td:first-child { border-radius: 12px 0 0 12px; color: var(--muted); }
.sets td:last-child { border-radius: 0 12px 12px 0; width: 30px; }
.sets td:nth-child(2) { color: var(--muted); font-weight: 600; }
.sets .done td { background: rgba(19, 123, 103, .07); }
.sets .done .dico { width: 16px; height: 16px; color: var(--success); stroke-width: 3; vertical-align: -3px; }
.sets .up { color: var(--success); }
.sets .now td { background: var(--soft); }
.field { display: inline-block; min-width: 40px; padding: 5px 6px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.field.typing { border-color: var(--action); box-shadow: 0 0 0 3px rgba(36, 99, 214, .16); }
.field.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--action); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-foot { margin: 8px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.demo-foot .up { color: var(--success); }

/* Nutrition : le déjeuner pesé et l’objectif du jour (l’or ne marque que l’objectif). */
.foods { list-style: none; padding: 0; margin: 10px 0 0; }
.foods li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.food { display: flex; align-items: center; gap: 8px; min-width: 0; }
.food b { font-size: 14.5px; font-weight: 700; }
.state { padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--action); font-size: 11.5px; font-weight: 700; }
.src { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.qty { font-weight: 800; font-variant-numeric: tabular-nums; }
.day { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #F7F0DF; }
.day-total { display: flex; align-items: baseline; gap: 6px; }
.day-total span { flex: 1; color: var(--gold-text); font-size: 12.5px; font-weight: 700; }
.day-total b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.day-total small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.target { position: relative; height: 10px; margin: 10px 0 14px; border-radius: 999px; background: rgba(157, 116, 46, .16); }
.target i { position: absolute; inset: 0 26% 0 0; border-radius: 999px; background: var(--action); animation: target-fill 1.4s var(--ease) .5s both; }
.target em { position: absolute; right: -1px; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--gold-chart); }
@keyframes target-fill { from { right: 100%; } }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.macros dt { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.macros dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Sources : une même séance, quatre statuts. Les marques sont reprises dans la légende. */
.mark { width: 20px; height: 20px; flex: none; }
.mark-saisi { fill: var(--action); }
.mark-calcule { fill: var(--ink); stroke: var(--ink); }
.mark-propose { stroke: #7D8B9B; }
.mark-decide { fill: var(--success); }
.fiche { list-style: none; padding: 0; margin: 10px 0 0; }
.fiche li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 2px; border-bottom: 1px solid var(--line); animation: mark-in .6s var(--ease) both; }
.fiche li:last-child { border-bottom: 0; padding-bottom: 4px; }
.fiche li:nth-child(1) { animation-delay: .45s; } .fiche li:nth-child(2) { animation-delay: .6s; } .fiche li:nth-child(3) { animation-delay: .75s; } .fiche li:nth-child(4) { animation-delay: .9s; }
@keyframes mark-in { from { opacity: 0; transform: translateX(-8px); } }
.fiche .mark { margin-top: 1px; }
.fiche b { display: block; font-size: 14.5px; font-weight: 750; }
.fiche span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

/* Panneaux de démonstration dans le contenu. */
.panel { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(20, 38, 58, .06), 0 26px 50px -32px rgba(20, 50, 100, .38); }
.panel figcaption b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.panel figcaption span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.panel-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; }
.key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.key-other { border: 2px dashed #9AA8B7; }
.key-observed { background: var(--action); }
.key-projection { width: 20px; height: 0; border-radius: 0; border-top: 2.5px dashed var(--gold-chart); margin-left: 8px; }
.pchart { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.pchart .grid line { stroke: var(--line); stroke-width: 1; }
.pchart text { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pchart .line { fill: none; stroke: var(--action); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pchart .dots circle { fill: var(--surface); stroke: var(--action); stroke-width: 3; }
.pchart .dots circle:last-of-type { fill: var(--action); }
.pchart .other { fill: none; stroke: #9AA8B7; stroke-width: 2; stroke-dasharray: 2.5 2.5; }
.pchart .projection { stroke: var(--gold-chart); stroke-width: 2.5; stroke-dasharray: 7 6; }
.pchart .projection-label { fill: var(--gold-text); font-weight: 700; }

/* Musculation : journal et progression côte à côte. */
.journal-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; margin-top: 12px; }
.feature-rows { margin: 0; }
.feature-rows div { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-rows div:first-child { border-top: 0; padding-top: 8px; }
.feature-rows dt { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.feature-rows dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.progress-panel { position: sticky; top: 108px; }

/* Musculation : la même séance, son statut d’enregistrement à trois moments (libellés de l’app). */
.sync-log { margin: 8px 0 28px; padding: 22px 24px 10px; }
.sync-log ol { list-style: none; padding: 0; margin: 10px 0 0; }
.sync-log li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sync-when { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sync-what { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status .dico { width: 16px; height: 16px; }
.s-local { border: 1px dashed #7D8B9B; color: var(--muted); }
.s-sync { background: var(--soft); color: var(--action); }
.s-done { background: rgba(19, 123, 103, .1); color: var(--success); }

/* Nutrition : la feuille d’ajout de l’app. */
.add-sheet { margin-top: 28px; padding: 14px 32px 8px; }
.add-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: var(--line); }
.sheet-title { margin: 0 0 4px !important; color: var(--ink) !important; font-size: 16px !important; font-weight: 800; }
.add-sheet ul { list-style: none; padding: 0; margin: 0; }
.add-sheet li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.method-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--action); }
.method-ico .dico { width: 20px; height: 20px; }
.add-sheet li b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.add-sheet li p { max-width: 62ch; margin: 4px 0 0 !important; font-size: 15.5px !important; }
.method-tag { margin-top: 2px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.method-tag.estimate { border-style: dashed; border-color: #9AA8B7; }

/* Nutrition : deux pesées de 100 g, une seule bonne fiche. */
.weigh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 32px; }
.weigh { display: grid; justify-items: start; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.readout { padding: 10px 18px 8px; border-radius: 14px; background: var(--navy); color: #EAF1FF; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .4); }
.readout small { font-size: 18px; font-weight: 700; color: #B3C4D7; }
.weighed { color: var(--muted); font-size: 14px; font-weight: 600; }
.arrow { position: relative; width: 2px; height: 22px; margin-left: 28px; background: var(--line); }
.arrow::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top-color: var(--line); border-bottom: 0; }
.weigh .food-sheet { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14.5px; font-weight: 700; }
.weigh.ko .food-sheet { border: 1.5px dashed #B34B42; }
.verdict { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15.5px; font-weight: 800; }
.verdict .dico { width: 18px; height: 18px; stroke-width: 3; }
.weigh.ok .verdict { color: var(--success); }
.weigh.ko .verdict { color: #B34B42; }

/* Nutrition : point de départ calculé et tendance observée. */
.target-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* Sources : sommaire fixe, colonne de lecture, légende et CSV lu. */
.public-content.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; width: min(1160px, 100% - 48px); }
.toc { position: sticky; top: 108px; align-self: start; padding-top: 56px; }
.toc p { margin: 0 0 10px; color: var(--ink); font-size: 13.5px; font-weight: 800; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 1px solid var(--line); }
.public-content .toc a { display: block; padding: 8px 12px 8px 16px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.public-content .toc a:hover { color: var(--ink); background: rgba(20, 38, 58, .05); }
.public-content .toc a[aria-current="location"] { color: var(--action); background: var(--soft); box-shadow: inset 3px 0 0 var(--action); }
.toc-body { max-width: 780px; }
.toc-body > section { padding: 56px 0; scroll-margin-top: 92px; }
.toc-body > section + section { border-top: 1px solid var(--line); }
.page-sources .public-content h2 { font-size: clamp(28px, 2.9vw, 40px); }
.status-legend { margin: 28px 0 0; }
.status-legend div { display: grid; grid-template-columns: 40px 210px minmax(0, 1fr); gap: 4px 20px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.status-legend .mark { width: 28px; height: 28px; }
.status-legend dt { font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding-top: 3px; }
.status-legend dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.csv-read { margin: 8px 0 24px; }
.csv-scroll { overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }
.csv-scroll:focus-visible { outline: 3px solid rgba(36, 99, 214, .35); outline-offset: 2px; }
.public-content .csv-read table { min-width: 560px; margin: 0; background: none; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.public-content .csv-read th, .public-content .csv-read td { white-space: nowrap; }
.public-content .csv-read th { color: var(--muted); font-weight: 700; background: #F7F9FB; }
.public-content .csv-read tr:last-child td { border-bottom: 0; }
.public-content .csv-read .hl { background: #E8EEF4; color: var(--ink); font-weight: 700; }
.csv-notes { list-style: none; display: grid; gap: 10px; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.csv-notes b { margin-right: 10px; padding: 2px 8px; border-radius: 6px; background: #E8EEF4; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

@media (max-width: 1100px) {
  .page-sources .demo-pico { right: -16px; }
}
@media (max-width: 900px) {
  /* Sur mobile, le texte passe sur le paysage : le voile prend la couleur de fond de la page. */
  .public-page .public-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, var(--bg) 100%); }
  .demo-stage { width: min(460px, 100%); justify-self: start; margin-top: 20px; padding-top: 28px; }
  .journal-grid, .target-grid { grid-template-columns: 1fr; gap: 28px; }
  .progress-panel { position: static; }
  .public-content.has-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; padding: 32px 0 8px; }
}
@media (max-width: 720px) {
  .sync-log { padding: 18px 16px 6px; }
  .sync-log li { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 12px; }
  .status { grid-column: 2; justify-self: start; white-space: normal; line-height: 1.35; }
  .weigh-grid { grid-template-columns: 1fr; }
  .status-legend div { grid-template-columns: 34px minmax(0, 1fr); }
  .status-legend dd { grid-column: 2; }
  .add-sheet { padding: 12px 18px 4px; }
  .add-sheet li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .method-ico { width: 40px; height: 40px; }
  .method-tag { grid-column: 2; justify-self: start; margin-top: 0; }
}
@media (max-width: 640px) {
  .demo-card { padding: 20px 16px 16px; }
  .demo-pico { width: 104px !important; }
  .page-muscu .demo-pico { right: -8px; top: -44px; }
  .page-nutri .demo-pico { left: auto; right: -6px; bottom: -40px; }
  .page-sources .demo-pico { right: -6px; bottom: -40px; }
  .sets th, .sets td { padding-left: 2px; padding-right: 2px; }
  .panel { padding: 20px 16px; }
  .readout { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-card, .demo-pico, .fiche li, .target i, .field.typing::after { animation: none; }
}

/* Fiches du catalogue : illustrations lisibles, crédits conservés et mêmes cartes que le journal. */
.exercise-visual { padding-top: 36px; }
.exercise-frames { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; background: white; border-radius: 14px; overflow: hidden; }
.exercise-frames:has(img:only-child) { grid-template-columns: 1fr; }
.exercise-frames img { display: block; width: 100%; height: 240px; object-fit: contain; }
.exercise-visual figcaption { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.exercise-visual figcaption a { color: var(--action); text-underline-offset: 3px; }
.page-exercise .demo-pico { width: 110px; right: -14px; bottom: -40px; top: auto; }
.exercise-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.exercise-facts div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.exercise-facts dt { font-size: 14px; font-weight: 750; }
.exercise-facts dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.exercise-steps { padding-left: 24px; }
.exercise-steps li { padding: 10px 0 10px 8px; }
.cal-eligible { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; color: var(--ink); font-size: 14px; line-height: 1.6; cursor: pointer; }
.cal-eligible input { flex: none; width: 22px; height: 22px; margin: 2px 0; accent-color: var(--action); }
.calorie-results { display: grid; gap: 16px; }
.calorie-results > div { padding: 20px; border: 1px dashed var(--brand); background: var(--soft); border-radius: 18px; }
.calorie-results > div > span { color: var(--muted); font-size: 14px; }
.calorie-results p { margin: 8px 0 0; }
.calorie-results strong { color: var(--action); font-size: clamp(26px,3vw,38px); line-height: 1.3; font-variant-numeric: tabular-nums; }
@media (max-width:640px) {
 .exercise-facts { grid-template-columns: 1fr; gap: 12px; }
 .exercise-frames img { height: 180px; }
 .page-exercise .demo-pico { right: -2px; }
 .calorie-results > div { padding: 18px 16px; }
}

.comparison-scroll-hint, .table-scroll-hint { display: none; }
.calorie-results strong { margin-right: 6px; }
@media (max-width:640px) { .public-content .comparison-scroll-hint, .public-content .table-scroll-hint { display: block; margin-bottom: 12px; font-size: 13px; } }
