/* medecine-mini-invasive.fr — feuille de style unique, sans dépendance externe. */

:root {
  --ink: #0e2a33;
  --ink-2: #3a5159;
  --muted: #5d7279;
  --bg: #ffffff;
  --surface: #f4f8f8;
  --surface-2: #eaf4f3;
  --line: #dbe6e7;
  --accent: #34d6c6;
  --accent-ink: #0a756c;
  --accent-soft: #e2f8f5;
  --warn-ink: #8a4a06;
  --warn-soft: #fff5e6;
  --no-ink: #9a3b3b;
  --no-soft: #fbeeee;
  --bone: #f5efe4;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font: "Avenir Next", "Avenir", "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.85rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.96rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Accueil ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: clamp(36px, 7vw, 76px) 0 clamp(28px, 5vw, 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-photo { margin: 0; min-width: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.lede { font-size: clamp(1.08rem, 2vw, 1.24rem); color: var(--ink-2); max-width: 58ch; margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 1.5px solid transparent; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #163b47; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }

.author-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px -18px rgba(14, 42, 51, 0.35); }
.author-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--accent-soft); }
.author-name { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.author-role { color: var(--muted); font-size: 0.94rem; line-height: 1.35; margin-top: 2px; }
.author-creds { color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 6px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.45; color: var(--ink-2); }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%230a756c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; margin-top: 1px; }

.section { padding: clamp(36px, 6vw, 64px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); margin-top: 10px; }

.zone { margin-top: 30px; }
.zone:first-of-type { margin-top: 0; }
.zone-title { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.zone-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(14, 42, 51, 0.4); }
.card-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.card-title::after { content: " →"; color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; line-height: 1.5; }

.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps3 li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps3 .principle-icon { width: 48px; height: 48px; margin-bottom: 14px; stroke-width: 1.05; }
.principle-bouclier { --ic-stroke: #295a8a; --ic-fill: #a5ccf2; --ic-accent: #245786; }
.principle-aiguille { --ic-stroke: #15695c; --ic-fill: #87d9bf; --ic-accent: #20826b; }
.principle-cible { --ic-stroke: #ab3441; --ic-fill: #ff978c; --ic-accent: #cf3041; }
.principle-icon .ic-paper { fill: var(--bg); }
.principle-icon .ic-detail { stroke: var(--ic-accent); }
.principle-icon .ic-point { fill: var(--ic-accent); stroke: none; }
.steps3 h3 { margin-bottom: 6px; }
.steps3 p { color: var(--ink-2); font-size: 0.99rem; }

.videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.videos-note { max-width: 74ch; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.video-card { text-decoration: none; color: var(--ink); display: block; }
.video-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .video-thumb { outline: 2px solid var(--accent); }
.video-card span { display: block; font-weight: 600; font-size: 0.98rem; line-height: 1.35; margin-top: 10px; }

/* ---------- Page « problème » ---------- */
.page-head { background: var(--surface); padding: clamp(24px, 5vw, 48px) 0 clamp(26px, 5vw, 44px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-head h1 { max-width: 22ch; }
.page-sub { margin: 14px 0 0; font-size: 1.22rem; line-height: 1.4; font-weight: 600; color: var(--ink-2); max-width: 44ch; }
.complaint { margin: 18px 0 0; padding: 0 0 0 16px; border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 1.12rem; max-width: 52ch; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.meta-line img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.meta-line a { color: var(--ink-2); font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 56px; }
.toc { font-size: 0.93rem; min-width: 0; }
.toc-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.toc a { display: block; white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--surface); font-weight: 600; }
.toc a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.content { min-width: 0; max-width: 760px; }
.content > section { margin-top: 44px; }
.content > section:first-child { margin-top: 0; }
.content h2 { margin-bottom: 16px; }
.content h3 { margin-bottom: 4px; }

.brief { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; font-size: 1.12rem; line-height: 1.6; }
.brief-label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }

.who { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.who-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.who-box h3 { font-size: 1rem; margin-bottom: 12px; }
.who-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.who-box li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; font-size: 0.99rem; }
.who-box li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: center / contain no-repeat; }
.who-yes li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%230a756c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.who-no li::before { background-color: var(--no-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7.5 7.5l7 7m0-7l-7 7' fill='none' stroke='%239a3b3b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.gesture { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.gesture:first-of-type { margin-top: 0; }
.gesture-plain { color: var(--accent-ink); font-weight: 600; font-size: 0.97rem; margin-bottom: 14px; }
.gesture-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.gesture-body.gesture-solo { grid-template-columns: minmax(0, 1fr); }
.figure { margin: 0; background: var(--surface); border-radius: var(--radius-sm); padding: 14px; }
.figure ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: l; display: grid; gap: 6px; font-size: 0.88rem; line-height: 1.4; color: var(--ink-2); }
.figure li { counter-increment: l; display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.figure li::before { content: counter(l); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 22px 52px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.95rem; }
.timeline li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { padding-top: 5px; margin-bottom: 4px; }
.timeline p { color: var(--ink-2); }

.studies { display: grid; gap: 12px; }
.study { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.badge { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.study-limit { color: var(--ink-2); font-size: 0.97rem; margin-top: 8px; }
.study-limit strong { color: var(--warn-ink); font-weight: 700; }
.study-ref { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

.limits { list-style: none; margin: 0; padding: 20px 22px; background: var(--warn-soft); border-radius: var(--radius); display: grid; gap: 12px; }
.limits li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.limits li::before { content: "!"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-ink); color: #fff; font-weight: 800; font-size: 0.85rem; margin-top: 2px; }

.ask { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; }
.ask h2 { color: #fff; }
.ask ol { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 12px; }
.ask li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; gap: 12px; line-height: 1.5; }
.ask li::before { content: counter(q); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-weight: 700; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 26px; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(14, 42, 51, 0) 40%, rgba(14, 42, 51, 0.55) 100%); border: 0; cursor: pointer; display: grid; place-items: center; padding: 0; }
.yt-play { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.yt button:hover .yt-play { transform: scale(1.06); }
.yt-play::before { content: ""; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video-note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.more-videos { margin: 12px 0 0; padding-left: 1.1em; font-size: 0.97rem; }

.sources { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); }
.sources li::marker { color: var(--muted); font-weight: 700; }
.sources i { font-style: italic; }
.sources .links { display: inline-flex; gap: 10px; margin-left: 4px; font-weight: 600; }

.signature { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.signature .author-head { align-items: flex-start; }
.signature p { color: var(--ink-2); font-size: 0.96rem; }
.disclaimer { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.related { background: var(--surface); padding: clamp(32px, 5vw, 52px) 0; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 18px; }

/* ---------- Pages de texte ---------- */
.prose { padding-top: 36px; padding-bottom: 60px; }
.prose > * { max-width: 720px; }
.prose.center > * { margin-left: auto; margin-right: auto; }
.prose h2 { margin: 40px 0 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose .author-card { margin: 8px 0 28px; box-shadow: none; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
.callout-warn { background: var(--warn-soft); }
.todo { display: inline-block; background: var(--warn-soft); color: var(--warn-ink); border: 1px dashed var(--warn-ink); border-radius: 6px; padding: 1px 8px; font-size: 0.9rem; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 32px 0 40px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.urgence { color: var(--ink-2); max-width: 70ch; }

/* ---------- Schémas ---------- */
.schema { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.sk-tissue { fill: #fdf8f3; }
.sk-skin { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.sk-fascia { fill: none; stroke: #c9b8a6; stroke-width: 1.6; stroke-dasharray: 5 5; }
.sk-bone { fill: var(--bone); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.sk-marrow { fill: #fbf7ef; stroke: #d9cdb8; stroke-width: 1.2; }
.sk-disc { fill: #d6e6e8; stroke: var(--ink); stroke-width: 1.6; }
.sk-fracture { fill: none; stroke: #c2412d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sk-screw { fill: #b9c6ca; stroke: var(--ink); stroke-width: 1.6; }
.sk-screw-head { fill: #8fa1a7; stroke: var(--ink); stroke-width: 1.6; }
.sk-thread { stroke: var(--ink); stroke-width: 1.2; opacity: 0.6; }
.sk-nucleus { fill: #9fd0d6; stroke: var(--ink); stroke-width: 1.2; }
.sk-nerve { fill: none; stroke: #e3aa33; stroke-width: 4.5; stroke-linecap: round; }
.sk-nerve.sk-thin { stroke-width: 2.4; }
.sk-zone { fill: var(--accent); opacity: 0.28; }
.sk-zone-core { fill: var(--accent); opacity: 0.6; }
.sk-hub { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.sk-needle { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.sk-trocar { stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; }
.sk-artery { fill: none; stroke: #d9594c; stroke-width: 18; stroke-linecap: round; }
.sk-artery-in { fill: none; stroke: #f6c6bf; stroke-width: 11; stroke-linecap: round; }
.sk-branch { fill: none; stroke: #d9594c; stroke-width: 6; stroke-linecap: round; }
.sk-capillary { fill: none; stroke: #d9594c; stroke-width: 1.7; stroke-linecap: round; }
.sk-catheter { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.sk-particle { fill: var(--accent-ink); }
.sk-inflam { fill: #fde9d2; }
.sk-capsule { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 5; }
.sk-tendon { fill: none; stroke: #dba99b; stroke-width: 20; stroke-linecap: round; }
.sk-calc { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 4 3; }
.sk-cement { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1.4; }
.sk-lesion { fill: #f2b98c; stroke: var(--ink); stroke-width: 1.8; }
.sk-nodule { fill: #d99a8b; stroke: var(--ink); stroke-width: 1.8; }
.sk-ice { fill: #c4eaf6; opacity: 0.75; stroke: #4ba9c8; stroke-width: 1.6; stroke-dasharray: 5 4; }
.sk-lead { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.sk-mk circle { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.sk-mk text { fill: #fff; font: 700 12px var(--font); }

@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .nav { gap: 0; margin-left: -8px; }
  .nav a { font-size: 0.9rem; padding: 7px 10px; }
  /* photo à gauche du nom et de la date, plutôt que seule sur sa ligne */
  .meta-line { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; }
  .meta-line img { grid-row: span 2; }
  /* étiquettes des études lisibles (12 px au moins) */
  .refs .study-list .badge { font-size: 0.75rem; }
  /* signature : photo au-dessus du texte, qui prend toute la largeur */
  .signature .author-head { flex-direction: column; gap: 12px; }
}

/* ---------- Grand écran ---------- */
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
  .gesture-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 1040px) {
  .layout { grid-template-columns: 210px minmax(0, 760px); gap: 56px; padding-top: 44px; }
  .toc { position: sticky; top: 24px; align-self: start; }
  .toc ul { flex-direction: column; overflow: visible; gap: 2px; padding-bottom: 0; }
  .toc a { background: none; white-space: normal; border-radius: 8px; padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .toc, .related, .yt, .hero-cta { display: none !important; }
  body { font-size: 11pt; }
  .faq details > * { display: block; }
}

/* ---------- Sections de second plan : études, limites, place du traitement ---------- */
.content > section.minor { font-size: 0.9rem; }
.content > section.minor h2 { font-size: clamp(1.12rem, 2vw, 1.3rem); }
.minor .study { padding: 14px 16px; }
.minor .study-limit { font-size: 0.97em; }
.minor .study-ref { font-size: 0.92em; }
.minor .limits { padding: 16px 18px; gap: 10px; }
.toc li.minor a { font-size: 0.86em; font-weight: 500; color: var(--muted); }

/* ---------- Études et sources : un seul bloc compact, en bas de page ---------- */
.content > section.refs { font-size: 0.84rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 26px; }
.study-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; line-height: 1.5; }
.study-list .badge { margin: 0 4px 0 0; font-size: 0.68rem; padding: 1px 8px; }
.study-list .study-limit, .study-list .study-ref { font-size: 1em; margin: 0; }
.study-list .study-ref { color: var(--muted); }
.refs h3 { font-size: 0.95rem; margin: 0 0 8px; }
.refs .sources { font-size: 1em; gap: 8px; }
.risk-lead { margin: 0 0 12px; }

/* ---------- Accueil : haut de page, auteur en bas, icônes ---------- */
.lede-strong { color: var(--ink); font-weight: 600; }
.lede + .lede { margin-top: 14px; }
.author-bottom { max-width: 560px; }
.author-more { margin: 18px 0 0; }
.ic { width: 24px; height: 24px; fill: none; stroke: var(--ic-stroke, currentColor); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .f { fill: var(--ic-fill, none); }
.ic .fo { fill: var(--ic-fill, none); stroke: none; }
.ic .ic-hl { stroke: #e5484d; }
.ic .ic-hl.f { fill: #ffd0cc; }
.ic .ic-fill { fill: #f2545b; stroke: #c93a41; stroke-width: 1.2; }
.z-genou { --ic-bg: #fff0e1; --ic-fill: #ffd2a6; --ic-stroke: #a9541b; }
.z-epaule { --ic-bg: #e7f0ff; --ic-fill: #bcd5ff; --ic-stroke: #2f5fb3; }
.z-dos-cou { --ic-bg: #f0ebff; --ic-fill: #d4c7ff; --ic-stroke: #5b3fb8; }
.z-os { --ic-bg: #fff6d6; --ic-fill: #ffe08a; --ic-stroke: #946400; }
.z-main-pied { --ic-bg: #e4f7ea; --ic-fill: #b3e6c4; --ic-stroke: #22784a; }
.z-autres { --ic-bg: #ffe9f1; --ic-fill: #ffc3d6; --ic-stroke: #b23a66; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ic-bg, var(--accent-soft)); margin-bottom: 4px; }
.card-icon .ic { width: 32px; height: 32px; }
.zone-title .ic { width: 26px; height: 26px; padding: 3px; border-radius: 8px; background: var(--ic-bg); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.card-head .card-icon { margin: 0; flex: none; }

/* ---------- Page « Les actes » ---------- */
.acts { padding-top: 12px; padding-bottom: 60px; }
.act-family { margin-top: 36px; max-width: 760px; }
.act-family h2 { margin-bottom: 14px; }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.act-list li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.act-list .card-icon { margin: 0; flex: none; }
.act-name { display: block; font-weight: 700; font-size: 1.06rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.act-name:hover { color: var(--accent-ink); text-decoration: underline; }
.act-simple { display: block; color: var(--ink-2); font-size: 0.96rem; margin-top: 2px; }
.act-for { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.act-for a { color: var(--accent-ink); }
.card .chip { color: var(--ic-stroke, var(--accent-ink)); background: var(--ic-bg, var(--accent-soft)); }

/* ---------- Vraies images des gestes (artériographies) ---------- */
.figure-photo .fp-grid { display: grid; gap: 8px; }
.figure-photo .fp-n2 { grid-template-columns: 1fr 1fr; }
.fp-item { position: relative; display: block; line-height: 0; }
.fp-item img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.fp-tag { position: absolute; left: 8px; top: 8px; line-height: 1.2; background: rgba(14, 42, 51, 0.82); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.figure-photo figcaption { margin-top: 10px; font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); }
.fp-credit { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.fp-credit a { color: var(--muted); }
