/* GrindLab : styles communs à toutes les pages (refonte 16/10/2026).
   Chargé APRÈS la feuille propre à chaque page : ces règles l'emportent à spécificité égale. */
:root { --muted2: #6F7480; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Accessibilité */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #1A1A1A; color: #fff; padding: 10px 16px; font-family: var(--font-d); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
.hero-wrap :focus-visible, .sidebar-card :focus-visible, .blog-hero :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* L'apparition en fondu retardait l'affichage du contenu principal */
.container { animation: none; }

/* Menu */
nav .nav-link.active, nav .nav-link[aria-current="page"] { color: var(--text); }
@media (max-width: 600px) {
  nav { flex-direction: row; height: 52px; padding: 0 0 0 1.25rem; gap: 14px; justify-content: flex-start; }
  nav .logo { font-size: 20px; flex-shrink: 0; }
  nav .nav-center { position: static; transform: none; flex-wrap: nowrap; justify-content: flex-start; align-items: center; height: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-right: 1.25rem; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  nav .nav-center::-webkit-scrollbar { display: none; }
  nav .nav-link { white-space: nowrap; font-size: 12px; }
}

/* Pied de page commun */
footer.gl-footer { display: block; background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 2rem 28px; color: var(--text); }
.gl-footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.gl-footer .footer-logo { display: inline-block; font-family: var(--font-d); font-size: 22px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.gl-footer-brand p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 10px; max-width: 320px; }
.gl-footer h2 { font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.gl-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.gl-footer a { color: var(--text); text-decoration: none; font-size: 14px; }
.gl-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gl-footer-legal { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.7; }
.gl-footer-legal p + p { margin-top: 6px; }
@media (max-width: 800px) { .gl-footer-inner { grid-template-columns: 1fr 1fr; } .gl-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { footer.gl-footer { padding: 36px 1.25rem 90px; } }

/* Mentions d'affiliation et de santé */
.aff-note { font-size: 12px; line-height: 1.5; color: var(--muted); font-style: italic; margin: 0 0 14px; }
.health-note { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); margin: 32px 0 0; }
.health-note strong { color: var(--text); }
.source-line { font-size: 13px; color: var(--muted); margin: -12px 0 24px; }
.source-line a { color: var(--text); text-underline-offset: 3px; }
.author-box { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.author-box strong { color: var(--text); font-family: var(--font-d); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; display: block; }
.author-box a { color: var(--text); }

/* Accordéons rendus en <button> (accessibles au clavier) */
button.seance-acc-header, button.coach-tip-header { width: 100%; border: 0; font: inherit; text-align: left; color: inherit; }
/* FAQ en <details> */
details.faq-item > summary { list-style: none; }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item[open] .faq-q::after { content: '\2212'; }
details.faq-item .faq-a { max-height: none; overflow: visible; padding: 0; }
details.faq-item[open] .faq-a { padding: 12px 0 4px; }
details.faq-item:not([open]) .faq-a { display: none; }
.faq-item { cursor: auto; }

/* Vidéo YouTube chargée au clic (aucun cookie tiers avant le clic) */
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; overflow: hidden; background: #000 center / cover no-repeat; cursor: pointer; margin: 24px 0; padding: 0; }
.yt-facade::before { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: rgba(26,26,26,.85); border-radius: 12px; }
.yt-facade::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover::before { background: #FF0000; }
.yt-facade span { position: absolute; left: 12px; bottom: 12px; color: #fff; background: rgba(0,0,0,.65); font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin: 24px 0; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Partage : le bouton « copier » confirme */
.share-btn-inline.copied, .share-btn.copied { background: var(--text); border-color: var(--text); }
.share-btn-inline.copied svg, .share-btn.copied svg { stroke: #fff; }

/* Sommaire repliable (mobile) */
.toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); }
.toc-mobile summary { cursor: pointer; padding: 12px 16px; font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.toc-mobile a { color: var(--text); }
@media (max-width: 800px) { .toc-mobile { display: block; } .article-sidebar .sidebar-card { display: none; } }

/* Pages simples (légal, à propos, 404) */
.page-simple { max-width: 760px; margin: 0 auto; padding: 56px 2rem 90px; }
.page-simple h1 { font-family: var(--font-d); font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: .95; text-transform: uppercase; margin-bottom: 18px; }
.page-simple .lead { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.page-simple h2 { font-family: var(--font-d); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 36px 0 12px; }
.page-simple p, .page-simple li { font-size: 15px; line-height: 1.75; color: #3F444D; }
.page-simple p + p { margin-top: 12px; }
.page-simple ul { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.page-simple a { color: var(--text); text-underline-offset: 3px; }
.page-simple .updated { font-size: 13px; color: var(--muted); }
.btn-dark { display: inline-block; background: var(--text); color: #fff; font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; }
.btn-dark:hover { opacity: .85; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.links-grid a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-family: var(--font-d); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.links-grid a:hover { background: var(--bg2); }

/* Bandeau « programmes par objectif » (accueil) */
.hub-strip { max-width: 1100px; margin: 0 auto; padding: 0 2rem 36px; }
.hub-strip h2 { font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.hub-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.hub-strip a { display: inline-block; padding: 9px 16px; border-radius: 20px; background: var(--text); color: #fff; text-decoration: none; font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hub-strip a:hover { opacity: .85; }
@media (max-width: 600px) { .hub-strip { padding: 0 1.25rem 28px; } }

/* Fil d'Ariane */
.gl-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.gl-crumbs a { color: var(--muted); text-decoration: none; }
.gl-crumbs a:hover { color: var(--text); }
.gl-crumbs .sep { color: var(--muted2); }

/* Boutons de partage en ligne (toutes les pages) */
.share-inline { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.share-label { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share-btn-inline { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; text-decoration: none; overflow: hidden; flex-shrink: 0; padding: 0; }
.share-btn-inline:hover { border-color: var(--text); transform: scale(1.1); }
.share-btn-inline svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Articles : contenu d'abord sur mobile, puis articles similaires */
@media (max-width: 800px) { .article-sidebar { order: 2; } .article-main { order: 1; } }
.article-main .share-inline { margin: -8px 0 22px; }
.reco-section .carousel-card, .prog-grid .card { text-decoration: none; }

/* Note « séances types » des programmes */
.seance-note { font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
.related-guides { margin-top: 40px; }
.related-guides ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.related-guides a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
[hidden] { display: none !important; }
