/* =====================================================================
   MC Clinic : design system
   Marine + or du papillon, blanc franc. Titres Source Serif 4,
   lecture Atkinson Hyperlegible Next (conçue pour la basse vision).
   Mobile d'abord. Aucune dépendance externe.
   ===================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* metric-matched fallbacks limit layout shift while fonts load */
@font-face {
  font-family: "Atkinson Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 98%;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --navy-950: #0b1b33;
  --navy-900: #10264a;
  --navy-800: #173462;
  --navy-700: #1f4479;
  --navy-600: #2d5a96;
  --navy-300: #9db3d3;
  --navy-200: #c9d7ea;
  --navy-100: #e4ecf6;
  --navy-50: #f2f6fb;

  --gold-700: #85600a;
  --gold-600: #b5820f;
  --gold-500: #e3a82b;
  --gold-400: #efbd4f;
  --gold-200: #f6dc9c;
  --gold-100: #fbefd3;
  --gold-50: #fdf8ec;

  --ink: #16243a;
  --ink-2: #44546b;
  --ink-3: #5f6e82;
  --line: #dde4ee;
  --line-strong: #c3cddb;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;

  --ok: #15734a;
  --ok-bg: #e6f4ed;
  --warn: #7f5600;
  --warn-bg: #fff4d9;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --info: #1f4479;
  --info-bg: #eaf1fa;

  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Serif Fallback", Georgia, serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.45rem + 2.6vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3rem, 2rem + 4vw, 6rem);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgb(16 38 74 / 0.06), 0 2px 8px -2px rgb(16 38 74 / 0.08);
  --shadow-2: 0 2px 4px rgb(16 38 74 / 0.05), 0 14px 32px -10px rgb(16 38 74 / 0.22);
  --shadow-3: 0 4px 8px rgb(16 38 74 / 0.06), 0 24px 56px -16px rgb(16 38 74 / 0.32);

  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --measure: 36em; /* about 70 characters per line in Atkinson Hyperlegible (68ch ran to 90–100: its « 0 » is wide) */
  --header-h: 68px;
  --actionbar-h: 70px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
  --dur-slow: 320ms;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--navy-700);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 1080px) {
  body { padding-bottom: 0; font-size: var(--fs-md); }
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--navy-200); color: var(--navy-950); }
[hidden] { display: none !important; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

.icon { flex: none; width: 1.25em; height: 1.25em; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { color: var(--navy-900); text-wrap: balance; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.14;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 700; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--article { max-width: 880px; }
.container--article-wide { max-width: 1104px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: var(--space-6); }
.section__head > * + * { margin-top: var(--space-4); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.section__head--row > div { max-width: 760px; }
.section__head--row > * + * { margin-top: 0; }
.section__title { margin-bottom: var(--space-4); }
.section__head .section__title { margin-bottom: 0; }
.section__title--sm { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.section__more { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.subhead { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); margin-bottom: var(--space-4); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.split { display: grid; gap: var(--space-7); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.25em;
  border: 2px solid var(--btn-bd); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { --btn-bg: var(--gold-500); --btn-fg: var(--navy-950); box-shadow: 0 1px 0 rgb(133 96 10 / 0.35), 0 6px 16px -8px rgb(181 130 15 / 0.7); }
.btn--primary:hover { --btn-bg: var(--gold-400); --btn-fg: var(--navy-950); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: var(--navy-200); }
.btn--secondary:hover { --btn-bd: var(--navy-700); --btn-fg: var(--navy-900); background: var(--navy-50); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--navy-700); padding-inline: 0.4em; min-height: 44px; }
.btn--quiet:hover { --btn-fg: var(--navy-900); text-decoration: underline; text-decoration-thickness: 2px; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.45); }
.btn--on-dark:hover { --btn-bd: #fff; --btn-fg: #fff; background: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 44px; padding: 0.55em 1em; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0.85em 1.5em; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.linklike { color: var(--navy-200); text-decoration: underline; text-underline-offset: 0.18em; font-size: inherit; }
.linklike:hover { color: #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.2em 0.65em; border-radius: var(--radius-pill);
  background: var(--navy-50); color: var(--navy-800);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.5; text-decoration: none;
}
a.tag:hover { background: var(--navy-100); color: var(--navy-900); }
.tag--soft { background: var(--navy-100); color: var(--navy-800); }

/* ---------------------------------------------------------------- announce */
.announce { background: var(--navy-900); color: #fff; font-size: var(--fs-sm); }
.announce__inner { display: flex; align-items: center; gap: var(--space-3); padding-block: 6px; }
.announce__text { flex: 1; display: block; line-height: 1.4; font-size: 0.875rem; }
.announce__text > span { margin-right: 0.4em; }
.announce__icon { display: none; color: var(--navy-200); }
@media (min-width: 720px) {
  .announce__text { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 0.6em; font-size: var(--fs-sm); }
  .announce__icon { display: block; }
}
.announce a { color: #fff; font-weight: 700; text-decoration-color: rgb(255 255 255 / 0.6); }
.announce a:hover { color: var(--gold-400); text-decoration-color: currentColor; }
.announce__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; color: var(--navy-200); border-radius: 50%; }
.announce__close:hover { color: #fff; background: rgb(255 255 255 / 0.08); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-slow) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgb(16 38 74 / 0.4); }
.utility { display: none; background: var(--navy-50); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 40px; }
.utility__status { display: flex; align-items: center; gap: 0.5em; }
.utility__links { display: flex; gap: var(--space-5); list-style: none; padding: 0; }
.utility a { display: inline-flex; align-items: center; gap: 0.4em; color: var(--ink-2); text-decoration: none; min-height: 40px; }
.utility a:hover { color: var(--navy-900); text-decoration: underline; }
.utility .icon { color: var(--navy-600); }
@media (min-width: 1080px) { .utility { display: block; } }

.header__bar { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; padding-block: 8px; border-radius: 6px; }
.brand img { width: auto; height: 30px; }
@media (min-width: 600px) { .brand img { height: 36px; } }
.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.header__cta { display: none; white-space: nowrap; }
@media (min-width: 600px) { .header__cta { display: inline-flex; min-height: 44px; padding-inline: 1.1em; } }
/* « Prescriptions » (prescriptions.mcclinic.be): the most used link after booking, always next to it */
.header__rx { display: none; white-space: nowrap; }
@media (min-width: 768px) { .header__rx { display: inline-flex; min-height: 44px; padding-inline: 1em; } }
/* the header gets a little more width so the two actions sit beside the full navigation */
.site-header .container { max-width: 1360px; }
.menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 56px; min-height: 52px; padding: 4px 8px; border-radius: var(--radius-sm);
  color: var(--navy-900); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.menu-toggle:hover { background: var(--navy-50); }
@media (min-width: 1280px) { .menu-toggle { display: none; } }

.nav { display: none; }
@media (min-width: 1280px) { .nav { display: block; margin-right: var(--space-2); } }
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .nav__link { padding-inline: 0.5em; }
  .nav { margin-right: 0; }
  .header__bar { gap: var(--space-3); }
  .brand img { height: 32px; }
  .header__rx, .header__cta { padding-inline: 0.85em; }
  .header__rx .icon, .header__cta .icon { display: none; }
}
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75em; white-space: nowrap;
  color: var(--navy-900); font-weight: 700; text-decoration: none; border-radius: var(--radius-sm);
  position: relative;
}
.nav__link:hover { color: var(--navy-900); background: var(--navy-50); text-decoration: none; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85em; right: 0.85em; bottom: 4px; height: 3px; border-radius: 3px; background: var(--gold-500);
}
.nav__item--mega .nav__link { padding-right: 0.35em; }
.nav__toggle { display: grid; place-items: center; width: 32px; height: 44px; color: var(--navy-700); border-radius: var(--radius-sm); margin-left: -2px; }
.nav__toggle:hover { background: var(--navy-50); }
.nav__toggle .icon { transition: transform var(--dur) var(--ease-out); }
.nav__item--mega.is-open .nav__toggle .icon { transform: rotate(180deg); }

.mega {
  position: fixed; left: 0; right: 0; top: var(--mega-top, 109px);
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur);
}
.nav__item--mega.is-open .mega,
.no-js .nav__item--mega:hover .mega,
.no-js .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); padding-block: var(--space-6) var(--space-5); }
.mega__title { font-size: 0.9375rem; font-weight: 700; color: var(--navy-900); margin-bottom: var(--space-3); }
.mega ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega a {
  display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.6em; margin-inline: -0.6em;
  color: var(--navy-900); font-weight: 700; text-decoration: none; border-radius: var(--radius-sm); line-height: 1.3;
}
.mega a:hover { background: var(--navy-50); }
.mega__icon { color: var(--navy-600); }
.mega__all { grid-column: 1 / -1; justify-self: start; display: inline-flex !important; margin: 0 !important; color: var(--navy-700) !important; }

/* mobile menu (native dialog) */
.menu-sheet {
  margin: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border: 0; padding: 0; background: #fff; color: var(--ink);
  display: none; flex-direction: column;
  box-shadow: var(--shadow-3);
}
.menu-sheet[open] { display: flex; animation: sheet-in var(--dur-slow) var(--ease-out); }
.menu-sheet::backdrop { background: rgb(11 27 51 / 0.45); }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.menu-sheet__logo { height: 28px; width: auto; }
.menu-sheet__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--navy-900); }
.menu-sheet__close:hover { background: var(--navy-50); }
.menu-sheet nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) 0; }
.menu-sheet__list { list-style: none; padding: 0; }
.menu-sheet__list > li > a, .menu-sheet__sub > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 56px; padding: 0 var(--space-5);
  color: var(--navy-900); font-size: 1.125rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.menu-sheet__list > li > a[aria-current="page"] { background: var(--navy-50); text-decoration: underline; text-underline-offset: 0.3em; }
.menu-sheet__list > li > a:hover, .menu-sheet__sub > summary:hover { background: var(--navy-50); }
.menu-sheet__sub > summary { list-style: none; }
.menu-sheet__sub > summary::-webkit-details-marker { display: none; }
.menu-sheet__sub[open] > summary .icon { transform: rotate(180deg); }
.menu-sheet__sub ul { list-style: none; padding: 0 0 var(--space-3); }
.menu-sheet__sub li a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-5) 0 calc(var(--space-5) + var(--space-4)); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.menu-sheet__sub li a:hover { background: var(--navy-50); color: var(--navy-900); }
.menu-sheet__foot { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-soft); }
.menu-sheet__garde { font-size: var(--fs-sm); color: var(--ink-2); }
.menu-sheet__garde a { color: var(--danger); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.15em; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-50) 0%, #fff 78%); }
.hero__grid { display: grid; gap: var(--space-6); padding-block: clamp(2rem, 1.2rem + 3.5vw, 4.5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero__title { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.375rem); line-height: 1.08; letter-spacing: -0.018em; max-width: 19ch; }
.hero__lead { margin-top: var(--space-5); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 600px) { .hero__actions { display: flex; flex-wrap: wrap; } }
.hero__status { display: inline-flex; align-items: flex-start; gap: 0.6em; line-height: 1.4; margin-top: var(--space-5); padding: 0.45em 0.95em 0.45em 0.8em; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-md); font-weight: 700; color: var(--navy-900); box-shadow: var(--shadow-1); }
.hero__status .icon { color: var(--navy-600); margin-top: 0.1em; }
.hero__status .status-dot { margin-top: 0.42em; }
.hero__facts { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; gap: var(--space-3); color: var(--ink-2); font-size: var(--fs-sm); }
.hero__facts li { display: flex; align-items: center; gap: 0.6em; }
.hero__facts .icon { color: var(--navy-600); }
.hero__visual { position: relative; }
.hero__panel {
  position: relative; isolation: isolate;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 70% 15%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  aspect-ratio: 5 / 4; overflow: hidden; box-shadow: var(--shadow-3);
}
.hero__mark { position: absolute; z-index: -1; width: 70%; right: -14%; top: -6%; opacity: 0.16; filter: saturate(1.1); }
.hero__photo, .hero__photo img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero__caption { margin-top: var(--space-3); font-size: 0.875rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: var(--space-8); }
  .hero__panel { aspect-ratio: 4 / 4.4; }
}

/* ---------------------------------------------------------------- tasks (action list) */
.tasks { list-style: none; padding: 0; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tasks > li:nth-child(odd) { border-right: 1px solid var(--line); } }
.tasks > li { border-bottom: 1px solid var(--line); }
.tasks > li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .tasks > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.task {
  display: flex; align-items: center; gap: var(--space-4); height: 100%;
  padding: var(--space-4) var(--space-5); min-height: 76px;
  color: var(--ink); text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}
.task:hover { background: var(--navy-50); color: var(--ink); text-decoration: none; }
.task__icon { display: grid; place-items: center; flex: none; width: 28px; color: var(--navy-700); }
.task__icon .icon { width: 26px; height: 26px; }
.task__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.task__text strong { color: var(--navy-900); font-size: 1.0625rem; line-height: 1.3; }
.task__text span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; }
.task__chevron { color: var(--navy-300); transition: transform var(--dur) var(--ease-out), color var(--dur); }
.task:hover .task__chevron { color: var(--navy-700); transform: translateX(2px); }
.task--main { padding-block: var(--space-5); }
.task--main .task__text strong { font-size: var(--fs-lg); }
.task--main .task__text span { font-size: var(--fs-base); }
.task--alert .task__icon { color: var(--danger); }

/* ---------------------------------------------------------------- reasons / values */
.reasons { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.reason { display: flex; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--navy-200); }
.reason__icon { flex: none; color: var(--navy-700); line-height: 0; padding-top: 2px; }
.reason__title { font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.reason p:not(.reason__title) { color: var(--ink-2); }
.reason a { font-weight: 700; white-space: nowrap; }

.values { list-style: none; padding: 0; display: grid; gap: var(--space-5) var(--space-6); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .values:not(.values--2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value { padding-top: var(--space-4); border-top: 1px solid var(--navy-200); }
.value__title { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--navy-900); margin-bottom: var(--space-2); line-height: 1.35; }
.value p:not(.value__title) { color: var(--ink-2); }

/* ---------------------------------------------------------------- feature (photo + text) */
.feature { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.feature__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.feature__text > * + * { margin-top: var(--space-5); }
.feature__text .section__title { margin-bottom: 0; }

.list-check { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.list-check li { position: relative; padding-left: 2rem; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.18em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315734a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

/* ---------------------------------------------------------------- hours */
.hours { display: grid; gap: 0; margin: 0; }
.hours > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 0.5em; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.hours dd:has(.hours__alt) { white-space: normal; text-align: right; }
.hours__alt { white-space: nowrap; }
.hours .is-closed dd { color: var(--ink-3); font-weight: 600; }
.hours .is-today { position: relative; }
.hours .is-today dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-600); margin-left: -2px; }
.hours .is-today dt { color: var(--navy-900); font-weight: 800; }

.hours-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-2); }
.hours-card__title { display: flex; align-items: center; gap: 0.55em; font-weight: 700; color: #fff; margin-bottom: var(--space-3); }
.hours-card .hours > div { border-color: rgb(255 255 255 / 0.14); }
.hours-card .hours dt { color: #fff; }
.hours-card .hours dd { color: #fff; }
.hours-card .hours .is-today dt { color: #fff; }
.hours-card .tag--soft { background: rgb(255 255 255 / 0.12); color: #fff; }
.hours-card__note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--navy-200); }
.hours-card--hero { margin-top: var(--space-6); max-width: 460px; }

/* live status chip (filled by site.js) */
[data-open-status] .status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ink-3); box-shadow: 0 0 0 3px rgb(95 110 130 / 0.18); }
[data-open-status].is-open .status-dot { background: #1f9d63; box-shadow: 0 0 0 3px rgb(31 157 99 / 0.22); }
[data-open-status].is-closed .status-dot { background: var(--danger); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }
[data-open-status].has-status .icon { display: none; }
.hours-card [data-open-status].is-open .status-dot { box-shadow: 0 0 0 3px rgb(31 157 99 / 0.4); }
/* coming public holiday or closure (Back-office › Horaires), filled by site.js */
.closure-note { display: grid; gap: 0.2em; margin-top: var(--space-3); padding: 0.6em 0.85em; border-radius: var(--radius-sm); border: 1px solid #f3d58a; background: var(--warn-bg); color: var(--ink); font-size: 0.875rem; font-weight: 700; line-height: 1.4; }
.closure-note[hidden] { display: none; }
.site-footer .closure-note, .hours-card .closure-note { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.22); color: #fff; }

/* ---------------------------------------------------------------- doctor cards */
.doctor-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .doctor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.doctor-card {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.doctor-card__photo { align-self: start; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy-100), var(--navy-50)); aspect-ratio: 4 / 5; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-card__name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.doctor-card__name a { color: inherit; text-decoration: none; }
.doctor-card__name a:hover { text-decoration: underline; }
.doctor-card__role { margin-top: 2px; font-size: var(--fs-sm); color: var(--navy-700); font-weight: 700; }
.doctor-card__text { margin-top: var(--space-3); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.doctor-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
@media (min-width: 700px) {
  .doctor-card { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .doctor-card__photo { border-radius: 0; aspect-ratio: 5 / 4; }
  .doctor-card__photo img { object-fit: contain; object-position: center bottom; }
  .doctor-card__body { padding: var(--space-5); padding-top: var(--space-4); display: flex; flex-direction: column; }
  .doctor-card__actions { margin-top: auto; padding-top: var(--space-4); }
}
.doctor-grid--compact .doctor-card__photo { aspect-ratio: 1; }

/* ---------------------------------------------------------------- service list */
.service-list { list-style: none; padding: 0; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-list > li { border-bottom: 1px solid var(--line); }
.service-list > li:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .service-list > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.service-link {
  display: flex; align-items: flex-start; gap: var(--space-4); height: 100%;
  padding: var(--space-5); color: var(--ink); text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}
.service-link:hover { background: var(--navy-50); color: var(--ink); text-decoration: none; }
.service-link__icon { display: grid; place-items: center; flex: none; width: 28px; padding-top: 2px; color: var(--navy-700); }
.service-link__icon .icon { width: 24px; height: 24px; }
.service-link__text { display: grid; gap: 4px; flex: 1; }
.service-link__text strong { color: var(--navy-900); font-size: 1.0625rem; line-height: 1.3; }
.service-link__text span { color: var(--ink-2); font-size: var(--fs-sm); }
.service-link__text .service-link__cat { margin-top: 2px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.service-link__arrow { margin-top: 4px; color: var(--navy-300); transition: transform var(--dur) var(--ease-out), color var(--dur); }
.service-link:hover .service-link__arrow { color: var(--navy-700); transform: translateX(3px); }
.service-list--compact .service-link { padding: var(--space-4) var(--space-5); }
.service-groups { display: grid; gap: var(--space-7); margin-top: var(--space-6); }
.service-group__title { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); display: block; }

/* ---------------------------------------------------------------- article cards */
.article-grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.article-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.article-card:hover { box-shadow: var(--shadow-2); border-color: var(--navy-200); }
.article-card__media { aspect-ratio: 16 / 9; background: var(--navy-50); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 0.875rem; color: var(--ink-3); }
.article-card__title { font-family: var(--font-serif); font-size: 1.3125rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.008em; }
.article-card__title a { color: var(--navy-900); text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card__title a:focus-visible { box-shadow: none; }
.article-card:has(a:focus-visible) { box-shadow: var(--focus); }
.article-card__excerpt { color: var(--ink-2); font-size: var(--fs-sm); }
.article-card--featured { margin-bottom: var(--space-6); }
@media (min-width: 900px) {
  .article-card--featured { flex-direction: row; }
  .article-card--featured .article-card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .article-card--featured .article-card__body { padding: var(--space-7) var(--space-6); justify-content: center; }
  .article-card--featured .article-card__title { font-size: var(--fs-2xl); }
  .article-card--featured .article-card__excerpt { font-size: var(--fs-base); }
}

/* ---------------------------------------------------------------- CTA band */
.cta-band { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 340px; height: 300px;
  background: url("../img/papillon.png") center / contain no-repeat; opacity: 0.1;
}
.cta-band__inner { display: grid; gap: var(--space-5); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-7); } }
.cta-band h2 { color: #fff; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.cta-band p { margin-top: var(--space-3); color: var(--navy-200); font-size: var(--fs-lg); max-width: 52ch; }
.cta-band__actions { display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .cta-band__actions { display: flex; flex-wrap: wrap; } }

/* ---------------------------------------------------------------- page head */
.page-head { background: linear-gradient(180deg, var(--navy-50), #fff); border-bottom: 1px solid var(--line); padding-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.page-head--plain { padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.page-head__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .page-head--media .page-head__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); } }
.page-head__title { max-width: 22ch; }
.page-head__text--wide .page-head__title { max-width: 28ch; }
.page-head__lead { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }
.page-head__text > p:not(.page-head__lead) { margin-top: var(--space-3); color: var(--ink-2); max-width: 60ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.page-head__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.page-head__media--portrait .page-head__img img { aspect-ratio: 4 / 3; object-position: center 22%; }

.breadcrumbs { padding-block: var(--space-4) var(--space-5); font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25em 0.5em; list-style: none; padding: 0; color: var(--ink-3); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5em; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--navy-300); border-top: 1.5px solid var(--navy-300); transform: rotate(45deg); margin-right: 0.15em; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; padding-block: 0.5em; }
.breadcrumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-3); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- page body + aside */
.page-body { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--section-y); }
@media (min-width: 1000px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); }
  .page-body--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
}
.page-body__main { min-width: 0; }
.page-body__main > * + * { margin-top: var(--space-6); }
.sticky { display: grid; gap: var(--space-5); }
@media (min-width: 1000px) {
  .sticky { position: sticky; top: calc(var(--header-h) + 56px); }
  .page-body__toc-mobile, .article-layout__toc-mobile { display: none; }
}
@media (max-width: 999.98px) { .page-body__toc-desktop, .article-layout__toc-desktop { display: none; } }

.practical-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-1); }
.practical-card__head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.practical-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-50); color: var(--navy-700); }
.practical-card--secretariat .practical-card__icon { background: var(--gold-100); color: var(--gold-700); }
.practical-card--bloodTests .practical-card__icon { background: var(--danger-bg); color: var(--danger); }
.practical-card__title { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--navy-900); margin: 0; }
.practical-card__sub { margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
/* live status under the fixed title: green when open, red when closed (site.js) */
.status-pill { display: inline-flex; align-items: flex-start; gap: 0.55em; margin-bottom: var(--space-2); padding: 0.4em 0.9em; border-radius: 1.1em; font-size: 0.875rem; font-weight: 700; line-height: 1.3; background: var(--navy-50); color: var(--navy-900); }
.status-pill .icon { color: var(--navy-600); }
.status-pill .status-dot { margin-top: 0.36em; }
.status-pill.is-open { background: var(--ok-bg); color: var(--ok); }
.status-pill.is-closed { background: var(--danger-bg); color: var(--danger); }
.practical-card__status { display: flex; align-items: center; gap: 0.55em; font-weight: 700; color: var(--navy-900); margin-bottom: var(--space-3); }
.practical-card__status .icon { color: var(--navy-600); }
.practical-card__note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink-2); }
.practical-card__actions { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.practical-card__address, .practical-card__garde { display: flex; gap: 0.6em; margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--ink-2); }
.practical-card__address .icon { color: var(--navy-600); margin-top: 2px; }
.practical-card__garde .icon { color: var(--danger); margin-top: 2px; }
.practical-card__garde a { color: var(--danger); }
.practical-card__lead { font-weight: 700; color: var(--navy-900); }
.practical-card--plain { box-shadow: none; }

/* toc */
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toc__title { display: flex; align-items: center; gap: 0.6em; min-height: 52px; padding: 0 var(--space-4); font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title > span { flex: 1; }
.toc__chevron { color: var(--ink-3); transition: transform var(--dur) var(--ease-out); }
.toc[open] .toc__chevron { transform: rotate(180deg); }
.toc__list { list-style: none; padding: 0 var(--space-4) var(--space-4); margin: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc__list a { display: block; padding: 0.4em 0.6em; margin-inline: -0.6em; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.toc__list a:hover { background: var(--navy-50); color: var(--navy-900); }
.toc__list a.is-active { color: var(--navy-900); font-weight: 700; background: var(--navy-50); }

/* summary (En bref) */
.summary { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius-lg); padding: var(--space-5); }
.summary__title { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 800; color: var(--navy-900); margin-bottom: var(--space-2); }
.summary__text { font-size: var(--fs-md); color: var(--ink); line-height: 1.6; max-width: var(--measure); }

/* ---------------------------------------------------------------- prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9375rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose > h3 { margin-top: 1.9em; font-size: var(--fs-xl); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose > h4 { margin-top: 1.6em; }
.prose > h2 + *, .prose > h3 + *, .prose > h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--navy-300); }
.prose ol li::marker { font-weight: 700; color: var(--navy-700); }
.prose .list-check { padding-left: 0; }
.prose blockquote { padding: var(--space-5); background: var(--navy-50); border-radius: var(--radius); font-size: var(--fs-md); color: var(--navy-900); }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose blockquote p:last-child:not(:first-child) { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; }
.prose figure, .content-figure { margin-block: var(--space-6); }
.prose figure img, .content-figure img { width: 100%; border-radius: var(--radius); }
.prose a { font-weight: 600; }
.prose--legal { font-size: var(--fs-base); }
.prose--legal > h2 { font-size: var(--fs-xl); font-family: var(--font-sans); font-weight: 700; }

/* callouts */
.callout { border-radius: var(--radius); padding: var(--space-5); background: var(--navy-50); color: var(--ink); }
.callout__title { font-weight: 800; color: var(--navy-900); margin-bottom: var(--space-2); font-size: var(--fs-md); }
.callout__body > * + * { margin-top: 0.7em; }
.callout__body ul, .callout__body ol { padding-left: 1.3em; }
.callout--note { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.callout--info { background: var(--info-bg); }
.callout--success { background: var(--ok-bg); }
.callout--success .callout__title { color: var(--ok); }
.callout--warning { background: var(--warn-bg); box-shadow: inset 0 0 0 1px #f3d58a; }
.callout--warning .callout__title { color: var(--warn); }
.callout--danger { background: var(--danger-bg); box-shadow: inset 0 0 0 1px #f5c2bd; }
.callout--danger .callout__title { color: var(--danger); }
.callout--cta { background: var(--navy-900); color: #fff; padding: var(--space-6); }
.callout--cta .callout__title { color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-xl); }
.callout--cta a:not(.btn) { color: var(--gold-400); }
.callout__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.callout--cta .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.45); }
.callout:not(.callout--cta) .btn--ghost { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: var(--navy-200); }

/* migrated grids & steps */
.content-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .content-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: #fff; }
.content-card > * + * { margin-top: 0.6em; }
.content-card h2, .content-card h3, .content-card h4 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 700; margin: 0; }
.content-card a[href^="tel:"] { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--navy-900); text-decoration: none; letter-spacing: 0.01em; }
.content-card ul { padding-left: 1.2em; }
/* photo cards (Nos soins): the title link opens the whole card; below 640px they read as a list and the photos are not loaded */
.content-grid--media .content-card { position: relative; }
.content-grid--media .content-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.content-grid--media .content-card p a { position: relative; z-index: 1; }
@media (max-width: 639px) {
  .content-grid--media { gap: 0; }
  .content-grid--media .content-figure { display: none; }
  .content-grid--media .content-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--space-3) 0; background: none; }
  .content-grid--media .content-card > * + * { margin-top: 0.25em; }
  .content-grid--media .content-card h3 { font-size: 1rem; }
}
@media (min-width: 640px) {
  .content-grid--media .content-figure { margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4); }
  .content-grid--media .content-figure img { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; aspect-ratio: 3 / 2; object-fit: cover; }
  .content-grid--media .content-card:has(h3 a) { transition: border-color 0.15s; }
  .content-grid--media .content-card:has(h3 a):hover { border-color: var(--navy-300); }
}
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; position: relative; padding: var(--space-5); padding-top: calc(var(--space-5) + 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 !important; }
.steps > li::before {
  content: counter(step); position: absolute; top: var(--space-5); left: var(--space-5);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800;
}
.steps__title { font-weight: 800; color: var(--navy-900); margin-bottom: 0.3em; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.table-wrap:has(.hours-table) { max-width: 480px; }
.prose .hours-table, .table-wrap .hours-table { min-width: 0; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 0.75em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--navy-50); color: var(--navy-900); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: #fbfcfe; }

/* chips */
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { margin: 0 !important; padding: 0.3em 0.8em; border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy-800); font-size: var(--fs-sm); font-weight: 600; }

/* ---------------------------------------------------------------- FAQ */
.faq { margin-top: var(--space-7); }
.faq__heading { margin-bottom: var(--space-5); font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9375rem); }
.faq__list { display: grid; gap: var(--space-3); }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--dur), box-shadow var(--dur); }
.faq__item[open] { border-color: var(--navy-200); box-shadow: var(--shadow-1); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); min-height: 60px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--navy-700); }
.faq__icon { flex: none; color: var(--navy-600); transition: transform var(--dur-slow) var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--ink-2); max-width: none; }
.split .faq { margin-top: 0; }

/* ---------------------------------------------------------------- map facade */
.map-facade { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--navy-50); margin-bottom: var(--space-5); }
.map-facade__placeholder {
  display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6) var(--space-5);
  background: var(--navy-50);
}
.map-facade__pin { width: 36px; height: 36px; color: var(--danger); }
.map-facade__address { font-size: var(--fs-md); color: var(--navy-900); }
.map-facade__meta { color: var(--ink-2); font-size: var(--fs-sm); }
.map-facade__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.map-facade__note { font-size: 0.8125rem; color: var(--ink-3); }
.map-facade iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------------------------------------------------------------- doctor page */
.doctor-head { background: linear-gradient(180deg, var(--navy-50), #fff); border-bottom: 1px solid var(--line); }
.doctor-head__grid { display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 900px) { .doctor-head__grid { grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-8); } }
.doctor-head__photo { position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: radial-gradient(110% 80% at 60% 20%, var(--navy-700), var(--navy-900) 60%, var(--navy-950)); aspect-ratio: 4 / 4.4; max-width: 360px; }
.doctor-head__photo img { position: absolute; inset: auto 0 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.doctor-head__text { padding-bottom: var(--space-7); }
.doctor-head__name { font-size: var(--fs-3xl); }
.doctor-head__role { margin-top: var(--space-2); font-weight: 700; color: var(--navy-700); font-size: var(--fs-md); }
.doctor-head__lead { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--fs-lg); max-width: 58ch; }
.doctor-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.doctor-head__contact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); }
.doctor-head__contact a { display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.doctor-head__contact a:hover { color: var(--navy-900); text-decoration: underline; }
.cv { border-top: 1px solid var(--line); padding-top: var(--space-5); max-width: var(--measure); }
.cv__title { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-3); }
.cv__list { padding-left: 1.2em; display: grid; gap: 0.4em; color: var(--ink-2); }
.cv__list li::marker { color: var(--navy-300); }
.cv__articles { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.cv__articles a { font-weight: 700; }
.cv__date { display: block; font-size: 0.875rem; color: var(--ink-3); }

/* team page */
.founders { margin: 0; }
.founders__panel { position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.3; background: radial-gradient(120% 90% at 70% 15%, var(--navy-700), var(--navy-900) 55%, var(--navy-950)); box-shadow: var(--shadow-3); }
.founders__panel picture, .founders__panel img { position: absolute; inset: auto 0 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.founders__mark { position: absolute; z-index: -1; width: 70%; right: -12%; top: -4%; opacity: 0.16; }
.founders figcaption { margin-top: var(--space-3); font-size: 0.875rem; color: var(--ink-3); }
.facts { display: grid; gap: var(--space-5); margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-7); } }
.fact { padding-top: var(--space-4); border-top: 1px solid var(--navy-200); }
.fact dt { font-weight: 700; color: var(--navy-900); font-size: var(--fs-md); }
.fact dd { margin: var(--space-2) 0 0; color: var(--ink-2); }
.team-list { display: grid; gap: var(--space-5); }
.team-member { display: grid; gap: var(--space-5); padding: var(--space-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 760px) { .team-member { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); } }
.team-member__photo { display: block; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy-100), var(--navy-50)); aspect-ratio: 4 / 5; max-width: 240px; }
.team-member__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.team-member__name { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-2xl); }
.team-member__name a { color: inherit; text-decoration: none; }
.team-member__name a:hover { text-decoration: underline; }
.team-member__role { color: var(--navy-700); font-weight: 700; margin-top: 2px; }
.team-member__body > p:not(.team-member__role) { margin-top: var(--space-3); color: var(--ink-2); max-width: var(--measure); }

/* booking page */
.booking-steps { counter-reset: bs; list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-bottom: var(--space-6); color: var(--ink-2); }
@media (min-width: 900px) { .booking-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.booking-steps li { counter-increment: bs; display: flex; gap: var(--space-3); align-items: baseline; }
.booking-steps li::before { content: counter(bs); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800; font-size: 0.875rem; transform: translateY(-2px); }
.booking-steps strong { color: var(--navy-900); }
.booking-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .booking-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.booking-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3) var(--space-4); align-items: center; padding: var(--space-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.booking-item__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--navy-100), var(--navy-50)); }
.booking-item__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.booking-item__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; }
.booking-item__role { color: var(--navy-700); font-weight: 700; font-size: var(--fs-sm); }
.booking-item__days { color: var(--ink-3); font-size: 0.875rem; }
.booking-item__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-4); }
.booking-item__actions .btn { flex: 1; }
.booking-item__profile { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 560px) {
  .booking-item { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .booking-item__actions { grid-column: auto; flex-direction: column; align-items: stretch; gap: var(--space-1); text-align: center; }
  .booking-item__profile { justify-content: center; }
}
.booking-note { display: flex; gap: 0.6em; margin-top: var(--space-5); color: var(--ink-2); font-size: var(--fs-sm); max-width: 80ch; }
.booking-note .icon { color: var(--navy-600); margin-top: 3px; }
.booking-cta { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); }
.booking-cta__title { color: #fff; font-size: var(--fs-xl); font-family: var(--font-serif); font-weight: 600; }
.booking-cta p { color: var(--navy-200); margin-top: var(--space-2); }
.booking-cta strong { color: #fff; }
@media (min-width: 900px) { .booking-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.booking-cta .status-pill { margin: var(--space-4) 0 0; color: var(--navy-900); }
.help-line { display: flex; align-items: center; gap: 0.6em; font-weight: 700; color: var(--navy-900); }

/* contact */
.contact-grid { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .contact-tile + .contact-tile { border-left: 1px solid var(--line); } }
@media (max-width: 899.98px) { .contact-tile + .contact-tile { border-top: 1px solid var(--line); } }
.contact-tile { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px var(--space-4); padding: var(--space-5); color: var(--ink); text-decoration: none; transition: background-color var(--dur); }
.contact-tile:hover { background: var(--navy-50); color: var(--ink); text-decoration: none; }
.contact-tile__icon { grid-row: span 3; color: var(--navy-700); padding-top: 2px; }
.contact-tile__label { font-size: 0.875rem; font-weight: 700; color: var(--ink-3); }
.contact-tile__value { font-size: 1.1875rem; color: var(--navy-900); overflow-wrap: anywhere; }
.contact-tile__hint { font-size: var(--fs-sm); color: var(--ink-2); }
.contact-urgent { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--danger-bg); box-shadow: inset 0 0 0 1px #f5c2bd; }
.contact-urgent__title { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-sans); font-size: var(--fs-xl); font-weight: 800; color: var(--danger); margin-bottom: var(--space-2); }
.contact-urgent a { color: var(--danger); }
/* home visits: same frame as the urgent block, neutral colours (not an emergency) */
.page-body__main > .contact-urgent + .contact-visits { margin-top: var(--space-4); }
.contact-visits { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.contact-visits__title { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-sans); font-size: var(--fs-xl); font-weight: 800; color: var(--navy-900); margin-bottom: var(--space-2); }
.contact-visits__title svg { color: var(--navy-700); }

/* emergency strip (infos pratiques) */
.emergency-strip { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 720px) { .emergency-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.emergency-strip__item { display: grid; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--navy-900); color: #fff; text-decoration: none; }
.emergency-strip__item strong { font-size: 1.75rem; line-height: 1.1; letter-spacing: 0.01em; }
.emergency-strip__item span { color: var(--navy-200); font-weight: 600; }
.emergency-strip__item:hover { color: #fff; background: var(--navy-800); }
.emergency-strip__item--red { background: var(--danger); }
.emergency-strip__item--red span { color: #ffe3e0; }
.emergency-strip__item--red:hover { background: #9a1d14; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; color: var(--navy-900); }
.field__req { color: var(--danger); }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0.75em 0.9em;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--navy-300); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgb(31 68 121 / 0.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-weight: 700; font-size: var(--fs-sm); }
.field__hint { color: var(--ink-3); font-size: var(--fs-sm); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { color: var(--ink-3); font-size: var(--fs-sm); }
.form__status { padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-weight: 700; }
.form__status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form__status.is-error { background: var(--danger-bg); color: var(--danger); }
.form [type="submit"] { justify-self: start; }
.form [type="submit"][aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------------------------------------------------------------- blog */
.filter { margin-top: var(--space-5); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filter::-webkit-scrollbar { display: none; }
.filter ul { display: flex; gap: var(--space-2); list-style: none; padding: 0; width: max-content; }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy-900); font-weight: 700; text-decoration: none; white-space: nowrap; }
.filter a:hover { border-color: var(--navy-700); }
.filter a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.empty { color: var(--ink-2); }

/* article page */
.article-head { padding-bottom: var(--space-6); background: linear-gradient(180deg, var(--navy-50), #fff); }
.article-head__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.125rem); line-height: 1.12; }
.byline { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.byline__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--navy-200), var(--navy-100)); }
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.byline__avatar--mark { display: grid; place-items: center; background: var(--navy-900); }
.byline__avatar--mark img { width: 70%; height: auto; object-fit: contain; }
.byline__name { font-weight: 700; color: var(--navy-900); }
.byline__meta { font-size: var(--fs-sm); color: var(--ink-3); }
.article-hero { margin: 0 0 var(--space-6); }
.article-hero img { width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article-layout { display: grid; gap: var(--space-7); padding-bottom: var(--section-y); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); max-width: 1104px; } }
.article-layout__main { min-width: 0; }
.article-layout__main > * + * { margin-top: var(--space-6); }
.prose--article { font-size: var(--fs-md); }
@media (min-width: 1080px) { .prose--article { font-size: 1.1875rem; } }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); background: var(--bg-soft); border-radius: var(--radius-lg); }
.author-box__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--navy-200), var(--navy-100)); }
.author-box__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.author-box__photo--mark { display: grid; place-items: center; background: var(--navy-900); }
.author-box__photo--mark img { width: 70%; height: auto; }
.author-box__name { font-weight: 800; font-size: var(--fs-md); }
.author-box__role { color: var(--navy-700); font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.author-box p:not(.author-box__name):not(.author-box__role) { color: var(--ink-2); font-size: var(--fs-sm); }
.disclaimer { display: flex; gap: 0.6em; font-size: var(--fs-sm); color: var(--ink-3); }
.disclaimer .icon { margin-top: 3px; }
.md-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }

/* sitemap */
.sitemap { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sitemap__title { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.sitemap ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.sitemap a { display: inline-block; padding-block: 0.3em; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-950); color: var(--navy-200); font-size: var(--fs-sm); }
.site-footer a:not(.btn) { color: #fff; text-decoration-color: rgb(255 255 255 / 0.35); }
.site-footer a:not(.btn):hover { color: var(--gold-400); text-decoration-color: currentColor; }
.footer__grid { display: grid; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.05fr 1.3fr 1.05fr 1fr; gap: var(--space-6); } }
.footer__logo { height: 34px; width: auto; margin-bottom: var(--space-5); }
.footer__brand p + p { margin-top: var(--space-3); }
.footer__title { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 800; color: #fff; letter-spacing: 0.02em; margin-bottom: var(--space-4); }
.footer__title--spaced { margin-top: var(--space-6); }
.hours--footer > div { border-color: rgb(255 255 255 / 0.12); padding-block: 0.45rem; }
.hours--footer dt { color: var(--navy-200); font-weight: 600; }
.hours--footer dd { color: #fff; }
/* hours column: one block per service, then the numbers to call outside opening hours */
.footer-hours + .footer-hours { margin-top: var(--space-5); }
.footer-hours__title { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; color: #fff; margin-bottom: var(--space-1); }
.hours--footer > div { gap: var(--space-3); }
.hours--footer dt { min-width: 0; }
.hours--footer .is-closed dd { color: var(--navy-300); font-weight: 600; }
.hours--footer .is-today dt, .hours--footer .is-today dd { color: #fff; }
.hours--footer .is-today dt::before { background: var(--gold-400); }
.footer-hours__holidays { margin-top: var(--space-4); color: var(--navy-200); }
.footer-garde { display: grid; gap: var(--space-2); margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); }
.footer-garde__title { display: flex; align-items: center; gap: 0.5em; font-weight: 800; color: #fff; margin-bottom: var(--space-1); }
.footer-garde__title .icon { color: #ff8a80; }
.site-footer .footer-garde__line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.07); color: #fff; text-decoration: none; }
.site-footer .footer-garde__line:hover { background: rgb(255 255 255 / 0.13); color: #fff; }
.footer-garde__line > span { display: grid; font-weight: 700; line-height: 1.3; }
.footer-garde__line small { font-size: 0.8125rem; font-weight: 400; color: var(--navy-200); }
.footer-garde__line strong { font-size: 1.625rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.footer-garde__line--urgent strong { color: #ff8a80; }
.footer__address { font-style: normal; color: #fff; font-size: var(--fs-base); line-height: 1.5; }
.footer__contact { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-1); }
.footer__contact a { display: inline-flex; align-items: center; gap: 0.55em; min-height: 40px; text-decoration: none; }
.footer__contact .icon { color: var(--navy-300); }
.footer__cta { margin-top: var(--space-4); }
.footer__links { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.footer__links a { display: inline-block; padding-block: 0.3em; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-block: var(--space-5); font-size: 0.875rem; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); list-style: none; padding: 0; }
.footer__legal a, .footer__legal .linklike { color: var(--navy-200); display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal a:hover, .footer__legal .linklike:hover { color: #fff; }

/* ---------------------------------------------------------------- mobile action bar */
.action-bar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 0.9fr 1.2fr 1.2fr 0.9fr; gap: 6px;
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgb(16 38 74 / 0.5);
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (min-width: 1080px) { .action-bar { display: none; } }
.cabinet-closed .action-bar { grid-template-columns: 1.3fr 1.2fr 0.9fr; }
.action-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; min-width: 0; border-radius: var(--radius); color: var(--navy-900); font-size: 0.8125rem; font-weight: 700; line-height: 1.15; text-decoration: none;
}
.action-bar__item:hover { background: var(--navy-50); color: var(--navy-900); text-decoration: none; }
.action-bar__item--primary { background: var(--gold-500); color: var(--navy-950); font-size: 0.8125rem; }
.action-bar__item--rx { background: var(--navy-50); box-shadow: inset 0 0 0 1.5px var(--navy-200); font-size: 0.8125rem; }
.action-bar__item--rx:hover { background: var(--navy-100); }
@media (max-width: 359.98px) { .action-bar__item, .action-bar__item--primary, .action-bar__item--rx { font-size: 0.6875rem; } }
.action-bar__item--primary:hover { background: var(--gold-400); color: var(--navy-950); }
.menu-open .action-bar { transform: translateY(110%); }

/* ---------------------------------------------------------------- consent */
.consent { position: fixed; z-index: 60; left: var(--space-3); right: var(--space-3); bottom: calc(var(--actionbar-h) + var(--space-3) + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
@media (min-width: 1080px) { .consent { bottom: var(--space-5); left: var(--space-5); right: auto; justify-content: flex-start; } }
.consent__inner { pointer-events: auto; width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-5); animation: consent-in var(--dur-slow) var(--ease-out); }
@keyframes consent-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent__title { display: flex; align-items: center; gap: 0.5em; font-weight: 800; color: var(--navy-900); }
.consent__title .icon { color: var(--navy-600); }
.consent__text { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--ink-2); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); }

/* ---------------------------------------------------------------- motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .action-bar, .consent, .cta-band, .site-footer, .announce, .page-body__aside, .article-layout__aside, .toc, .map-facade { display: none !important; }
  body { padding: 0; font-size: 11pt; }
  a { color: inherit; }
  .page-head, .article-head { background: none; }
}

/* back-office preview banner */
.preview-flag { position: sticky; top: 0; z-index: 70; margin: 0; padding: 0.5rem 1rem; background: var(--navy-900); color: #fff; font-weight: 800; text-align: center; }
@media (max-width: 899.98px) {
  .doctor-head__photo { max-width: 240px; aspect-ratio: 1 / 1.08; border-radius: var(--radius-lg); }
  .doctor-head__text { padding-bottom: var(--space-6); }
}
@media (max-width: 599.98px) { .breadcrumbs li:last-child:not(:first-child) { display: none; } }
.tpl-404 .page-head { padding-top: var(--space-7); }

/* =====================================================================
   Home hero variants (1 « Diaporama », 2 « Duo », 3 « Portraits ») and the team sections shown with them
   ===================================================================== */
.hero-status { display: inline-flex; align-items: flex-start; gap: 0.6em; line-height: 1.4; margin-top: var(--space-5); padding: 0.45em 0.95em 0.45em 0.8em; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-md); font-weight: 700; color: var(--navy-900); box-shadow: var(--shadow-1); }
.hero-status .icon { color: var(--navy-600); margin-top: 0.1em; }
.hero-status .status-dot { margin-top: 0.42em; }
.hero-status--dark { background: rgb(11 27 51 / 0.62); border-color: rgb(255 255 255 / 0.22); color: #fff; box-shadow: none; }
.hero-status--dark .icon { color: var(--navy-200); }

/* shared by the dark heroes: « 5 médecins généralistes » link with the team's faces */
.team-link { display: inline-flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border-radius: var(--radius-pill); color: #fff; text-decoration: none; transition: background-color var(--dur) var(--ease-out); }
.team-link:hover { background: rgb(255 255 255 / 0.08); color: #fff; text-decoration: none; }
.team-link__text { display: grid; line-height: 1.35; }
.team-link__text strong { font-size: var(--fs-md); }
.team-link__text span { font-size: var(--fs-sm); color: var(--navy-200); }
.team-link__arrow { color: var(--navy-200); transition: transform var(--dur) var(--ease-out); }
.team-link:hover .team-link__arrow { transform: translateX(3px); color: #fff; }
.avatar-stack { display: flex; }
.avatar-stack__item { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--navy-700); border: 2px solid var(--navy-950); }
.avatar-stack__item + .avatar-stack__item { margin-left: -12px; }
.avatar-stack__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }

/* shared type scale of the dark heroes */
.hero-slides__title, .hero-pair__title { color: #fff; font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 19ch; }
.hero-slides__lead, .hero-pair__lead { margin-top: var(--space-5); font-size: var(--fs-lg); line-height: 1.55; color: var(--navy-100); max-width: 44ch; }
.hero-slides__actions, .hero-pair__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-slides__fact { display: flex; align-items: center; gap: 0.6em; margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--navy-100); }
.hero-slides__fact .icon { color: var(--navy-200); flex: none; }
.hero-slides__fact--next { margin-top: var(--space-2); }
.hero-slides__fact + .team-link { margin-top: var(--space-4); }
@media (max-width: 599.98px) {
  .team-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "stack stack" "text arrow"; align-items: center; gap: var(--space-2) var(--space-3); border-radius: var(--radius); padding: var(--space-3); margin-inline: calc(var(--space-3) * -1); }
  .team-link .avatar-stack { grid-area: stack; }
  .team-link__text { grid-area: text; }
  .team-link__arrow { grid-area: arrow; }
}

/* ---- 1 · Diaporama : Dr Monnoye puis Dr Cumps, en fondu ------------- */
.hero-slides { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero-slides__media { position: absolute; inset: 0 0 0 auto; width: 60%; background: var(--navy-900); touch-action: pan-y; }
.hero-slides__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero-slides__slide.is-active { opacity: 1; }
.hero-slides__img, .hero-slides__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 22%); }
/* framing follows where the person stands in the photo (Back-office › Photos) */
.hero-slides__slide--droite { --pos: 64% 22%; --pos-sm: 68% 18%; }
.hero-slides__slide--centre { --pos: 44% 22%; --pos-sm: 50% 18%; }
.hero-slides__slide--gauche { --pos: 10% 22%; --pos-sm: 26% 18%; }
.hero-slides__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-950) 0%, rgb(11 27 51 / 0.72) 12%, rgb(11 27 51 / 0) 40%),
    linear-gradient(0deg, rgb(11 27 51 / 0.7) 0%, rgb(11 27 51 / 0) 32%);
}
.hero-slides__inner { position: relative; display: grid; align-items: center; min-height: clamp(520px, 68vh, 660px); padding-block: var(--space-7); }
.hero-slides__text { max-width: 660px; }
.hero-slides__nav { position: absolute; right: var(--gutter); bottom: var(--space-5); display: flex; align-items: center; gap: var(--space-2); }
.slide-chip { position: relative; display: grid; gap: 1px; min-height: 52px; padding: 0.5em 1.1em 0.6em; border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--radius); background: rgb(11 27 51 / 0.55); color: var(--navy-100); font: inherit; text-align: left; line-height: 1.25; overflow: hidden; cursor: pointer; transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur); }
.slide-chip:hover { border-color: rgb(255 255 255 / 0.5); color: #fff; }
.slide-chip.is-active { background: rgb(11 27 51 / 0.82); border-color: rgb(255 255 255 / 0.45); color: #fff; }
.slide-chip__name { font-weight: 700; font-size: 0.9375rem; }
.slide-chip__role { font-size: 0.8125rem; color: var(--navy-200); }
.slide-chip__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff; transform: scaleX(0); transform-origin: left center; }
.slide-chip.is-active .slide-chip__bar { transform: scaleX(1); }
/* the progress bar paces the slideshow (site.js listens to its animationend) */
.hero-slides.is-playing .slide-chip.is-active .slide-chip__bar { animation: chip-progress 7s linear both; }
.hero-slides.is-playing:hover .slide-chip__bar, .hero-slides.is-playing:focus-within .slide-chip__bar { animation-play-state: paused; }
@keyframes chip-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slide-toggle { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; background: rgb(11 27 51 / 0.55); color: #fff; cursor: pointer; }
.slide-toggle:hover { border-color: rgb(255 255 255 / 0.5); }
.slide-toggle__play, .hero-slides:not(.is-playing) .slide-toggle__pause { display: none; }
.hero-slides:not(.is-playing) .slide-toggle__play { display: block; }
@media (max-width: 899.98px) {
  .hero-slides { display: grid; }
  .hero-slides__media { position: relative; grid-area: 1 / 1; width: auto; height: clamp(220px, 34svh, 340px); }
  .hero-slides__img, .hero-slides__img img { object-position: var(--pos-sm, 50% 18%); }
  .hero-slides__media::after { background: linear-gradient(180deg, rgb(11 27 51 / 0) 42%, rgb(11 27 51 / 0.75) 76%, var(--navy-950) 100%); }
  .hero-slides__inner { display: contents; }
  .hero-slides__nav { position: relative; inset: auto; z-index: 1; grid-area: 1 / 1; align-self: end; display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--gutter) var(--space-3); }
  .slide-chip { min-height: 48px; padding: 0.45em 0.8em 0.55em; }
  .slide-toggle { position: absolute; right: var(--gutter); bottom: calc(100% + var(--space-2)); width: 44px; height: 44px; }
  .hero-slides__text { grid-area: 2 / 1; max-width: none; padding: var(--space-4) var(--gutter) var(--space-7); }
}

/* ---- 2 · Duo : les deux fondateurs dans un même décor --------------- */
.hero-pair { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero-pair__inner { position: relative; z-index: 3; display: grid; align-items: center; min-height: clamp(520px, 68vh, 660px); padding-block: var(--space-7); pointer-events: none; }
.hero-pair__text { max-width: 600px; pointer-events: auto; }
.hero-pair__media { position: absolute; inset: 0 0 0 auto; width: 62%; display: flex; padding-left: 7%; background: var(--navy-950); }
.hero-pair__person { position: relative; flex: 1 1 50%; min-width: 0; display: block; color: #fff; text-decoration: none; }
.hero-pair__person + .hero-pair__person { margin-left: -9%; }
.hero-pair__person + .hero-pair__person .hero-pair__photo { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%); }
.hero-pair__photo, .hero-pair__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-pair__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-950) 0%, var(--navy-950) 7%, rgb(11 27 51 / 0.5) 13%, rgb(11 27 51 / 0) 24%),
    linear-gradient(0deg, rgb(11 27 51 / 0.85) 0%, rgb(11 27 51 / 0) 34%);
}
.hero-pair__tag { position: absolute; z-index: 2; left: 50%; bottom: var(--space-6); transform: translateX(-50%); display: grid; justify-items: center; text-align: center; white-space: nowrap; line-height: 1.3; }
.hero-pair__person + .hero-pair__person .hero-pair__tag { left: 56%; }
.hero-pair__tag strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.3125rem; }
.hero-pair__tag span { font-size: 0.875rem; color: var(--navy-200); }
.hero-pair__person:hover .hero-pair__tag strong, .hero-pair__person:focus-visible .hero-pair__tag strong { text-decoration: underline; text-underline-offset: 0.2em; }
.hero-pair__person:focus-visible { box-shadow: inset 0 0 0 3px #fff; border-radius: 0; }
@media (max-width: 899.98px) {
  .hero-pair { display: flex; flex-direction: column; }
  .hero-pair__media { position: relative; order: -1; width: auto; height: clamp(280px, 50svh, 440px); padding-left: 0; }
  .hero-pair__media::before { background: linear-gradient(180deg, rgb(11 27 51 / 0) 48%, rgb(11 27 51 / 0.8) 84%, var(--navy-950) 100%); }
  .hero-pair__person + .hero-pair__person { margin-left: -12%; }
  .hero-pair__photo img { object-position: 50% 14%; }
  .hero-pair__tag { bottom: var(--space-3); }
  .hero-pair__tag strong { font-size: 1.0625rem; }
  .hero-pair__tag span { font-size: 0.8125rem; }
  .hero-pair__inner { min-height: 0; padding-block: var(--space-4) var(--space-7); }
  .hero-pair__text { max-width: none; }
}

/* shared mobile type for the dark heroes */
@media (max-width: 899.98px) {
  .hero-slides__title, .hero-pair__title { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); max-width: none; }
  .hero-slides__lead, .hero-pair__lead { font-size: var(--fs-md); margin-top: var(--space-4); }
  .hero-slides__actions, .hero-pair__actions { display: grid; }
}

/* ---- 3 · Portraits : version claire, papillon en filigrane ---------- */
.hero-founders { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-50) 0%, #fff 85%); }
.hero-founders__mark { position: absolute; width: min(640px, 50vw); right: -3%; top: 50%; transform: translateY(-50%); opacity: 0.14; pointer-events: none; }
.hero-founders__grid { position: relative; display: grid; gap: var(--space-6); padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .hero-founders__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--space-7); } }
.hero-founders__title { font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; }
.hero-founders__lead { margin-top: var(--space-5); font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.hero-founders__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-founders__facts { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-2); color: var(--ink-2); font-size: var(--fs-sm); }
.hero-founders__facts li { display: flex; align-items: center; gap: 0.6em; }
.hero-founders__facts .icon { color: var(--navy-600); }
.hero-founders__duo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.hero-founders__duo > li:nth-child(2) { margin-top: var(--space-8); }
.founder-card { display: block; color: inherit; text-decoration: none; }
.founder-card:hover { color: inherit; text-decoration: none; }
.founder-card__photo { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-700); box-shadow: var(--shadow-3); }
.founder-card__photo picture, .founder-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform var(--dur-slow) var(--ease-out); }
.founder-card:hover .founder-card__photo img { transform: scale(1.03); }
.founder-card__caption { display: grid; gap: 2px; margin-top: var(--space-3); padding-inline: 2px; }
.founder-card__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--navy-900); }
.founder-card__role { font-size: 0.875rem; color: var(--ink-2); }
.founder-card:hover .founder-card__name { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 999.98px) {
  .hero-founders__grid { display: flex; flex-direction: column; gap: 0; }
  .hero-founders__text { display: contents; }
  .hero-founders__title { order: 1; }
  .hero-founders__lead { order: 2; font-size: var(--fs-md); margin-top: var(--space-4); }
  .hero-founders__duo { order: 3; margin-top: var(--space-5); gap: var(--space-3); max-width: 560px; }
  .hero-founders__duo > li:nth-child(2) { margin-top: var(--space-6); }
  .hero-founders .hero-status { order: 4; align-self: flex-start; }
  .hero-founders__actions { order: 5; }
  .hero-founders__facts { order: 6; }
  .founder-card__name { font-size: 1.0625rem; }
  .founder-card__role { font-size: 0.8125rem; }
  .hero-founders__mark { width: 88vw; right: -34%; top: 40%; }
}
@media (max-width: 599.98px) { .hero-founders__actions { display: grid; } }
/* same hero on « Équipe médicale », under the breadcrumbs */
.hero-founders--page .breadcrumbs { padding-top: var(--space-4); }
.hero-founders--page .hero-founders__grid { padding-top: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
.hero-founders--page .hero-founders__lead { font-size: var(--fs-md); }
.hero-founders--page .hero-founders__title { font-size: clamp(2rem, 1.35rem + 2vw, 3rem); max-width: 20ch; }

/* ---- Below the new heroes: founders duo + « Notre équipe médicale » line-up ---- */
.team-intro__grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .team-intro__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "duo main" "aside aside"; align-items: center; column-gap: var(--space-8); }
  .team-intro__grid > .duo-panel { grid-area: duo; }
  .team-intro__grid > .split__main { grid-area: main; }
  .team-intro__grid > .split__aside { grid-area: aside; }
}
.team-intro .split__aside { padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .team-intro .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } }
@media (min-width: 1100px) { .team-intro .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } .team-intro .reason { flex-direction: column; gap: var(--space-3); } }
.duo-panel { margin: 0; }
.duo-panel__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 70% 15%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); box-shadow: var(--shadow-3); }
.duo-panel__mark { position: absolute; width: 70%; right: -14%; top: -6%; opacity: 0.16; }
.duo-panel__photo, .duo-panel__photo img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.duo-panel figcaption { margin-top: var(--space-3); font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 899.98px) { .duo-panel { max-width: 440px; } }

.container--wide { max-width: 1400px; }
.team-stage { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 50% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%); }
.team-stage__mark { position: absolute; width: min(760px, 70vw); left: 50%; top: 30%; transform: translateX(-50%); opacity: 0.07; pointer-events: none; }
.team-stage > .container { position: relative; }
.team-stage .section__title { color: #fff; }
.team-stage .section__head p { color: var(--navy-100); }
.team-stage__lineup { list-style: none; padding: 0; margin: var(--space-7) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.team-stage__item { display: flex; }
.stage-doc { flex: 1; display: flex; flex-direction: column; }
.stage-doc__photo { height: clamp(210px, 18vw, 260px); }
.stage-doc__photo picture, .stage-doc__photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.stage-doc__body { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--navy-950); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 0 0 var(--radius) var(--radius); }
.stage-doc__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; color: #fff; }
.stage-doc__name a { color: #fff; text-decoration: none; }
.stage-doc__name a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.stage-doc__role { font-size: 0.8125rem; color: var(--navy-200); }
.stage-doc__text { font-size: 0.9375rem; line-height: 1.55; color: var(--navy-100); }
.stage-doc__actions { display: grid; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.stage-doc__actions .btn { width: 100%; padding-inline: 0.75em; }
/* tablet: 2 then 3 cards per row, the last row centred (no sideways scrolling) */
@media (max-width: 1199.98px) {
  .team-stage__lineup { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6) var(--space-4); }
  .team-stage__item { flex: 0 0 calc((100% - var(--space-4)) / 2); }
}
@media (min-width: 1000px) and (max-width: 1199.98px) {
  .team-stage__item { flex-basis: calc((100% - 2 * var(--space-4)) / 3); }
}
/* phone: one card per doctor, photo and name side by side, then the text and the two buttons */
@media (max-width: 639.98px) {
  .team-stage__lineup { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
  .stage-doc {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "photo name" "photo role" "text text" "actions actions";
    gap: 0 var(--space-4); padding: var(--space-4); background: var(--navy-950); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius);
  }
  .stage-doc__photo { grid-area: photo; height: 112px; border-radius: var(--radius-sm); overflow: hidden; background: radial-gradient(110% 80% at 60% 20%, var(--navy-700), var(--navy-900) 70%); }
  .stage-doc__body { display: contents; }
  .stage-doc__name { grid-area: name; align-self: end; font-size: 1.25rem; }
  .stage-doc__role { grid-area: role; align-self: start; margin-top: var(--space-1); font-size: 0.875rem; }
  .stage-doc__text { grid-area: text; margin-top: var(--space-4); font-size: 0.9375rem; }
  .stage-doc__actions { grid-area: actions; grid-template-columns: 1fr 1fr; padding-top: var(--space-4); }
}

/* ---------------------------------------------------------------- butterfly watermark behind every hero
   Same placement as « Équipe médicale » (.hero-founders__mark): page headers, doctor and article headers,
   and the dark heroes of the home page (behind the text, the photos stay on top). */
.page-head, .doctor-head, .article-head { position: relative; isolation: isolate; overflow: hidden; }
.page-head::before, .doctor-head::before, .article-head::before,
.hero-slides::before, .hero-pair::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(640px, 50vw); aspect-ratio: 1280 / 1108; right: -3%; top: 50%; transform: translateY(-50%);
  background: url("/assets/img/papillon-filigrane.webp") center / contain no-repeat; opacity: 0.14;
}
.hero-slides::before, .hero-pair::before { z-index: 0; right: auto; left: 6%; width: min(620px, 46vw); opacity: 0.15; }
/* headers without a photo are shorter: the whole butterfly fits their height */
.page-head:not(.page-head--media)::before, .article-head::before { width: auto; height: min(112%, 520px); }
@media (max-width: 999.98px) {
  .page-head::before, .doctor-head::before, .article-head::before { width: 88vw; height: auto; right: -34%; top: 40%; }
}
@media (max-width: 899.98px) {
  .hero-slides::before, .hero-pair::before { left: auto; right: -28%; top: 62%; width: 92vw; }
}
@media print { .page-head::before, .doctor-head::before, .article-head::before { display: none; } }
