/* =============================================================
   antidouleur59.fr — thème éditorial
   Pierre claire, encre, rouge brique ; Newsreader + Source Sans 3
   ============================================================= */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --stone: #F5F4F0;
  --paper: #FBFAF7;
  --ink: #1C1B19;
  --text: #45423C;
  --muted: #6B665D;
  --rule: #D8D4CB;
  --brick: #A8432F;
  --brick-dark: #86321F;
  --note: #F1E7D8;
  --acc-rgb: 168, 67, 47;
  --acc2: var(--brick);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gut: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--stone); color: var(--text); font: 18px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--brick); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: var(--hw, 400); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.01em; }
h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 500; }
h4 { font-size: 20px; font-weight: 500; }
h1 em, h2 em { color: var(--brick); }
p, ul, ol, dl, figure { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--stone); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeau supérieur ---------- */
.topbar { border-bottom: 1px solid var(--rule); font-size: 14px; letter-spacing: .04em; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; }
.topbar p { margin: 0; padding: 10px 0; color: var(--muted); }
.topbar .links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.topbar a { display: inline-block; padding: 12px 0; font-weight: 600; text-decoration: none; }

/* ---------- En-tête et menu ---------- */
.masthead .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding-top: 18px; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: 4px 0; }
.brand .name { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.brand .sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { position: relative; }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px var(--sans); cursor: pointer; }
.menu { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; font-size: 16px; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li > button.active, .menu a[aria-current="page"] { color: var(--brick); }
.menu > li > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.sub { display: none; position: absolute; left: -16px; top: 100%; z-index: 40; min-width: 260px; margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-top: 2px solid var(--brick); box-shadow: 0 12px 30px rgba(28, 27, 25, .12); }
.sub a { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--brick); background: var(--stone); }
.sub .soon { color: var(--muted); font-size: 13px; }
.has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover > .sub { display: block; } }

@media (max-width: 960px) {
  .nav { width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .menu { display: none; flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .nav.open .menu { display: flex; }
  .menu > li { border-top: 1px solid var(--rule); }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; min-height: 48px; font-size: 18px; }
  .sub { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--brick); background: transparent; padding: 0 0 8px; margin-left: 2px; min-width: 0; }
  .sub a { padding: 10px 14px; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* ---------- Sections ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero .meta { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-family: var(--lead, var(--serif)); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: #2E2C28; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--ink); color: var(--stone); border: 1px solid var(--ink); font: 600 17px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--stone); }
.btn.brick { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
/* bouton inactif (« Bientôt disponible ») : grisé, non cliquable */
.btn.btn-off, .btn.btn-off:hover { background: #E4E2DC; border-color: #C9C6BE; color: #7A776F; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.btn-off .i { color: inherit; opacity: .7; }
.btn .btn-txt { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; padding: 6px 0; }
.btn .btn-txt small { font-size: 12.5px; font-weight: 400; letter-spacing: .02em; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.link-arrow::after { content: " →"; white-space: pre; }

.band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-top: clamp(40px, 7vw, 88px); }
.section:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }
.kicker { font: 600 14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.kicker.brick { color: var(--brick); }
.split { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-start; }
.split > .side { flex: 1 1 220px; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; color: var(--ink); margin: 0 0 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 64px; }
.col-top { border-top: 2px solid var(--ink); padding-top: 20px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--rule); }
.linklist a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--brick); }
.linklist .soon { display: block; padding: 12px 0; color: var(--muted); }

/* liste numérotée en chiffres romains */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); counter-increment: s; }
.steps > li::before { content: counter(s, lower-roman); font-family: var(--serif); font-size: 22px; color: var(--brick); min-width: 30px; line-height: 1.3; }
.steps > li > div { min-width: 0; }
.steps h3, .steps h4 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 17px; }
.steps.num > li::before { content: counter(s); }
.steps.plain > li { display: block; }
.steps.plain > li::before { content: none; }

/* contenu rédactionnel */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brick); }
.biblio { font-size: 16px; color: var(--muted); }
.biblio li { margin-bottom: .6em; }
.figure-plain { margin: 0; }

/* encarts */
.note { background: var(--note); border-left: 3px solid var(--brick); padding: 14px 18px; margin: 0 0 1.2em; font-size: 17px; }
.note p:last-child { margin-bottom: 0; }
.alert { border: 1px solid var(--brick); padding: 14px 18px; margin: 0 0 1.2em; }
.placeholder { border: 1.5px dashed var(--brick); background: var(--paper); padding: 14px 18px; margin: 0 0 1.2em; color: var(--muted); font-style: italic; }
.placeholder strong { color: var(--brick); font-style: normal; }
.tag-soon { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--brick); color: var(--brick); font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* lexique */
.lexique { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 48px; margin: 0; }
.lexique div { border-top: 1px solid var(--rule); padding-top: 14px; }
.lexique dt { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 0 0 6px; }
.lexique dd { margin: 0; font-size: 17px; }

/* tableau de comparaison */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
thead th { font: 600 14px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }

/* animation cerveau */
.brainfig { margin: 0; }
.brain { width: 100%; aspect-ratio: var(--ar, 2); max-height: 78vh; }
.brain canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.brainfig figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }

/* formulaire SMS */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=time], .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #BDB7AB; background: #fff; color: var(--ink); font: 18px var(--sans); border-radius: 0; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--brick); }
.choice:has(input:checked) { border-color: var(--brick); box-shadow: inset 0 0 0 1px var(--brick); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brick); }
.sms-desktop { display: none; }
.is-desktop .sms-desktop { display: block; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }

/* adresse */
.address { font-style: normal; }

/* pied de page */
.footer { border-top: 3px double var(--ink); margin-top: 0; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 48px; padding-top: 32px; padding-bottom: 24px; font-size: 16px; }
.footer h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.footer li a:hover { color: var(--brick); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 14px; color: var(--muted); }
.footer .legal a { color: var(--muted); }

@media print {
  .topbar, .nav, .footer .wrap > div:not(.legal), .brainfig { display: none; }
  body { background: #fff; }
}

/* =============================================================
   Icônes, menu illustré, cartes, figures, interactions sobres
   ============================================================= */
.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.i.big { width: 56px; height: 56px; stroke-width: 1.15; color: var(--brick); }
.h-ic { color: var(--brick); width: .85em; height: .85em; margin-right: .38em; vertical-align: -0.06em; stroke-width: 1.5; }
a, .btn, .tile, .card, .doc, .mi, .tile-ic, .step-ic { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s ease; }

/* bandeau et en-tête */
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.masthead { position: sticky; top: 0; z-index: 50; background: var(--stone); }
.masthead.scrolled { box-shadow: 0 8px 22px rgba(28, 27, 25, .08); }
.masthead.scrolled .wrap { padding-top: 10px; padding-bottom: 8px; }
.masthead .wrap { transition: padding .2s ease; }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand .mark svg { display: block; width: 42px; height: 42px; transition: transform .6s ease; }
.brand:hover .mark svg { transform: rotate(30deg); }
.brand .bt { display: flex; flex-direction: column; }
.nav-toggle { gap: 8px; }
.nav-toggle .i { width: 20px; height: 20px; }
.menu > li > button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.menu > li > button::after { transition: transform .2s ease; }
.sub { min-width: 340px; padding: 8px; }
.sub a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 2px; }
.mi { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; color: var(--brick); background: var(--stone); flex: none; }
.mi .i { width: 20px; height: 20px; }
.sub a:hover .mi, .sub a:focus-visible .mi, .sub a[aria-current="page"] .mi { background: var(--brick); border-color: var(--brick); color: #fff; }
.mt { display: flex; flex-direction: column; line-height: 1.3; padding-top: 1px; }
.ml { font-weight: 600; color: var(--ink); }
.md { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sub .soon { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--brick); color: var(--brick); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
@media (min-width: 961px) {
  .sub { display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
  .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; }
  .menu > li:nth-last-child(-n+3) > .sub { left: auto; right: -16px; }
}
@media (hover: hover) and (min-width: 961px) { .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease; } }
@media (max-width: 960px) {
  .nav.open .menu { max-height: calc(100vh - 140px); overflow-y: auto; }
  .sub a { padding: 10px 12px; }
}

/* liens */
.link-arrow::after { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.prose a:not(.btn):not(.link-arrow), .lead a { text-decoration-color: rgba(var(--acc-rgb), .45); }
.prose a:not(.btn):not(.link-arrow):hover { text-decoration-color: currentColor; }
.btn { gap: 10px; }
.btn .i { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-date { margin-left: -2px; font-size: 13px; font-weight: 400; letter-spacing: .03em; opacity: .7; font-variant-numeric: tabular-nums; }

/* accès rapides */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.tile-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--brick); border-radius: 50%; color: var(--brick); }
.tile-ic .i { width: 22px; height: 22px; }
.tile-t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.tile-d { font-size: 15px; color: var(--muted); }
.tile:hover, .tile:focus-visible { border-color: var(--brick); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 27, 25, .07); color: var(--ink); }
.tile:hover .tile-ic { background: var(--brick); color: #fff; }

/* cartes à image */
.sec-head { margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--rule); overflow: hidden; padding: 10px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.card-media > .i.big { display: none; }
.card-media.missing { background: var(--stone); }
.card-media.missing img { display: none; }
.card-media.missing > .i.big { display: block; opacity: .75; }
.card-body { padding: 16px 18px 18px; }
.card h4 { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.card h4 a { color: var(--ink); text-decoration: none; }
.card.linked h4 a::after { content: ""; position: absolute; inset: 0; }
.card-ic { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -2px; border-radius: 50%; background: var(--stone); color: var(--brick); flex: none; }
.card-ic .i { width: 18px; height: 18px; }
.card p { margin: 0; font-size: 16px; }
.card.linked:hover { border-color: var(--brick); box-shadow: 0 12px 28px rgba(28, 27, 25, .08); transform: translateY(-2px); }
.card.linked:hover img { transform: scale(1.035); }
.card.linked:hover h4 a { color: var(--brick); }
.card.linked:focus-within { outline: 2px solid var(--brick); outline-offset: 2px; }
.card.linked h4 a:focus-visible { outline: none; }

/* listes à icônes */
.linklist a { display: flex; align-items: center; gap: 12px; }
.linklist a .i { color: var(--brick); }
.linklist a span { transition: transform .2s ease; }
.linklist a:hover span { transform: translateX(3px); }
.iclist { list-style: none; padding-left: 0 !important; }
.iclist li { display: flex; gap: 12px; align-items: flex-start; }
.iclist li > .i { color: var(--brick); margin-top: .18em; }
.iclist a { display: flex; gap: 10px; align-items: flex-start; }
.iclist a .i { color: var(--brick); margin-top: .2em; }
.ic-line { display: flex; gap: 12px; align-items: flex-start; }
.ic-line > .i { color: var(--brick); margin-top: .2em; }
.kicker .i { color: var(--brick); }
.infos .kicker { display: flex; align-items: center; gap: 8px; }
.col-top h2 { display: flex; align-items: center; }

/* étapes à icônes */
.steps.icons > li::before { content: none; }
.step-ic { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--brick); border-radius: 50%; color: var(--brick); flex: none; margin-top: 2px; }
.step-ic .i { width: 21px; height: 21px; }
.steps.icons > li:hover .step-ic { background: var(--brick); color: #fff; }

/* figures */
.fig { margin: 0 0 1.4em; }
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: #fff; cursor: zoom-in; overflow: hidden; }
.zoomable img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; transition: transform .5s ease; }
.zoomable:hover img { transform: scale(1.02); }
.zoom-ic { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(28, 27, 25, .72); color: #fff; opacity: 0; transition: opacity .2s ease; }
.zoom-ic .i { width: 18px; height: 18px; }
.zoomable:hover .zoom-ic, .zoomable:focus-visible .zoom-ic { opacity: 1; }
@media (hover: none) { .zoom-ic { opacity: .85; } }
.fig figcaption, .figcap { font-size: 15px; color: var(--muted); margin-top: 8px; }
.fig.missing { display: none; }
.figpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.figpair .fig { margin-bottom: 0; }
.figpair + .figcap { margin: 8px 0 1.4em; }
.figpair:has(.fig:not(.missing)) + .figcap { display: block; }

/* héros avec illustration */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 56px; align-items: center; }
.hero-split .fig { margin: 0; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }
.fig-ph { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 3; border: 1.5px dashed rgba(var(--acc-rgb), .55); background: var(--paper); color: var(--muted); font-style: italic; font-size: 15px; }
.hero-fig:has(.fig.missing) { display: none; }

/* documents à télécharger */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; margin: 0 0 1.6em; }
.doc { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); }
.doc-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: #fff; border-bottom: 1px solid var(--rule); overflow: hidden; }
.doc-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.doc-media > .i.big { display: none; }
.doc-media.missing img { display: none; }
.doc-media.missing > .i.big { display: block; }
.doc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc h3 { font-size: 19px; margin: 0; }
.doc h3 a { color: var(--ink); text-decoration: none; }
.doc h3 a::after { content: ""; position: absolute; inset: 0; }
.doc p { font-size: 15px; margin: 0; }
.doc-dl { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--brick); font-weight: 600; font-size: 15px; }
.doc:hover { border-color: var(--brick); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28, 27, 25, .08); }
.doc:hover img { transform: scale(1.03); }
.doc:hover h3 a { color: var(--brick); }
.doc-alt { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.doc-alt .i { width: 14px; height: 14px; }
.doc-alt:hover { color: var(--brick); }
.doc:focus-within { outline: 2px solid var(--brick); outline-offset: 2px; }
/* fichiers à télécharger : cartes horizontales, petite vignette à gauche */
.dl-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; margin: 1.1em 0 1.4em; max-width: 720px; }
.dl-file { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--paper); border: 1px solid var(--rule); }
.dl-file:hover { border-color: var(--brick); }
.dl-thumb { flex: 0 0 84px; aspect-ratio: 3 / 4; display: block; overflow: hidden; background: #fff; border: 1px solid var(--rule); }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dl-thumb.missing img { display: none; }
.dl-body { min-width: 0; }
.dl-body h3 { font-size: 17px; margin: 0 0 3px; }
.dl-body p { font-size: 14px; line-height: 1.4; margin: 0 0 9px; color: var(--muted); }
.btn.dl-btn { min-height: 36px; padding: 0 14px; font-size: 14.5px; gap: 7px; }
.btn.dl-btn .i { width: 17px; height: 17px; }

/* agrandissement */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lb::backdrop { background: rgba(28, 27, 25, .84); }
dialog.lb img { display: block; max-width: 94vw; max-height: 82vh; margin: 0 auto; background: #fff; }
dialog.lb p { color: #F5F4F0; text-align: center; font-size: 15px; margin: 10px 0 0; }
.lb-close { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(245, 244, 240, .6); border-radius: 50%; background: transparent; color: #F5F4F0; cursor: pointer; }
.lb-close .i { width: 20px; height: 20px; }

/* pied de page */
.footer .iclist a { padding: 6px 0; }

/* retour en haut */
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--stone); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
.totop.show { opacity: .9; pointer-events: auto; transform: none; }
.totop:hover { background: var(--brick); color: #fff; }
.totop .i { width: 20px; height: 20px; }

/* apparition douce */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.brainfig figcaption .i { color: var(--brick); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .totop, .zoom-ic { display: none; } .js .reveal { opacity: 1; transform: none; } }
.figpair:not(:has(.fig:not(.missing))) + .figcap { display: none; }

/* =============================================================
   En-tête compact sur une ligne (oct. 2026)
   ============================================================= */
.topbar { display: none; }
.masthead .wrap { position: relative; flex-wrap: nowrap; gap: 12px 24px; padding-top: 14px; padding-bottom: 12px; }
.brand { min-width: 0; gap: 12px; }
.brand .bt { min-width: 0; }
.brand .name { font-size: 26px; }
.tagline { display: block; margin-top: 3px; font: 400 11px/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); }
.head-right { display: flex; align-items: center; gap: 4px 20px; margin-left: auto; }
.quick-ic { display: flex; gap: 6px; order: 2; }
.qi { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; color: var(--brick); background: transparent; text-decoration: none; }
.qi .i { width: 21px; height: 21px; }
.qi:hover, .qi:focus-visible { background: var(--brick); border-color: var(--brick); color: #fff; }
.qi::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 10px; background: var(--ink); color: var(--stone); font: 600 13px/1.2 var(--sans); white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 60; }
.qi:hover::after, .qi:focus-visible::after { opacity: 1; transform: none; }
.nav-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: rgba(245, 244, 240, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--ink); }
.nav-toggle:hover { background: rgba(var(--acc-rgb), .1); color: var(--brick); }
.nav-toggle .i { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.nav.open .nav-toggle .ic-open { display: none; }
.nav.open .nav-toggle .ic-close { display: block; }
.masthead.scrolled .tagline { display: none; }
.masthead.scrolled .brand .name { font-size: 22px; }

@media (max-width: 960px) {
  .nav { width: auto; position: static; }
  .nav-toggle { display: inline-flex; }
  .head-right { gap: 6px; }
  .quick-ic { order: 0; }
  .menu { display: flex; position: absolute; left: 0; right: 0; top: 100%; z-index: 70; padding: 8px var(--gut) 14px;
    background: rgba(245, 244, 240, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--rule); box-shadow: 0 18px 36px rgba(28, 27, 25, .12);
    max-height: calc(100vh - 90px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .nav.open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; max-height: calc(100vh - 90px); }
  .menu > li:first-child { border-top: 0; }
  /* une seule colonne : sans cela, à l'ouverture d'un sous-menu, les entrées
     passaient dans une 2e colonne et le sous-menu apparaissait décalé à droite, coupé */
  .menu { flex-wrap: nowrap; overflow-x: hidden; }
  .menu > li { flex: none; min-width: 0; }
  .sub { min-width: 0; }
  .mt { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .masthead .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 9px; }
  .brand .mark svg { width: 36px; height: 36px; }
  .brand .name { font-size: 19px; line-height: 1.15; }
  .masthead.scrolled .brand .name { font-size: 18px; }
  .tagline { font-size: 9.5px; letter-spacing: .03em; }
  .qi, .nav-toggle { width: 40px; height: 40px; min-height: 40px; }
  .qi .i { width: 19px; height: 19px; }
  .qi::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) { .menu, .nav-toggle { background: var(--stone); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 961px) {
  .brand .name { font-size: 23px; white-space: nowrap; }
  .tagline { font-size: 10.5px; white-space: nowrap; }
  .menu { flex-wrap: nowrap; gap: 0 14px; font-size: 15px; white-space: nowrap; }
  .menu > li.home, .menu > li.menu-id { display: none; }
  .head-right { gap: 16px; }
  .qi { width: 40px; height: 40px; }
  .qi .i { width: 19px; height: 19px; }
}
@media (min-width: 961px) and (max-width: 1100px) { .tagline { white-space: normal; max-width: 240px; } .menu { gap: 0 12px; } }

/* Accueil : animation à droite (ordinateur), au-dessus (mobile) */
.hero-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px 48px; align-items: center; }
.hero-home .brainfig { margin: 0; }
.hero-home .brain { width: 100%; aspect-ratio: var(--ar, 2.026); max-height: none; background: no-repeat left center / contain; }
.hero-home .brain.ready { background-image: none !important; }
@media (max-width: 860px) {
  .hero-home { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-home .brainfig { order: -1; margin: 0 calc(-1 * var(--gut) / 2); }
}

/* Accueil ordinateur : texte et cerveau entier en deux moitiés égales */
@media (min-width: 861px) {
  .hero-home { max-width: 1440px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 64px); align-items: center; }
  .hero-home .brainfig { justify-self: center; width: 100%; }
  .hero-home .brain { width: min(100%, calc(84vh * var(--ar, .834))); margin: 0 auto; }
  .hero-home h1 { font-size: clamp(40px, 4.4vw, 68px); }
}
@media (min-width: 861px) { .page-index .masthead .wrap { max-width: 1440px; } }

/* ---------- Polices et couleurs pilotées par style.txt (oct. 2026) ---------- */
.mark svg g[fill] { fill: var(--acc2); }
.mark svg g[stroke] { stroke: var(--acc2); }
html.st-bq .bq { border-color: var(--acc2) !important; }

/* Menu mobile : image et nom en tête */
.menu > li.menu-id { border-top: 0; padding: 6px 0 12px; text-align: center; }
.menu-id img { display: block; width: 100%; max-width: 140px; height: auto; margin: 0 auto 6px; }
.menu-id .who { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--ink); }
.menu-id .who small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.menu > li.menu-id + li { border-top: 1px solid var(--rule); }

/* Copyright : infobulle */
.footer .legal .copy { cursor: help; text-decoration: underline dotted rgba(28, 27, 25, .35); text-underline-offset: 3px; }
.footer .legal .copy { position: relative; outline: none; }
.footer .legal .copy::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); padding: 6px 10px; background: var(--ink); color: var(--stone); font: 600 13px/1.2 var(--sans); white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 60; }
.footer .legal .copy:hover::after, .footer .legal .copy:focus::after { opacity: 1; transform: none; }

/* ---------- Figure à sa taille réelle (petites images nettes) ---------- */
.fig.natif { width: fit-content; max-width: 100%; }
.fig.natif .zoomable img { width: auto; }
@media (min-width: 700px) { .fig.natif.droite { float: right; margin: 6px 0 1em 28px; } .prose h2, .prose h3 { clear: both; } .fig.natif.droite ~ .note { display: flow-root; } }
.note.petite { font-size: 14px; }

/* ---------- Réglette EVA : face patient / face graduée qui se retourne ---------- */
.fig.reglette { width: 226px; }
.flip { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; }
.flip-in { position: relative; display: block; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.45, .05, .2, 1); }
.flip-in img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; box-shadow: 0 1px 4px rgba(28, 27, 25, .12); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-in .flip-v { position: absolute; inset: 0; height: 100%; transform: rotateY(180deg); }
.flip[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
@media (hover: hover) {
  .flip:hover .flip-in { transform: rotateY(180deg); }
  .flip[aria-pressed="true"]:hover .flip-in { transform: rotateY(0); }
}
.flip:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .flip-in { transition: none; } }

/* ---------- Comparateur avant / après (barre verticale à glisser) ---------- */
.compare { position: relative; margin: 0; border: 1px solid var(--rule); background: #fff; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --x: 50%; }
.compare img { display: block; width: 100%; height: auto; pointer-events: none; }
.compare .cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare .cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; border-left: 1.5px solid var(--brick); transform: translateX(-.75px); pointer-events: none; }
.compare .cmp-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15.75px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%2345423C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11l-4 4 4 4M18 11l4 4-4 4'/%3E%3C/svg%3E") center / 30px no-repeat; border: 1.5px solid var(--brick); box-shadow: 0 2px 8px rgba(28, 27, 25, .18); }
.compare input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compare:has(input:focus-visible) .cmp-bar::after { outline: 2px solid var(--brick); outline-offset: 2px; }
.cmp-leg { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.cmp-leg b { color: var(--brick); font-weight: 600; }

/* ---------- Composantes de la douleur : réglettes fines et toile ---------- */
.compo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px 40px; align-items: center; margin: 1.4em 0 1em; padding: 22px 24px; background: var(--paper); border: 1px solid var(--rule); }
@media (max-width: 760px) { .compo { grid-template-columns: 1fr; padding: 18px 16px; } }
.compo-modes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 14px; }
.compo-modes button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: inherit; letter-spacing: .04em; cursor: pointer; }
.compo-modes button[aria-pressed="true"] { color: var(--brick); border-bottom-color: var(--brick); }
.compo-modes button:hover { color: var(--ink); }
.compo-modes .reset { margin-left: auto; }
.rg { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 3.2em; align-items: center; gap: 0 12px; }
.rg label { font-size: 14px; letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.rg.on label { color: var(--ink); }
@media (max-width: 480px) { .rg { grid-template-columns: minmax(0, 1fr) auto; } .rg input[type=range] { grid-column: 1 / -1; grid-row: 2; height: 26px; } .rg + .rg { margin-top: 4px; } }
.rg output { font-size: 14px; font-weight: 600; color: var(--brick); text-align: right; font-variant-numeric: tabular-nums; }
:is(.rg, .anim, .rg-fin) input[type=range] { --p: 20%; width: 100%; height: 30px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
:is(.rg, .anim, .rg-fin) input[type=range]:focus { outline: none; }
:is(.rg, .anim, .rg-fin) input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--brick) var(--p), rgba(28, 27, 25, .2) var(--p)); }
:is(.rg, .anim, .rg-fin) input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5.5px; border-radius: 50%; background: var(--paper); border: 1.6px solid var(--brick); transition: transform .15s ease; }
:is(.rg, .anim, .rg-fin) input[type=range]:active::-webkit-slider-thumb, :is(.rg, .anim, .rg-fin) input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.3); }
:is(.rg, .anim, .rg-fin) input[type=range]::-moz-range-track { height: 2px; background: rgba(28, 27, 25, .2); }
:is(.rg, .anim, .rg-fin) input[type=range]::-moz-range-progress { height: 2px; background: var(--brick); }
:is(.rg, .anim, .rg-fin) input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.6px solid var(--brick); }
.compo-aide { min-height: 3.2em; margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.compo-aide b { color: var(--ink); font-weight: 600; }
.compo-toile svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; font-family: var(--sans); }
.compo-profil { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; }
.compo-profil b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.compo-profil span { display: block; color: var(--muted); font-size: 14px; }
.tl-grid { fill: none; stroke: rgba(28, 27, 25, .13); stroke-width: 1; }
.tl-grid:nth-child(even) { fill: rgba(28, 27, 25, .025); }
.tl-ax { stroke: rgba(28, 27, 25, .13); stroke-width: 1; }
.tl-sc { font-size: 9px; fill: var(--muted); }
.tl-poly { fill: rgba(var(--acc-rgb), .12); stroke: var(--brick); stroke-width: 1.6; stroke-linejoin: round; }
.tl-pt { fill: var(--paper); stroke: var(--brick); stroke-width: 1.5; }
.tl-lab { font-size: 11.5px; letter-spacing: .04em; fill: var(--muted); }
.tl-val { font-size: 11.5px; font-weight: 600; fill: var(--brick); }
@media (prefers-reduced-motion: reduce) { :is(.rg, .anim, .rg-fin) input[type=range]::-webkit-slider-thumb { transition: none; } }

/* ---------- Page Douleur et TDAH : chiffres, schéma bayésien (sans JavaScript), renvois aux références ---------- */
.cite { white-space: nowrap; }
.cite a { color: var(--muted); text-underline-offset: 3px; }
.cite a:hover { color: var(--brick); }
.prose .chiffres { list-style: none; margin: 24px 0 1.4em; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 32px; }
.prose .chiffres li { margin: 0; padding: 14px 0 18px; border-top: 2px solid var(--ink); }
.chiffres strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; color: var(--brick); }
.chiffres li > span { display: block; font-size: 16px; }
.chiffres .cite { white-space: normal; }
.prose .schema { list-style: none; margin: 24px 0 8px; padding: 0; }
.prose .schema li { margin: 0; padding: 16px 18px; background: var(--note); }
.schema b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 2px; }
.schema li > span { display: block; font-size: 16px; }
.prose .schema li.op { background: none; padding: 6px 0; text-align: center; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--brick); }
.prose .schema li.sortie { background: var(--ink); color: var(--stone); }
.schema li.sortie b { color: #fff; }
.schema .reglage { display: inline-block; margin-top: 10px; padding: 3px 10px; border: 1px solid var(--brick); color: var(--brick); font-size: 14px; font-weight: 600; }
.legende { font-size: 15px; color: var(--muted); }
.biblio.refs li { overflow-wrap: anywhere; scroll-margin-top: 96px; padding: 4px 6px; margin-left: -6px; }
.biblio.refs li:target { background: var(--note); color: var(--ink); }

/* ---------- Page Douleur et TDAH : animations du modèle bayésien (même cadre et mêmes réglettes que la page EVA) ---------- */
.anim { margin: 1.4em 0 1em; padding: 22px 24px; background: var(--paper); border: 1px solid var(--rule); scroll-margin-top: 90px; }
.anim[hidden], .anim-panneau[hidden] { display: none; }
.prose .anim-surtitre { margin: 0 0 4px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); font-weight: 600; }
.prose .anim-pas { display: flex; margin: 0 0 16px; padding: 0; list-style: none; }
.prose .anim-pas li { flex: 1 1 0; position: relative; margin: 0; text-align: center; }
.anim-pas li::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1.5px; background: var(--rule); }
.anim-pas li:first-child::before { left: 50%; }
.anim-pas li:last-child::before { right: 50%; }
.anim-pas li.vu::before { background: rgba(var(--acc-rgb), .45); }
.anim-pas button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 56px; padding: 12px 2px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px; letter-spacing: .04em; color: var(--muted); }
.anim-pas .bulle { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.6px solid var(--rule); transition: background .3s, border-color .3s, transform .3s; }
.anim-pas li.vu .bulle, .anim-pas button:hover .bulle { border-color: var(--brick); }
.anim-pas button[aria-selected="true"] { color: var(--ink); }
.anim-pas button[aria-selected="true"] .bulle { background: var(--brick); border-color: var(--brick); transform: scale(1.25); }
.prose .anim-panneau h3 { clear: none; margin: 0 0 6px; }
.prose .anim-intro { margin: 0 0 12px; font-size: 16px; }
.anim-scene { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); touch-action: pan-y; }
.anim-centre { text-align: center; }
.anim-scene canvas { display: block; width: 100%; }
.anim-ctrl { display: grid; gap: 4px; margin-top: 12px; }
.anim-ctrl label { display: grid; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.anim-bornes { display: flex; justify-content: space-between; margin-top: -4px; font-size: 12.5px; letter-spacing: 0; }
.prose .anim-lecture { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.anim-lecture b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); }
.anim-lecture b.acc { color: var(--brick); }
.prose .anim-legende { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.prose .anim-legende li { margin: 0; }
.anim-legende i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 6px; }
.anim-legende .l-att { background: var(--muted); }
.anim-legende .l-sig { background: var(--brick); }
.anim-legende .l-res { background: var(--ink); height: 3px; }
.anim-boutons { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.an-b { min-height: 32px; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.an-b.plein { color: var(--brick); border-bottom-color: var(--brick); }
.an-b:hover { color: var(--ink); }
.prose .anim-source { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.anim-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--rule); }
.anim-nav span { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.an-segments { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 14px; }
.an-segments button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: inherit; letter-spacing: .04em; cursor: pointer; }
.an-segments button[aria-checked="true"] { color: var(--brick); border-bottom-color: var(--brick); }
.an-segments button:hover { color: var(--ink); }
.an-mot { display: block; width: 100%; min-height: 110px; margin: 10px 0 0; border: 0; background: none; cursor: pointer; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 9vw, 56px); line-height: 1.1; color: var(--ink); }
.an-mot span { display: inline-block; transition: color .6s ease; }
.an-jauge { position: relative; height: 118px; margin: 8px 6px 0; }
.an-rail { position: absolute; left: 0; right: 0; top: 58px; height: 1.5px; background: var(--ink); }
.an-grad { position: absolute; top: 66px; font-size: 12px; color: var(--muted); transform: translateX(-50%); }
.an-mk { position: absolute; transform: translateX(-50%); transition: left .7s cubic-bezier(.3, .7, .3, 1); text-align: center; font-size: 13px; white-space: nowrap; }
.an-mk.attendu { top: 0; }
.an-mk.attendu i { display: block; width: 12px; height: 12px; margin: 4px auto 0; border: 1.6px solid var(--muted); transform: rotate(45deg); background: var(--paper); }
.an-mk.attendu span { color: var(--muted); }
.an-mk.ressenti { top: 78px; }
.an-mk.ressenti i { display: block; width: 3px; height: 22px; margin: 0 auto 2px; background: var(--ink); }
.an-mk.ressenti span { color: var(--ink); font-weight: 600; }
.an-mk.signal { top: 37px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; transition: none; }
.an-mk.signal::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1.6px solid var(--brick); box-shadow: 0 0 0 5px rgba(var(--acc-rgb), .12); }
.an-mk.signal:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.an-etiq { position: absolute; top: 22px; transform: translateX(-50%); font-size: 13px; color: var(--brick); font-weight: 600; pointer-events: none; }
.an-histo { display: flex; align-items: flex-end; gap: 3px; height: 56px; margin-top: 14px; border-bottom: 1px solid var(--rule); }
.an-histo span { flex: 1 1 0; min-height: 1px; background: var(--ink); opacity: .85; transition: height .5s ease; }
.an-histo span.lesion { background: var(--brick); }
.an-histo-l { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 480px) { .anim { padding: 18px 16px; } .anim-pas button { font-size: 12.5px; letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) { .an-mk, .an-histo span, .anim-pas .bulle, .an-mot span { transition: none; } }
@media print { .anim { display: none; } }
/* Lien « Espace pro » du menu (toutes les pages) */
.menu .pro-lien .i { color: var(--brick); }
@media (max-width: 960px) { .menu > li > a.pro-lien { justify-content: flex-start; } }
/* Écrans moyens (961–1240 px) : menu à 8 entrées plus compact, le nom du cabinet ne doit jamais être recouvert */
@media (min-width: 961px) { .brand { flex-shrink: 0; } }
@media (min-width: 961px) and (max-width: 1240px) {
  .brand .name, .masthead.scrolled .brand .name { font-size: 19px; }
  .head-right { gap: 10px; }
  .menu { gap: 0 10px; font-size: 14.5px; }
  .menu > li > button svg, .menu > li > button .chev { margin-left: -2px; }
  .menu .pro-lien .i { display: none; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .tagline { display: none; }
  .menu { gap: 0 8px; font-size: 14px; }
}
