/* Nutrition du sport (/nutrition-du-sport/) — préfixe de classes « nds- ». Ne contient que ce qui est propre à la page. */

/* ─── Haut de page ─────────────────────────────────────────────────────── */
.nds-hero .page-head__media { min-height: 620px; }
.nds-hero .price-box__note strong { color: var(--ink); }
@media (max-width: 1080px) { .nds-hero .page-head__media { min-height: 0; } }

/* ─── Vous vous reconnaissez ──────────────────────────────────────────── */
.nds-situations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.nds-situation { background: #fff; border-radius: var(--r-l); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.nds-situation__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.nds-situation p { font-size: var(--fs-card); line-height: 1.55; color: var(--ink-2); }
/* La phrase reste d'un seul tenant (le gras ouvre la phrase, la suite commence par « , » ou « : ») */
.nds-situation strong { font-weight: 700; color: var(--ink); }
.nds-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: var(--fs-card); font-weight: 700; color: var(--teal-deep); }
.nds-levels__scale { display: inline-flex; align-items: center; gap: 10px; color: var(--oak-ink); }
.nds-levels__scale i { position: relative; width: 120px; height: 2px; background: var(--oak); }
.nds-levels__scale i::before, .nds-levels__scale i::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--oak); }
.nds-levels__scale i::before { left: -2px; } .nds-levels__scale i::after { right: -2px; }
@media (max-width: 1080px) { .nds-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .nds-situations { grid-template-columns: minmax(0, 1fr); } .nds-situation { flex-direction: row; align-items: flex-start; padding: 20px; } .nds-situation__icon { flex: none; width: 44px; height: 44px; } }

/* ─── Ce qu'on travaille : sommaire + cartes ──────────────────────────── */
.nds-index__chip { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nds-index__chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.nds-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nds-topic { scroll-margin-top: calc(var(--header-h) + 16px); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.nds-topic p { font-size: var(--fs-small); line-height: 1.65; color: var(--ink-2); }
.nds-topic--wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: start; background: var(--mist); }
.nds-topic--wide > .nds-topic__head { grid-column: 1 / -1; }
.nds-topic__head { display: flex; align-items: baseline; gap: 14px; }
.nds-topic__num { color: var(--oak-ink); }
.nds-topic__title { font-size: 1.25rem; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.nds-topic--wide .nds-topic__title { font-size: var(--fs-h4); }
.nds-topic__care { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-dash); font-size: var(--fs-xs) !important; color: var(--ink-3) !important; }
.nds-topic__care strong { color: var(--teal-deep); }
.nds-topic .link-arrow { margin-top: auto; align-self: flex-start; }
.nds-topic__discreet { font-size: var(--fs-xs) !important; }
.nds-topic__discreet a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); }
/* stratégie : ce qu'on fixe par heure */
#strategie-de-course > p:first-of-type { grid-row: 2 / 4; }
.nds-hour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.nds-hour li { background: #fff; border: 2px solid var(--teal); border-radius: var(--r-m); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.nds-hour .mono { font-size: .75rem; color: var(--oak-ink); }
.nds-hour strong { font-size: 1.125rem; color: var(--teal-deep); }
.nds-topic__factors { color: var(--ink-3) !important; font-weight: 600; }
.nds-topic__factors .mono { color: var(--oak-ink); margin-right: 6px; }
/* protocoles */
.nds-topic--protocols > p:first-of-type { grid-row: 2; }
.nds-topic--protocols > .nds-topic__care { grid-column: 1; grid-row: 3; margin-top: 0; }
.nds-protocols { grid-column: 2; grid-row: 2 / 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.nds-protocols li { background: #fff; border-radius: var(--r-m); padding: 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; border-left: 3px solid var(--oak); }
.nds-protocols__num { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.nds-protocols p { color: var(--ink); font-weight: 600; }
/* compléments : filtre en 4 temps */
.nds-filter { display: flex; flex-direction: column; gap: 0; margin: 0; counter-reset: none; }
.nds-filter li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 0; font-weight: 700; color: var(--ink); font-size: var(--fs-small); }
.nds-filter li + li::before { content: ''; position: absolute; left: 15px; top: -6px; height: 12px; border-left: 1.5px dashed var(--oak); }
.nds-filter .mono { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; }
.nds-filter li:last-child .mono { background: var(--teal); color: #fff; }
#complements > p { grid-column: 2; }
#complements > .nds-filter { grid-row: 2 / 4; }
@media (max-width: 1080px) {
  .nds-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nds-topic--wide { grid-column: span 2; }
}
@media (max-width: 719px) {
  .nds-topics { grid-template-columns: minmax(0, 1fr); }
  .nds-topic, .nds-topic--wide { grid-column: auto; padding: 22px 20px; }
  .nds-topic--wide { grid-template-columns: minmax(0, 1fr); }
  .nds-topic--wide > *, #strategie-de-course > p:first-of-type, .nds-topic--protocols > *, #complements > * { grid-column: 1 !important; grid-row: auto !important; }
  .nds-protocols { grid-template-columns: minmax(0, 1fr); }
  .nds-hour { gap: 8px; } .nds-hour li { padding: 12px 6px; }
}

/* ─── Comment se passe le suivi : frise qui se sépare en deux (fond sombre) ── */

.nds-fork { display: flex; flex-direction: column; align-items: stretch; }
.nds-node { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; width: 100%; margin-inline: auto; }
.nds-node p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.nds-node__head { display: flex; align-items: center; gap: 12px; }
.nds-node__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--teal); color: #fff; }
.nds-node__tag, .nds-rdv__tag { font-size: .78125rem; color: var(--oak-ink); }
.nds-node__title { font-size: var(--fs-h4); line-height: 1.25; font-weight: 800; color: var(--ink); }
.nds-node__price { font-size: var(--fs-small) !important; font-weight: 800; color: var(--teal) !important; }
.nds-fork__split, .nds-fork__join { position: relative; display: flex; flex-direction: column; align-items: center; }
.nds-fork__stem { width: 2px; height: 36px; background: var(--oak-light); }
.nds-fork__label { color: var(--oak-light); padding: 8px 14px; border: 1.5px solid var(--oak-light); border-radius: 999px; font-size: .78125rem; }
.nds-fork__stem--s { height: 14px; }
.nds-fork__split::after { content: ''; display: block; width: 50%; height: 26px; border: 2px solid var(--oak-light); border-bottom: 0; border-radius: var(--r-m) var(--r-m) 0 0; }
.nds-fork__join::before { content: ''; display: block; width: 50%; height: 26px; border: 2px solid var(--oak-light); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); }
.nds-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nds-lane { background: var(--dark-lane); border: 1px solid var(--dark-line); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.nds-lane--report { border-color: var(--oak-light); border-width: 2px; }
.nds-lane__badge { align-self: flex-start; background: var(--oak-light); color: var(--dark); border-radius: 999px; padding: 6px 12px; font-size: .75rem; }
.nds-lane--plan .nds-lane__badge { background: transparent; color: var(--oak-light); border: 1px solid var(--oak-light); }
.nds-lane__title { font-size: var(--fs-h4); line-height: 1.25; font-weight: 800; color: #fff; }
.nds-lane__for { font-weight: 700; color: #fff !important; font-size: var(--fs-small); }
.nds-lane__text { font-size: var(--fs-small); line-height: 1.6; }
.nds-work { border: 1.5px dashed var(--line-dark-dash); border-radius: var(--r-m); padding: 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.nds-work p { font-size: var(--fs-small); line-height: 1.6; }
.nds-work strong { color: #fff; }
.nds-work__icon { color: var(--oak-light); }
.nds-work__tag { color: var(--oak-light) !important; font-size: .75rem !important; margin-bottom: 4px; }
.nds-work--small { display: flex; flex-direction: column; gap: 4px; }
.nds-lane__steps { display: grid; grid-template-columns: minmax(0, .8fr) 28px minmax(0, 1.2fr); align-items: center; gap: 0; }
.nds-lane__arrow { position: relative; height: 12px; }
.nds-lane__arrow::before { content: ''; position: absolute; left: 4px; right: 6px; top: 5px; border-top: 2px solid var(--oak-light); }
.nds-lane__arrow::after { content: ''; position: absolute; right: 4px; top: 1px; width: 8px; height: 8px; border-top: 2px solid var(--oak-light); border-right: 2px solid var(--oak-light); transform: rotate(45deg); }
.nds-rdv { background: #fff; border-radius: var(--r-m); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.nds-rdv__title { font-weight: 800; color: var(--ink) !important; }
.nds-rdv .nds-node__price { font-size: var(--fs-xs) !important; }
.nds-loop { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.nds-loop li { position: relative; background: var(--tint); color: var(--teal-deep); border-radius: 999px; padding: 8px 14px; font-size: var(--fs-xs); font-weight: 700; }
.nds-loop li + li { margin-left: 18px; }
.nds-loop li + li::before { content: ''; position: absolute; left: -19px; top: 50%; width: 12px; border-top: 2px solid var(--oak); }
.nds-loop li:last-child::after { content: '↺'; margin-left: 8px; color: var(--oak-ink); }
@media (max-width: 1023px) {
  /* Empilées, les deux voies gardent un « ou » entre elles : ce sont deux options, pas deux étapes */
  .nds-lanes { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .nds-lane--report { position: relative; }
  .nds-lane--report::after {
    content: 'ou'; position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: .8125rem; line-height: 1; color: var(--oak-light);
    background: var(--dark); border: 1.5px solid var(--oak-light); border-radius: 999px; padding: 6px 14px;
  }
  .nds-fork__split::after, .nds-fork__join::before { width: 2px; border: 0; border-radius: 0; background: var(--oak-light); }
}
@media (max-width: 719px) {
  .nds-node, .nds-lane { padding: 22px 20px; }
  .nds-lane__steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nds-lane__arrow { height: 22px; width: 12px; justify-self: center; }
  .nds-lane__arrow::before { left: 5px; right: auto; top: 2px; bottom: 4px; border-top: 0; border-left: 2px solid var(--oak-light); }
  .nds-lane__arrow::after { right: auto; left: 1px; top: auto; bottom: 3px; transform: rotate(135deg); }
  .nds-loop li + li { margin-left: 0; }
  .nds-loop li + li::before { display: none; }
}

/* coût + MOVA */
.nds-after { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.nds-cost { background: var(--teal-deep); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.nds-cost__tag { color: var(--oak-light); }
.nds-cost__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--dark-rule); border-radius: var(--r-m); }
.nds-cost__col { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.nds-cost__col + .nds-cost__col { border-left: 1px solid var(--dark-rule); }
.nds-cost__label { font-size: var(--fs-xs); font-weight: 700; color: var(--oak-light); }
.nds-cost__amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.nds-cost__plus { font-size: 1.25rem; color: var(--on-dark-2); white-space: nowrap; }
.nds-cost__detail { font-size: var(--fs-xs); color: var(--on-dark-3); }
.nds-cost__text { font-size: var(--fs-small); line-height: 1.65; }
.nds-cost__text a { color: #fff; font-weight: 700; }
.nds-mova { border: 1.5px dashed var(--line-dark-dash); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.nds-mova__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--dark-lane); color: var(--oak-light); display: flex; align-items: center; justify-content: center; }
.nds-mova p { font-size: var(--fs-small); line-height: 1.65; }
.nds-actions { gap: 16px 28px; }
@media (max-width: 1080px) { .nds-after { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 719px) {
  .nds-cost, .nds-mova { padding: 24px 20px; }
  .nds-cost__grid { grid-template-columns: minmax(0, 1fr); }
  .nds-cost__col + .nds-cost__col { border-left: 0; border-top: 1px solid var(--dark-rule); }
  .nds-cost__amount { font-size: 1.75rem; }
}

/* ─── Avant la course : frise en 6 temps ──────────────────────────────── */
.nds-race { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; position: relative; }
.nds-race__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 18px 0 0; }
.nds-race__when { color: var(--oak-ink); min-height: 2.6em; display: flex; align-items: flex-end; }
.nds-race__dot { position: relative; display: block; height: 18px; }
.nds-race__dot::before { content: ''; position: absolute; left: 0; right: -18px; top: 8px; border-top: 2px solid var(--line-2); }
.nds-race__step:last-child .nds-race__dot::before { right: 0; }
.nds-race__dot::after { content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.nds-race__step--day .nds-race__dot::before { border-top: 4px solid var(--oak); top: 7px; }
.nds-race__step--day .nds-race__dot::after { background: var(--teal); }
.nds-race__step--day .nds-race__when { color: var(--teal-deep); font-weight: 700; }
.nds-race__title { font-size: 1.0625rem; line-height: 1.3; font-weight: 800; margin-top: 4px; }
.nds-race__step p { font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); }
.nds-race__ramp { width: 96px; height: auto; fill: var(--tint); stroke: var(--teal); stroke-width: 1.5; }
.nds-race__ramp .nds-race__ramp-hi { fill: var(--teal); }
.nds-race__note { font-size: var(--fs-small); font-weight: 600; color: var(--ink-3); border: 1px dashed var(--line-dash-dark); border-radius: var(--r-s); padding: 12px 16px; align-self: flex-start; }
@media (max-width: 1080px) {
  .nds-race { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nds-race__step { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding: 0 0 28px; }
  .nds-race__step > :not(.nds-race__dot) { grid-column: 2; }
  .nds-race__dot { grid-column: 1; grid-row: 1 / span 4; height: auto; }
  .nds-race__dot::before { left: 8px; right: auto; top: 0; bottom: -28px; border-top: 0; border-left: 2px solid var(--line-2); }
  .nds-race__step--day .nds-race__dot::before { border-top: 0; border-left: 4px solid var(--oak); left: 7px; top: 0; }
  .nds-race__step:last-child .nds-race__dot::before { display: none; }
  .nds-race__when { min-height: 0; }
  .nds-race__step p { font-size: var(--fs-small); max-width: 40em; }
}

/* ─── Comment on mesure ───────────────────────────────────────────────── */
.nds-measure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.nds-measure__media { margin: 0; height: 440px; }
.nds-measure__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.nds-measure__chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--teal-deep); }
.nds-measure__chips .icon { color: var(--oak-ink); }
.nds-measure__text { font-size: var(--fs-card); line-height: 1.65; color: var(--ink-2); }
.nds-measure__text strong { color: var(--ink); }
.nds-measure__visio { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); border-left: 3px solid var(--oak); padding-left: 16px; }
.nds-measure__visio .icon { color: var(--teal); margin-top: 2px; }
@media (max-width: 1080px) { .nds-measure { grid-template-columns: minmax(0, 1fr); gap: 32px; } .nds-measure__media { height: 380px; } }
@media (max-width: 719px) { .nds-measure__media { height: 260px; } }

/* ─── Qui vous suit ───────────────────────────────────────────────────── */
.nds-who { gap: 64px; }
.nds-who__media { margin: 0; height: 540px; }
@media (max-width: 1080px) { .nds-who { grid-template-columns: minmax(0, 1fr); gap: 32px; } .nds-who__media { height: 440px; } }
@media (max-width: 719px) { .nds-who__media { height: 360px; } }

/* ─── Ce que je ne fais pas ───────────────────────────────────────────── */
.nds-nots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.nds-not { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 22px 24px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.nds-not__icon { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--oak); color: var(--oak-ink); display: flex; align-items: center; justify-content: center; }
.nds-not p { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); padding-top: 4px; }
.nds-not strong { color: var(--ink); }
.nds-limit { max-width: 52em; font-size: var(--fs-card); line-height: 1.65; color: var(--ink-2); border: 1px dashed var(--line-dash-dark); border-radius: var(--r-m); padding: 18px 22px; }
@media (max-width: 1080px) { .nds-nots { grid-template-columns: minmax(0, 1fr); } }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.nds-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
@media (max-width: 1080px) { .nds-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ─── Près de chez vous ───────────────────────────────────────────────── */
.nds-near { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.nds-near__link { height: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 20px 22px; min-height: 44px; }
.nds-near__link .icon { flex: none; color: var(--teal); }
.nds-near__link strong { font-size: var(--fs-card); }
@media (max-width: 1080px) { .nds-near { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .nds-near { grid-template-columns: minmax(0, 1fr); } }

/* marque « à confirmer » lisible dans les cartes blanches de la section sombre */

/* grille des sujets : la composition corporelle occupe 2 colonnes (pas de case vide, 3 ou 2 colonnes) */
@media (min-width: 720px) { #composition { grid-column: span 2; } }

/* cycle tester → regarder → ajuster : trois cases égales, sans retour à la ligne bancal */
@media (min-width: 720px) {
  .nds-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .nds-loop li { margin-left: 0 !important; text-align: center; border-radius: var(--r-m); display: flex; align-items: center; justify-content: center; }
  .nds-loop li + li::before { left: -18px; width: 14px; }
}
