/* HelloHealth : registre patient. Palette pétrole, fonds clairs, aucun aplat sombre, aucune ombre, aucune animation. */

@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --hh-ground: #F4F7F6;
  --surface: #FFFFFF;
  --hh-tint: #E0EFEF;
  --hh-ink: #13272C;        /* 14,4:1 sur hh-ground */
  --hh-ink-soft: #2C3F45;
  --hh-muted: #51656B;      /* 5,7:1 sur hh-ground, 5,2:1 sur hh-tint */
  --hh-petrol: #2E6E76;     /* texte blanc 5,8:1 */
  --hh-petrol-deep: #1F4E54;/* 7,8:1 sur hh-tint */
  --hh-line: #DCE9E9;
  --hh-field: #6E8C91;      /* contour de champ, 3,4:1 */
  --sand: #8A5A12;          /* nom de l'éditeur, 5,9:1 */
  --radius-hh: 16px;
  --radius-pill: 999px;
  --stroke-icon: 1.8;
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--hh-ground); color: var(--hh-ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--hh-petrol-deep); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--hh-petrol-deep); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--hh-ink); padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--hh-field); z-index: 50; }
.skip:focus { top: 12px; }
.ico { flex: 0 0 auto; stroke-width: var(--stroke-icon); }

/* ------------------------------------------------------------ typographie */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.005em; text-wrap: balance; }
.display { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.875rem); line-height: 1.12; }
.display-s { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem); line-height: 1.15; }
.h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.625rem); line-height: 1.25; }
.h3 { font-size: 1.25rem; line-height: 1.3; }
.h2, .h3 { font-family: var(--font-display); font-weight: 500; }
.lead { font-size: 1.1875rem; color: var(--hh-ink-soft); max-width: 60ch; margin: 12px 0 0; }
.label { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--hh-ink-soft); margin: 0 0 8px; }
.label .ico { color: var(--hh-petrol); }
.muted { color: var(--hh-muted); }
.small { font-size: .9375rem; font-weight: 400; font-family: var(--font-text); }
.note { font-size: .9375rem; color: var(--hh-muted); margin: 10px 0 0; max-width: 60ch; }
.prose { max-width: 60ch; color: var(--hh-ink); }
.prose p { margin: 0 0 1em; }
.mt { margin-top: 28px; }
.link { color: var(--hh-petrol-deep); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 1rem; }
.adv { margin: 0 0 4px; font-size: .9375rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sand); }

/* ------------------------------------------------------------ structure */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
@media (min-width: 700px) { :root { --gutter: 24px; } }
.narrow { max-width: 760px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 56px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.split-main, .split-side { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .duo { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .duo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Sur 2 colonnes, le calendrier occupe la gauche ; le test du jour et « D'autres tests » s'empilent à droite. */
@media (min-width: 760px) and (max-width: 1039px) { .duo > .duo-cal { grid-row: span 2; } }

/* le voile doux : hh-tint vers hh-ground sur 280px */
.veil { background: linear-gradient(180deg, var(--hh-tint) 0, var(--hh-ground) 280px); }
.page-head { padding-top: 12px; padding-bottom: 8px; display: grid; gap: 8px; }
.page-head .display-s { margin-top: 4px; }

/* ------------------------------------------------------------ en-tête */
.demo-band { margin: 0; padding: 8px var(--gutter); background: var(--hh-tint); color: var(--hh-petrol-deep); font-size: .9375rem; text-align: center; border-bottom: 1px solid var(--hh-line); }
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--hh-line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; height: 30px; width: auto; }
@media (max-width: 400px) { .logo img { height: 25px; } }
.tools { display: flex; gap: 6px; align-items: center; }
.tool { position: relative; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--hh-line); background: var(--surface); color: var(--hh-ink); text-decoration: none; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.tool .ico { color: var(--hh-petrol); }
.tool-short { display: none; }
.count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--hh-petrol); color: #fff; font-size: .9375rem; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
@media (max-width: 620px) {
  .tool-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tool { padding: 0 10px; }
  .tool-short { display: inline; }
  .tool .tool-short + .ico, .tool:has(.tool-short) .ico { display: none; }
}

/* ------------------------------------------------------------ entrée « Pour qui » */
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 900px) { .entry { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 64px; gap: 48px; } }
.veil-tall { min-height: 70vh; }
.entry-head { display: grid; gap: 4px; }
.underline-arc { width: 120px; height: 24px; margin-top: 10px; overflow: visible; }
.underline-arc path { fill: none; stroke: var(--hh-petrol); stroke-width: 2; stroke-linecap: round; }
.underline-arc circle { fill: var(--hh-petrol); }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.choices-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-line); color: var(--hh-ink); text-decoration: none; }
.choice:hover { border-color: var(--hh-field); }
.choice.is-current { border-color: var(--hh-petrol); }
.choice-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.choice-txt { display: grid; min-width: 0; }
.choice-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3125rem; line-height: 1.25; }
.choice-sub { font-size: .9375rem; color: var(--hh-muted); }
.choice-go { margin-left: auto; color: var(--hh-petrol); }
.choice-age { min-height: 92px; }
.entry-foot { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.entry-foot .note { margin: 0; }

/* ------------------------------------------------------------ accueil avec profil */
.hero { padding-top: 16px; padding-bottom: 36px; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 20px; font-weight: 600; }
.profile > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--hh-line); }
.profile .ico { color: var(--hh-petrol); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 48px; } }
.hero-main { display: grid; gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--hh-line); border-radius: var(--radius-hh); padding: 20px; }
.feature { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--hh-ink); padding: 22px 24px 22px 22px; }
.feature:hover { border-color: var(--hh-field); }
.feature-txt { display: grid; gap: 6px; min-width: 0; }
.feature-txt .label { margin: 0; }
.feature-title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.feature-ico { width: 96px; height: 96px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--hh-petrol-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* portrait rond : l'arc et le point passent devant l'image, sur le contour */
.portrait { position: relative; width: 96px; height: 96px; flex: 0 0 auto; }
.portrait-112 { width: 88px; height: 88px; }
@media (min-width: 600px) { .portrait-112 { width: 112px; height: 112px; } }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--hh-tint); }
.portrait .arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.portrait .arc path { fill: none; stroke: var(--hh-petrol); stroke-width: 2; stroke-linecap: round; }
.portrait .arc circle { fill: var(--hh-petrol); }

/* ------------------------------------------------------------ question libre et recherche */
.ask { display: grid; gap: 6px; }
.ask .label { margin: 0; }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.field { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--hh-field); background: var(--surface); font-size: 1.0625rem; }
.field::placeholder { color: var(--hh-muted); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ------------------------------------------------------------ boutons et chips */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid var(--hh-petrol); background: var(--hh-petrol); color: #fff; font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--hh-petrol-deep); border-color: var(--hh-petrol-deep); }
.btn-l { min-height: 56px; font-size: 1.125rem; }
.btn-icon { width: 48px; padding: 0; flex: 0 0 auto; }
.btn-soft { background: var(--hh-tint); border-color: var(--hh-tint); color: var(--hh-petrol-deep); }
.btn-soft:hover { background: var(--hh-line); border-color: var(--hh-line); }
.btn-ghost { background: var(--surface); border-color: var(--hh-field); color: var(--hh-ink); }
.btn-ghost:hover { background: var(--hh-ground); border-color: var(--hh-petrol); }
.btn-ghost .ico, .btn-soft .ico { color: var(--hh-petrol); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--hh-field); background: var(--surface); color: var(--hh-ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.chip:hover { border-color: var(--hh-petrol); }
.chip.is-on { background: var(--hh-petrol); border-color: var(--hh-petrol); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: start; justify-self: start; margin: 0; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--hh-tint); color: var(--hh-petrol-deep); font-weight: 600; font-size: .9375rem; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--hh-petrol-deep); font-weight: 600; text-decoration: none; justify-self: start; }
.back:hover { text-decoration: underline; }
.row-link { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-top: 12px; padding: 0 18px; border-radius: var(--radius-hh); background: var(--hh-tint); color: var(--hh-petrol-deep); font-weight: 600; text-decoration: none; }
.row-link:hover { background: var(--hh-line); }

/* ------------------------------------------------------------ sujets */
.topics { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.topics-one { grid-template-columns: 1fr !important; }
.topic { display: flex; align-items: center; gap: 12px; min-height: 76px; height: 100%; padding: 12px 14px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-line); color: var(--hh-ink); text-decoration: none; }
.topic:hover { border-color: var(--hh-field); }
.topic-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--hh-tint); color: var(--hh-petrol); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.topic-txt { display: grid; min-width: 0; }
.topic-name { font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.topic-count { font-size: .9375rem; color: var(--hh-muted); }
@media (max-width: 599px) { .topics:not(.topics-one) .topic { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; } }

/* ------------------------------------------------------------ page sujet */
.theme-head { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.theme-head .label { margin: 0; }
.theme-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hh-line); color: var(--hh-petrol); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; margin-top: 18px; border-bottom: 1px solid var(--hh-line); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 1rem; color: var(--hh-muted); cursor: pointer; padding: 0 6px; }
.tabs button[aria-selected="true"] { color: var(--hh-petrol-deep); border-bottom-color: var(--hh-petrol); }
.tab-n { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--hh-tint); color: var(--hh-petrol-deep); font-size: .9375rem; padding: 0 6px; }
.js-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel { display: grid; gap: 14px; align-content: start; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.tips li { padding: 16px 18px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-line); }
.faq details { border-top: 1px solid var(--hh-line); }
.faq details:last-child { border-bottom: 1px solid var(--hh-line); }
.faq summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 600; padding: 8px 0; list-style-position: inside; }
.faq .prose { padding-bottom: 12px; }

/* ------------------------------------------------------------ documents */
.docs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.docs-one { grid-template-columns: 1fr; }
.doc { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--hh-line); border-radius: var(--radius-hh); overflow: hidden; }
.doc-cover { display: block; background: var(--hh-ground); border-bottom: 1px solid var(--hh-line); }
.cover { width: 100%; height: 200px; object-fit: contain; padding: 12px; }
.cover-empty { display: flex; align-items: center; justify-content: center; color: var(--hh-petrol); }
.doc-body { padding: 14px 16px 10px; display: grid; gap: 4px; align-content: start; }
.doc-title { font-size: 1.1875rem; line-height: 1.3; }
.doc-title a { color: var(--hh-ink); text-decoration: none; }
.doc-title a:hover { text-decoration: underline; }
.doc-meta { margin: 0; font-size: .9375rem; color: var(--hh-muted); }
.open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--hh-petrol-deep); }
.docs-one .doc { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: none; }
.docs-one .doc-cover { border-bottom: 0; border-right: 1px solid var(--hh-line); }
.docs-one .cover { height: 100%; min-height: 140px; padding: 8px; }

.brochure-head { display: grid; gap: 20px; align-items: end; }
@media (min-width: 600px) { .brochure-head { grid-template-columns: 200px minmax(0, 1fr); } }
.brochure-cover { display: block; background: var(--surface); border: 1px solid var(--hh-line); border-radius: var(--radius-hh); max-width: 240px; }
.cover-l { height: auto; max-height: 320px; padding: 12px; }
.points { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 14px; max-width: 60ch; }
.points li { counter-increment: p; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.points li::before { content: counter(p); width: 40px; height: 40px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol-deep); font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; }
.actions { display: grid; gap: 10px; }
.actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
/* Page d'une brochure : les boutons sous la brochure, seules les questions à droite.
   « Lire » et « Garder » côte à côte quand il y a la place, sinon l'un sous l'autre. */
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.doc-actions > .btn-l { flex: 1 1 220px; }
.doc-actions > .btn-soft { flex: 1 1 310px; white-space: nowrap; }
.doc-actions > .btn-ghost, .doc-actions > .actions-row { flex: 1 1 100%; }

/* ------------------------------------------------------------ questions pour le médecin */
.qlist { list-style: none; margin: 12px 0 0; padding: 0; }
.qlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hh-line); }
.qlist li:first-child { border-top: 0; }
.btn-add { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--hh-field); background: var(--surface); color: var(--hh-petrol-deep); font-weight: 600; cursor: pointer; flex: 0 0 auto; }
.btn-add.compact { width: 44px; padding: 0; justify-content: center; }
.btn-add[aria-pressed="true"] { background: var(--hh-tint); border-color: var(--hh-tint); }
.qlist-mine li { padding: 12px 0; }
.qlist:empty { display: none; }
.q-src { display: block; margin-bottom: 2px; font-size: .875rem; font-weight: 600; color: var(--hh-petrol-deep); }
.big .q-src { font-family: var(--font-text); font-size: 1rem; margin-bottom: 4px; color: var(--hh-muted); }
.swipe-search { margin-bottom: 18px; }
.swipe-search .ask { max-width: 720px; }
.sugg-search { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; min-height: 50px; padding: 0 14px; border: 1px solid var(--hh-field); border-radius: 14px; background: var(--surface); color: var(--hh-petrol); }
.sugg-search:focus-within { outline: 3px solid var(--hh-petrol); outline-offset: 2px; }
.sugg-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--hh-ink); outline: 0; min-height: 48px; }
.sugg-fam { border: 1px solid var(--hh-line); border-radius: var(--radius-hh); background: var(--surface); margin-top: 10px; }
.sugg-fam > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; color: var(--hh-ink); }
.sugg-fam > summary::-webkit-details-marker { display: none; }
.sugg-fam > summary .muted { margin-left: auto; font-family: var(--font-text); font-weight: 400; font-size: .9375rem; white-space: nowrap; }
.sugg-fam > summary > .ico:last-child { color: var(--hh-petrol); transition: transform .2s; flex: 0 0 auto; }
.sugg-fam[open] > summary > .ico:last-child { transform: rotate(90deg); }
.sugg-fam > summary:focus-visible { outline: 3px solid var(--hh-petrol); outline-offset: 2px; border-radius: var(--radius-hh); }
.sugg-body { padding: 0 16px 8px; }
.sugg-th { padding-top: 10px; border-top: 1px solid var(--hh-line); }
.sugg-th .label { margin: 0; }
.sugg-th .qlist { margin-top: 4px; }
.sugg-th .qlist li:first-child { border-top: 0; }
.own-q { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--hh-line); }
.qlist:empty + .own-q { border-top: 0; padding-top: 0; }
.own-q .field { min-height: 44px; font-size: 1rem; }
.qlist-mine li span { font-size: 1.125rem; }
.kept { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.kept li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hh-line); border-radius: var(--radius-hh); }
.kept a { font-weight: 600; }

/* ------------------------------------------------------------ test d'une minute */
.quiz-teaser, .prep-cta { display: grid; gap: 10px; align-content: start; }
.quiz-teaser .btn, .prep-cta .btn { justify-self: start; margin-top: 6px; }
.quiz { display: grid; gap: 14px; }
.qstep { margin: 0; display: grid; gap: 14px; }
.qstep legend { display: grid; gap: 4px; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.qstep legend + * { clear: both; }
.step-n { font-size: .9375rem; color: var(--hh-muted); font-weight: 600; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn-opt { position: relative; }
.yn-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.yn-opt span { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: var(--radius-pill); border: 1px solid var(--hh-field); background: var(--surface); font-weight: 600; font-size: 1.125rem; }
.yn-opt input:checked + span { background: var(--hh-petrol); border-color: var(--hh-petrol); color: #fff; }
.yn-opt input:focus-visible + span { outline: 3px solid var(--hh-petrol-deep); outline-offset: 2px; }
.alert { margin: 0; padding: 12px 16px; border-radius: var(--radius-hh); background: var(--hh-tint); color: var(--hh-petrol-deep); font-weight: 600; }
.result { display: grid; gap: 12px; }
.result .actions { grid-template-columns: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ------------------------------------------------------------ calendrier */
.cal-block { display: grid; gap: 10px; align-content: start; }
.cal-card { display: grid; gap: 8px; text-decoration: none; color: var(--hh-ink); }
.cal-card:hover { border-color: var(--hh-field); }
.cal-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dates a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 14px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-line); color: var(--hh-ink); text-decoration: none; font-weight: 600; }
.date { min-width: 64px; color: var(--hh-petrol-deep); font-family: var(--font-display); font-weight: 500; }
.t-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol); display: grid; place-items: center; flex: 0 0 auto; }
.t-ico-l { width: 48px; height: 48px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-row { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--hh-ink); padding: 14px 16px; }
.cal-row:hover { border-color: var(--hh-field); }
.cal-row > .ico { margin-left: auto; color: var(--hh-petrol); }
.cal-row-txt { display: grid; gap: 2px; min-width: 0; }
.date-block { width: 76px; min-height: 60px; border-radius: 12px; background: var(--hh-tint); color: var(--hh-petrol-deep); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-display); font-weight: 500; flex: 0 0 auto; padding: 4px; line-height: 1.2; }

/* ------------------------------------------------------------ réponse à la question */
.urgent { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-field); font-weight: 600; }
.urgent .ico { color: var(--hh-petrol); margin-top: 2px; }
.answer { display: grid; gap: 12px; }
.answer .points { margin-top: 4px; }
.answer-src { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.answer-src a { font-weight: 600; }

/* ------------------------------------------------------------ pied de page */
.foot { border-top: 1px solid var(--hh-line); background: var(--surface); }
.foot-in { padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 6px; font-size: .9375rem; color: var(--hh-muted); }
.foot-in p { margin: 0; max-width: 72ch; }
.foot-in .foot-logo { margin-bottom: 6px; }
.foot-logo img { display: block; height: 24px; width: auto; }
.foot-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* ------------------------------------------------------------ notification et vue « Montrer à mon médecin » */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; background: var(--surface); color: var(--hh-ink); border: 1px solid var(--hh-petrol); border-radius: var(--radius-pill); padding: 12px 20px; font-weight: 600; max-width: calc(100% - 32px); }
.big { position: fixed; inset: 0; z-index: 60; background: var(--surface); overflow: auto; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); }
.big-in { max-width: 820px; margin: 0 auto; }
.big h2 { color: var(--hh-muted); font-size: 1.375rem; margin: 24px 0 16px; }
.big ol { padding-left: 1.4em; margin: 0; }
.big ul { padding-left: 1.2em; margin: 0; }
.big ul li { font-size: clamp(1.375rem, 1rem + 1.4vw, 1.75rem); margin-bottom: 16px; }
.big li { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem); line-height: 1.25; margin-bottom: 24px; color: var(--hh-ink); }

@media print {
  .top, .foot, .actions, .skip, .demo-band, .toast, .btn-add, form, .back, .note { display: none !important; }
  body { background: #fff; font-size: 14pt; }
  .veil { background: none; }
  .split { display: block; }
}

/* couverture introuvable : pavé neutre au lieu d'un texte de remplacement */
.cover-fail { display: block; background: var(--hh-ground) url("../img/doc.svg") center / 40px no-repeat; }
.cover-l.cover-fail { height: 240px; }
@media (min-width: 900px) { .narrow .topics { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }

/* ============================================================ v2 : swipe des familles, articles, vidéo */
.hero .display { max-width: 18ch; }
.here { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-hh); background: var(--surface); border: 1px solid var(--hh-line); }
.here > .ico { color: var(--hh-petrol); }
.here span { flex: 1 1 220px; }

/* Le swipe : défilement natif, cartes calées, aucun défilement automatique */
.swipe-wrap { padding-top: 8px; }
.swipe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swipe-nav { display: flex; gap: 8px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hh-field); background: var(--surface); color: var(--hh-petrol-deep); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round-btn:hover { border-color: var(--hh-petrol); }
.round-btn:disabled { opacity: .4; cursor: default; }
.swipe { list-style: none; margin: 14px 0 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 2px max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter))) 14px; scroll-padding-left: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--hh-line) transparent; }
.swipe:focus-visible { outline-offset: -3px; }
.fcard { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; display: flex; }
.fcard-in { display: flex; flex-direction: column; width: 100%; min-height: 430px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hh-line); color: var(--hh-ink); text-decoration: none; overflow: hidden; }
.fcard-in:hover { border-color: var(--hh-field); }
.fcard-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 20px; min-height: 170px; background: linear-gradient(180deg, var(--hh-tint), #EEF5F5); }
.fcard-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--surface); color: var(--hh-petrol); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fcard-covers { display: flex; align-items: flex-end; }
.fcard-covers img { width: 54px; height: 76px; object-fit: cover; border-radius: 6px; border: 2px solid var(--surface); background: var(--surface); margin-left: -18px; }
.fcard-covers img:first-child { margin-left: 0; transform: rotate(-5deg); }
.fcard-covers img:last-child { transform: rotate(5deg); }
.fcard-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.fcard-name { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.fcard-intro { color: var(--hh-ink-soft); }
.fcard-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--hh-ground); border: 1px solid var(--hh-line); font-size: .9375rem; }
.tag-more { color: var(--hh-muted); }
.fcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; }
.fcard-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hh-petrol-deep); }
.swipe-hint { margin-top: 0; }
@media (min-width: 900px) { .swipe-hint { display: none; } }

/* articles */
.arts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 14px; }
.art { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--hh-ink); }
.art:hover { border-color: var(--hh-field); }
.art-img { width: 100%; height: 170px; object-fit: cover; background: var(--hh-tint); }
.art-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.art-title { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.art-excerpt { color: var(--hh-ink-soft); }
.art-big { margin-top: 14px; }
@media (min-width: 760px) { .art-big { flex-direction: row; } .art-big .art-img { width: 42%; height: auto; min-height: 240px; } .art-big .art-body { align-content: center; padding: 28px 32px; } .art-big .art-title { font-size: 1.75rem; } }
.art-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-hh); background: var(--hh-tint); }
.prose-blocks { max-width: 66ch; }
.prose-blocks p { margin: 0; }
.prose-blocks .h2 { margin-top: 10px; }
.tip { padding: 16px 18px; border-radius: var(--radius-hh); background: var(--hh-tint); color: var(--hh-ink); }
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius-hh); }
.fig figcaption { font-size: .9375rem; color: var(--hh-muted); margin-top: 6px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-hh); overflow: hidden; background: var(--hh-ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: var(--radius-hh); background: var(--hh-ink); }
.qbox .label { margin-bottom: 0; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hh-petrol); }
.doc-cover { position: relative; }
.small { font-size: .9375rem; }

/* ------------------------------------------------------------ préparer ma consultation : accès en haut de l'accueil */
.prep-hero { display: flex; align-items: center; gap: 14px; margin-top: 0; max-width: 560px; padding: 14px 18px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--hh-line); border-radius: var(--radius-hh); color: var(--hh-ink); text-decoration: none; }
.prep-hero:hover { border-color: var(--hh-petrol); }
.prep-hero > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.prep-hero strong { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.prep-hero > span:nth-child(2) span { color: var(--hh-muted); font-size: .9375rem; }
.prep-hero > svg { color: var(--hh-petrol-deep); flex: 0 0 auto; }
.prep-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol); display: grid; place-items: center; flex: 0 0 auto; }

/* résultat du test : la question qui sera ajoutée */
.q-to-add { margin: 4px 0 0; font-size: 1.0625rem; color: var(--hh-ink); }
.q-to-add .label { display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------ fenêtre d'explication de la liste (première question ajoutée) */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(19, 39, 44, .42); display: grid; align-items: end; justify-items: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet { align-items: center; } }
.sheet-in { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--radius-hh); padding: 24px 22px 20px; display: grid; gap: 10px; }
.sheet-in h2 { margin: 2px 0 0; }
.sheet-in p { margin: 0; color: var(--hh-ink-soft); }
.sheet-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--hh-tint); color: var(--hh-petrol); display: grid; place-items: center; }
.sheet-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sheet-act .btn { flex: 1 1 auto; justify-content: center; }
.tool-consult.spot { outline: 3px solid var(--hh-petrol); outline-offset: 3px; background: var(--hh-tint); }
@media (prefers-reduced-motion: no-preference) { .tool-consult.spot { animation: spot 1.2s ease-in-out 2; } }
@keyframes spot { 50% { outline-offset: 7px; } }

/* ============================================================ v3 : ordre alphabétique, filtres, consultation, liste d'un appareil à l'autre */

/* Puces sur une seule rangée qui défile au doigt (téléphone) ; elles passent à la ligne sur grand écran. */
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 6px var(--gutter); scroll-padding: 0 var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > li { flex: 0 0 auto; }
.chips-scroll .chip { gap: 8px; white-space: nowrap; cursor: pointer; font-family: var(--font-text); }
.chips-scroll .chip .ico { color: var(--hh-petrol); }
.chips-scroll .chip.is-on .ico { color: #fff; }
@media (min-width: 900px) { .chips-scroll { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 6px 0; } }

/* Accueil : accès direct aux cartes du swipe */
.jump { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.swipe-search { margin-bottom: 12px; }
.jump + .swipe { margin-top: 8px; }
.fcard { scroll-margin-top: 150px; }

/* Carte d'une famille : le nom porte le lien de toute la carte, chaque sujet a son propre lien */
.fcard-in { position: relative; }
a.fcard-name { color: var(--hh-ink); text-decoration: none; }
a.fcard-name::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
a.fcard-name:focus-visible { outline: none; }
a.fcard-name:focus-visible::after { outline: 3px solid var(--hh-petrol-deep); outline-offset: 2px; }
.fcard-topics { list-style: none; margin: 0; padding: 0; gap: 12px 8px; }
.fcard-topics a.tag { position: relative; z-index: 1; min-height: 34px; padding: 3px 12px; background: var(--surface); border-color: var(--hh-field); color: var(--hh-petrol-deep); font-weight: 600; text-decoration: none; }
.fcard-topics a.tag::after { content: ""; position: absolute; inset: -6px -3px; }   /* zone tactile de 46px */
.fcard-topics a.tag:hover { border-color: var(--hh-petrol); background: var(--hh-tint); }
.fcard:target .fcard-in, .fcard.is-target .fcard-in { border-color: var(--hh-petrol); }

/* Listes de A à Z : champ de filtre et puces de famille */
.filterable { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid var(--hh-field); border-radius: 14px; background: var(--surface); color: var(--hh-petrol); }
.search:focus-within { outline: 3px solid var(--hh-petrol); outline-offset: 2px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--hh-ink); outline: 0; min-height: 48px; }
.search input::placeholder { color: var(--hh-muted); opacity: 1; }
.filters .search { max-width: 560px; }
.filter-n { margin: 0; min-height: 1.5em; font-size: .9375rem; }
.filter-n:empty { display: none; }
.filterable .topics { margin-top: 0; }

/* Ma consultation : la liste, puis les boutons, puis les suggestions (repliées) et les brochures */
.consult { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 56px; }
.consult > * { min-width: 0; }
.consult-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: start; }
.consult-side .note { margin-top: 8px; }
.consult-sugg .sugg-fam:first-of-type { margin-top: 12px; }
.own-row .btn { flex: 0 0 auto; }
@media (max-width: 599px) {
  .own-row .btn { width: 48px; padding: 0; }
  .own-row .btn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Sur téléphone, les boutons n'apparaissent qu'avec quelque chose à montrer ; l'envoi vers le téléphone sert sur grand écran. */
@media (max-width: 899px) { .consult[data-empty] .consult-side { display: none; } }
@media (max-width: 699px) { .to-phone, .to-phone-hint { display: none !important; } }
@media (min-width: 900px) {
  .consult { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .consult-list, .consult-sugg, .consult-docs { grid-column: 1; }
  .consult-side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }
}

/* Fenêtre du code QR (la liste passe sur le téléphone) et fenêtre d'arrivée */
.sheet-qr .sheet-in { max-width: 500px; justify-items: center; text-align: center; }
.sheet-qr .sheet-in p { max-width: 42ch; }
.qr-box { width: min(100%, 300px); aspect-ratio: 1; background: #fff; border: 1px solid var(--hh-line); border-radius: 12px; padding: 12px; }
.qr-box.dense { width: min(100%, 420px); }
.qr-box svg { display: block; width: 100%; height: 100%; }
.sheet-qr .sheet-act { justify-content: center; width: 100%; }
@media print { .sheet, .filters, .jump, .consult-side { display: none !important; } .consult { display: block; } }

/* ---------------------------------------------------------------- v4 : petits écrans et grande taille de texte
   Rien ne sort de l'écran, même à 320 px de large avec la plus grande taille de texte, et en néerlandais (mots longs). */
.ask { grid-template-columns: minmax(0, 1fr); }
.cal-row-txt, .topic-txt { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
.cal-row > .ico, .row-link > .ico, .sugg-fam > summary > .ico { flex: 0 0 auto; }
.topic-name, .cal-title, .cal-row-txt .muted, .fcard-name, .tag, .display, .display-s, .h2, .h3, .doc-title, .row-link { overflow-wrap: anywhere; }
/* Césure des longs mots, là où la place manque : sur téléphone en néerlandais (mots composés) ou quand le texte est agrandi, et sur les plus petits écrans.
   Ailleurs, un titre ne se coupe pas au milieu d'un mot. */
@media (max-width: 479px) {
  :lang(nl) .topic-name, :lang(nl) .topic-txt .muted, :lang(nl) .cal-title, :lang(nl) .cal-row-txt .muted, :lang(nl) .fcard-name, :lang(nl) .display, :lang(nl) .display-s, :lang(nl) .h2, :lang(nl) .doc-title, :lang(nl) .dates a > span:last-child,
  html[data-fs="1"] .topic-name, html[data-fs="1"] .topic-txt .muted, html[data-fs="1"] .cal-title, html[data-fs="1"] .cal-row-txt .muted, html[data-fs="1"] .fcard-name, html[data-fs="1"] .display, html[data-fs="1"] .display-s, html[data-fs="1"] .h2, html[data-fs="1"] .doc-title, html[data-fs="1"] .dates a > span:last-child,
  html[data-fs="2"] .topic-name, html[data-fs="2"] .topic-txt .muted, html[data-fs="2"] .cal-title, html[data-fs="2"] .cal-row-txt .muted, html[data-fs="2"] .fcard-name, html[data-fs="2"] .display, html[data-fs="2"] .display-s, html[data-fs="2"] .h2, html[data-fs="2"] .doc-title, html[data-fs="2"] .dates a > span:last-child { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
}
/* Cartes de sujets sur plusieurs colonnes, en néerlandais et texte agrandi : la césure reste utile sur tablette et ordinateur */
html[data-fs="1"]:lang(nl) .topic-name, html[data-fs="2"]:lang(nl) .topic-name { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
@media (max-width: 359px) { .topic-name, .topic-txt .muted, .cal-title, .cal-row-txt .muted, .fcard-name, .display, .display-s, .h2, .doc-title, .dates a > span:last-child { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; } }
/* boutons : un libellé long passe sur deux lignes au lieu de sortir de l'écran */
.btn { padding-top: 8px; padding-bottom: 8px; line-height: 1.25; min-width: 0; }
.btn-add { padding-top: 6px; padding-bottom: 6px; line-height: 1.25; text-align: left; }
.result .btn-add { flex-shrink: 1; min-width: 0; }                      /* seul ce bouton a un long libellé ; « Retirer » garde toujours sa taille */
/* en-tête sur les plus petits écrans */
@media (max-width: 359px) { .top-in { gap: 8px; } .tools { gap: 4px; } .tool { padding: 0 8px; } }
/* flèches du swipe : sur ordinateur seulement ; au doigt, on fait glisser ou on touche une puce */
@media (hover: none) and (pointer: coarse) { .swipe-nav { display: none !important; } }
.cal-block, .quiz-teaser, .prep-cta, .result, .cal-card { grid-template-columns: minmax(0, 1fr); }
.dates a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
/* Suggestions de « Ma consultation » : le nom de la famille prend la place, le nombre de questions passe dessous quand l'écran est étroit */
.sugg-fam > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 12px; row-gap: 0; }
.sugg-name { overflow-wrap: anywhere; }
.sugg-fam > summary .muted { margin-left: 0; }
@media (max-width: 480px) {
  .sugg-fam > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sugg-fam > summary > .t-ico { grid-row: 1 / span 2; }
  .sugg-fam > summary > .sugg-name { grid-column: 2; grid-row: 1; align-self: end; }
  .sugg-fam > summary > .muted { grid-column: 2; grid-row: 2; align-self: start; white-space: normal; }
  .sugg-fam > summary > .ico:last-child { grid-column: 3; grid-row: 1 / span 2; }
}
/* Ma consultation : « Mes brochures » juste après les boutons, avant les suggestions */
.consult-docs[hidden] { display: none; }
/* Fenêtres (code QR, première utilisation, confirmation) : elles tiennent toujours dans l'écran.
   Quand le texte est plus haut que l'écran (petit téléphone, grand texte), il défile dans la fenêtre et les boutons restent visibles en bas. */
.sheet { overflow: hidden; grid-template-rows: minmax(0, 1fr); }
.sheet-in { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-act { position: sticky; bottom: -20px; z-index: 1; background: var(--surface); margin: 8px 0 -20px; padding: 2px 0 20px; }
.sheet-qr .qr-box, .sheet-qr .qr-box.dense { width: min(100%, 300px, max(200px, calc(100dvh - 400px))); }
.sheet-qr .qr-box.dense { width: min(100%, 420px, max(240px, calc(100dvh - 400px))); }
/* Écran large mais peu haut (la plupart des ordinateurs portables, un téléphone à l'horizontale) : le code à gauche, en grand, le texte à droite */
@media (min-width: 900px) and (max-height: 860px), (min-width: 700px) and (max-height: 700px) {
  .sheet-code .sheet-in { max-width: 860px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; justify-items: start; text-align: left; padding: 28px; }
  .sheet-code .sheet-in > * { grid-column: 2; }
  .sheet-code .qr-box, .sheet-code .qr-box.dense { grid-column: 1; grid-row: 1 / -1; align-self: center; width: min(360px, 45vw, calc(100vh - 92px)); width: min(360px, 45vw, calc(100dvh - 92px)); }
  .sheet-code .qr-box.dense { width: min(440px, 45vw, calc(100vh - 92px)); width: min(440px, 45vw, calc(100dvh - 92px)); }
  .sheet-code .sheet-in p { max-width: 38ch; }
  .sheet-code .sheet-act { position: static; justify-content: flex-start; align-self: end; margin: 8px 0 0; padding: 0; }
  .sheet-code .sheet-act .btn { flex: 0 1 auto; }
}
/* En-tête sur les plus petits écrans (320 px) : le compteur de la liste se pose sur le bouton, le logo est un peu plus petit */
@media (max-width: 359px) {
  .logo img { height: 22px; }
  .tool-consult .count { position: absolute; top: -5px; right: -6px; box-sizing: content-box; border: 2px solid var(--surface); }
}
/* Ma liste et mes brochures : quand la ligne devient trop étroite pour le texte (petit écran, grand texte), « Retirer » passe dessous */
.qlist-mine li, .kept li { flex-wrap: wrap; row-gap: 8px; }
.qlist-mine li > span:first-child, .kept li > a { flex: 1 1 11rem; min-width: 0; }
.qlist-mine li > .btn-add, .kept li > .btn-add { margin-left: auto; }
/* Sommaire d'une page de sujet : des puces vers ses rubriques */
.page-head { grid-template-columns: minmax(0, 1fr); }                    /* la rangée de puces défile dans la page, elle ne l'élargit pas */
.page-nav { margin-top: 16px; }
.page-nav .chips { margin: 0; }
.chip-n { font-weight: 400; color: var(--hh-muted); margin-left: 4px; }
#h-docs, #h-und, #h-prev, .anchor { scroll-margin-top: 84px; }
/* Coupures de ligne soignées : titres et boutons équilibrés, pas de mot seul en fin de paragraphe, « e-mail » jamais coupé */
.nw { white-space: nowrap; }
.foot-links a { min-width: 44px; }
.display, .display-s, .h2, .h3, .btn, .btn-add, .topic-name, .cal-title, .fcard-name, .doc-title, .art-title, legend .h3 { text-wrap: balance; }
body { text-wrap: pretty; }
/* Téléphone : les brochures en liste (couverture à gauche, texte à droite), trois par écran au lieu d'une et demie */
@media (max-width: 519px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .docs .doc { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; }
  .docs .doc-cover { border-bottom: 0; border-right: 1px solid var(--hh-line); }
  .docs .cover { height: 100%; min-height: 148px; padding: 8px; }
  .docs .doc-body { padding: 12px 14px 6px; }
}
/* Sources d'un article : une ligne par source, chacune facile à toucher */
.srcs-box { margin-top: 28px; max-width: 60ch; }
.srcs-box .label { margin-bottom: 0; }
.srcs { list-style: none; margin: 0; padding: 0; }
.srcs li { border-top: 1px solid var(--hh-line); font-size: .9375rem; color: var(--hh-muted); padding: 10px 0; }
.srcs li:first-child { border-top: 0; }
.srcs li > a:only-child { display: flex; align-items: center; min-height: 44px; margin: -10px 0; padding: 8px 0; }
/* Une adresse e-mail reste d'un seul tenant (sauf sur les tout petits écrans, où elle peut se couper) */
.mail { white-space: nowrap; }
@media (max-width: 359px) { .mail { white-space: normal; overflow-wrap: anywhere; } }
/* Cartes « test » et « préparer ma consultation » : mêmes écarts que les autres cartes */
.quiz-teaser > *, .prep-cta > *, .result > * { margin-top: 0; margin-bottom: 0; }
.result .actions { margin-top: 6px; }
.stack > .art-big { margin-top: 0; }
/* Liste des tests : deux colonnes dès la tablette, la liste est deux fois moins longue */
.tests-list > li { display: grid; }
@media (min-width: 760px) { .tests-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; } }
/* Carte d'une famille : le nombre de brochures et « Voir le sujet » ne se coupent pas ; s'ils ne tiennent pas côte à côte (néerlandais, grand texte), le lien passe dessous */
.fcard-foot { flex-wrap: wrap; row-gap: 2px; }
.fcard-foot > * { white-space: nowrap; }
/* Résultat d'un test sur téléphone : les deux boutons sur toute la largeur, l'un sous l'autre */
@media (max-width: 519px) { .result .actions > .btn, .result .actions > .btn-add { flex: 1 1 100%; justify-content: center; text-align: center; } }
/* Test : la question qui apparaît se place à l'écran avec un peu d'air */
.qstep, .quiz > .btn { scroll-margin: 84px 0 16px; }
/* Mes brochures : le titre, même court, garde 44 px de haut pour le doigt */
.kept li > a { display: block; padding: 9px 0; }
/* « Montrer à mon médecin » : en très grands caractères, un long mot se coupe proprement plutôt que de sortir de l'écran */
.big li, .big h2 { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.big-in { min-width: 0; }
/* Message bref en bas d'écran : centré sur toute la largeur disponible (il ne se replie plus sur trois lignes), coins ronds même sur deux lignes */
.toast { left: 16px; right: 16px; transform: none; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: calc(100% - 32px); margin-left: auto; margin-right: auto; text-align: center; border-radius: 24px; }
/* Impression de « Ma consultation » : la feuille ne porte que la liste (questions et brochures), sans les suggestions ni les champs */
@media print {
  .consult-sugg, .page-nav, .no-print, .own-row, [data-list-empty] { display: none !important; }
  .consult-docs { margin-top: 24px; }
  .qlist-mine li, .kept li { break-inside: avoid; }
}
/* « Montrer à mon médecin » : les numéros (grands caractères) restent dans la marge prévue, même sur un écran large */
.big ol { padding-left: clamp(2.6rem, 1.8rem + 3vw, 3.4rem); }
.big ul { padding-left: 1.6rem; }
/* Origine d'une question (« À propos de : … ») : 15 px, le plancher de la plateforme */
.q-src { font-size: .9375rem; }
