/* Pages publiques Rehab (blessures et sports) : lecture éditoriale, palette sobre, thème clair et sombre. */
:root {
  --bg: #ffffff; --paper: #f5f5f7; --ink: #1d1d1f; --mut: #6e6e73; --line: #d2d2d7; --blue: #0071e3; --blue-press: #0062c4; --link: #0066cc;
  --ok: #e5f4ea; --warn: #fff4dc; --warnb: #a05a00; --bad: #fdecea; --badb: #c4001a;
  --f: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --il-skin: #e2b48f; --il-skin2: #c5926c; --il-shirt: #2f7de1; --il-shirt2: #1f5fb4; --il-shorts: #3a3a3c; --il-shorts2: #222224; --il-shoe: #1d1d1f; --il-shoe2: #48484a; --il-hair: #3b2a20;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --paper: #1c1c1e; --ink: #f5f5f7; --mut: #a1a1a6; --line: #38383a; --blue: #0a84ff; --blue-press: #0071e3; --link: #2997ff;
    --ok: #13291c; --warn: #2e2410; --warnb: #ffb340; --bad: #3a1517; --badb: #ff6961;
    --il-shorts: #636366; --il-shorts2: #48484a; --il-shoe: #d1d1d6; --il-shoe2: #8e8e93; --il-shirt: #3b8cf0; --il-shirt2: #2563b8; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f); letter-spacing: -0.005em; }
::selection { background: color-mix(in srgb, var(--blue) 25%, transparent); }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
header.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 52px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 18px; font-size: 0.9rem; }
.nav a { color: var(--ink); text-decoration: none; opacity: 0.8; }
.nav a:hover { opacity: 1; }
.langs { display: flex; gap: 2px; margin-left: auto; padding: 2px; background: var(--paper); border-radius: 9px; }
.langs a { font-size: 0.78rem; font-weight: 600; color: var(--mut); text-decoration: none; padding: 4px 9px; border-radius: 7px; }
.langs a[aria-current="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 500; padding: 12px 22px; border-radius: 980px; transition: background 0.2s; }
.btn:hover { background: var(--blue-press); }
.btn.sm { padding: 7px 14px; font-size: 0.86rem; }
main.wrap { padding-top: 22px; padding-bottom: 56px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--mut); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.hero { padding: 28px 0 18px; max-width: 760px; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
.lead { font-size: clamp(1.12rem, 2.2vw, 1.35rem); line-height: 1.45; color: var(--ink); margin: 0 0 10px; max-width: 64ch; }
.meta { color: var(--mut); font-size: 0.9rem; margin: 0; }
article > section, main > section { max-width: 760px; padding: 26px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; max-width: 68ch; }
.note { color: var(--mut); font-size: 0.92rem; }
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; background: var(--paper); border-radius: 18px; }
ol.steps .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; }
ol.steps p { margin: 0; align-self: center; }
ul.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.tags li { background: var(--warn); padding: 8px 14px; border-radius: 980px; font-size: 0.92rem; }
ul.tags span { color: var(--mut); }
ul.exs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
li.ex { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--paper); border-radius: 20px; }
li.ex figure { margin: 0; background: var(--bg); border-radius: 14px; padding: 6px; }
li.ex svg { display: block; width: 100%; height: auto; }
li.ex h3 { margin: 0 0 2px; }
li.ex .meta { margin-bottom: 6px; font-size: 0.82rem; }
li.ex p:last-child { margin: 0; }
li.ex { align-items: start; }
li.ex .dose { margin: 8px 0 0; }
li.ex details.more { margin-top: 6px; }
li.ex details.more summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 6px 0; }
li.ex details.more dl { margin: 4px 0 0; padding: 10px 14px; background: var(--bg); border-radius: 12px; }
li.ex details.more dt { font-weight: 600; margin-top: 8px; }
li.ex details.more dt:first-child { margin-top: 0; }
li.ex details.more dd { margin: 2px 0 0; }
li.ex details.more dd ul { margin: 2px 0 0; padding-left: 18px; }
p.note { color: var(--mut); font-size: 0.9rem; }
.alert { background: var(--bad); border-radius: 20px; padding: 22px 24px !important; border: 0 !important; margin: 26px 0; }
.alert h2 { color: var(--badb); }
.alert p { margin: 0; }
ul.links, ul.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-width: none; }
ul.links a, ul.grid a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background 0.2s; }
ul.links a:hover, ul.grid a:hover { background: color-mix(in srgb, var(--blue) 8%, var(--paper)); }
ul.links span, ul.grid span { color: var(--mut); font-size: 0.92rem; line-height: 1.45; }
ul.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.chips a { display: inline-block; padding: 9px 16px; border-radius: 980px; background: var(--paper); color: var(--ink); text-decoration: none; }
ul.chips a:hover { background: color-mix(in srgb, var(--blue) 10%, var(--paper)); }
ul.bul { padding-left: 1.2em; margin: 0; max-width: 68ch; }
ul.bul li { margin: 6px 0; }
.cta { margin: 40px 0 18px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--paper); max-width: 760px; }
.cta h2 { margin-bottom: 8px; }
.disc { color: var(--mut); font-size: 0.86rem; max-width: 760px; }
.foot { border-top: 1px solid var(--line); color: var(--mut); font-size: 0.82rem; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
.il-sk { fill: var(--il-skin); } .il-skf { fill: var(--il-skin2); } .il-sh { fill: var(--il-shirt); } .il-shf { fill: var(--il-shirt2); }
.il-so { fill: var(--il-shorts); } .il-sof { fill: var(--il-shorts2); } .il-fo { fill: var(--il-shoe); } .il-fof { fill: var(--il-shoe2); } .il-hr { fill: var(--il-hair); }
.il-fg { stroke: var(--il-skin2); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.il-g { stroke: var(--line); stroke-width: 1.5; } .il-p { stroke: var(--mut); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.il-p.il-fill { fill: var(--mut); } .il-p.il-thick { stroke-width: 3; }
.il-ar { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.il-band { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 4 3; fill: none; } .il-w { fill: var(--blue); stroke: none; }
.il-tw { stroke: var(--warnb); stroke-width: 3; stroke-linecap: round; } .il-n { font: 700 11px var(--f); fill: var(--mut); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { order: 3; width: 100%; gap: 14px; }
  header.top .btn.sm { display: none; }
  li.ex { grid-template-columns: minmax(0, 1fr); }
  ol.steps li { grid-template-columns: 32px minmax(0, 1fr); padding: 14px; }
  ol.steps .n { width: 32px; height: 32px; }
}
@media (min-width: 900px) { article ul.links { grid-template-columns: repeat(2, minmax(0, 1fr)); } article > section:has(ul.links) { max-width: none; } }

.pguide .pgsteps { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.pguide .pgsteps li { padding: 14px 16px; background: var(--paper); border-radius: 16px; }
.pguide .pgsteps strong { display: block; margin-bottom: 2px; }
.pguide h3 { margin: 18px 0 6px; }
.pguide .pgq li { margin-bottom: 6px; }
