/* Dermatologue Témara — variante « derma-editorial » (porcelaine et prune).
   Feuille autonome : chargée seule avec theme.css (couleurs issues de design-tokens.json).
   Toutes les règles sont préfixées par body.derma ou .d-*, sans dépendance à site.css. */

:root {
  --d-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --d-wrap: 73.75rem;   /* 1180 px */
  --d-gutter: 1.25rem;  /* 20 px, cohérent avec les « sizes » des images */
  --d-measure: 40rem;   /* 640 px, soit environ 66 à 72 caractères à 18 px */
  --d-radius: 0.75rem;
  --d-radius-large: 1.25rem;
  --d-space-1: 0.5rem;
  --d-space-2: 1rem;
  --d-space-3: 1.5rem;
  --d-space-4: 2rem;
  --d-space-5: 3rem;
  --d-space-6: 4.5rem;
  --d-booking-clearance: calc(6rem + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.derma {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--d-font);
  font-size: 1.0625rem;            /* 17 px sur mobile */
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.derma img { max-width: 100%; height: auto; display: block; }
.derma h1, .derma h2, .derma h3 { font-family: var(--d-font); color: var(--text); line-height: 1.2; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.d-open-grid > *, .d-article-layout > *, .d-index-grid > *, .d-role-grid > *, .d-hub-group > *, .d-footer-top > * { min-width: 0; }
.derma p { margin: 0; }
.derma a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.derma a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
.derma :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.derma main:focus { outline: none; }
.derma ul[role="list"], .derma ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.d-wrap { width: 100%; max-width: var(--d-wrap); margin-inline: auto; padding-inline: var(--d-gutter); }

/* Lien d’évitement et bandeau d’aperçu */
.d-skip { position: absolute; left: var(--d-gutter); top: 0.75rem; transform: translateY(calc(-100% - 1rem)); z-index: 20; background: var(--primary); color: var(--on-primary) !important; padding: 0.75rem 1rem; border-radius: var(--d-radius); font-weight: 600; }
.d-skip:focus { transform: none; }
.d-preview { background: var(--soft-surface); color: var(--text); font-size: 0.875rem; line-height: 1.45; border-bottom: 1px solid var(--border); }
.d-preview .d-wrap { padding-block: 0.55rem; }
.d-preview strong { color: var(--primary); }

/* Petits éléments typographiques */
.d-kicker { color: var(--primary); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; }
.d-kicker-rule::after { content: ""; display: inline-block; vertical-align: middle; width: 3rem; height: 2px; margin-left: 0.75rem; background: var(--primary); }
.d-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); max-width: 38rem; }
.d-small { font-size: 0.9375rem; color: var(--muted-text); line-height: 1.5; }
.d-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9375rem; color: var(--muted-text); }

/* Boutons et liens d’action */
.d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.625rem 1.375rem; border-radius: var(--d-radius);
  background: var(--primary); color: var(--on-primary) !important; border: 2px solid var(--primary);
  font-weight: 650; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: center;
}
.d-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.d-btn-small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.d-arrow-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; }
.d-arrow { margin-left: 0.4em; text-decoration: none; display: inline-block; }
.d-arrow-back { margin-right: 0.4em; display: inline-block; }

/* En-tête */
.d-header { position: relative; background: var(--surface); border-bottom: 1px solid var(--border); }
.d-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; min-height: 4rem; padding-block: 0.5rem; }
.d-brand { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; text-decoration: none; color: var(--text) !important; min-width: 0; flex: 1 1 10rem; }
.d-brand-symbol, .d-menu, .d-header-cta { flex: none; }
.derma .d-brand-symbol { width: auto; height: 2.25rem; }
.derma .d-brand-logo { width: auto; height: 2.75rem; max-width: 100%; }
.d-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow-wrap: normal; }
.d-brand-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.d-brand-tagline { font-size: 0.875rem; color: var(--muted-text); font-weight: 500; margin-top: 0.15rem; }
.d-nav, .d-header-cta { display: none; }
.d-nav ul, .d-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.d-nav a, .d-menu-panel a:not(.d-btn) { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; }
.d-nav a:hover, .d-menu-panel a:not(.d-btn):hover { color: var(--primary); border-bottom-color: var(--primary); }
.d-nav a[aria-current], .d-menu-panel a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.d-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0.5rem 0.875rem; border: 1px solid var(--control-border); border-radius: var(--d-radius); background: var(--surface); font-weight: 650; cursor: pointer; color: var(--text); }
.d-menu > summary::-webkit-details-marker { display: none; }
.d-menu-icon { position: relative; width: 1.125rem; height: 2px; background: currentColor; border-radius: 2px; }
.d-menu-icon::before, .d-menu-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; }
.d-menu-icon::before { top: -6px; }
.d-menu-icon::after { top: 6px; }
.d-menu[open] .d-menu-icon { background: transparent; }
.d-menu[open] .d-menu-icon::before { top: 0; transform: rotate(45deg); }
.d-menu[open] .d-menu-icon::after { top: 0; transform: rotate(-45deg); }
.d-menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px -24px rgba(39, 38, 43, 0.45); padding: 0.5rem var(--d-gutter) 1.25rem; }
.d-menu-panel li + li { border-top: 1px solid var(--border); }
.d-menu-panel a:not(.d-btn) { width: 100%; min-height: 3rem; }
.d-menu-panel .d-btn { width: 100%; margin-top: 0.75rem; }

/* Accueil — ouverture éditoriale */
.d-open { padding-block: var(--d-space-4) var(--d-space-5); }
.d-open-grid { display: grid; gap: var(--d-space-4); }
.d-open-main { display: grid; gap: 1.25rem; align-content: start; }
.d-display { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 680; letter-spacing: -0.025em; line-height: 1.08; max-width: 18ch; }
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.25rem; }
.d-open-note { max-width: 34rem; }
.d-open-aside { position: relative; background: var(--soft-surface); border-radius: var(--d-radius-large); padding: var(--d-space-3); align-self: start; }
.d-open-visual .editorial-image { margin: 0; width: min(400px, 100%); }
.d-open-visual img { border-radius: var(--d-radius-large); }
.derma figcaption { font-size: 0.9375rem; color: var(--muted-text); margin-top: 0.625rem; line-height: 1.5; }

.d-steps { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: d-step; display: grid; gap: 1rem; }
.d-steps li { counter-increment: d-step; position: relative; padding-left: 2.75rem; display: grid; gap: 0.15rem; }
.d-steps li::before { content: counter(d-step); position: absolute; left: 0; top: 0; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center; line-height: 1; background: var(--surface); }
.d-steps li:not(:last-child)::after { content: ""; position: absolute; left: 0.875rem; top: 2.1rem; bottom: -0.9rem; width: 2px; background: var(--border); }
.d-steps strong { font-size: 1.0625rem; }
.d-steps span { color: var(--muted-text); font-size: 0.9375rem; line-height: 1.5; }

/* Index de sujets en lignes (accueil et rubrique) */
.d-index { padding-block: var(--d-space-5); border-top: 1px solid var(--border); background: var(--surface); }
.d-index-grid { display: grid; gap: var(--d-space-4); }
.d-index-head { display: grid; gap: 0.75rem; align-content: start; }
.d-index-head h2, .d-hub-group-head h2, .d-related-head h2, .d-more h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 660; letter-spacing: -0.015em; }
.d-index-head p { color: var(--muted-text); max-width: 30rem; }
.d-rows { border-top: 2px solid var(--text); }
.d-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.d-row-cat { grid-column: 1; font-size: 0.875rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-text); }
.d-row-title { grid-column: 1; font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.01em; }
.d-row-title a { color: var(--text); text-decoration: none; }
.d-row-title a::after { content: ""; position: absolute; inset: 0; }
.d-row-desc { grid-column: 1; color: var(--muted-text); max-width: 36rem; }
.d-row-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 1.375rem; color: var(--primary); transition: transform 0.15s ease; }
.d-row:hover .d-row-title a, .d-row-title a:focus-visible { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; }
.d-row:hover .d-row-arrow { transform: translateX(4px); }
.d-row-title a:focus-visible { outline: none; }
.d-row:has(a:focus-visible) { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

/* Rôle du guide et contenus complémentaires */
.d-role { padding-block: var(--d-space-5); }
.d-role-grid { display: grid; gap: var(--d-space-5); }
.d-more ul { margin-top: 1.25rem; border-top: 1px solid var(--control-border); }
.d-more li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.d-more a { font-weight: 650; font-size: 1.0625rem; display: inline-flex; min-height: 2.75rem; align-items: center; }
.d-more p { color: var(--muted-text); font-size: 0.9375rem; }

/* Zone de consultation */
.d-booking { margin-block: var(--d-space-5); }
.d-booking-panel { display: grid; gap: var(--d-space-3); padding: var(--d-space-4) var(--d-space-3); border-radius: var(--d-radius-large); background: var(--soft-surface); border-left: 4px solid var(--primary); }
.d-booking-text { display: grid; gap: 0.75rem; }
.d-booking-text h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem); font-weight: 660; }
.d-booking-text p:not(.d-kicker) { max-width: 38rem; }
.d-booking-action { display: grid; gap: 0.625rem; justify-items: start; align-content: center; }

/* Accès permanent au rendez-vous : espace de lecture et de focus réservé. */
.d-with-sticky-booking { scroll-padding-bottom: var(--d-booking-clearance); }
.d-with-sticky-booking body.derma { padding-bottom: var(--d-booking-clearance); }
.d-sticky-booking {
  position: fixed; inset: auto 0 0; z-index: 30;
  padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: var(--surface); border-top: 1px solid var(--border);
}
.d-sticky-booking .d-wrap { display: flex; justify-content: center; padding-inline: min(var(--d-gutter), 5vw); }
.d-sticky-booking .d-btn { width: 100%; padding-inline: 0.875rem; }

/* Fil d’Ariane */
.d-crumbs { padding-top: var(--d-space-3); font-size: 0.9375rem; }
.d-crumbs ol { display: block; line-height: 1.5; }
.d-crumbs li { display: inline; color: var(--muted-text); }
.d-crumbs li + li::before { content: "/"; margin-inline: 0.625rem; color: var(--control-border); }
.d-crumbs a { display: inline-block; padding-block: 0.7rem; }
.d-crumbs [aria-current] { color: var(--text); }

/* Article */
.d-article-layout { display: grid; gap: var(--d-space-4); padding-block: var(--d-space-2) var(--d-space-4); }
.d-article { min-width: 0; }
.d-article-head { display: grid; gap: 1rem; padding-bottom: var(--d-space-4); margin-bottom: var(--d-space-4); border-bottom: 1px solid var(--border); }
.d-article-head h1, .d-hub-head h1, .d-system h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); font-weight: 680; letter-spacing: -0.022em; line-height: 1.1; max-width: 22ch; }
.d-article-head .d-lead { font-size: 1.1875rem; max-width: var(--d-measure); }
.d-keypoints { max-width: var(--d-measure); background: var(--soft-surface); border-radius: var(--d-radius-large); padding: 1.25rem 1.5rem; margin-bottom: var(--d-space-4); }
.d-keypoints h2, .d-practical h2, .d-sources h2, .d-missing h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.625rem; }
.d-keypoints ul, .d-practical ul, .d-missing ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.d-keypoints li::marker, .d-practical li::marker { color: var(--primary); }
.d-practical { max-width: var(--d-measure); border: 1px solid var(--control-border); border-radius: var(--d-radius-large); padding: 1.25rem 1.5rem; margin-top: var(--d-space-4); background: var(--surface); }
.d-practical p + ul { margin-top: 0.625rem; }
.d-sources { max-width: var(--d-measure); margin-top: var(--d-space-4); padding-top: var(--d-space-3); border-top: 1px solid var(--border); font-size: 0.9375rem; }
.d-sources ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.d-sources span { color: var(--muted-text); }
.d-missing { max-width: var(--d-measure); border: 2px dashed var(--primary); border-radius: var(--d-radius); padding: 1rem 1.25rem; margin-bottom: var(--d-space-4); background: var(--surface); font-size: 0.9375rem; }
.d-missing p { color: var(--muted-text); margin-top: 0.5rem; }

.d-toc-inline { max-width: var(--d-measure); margin-block: var(--d-space-4); border: 1px solid var(--control-border); border-radius: var(--d-radius); background: var(--surface); }
.d-toc-inline > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 0.625rem 1rem; font-weight: 650; }
.d-toc-inline > summary::-webkit-details-marker { display: none; }
.d-toc-inline > summary::after { content: "+"; font-size: 1.375rem; line-height: 1; color: var(--primary); }
.d-toc-inline[open] > summary::after { content: "−"; }
.d-toc-inline nav { padding: 0 1rem 1rem; }
.d-toc-inline ol, .d-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.25rem; }
.d-toc-inline a, .d-toc a { display: block; padding-block: 0.3rem; line-height: 1.4; }
.d-article-aside { display: none; }
.d-toc { font-size: 0.9375rem; border-left: 2px solid var(--border); padding-left: 1.25rem; }
.d-toc .d-kicker { margin-bottom: 0.5rem; }
.d-toc a { color: var(--text); text-decoration: none; }
.d-toc a:hover { color: var(--primary); text-decoration: underline; }

/* Corps éditorial Markdown */
.d-prose { max-width: var(--d-measure); }
.derma .d-prose > * + * { margin-top: 1.1em; }
.d-prose h2 { font-size: clamp(1.4375rem, 1.25rem + 0.8vw, 1.75rem); font-weight: 660; letter-spacing: -0.012em; margin-top: 2.2em; padding-top: 1.1rem; position: relative; scroll-margin-top: 1rem; }
.d-prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--primary); }
.d-prose > h2:first-child { margin-top: 0; }
.d-prose h3 { font-size: 1.1875rem; font-weight: 680; margin-top: 1.8em; scroll-margin-top: 1rem; }
.derma .d-prose h2 + *, .derma .d-prose h3 + * { margin-top: 0.7em; }
.d-prose ul, .d-prose ol { padding-left: 1.4rem; }
.d-prose li + li { margin-top: 0.4em; }
.d-prose ul li::marker { color: var(--primary); }
.d-prose ol { list-style: none; padding-left: 0; counter-reset: d-ol; }
.d-prose ol > li { counter-increment: d-ol; position: relative; padding-left: 2.5rem; }
.d-prose ol > li::before { content: counter(d-ol); position: absolute; left: 0; top: 0.05em; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--soft-surface); color: var(--primary); font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center; line-height: 1; }
.d-prose strong { font-weight: 680; }
.d-prose blockquote { margin-inline: 0; padding: 0.75rem 1.25rem; border-left: 3px solid var(--primary); background: var(--soft-surface); border-radius: 0 var(--d-radius) var(--d-radius) 0; }
.d-prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5em; }
.d-prose .editorial-image { margin: 2em 0 0; }
.d-prose .editorial-image img { border-radius: var(--d-radius-large); width: 100%; }
.d-prose .table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--d-radius); background: var(--surface); }
.d-prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; min-width: 30rem; }
.d-prose caption { text-align: left; padding: 0.75rem 1rem 0; font-weight: 650; }
.d-prose th, .d-prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.d-prose thead th { background: var(--soft-surface); color: var(--text); font-weight: 700; border-bottom: 2px solid var(--control-border); }
.d-prose tbody tr:last-child td { border-bottom: 0; }

/* Rubrique */
.d-hub-head { display: grid; gap: 1rem; padding-block: var(--d-space-2) var(--d-space-4); }
.d-hub-groups { display: grid; gap: var(--d-space-5); padding-bottom: var(--d-space-5); }
.d-hub-group { display: grid; gap: var(--d-space-3); }
.d-hub-group-head { display: grid; gap: 0.5rem; align-content: start; }
.d-hub-group-head p { color: var(--muted-text); max-width: 30rem; }
.d-hub-body { padding-bottom: var(--d-space-4); }

/* Pages liées */
.d-related { padding-block: var(--d-space-4); background: linear-gradient(var(--border), var(--border)) content-box top / 100% 1px no-repeat; }
.d-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: var(--d-space-3); }
.d-related-list { display: grid; gap: 0; border-top: 2px solid var(--text); }
.d-related-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.d-related-list a { font-weight: 650; font-size: 1.125rem; display: inline-flex; align-items: center; min-height: 2.75rem; }
.d-related-list p { color: var(--muted-text); font-size: 0.9375rem; }

/* Pages institutionnelles et système */
.d-legal { padding-block: var(--d-space-2) var(--d-space-5); }
.d-system { padding-block: var(--d-space-5) var(--d-space-6); display: grid; gap: 1.25rem; justify-items: start; }
.d-system .d-missing { margin-bottom: 0; }
.d-system-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.d-steps-inline { max-width: var(--d-measure); }

/* Pied de page */
.d-footer { background: var(--primary-hover); color: var(--footer-text); margin-top: var(--d-space-5); }
.d-footer a { color: var(--on-primary); }
.d-footer a:hover { color: var(--on-primary); text-decoration-thickness: 2px; }
.d-footer :focus-visible { outline-color: var(--on-primary); }
.d-footer a[aria-current] { font-weight: 700; }
.d-footer-top { display: grid; gap: var(--d-space-4); padding-block: var(--d-space-5) var(--d-space-4); }
.d-footer-id { display: grid; gap: 0.75rem; align-content: start; max-width: 26rem; }
.d-footer-brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; display: inline-flex; min-height: 2.75rem; align-items: center; }
.d-footer-local { font-size: 0.9375rem; }
.d-footer-group h2 { color: var(--on-primary); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.d-footer-group ul { list-style: none; margin: 0; padding: 0; }
.d-footer-group a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.4rem; line-height: 1.35; }
.d-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem 1.5rem; background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)) content-box top / 100% 1px no-repeat; font-size: 0.875rem; }

/* Très petits écrans : le nom complet reste lisible, même avec le texte agrandi. */
.d-brand-name { overflow-wrap: normal; }
@media (max-width: 24.99em) {
  .d-brand-name { font-size: 1rem; overflow-wrap: anywhere; }
  .d-brand { gap: 0.5rem; }
  .derma .d-brand-symbol { height: 1.875rem; }
  .d-menu > summary { padding-inline: 0.625rem; }
}

/* ≥ 600 px */
@media (min-width: 37.5em) {
  .d-booking-panel { padding: var(--d-space-4); }
  .d-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-footer-id { grid-column: 1 / -1; }
}

/* ≥ 900 px : corps 18 px et compositions en colonnes */
@media (min-width: 56.25em) {
  body.derma { font-size: 1.125rem; } /* 18 px */
  .d-sticky-booking .d-btn { width: auto; min-width: 15rem; max-width: 100%; }
  .d-brand-name { font-size: 1.1875rem; }
  .d-lead { font-size: 1.3125rem; }
  .d-open { padding-block: var(--d-space-6) var(--d-space-6); }
  .d-index-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--d-space-6); }
  .d-index-head { position: sticky; top: 1.5rem; }
  .d-row { grid-template-columns: 9rem minmax(0, 1fr) auto; column-gap: 1.5rem; padding: 1.5rem 0; }
  .d-row-cat { grid-column: 1; grid-row: 1 / span 2; padding-top: 0.35rem; }
  .d-row-title, .d-row-desc { grid-column: 2; }
  .d-row-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .d-hub-group { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--d-space-6); }
  .d-hub-group .d-row { grid-template-columns: minmax(0, 1fr) auto; }
  .d-hub-group .d-row-title, .d-hub-group .d-row-desc { grid-column: 1; }
  .d-hub-group .d-row-arrow { grid-column: 2; }
  .d-role-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--d-space-6); }
  .d-booking-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--d-space-5); padding: var(--d-space-5); }
  .d-booking-action { justify-items: end; text-align: right; max-width: 18rem; }
  .d-footer-top { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: var(--d-space-5); }
  .d-footer-id { grid-column: auto; }
}

/* ≥ 1024 px : colonne de repérage et visuel latéral */
@media (min-width: 64em) {
  .d-open-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--d-space-6); align-items: start; }
  .d-open-has-visual { grid-template-columns: minmax(0, 1fr) 400px; }
  .d-open-aside { margin-top: 2.75rem; padding: var(--d-space-4); }
  .d-display { max-width: 20ch; }
  .d-article-layout.d-has-aside { grid-template-columns: minmax(0, var(--d-measure)) minmax(13rem, 17rem); justify-content: start; column-gap: 5.5rem; }
  .d-has-aside .d-toc-inline { display: none; }
  .d-article-aside { display: block; }
  .d-toc { position: sticky; top: 1.5rem; }
}

/* ≥ 1120 px : navigation complète dans l’en-tête (menu natif en dessous) */
@media (min-width: 70em) {
  .d-header-inner { flex-wrap: nowrap; min-height: 4.75rem; gap: var(--d-space-3); }
  .d-brand { flex: 0 0 auto; margin-right: auto; }
  .d-brand-name, .d-brand-tagline { white-space: nowrap; }
  .d-nav { display: block; flex: 0 1 auto; min-width: 0; }
  .d-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.25rem; }
  .d-nav a { font-size: 1rem; }
  .d-header-cta { display: inline-flex; }
  .d-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .derma *, .derma *::before, .derma *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .d-header, .d-footer, .d-booking, .d-sticky-booking, .d-preview, .d-toc-inline, .d-article-aside { display: none !important; }
  .d-with-sticky-booking { scroll-padding-bottom: 0; }
  .d-with-sticky-booking body.derma { padding-bottom: 0; }
  body.derma { background: #fff; }
}
