/* Site de Raibed Tahri · infirmier en santé mentale à Genève
   Direction « cabinet, lumière du soir » validée par Sofien le 18/10/2026.
   Aucune librairie : CSS natif, animations au scroll en CSS (animation-timeline),
   désactivées si le navigateur ne les gère pas ou si l'appareil demande moins de mouvement.
   Règle des formes : interactif = pilule, surfaces et images = 20 px (28 px pour les grandes photos). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivory: #F4EFE6;
  --paper: #FAF6EF;
  --linen: #EAE1D2;
  --ink: #1C1916;
  --ink-2: #463F38;
  --ink-3: #6B6157;
  --amber: #A86B2C;
  --amber-deep: #86531F;
  --amber-light: #DDA56B;
  --amber-soft: #EED9BC;
  --on-dark: #F4EFE6;
  --on-dark-2: #C9BEAF;
  --night: #141210;
  --line: rgb(28 25 22 / .12);
  --line-dark: rgb(244 239 230 / .14);
  --todo: #2E5BD8;
  --todo-dark: #9DB7FF;

  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(88px, 11vw, 152px);
  --hdr: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-deep); text-underline-offset: .2em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
h1, h2, .display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: -.022em;
  line-height: 1.06;
  color: inherit;
}
h2 { font-size: clamp(2.15rem, 4.3vw, 3.6rem); text-wrap: balance; }
h3 { margin: 0; font: 600 1.15rem/1.35 var(--sans); letter-spacing: -.005em; }
em { font-style: italic; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--amber-light); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 12px 18px; border-radius: var(--pill);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.sec-head { max-width: 46rem; }
.sec-head > p { margin-top: 22px; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.kicker {
  display: block;
  margin-bottom: 22px;
  font: 600 .8rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.dark .kicker { color: var(--amber-light); }
.caption { margin-top: 10px; font-size: .8rem; line-height: 1.4; color: var(--ink-3); }
.dark .caption { color: var(--on-dark-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 1.45em;
  border: 0;
  border-radius: var(--pill);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .3s var(--ease), background-color .25s ease, color .25s ease, box-shadow .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: #2E2822; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(28 25 22 / .55); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(28 25 22 / .55); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-primary { background: var(--amber-light); color: var(--ink); }
.dark .btn-primary:hover { background: #E8B47D; box-shadow: 0 14px 30px -14px rgb(221 165 107 / .55); }
.dark .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgb(244 239 230 / .45); }
.dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Préversion : marqueurs MANQUANT (retirés à la mise en ligne) ---------- */
.preview-banner {
  background: var(--todo);
  color: #fff;
  font: 500 .85rem/1.45 var(--sans);
  text-align: center;
  padding: 9px 16px;
}
.todo {
  outline: 1.5px dashed var(--todo);
  outline-offset: 2px;
  border-radius: 4px;
  background: rgb(46 91 216 / .07);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.todo::after {
  content: attr(data-todo);
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: var(--pill);
  background: var(--todo);
  color: #fff;
  font: 700 .62rem/1.1 var(--sans);
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: .3em;
  white-space: nowrap;
}
.todo-block {
  outline: 1.5px dashed var(--todo);
  outline-offset: 8px;
  border-radius: 14px;
}
.todo-block::before {
  content: "MANQUANT · " attr(data-todo);
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: var(--pill);
  background: var(--todo);
  color: #fff;
  font: 700 .7rem/1.3 var(--sans);
  letter-spacing: .02em;
}
.dark .todo { outline-color: var(--todo-dark); background: rgb(157 183 255 / .1); }
.dark .todo-block { outline-color: var(--todo-dark); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 239 230 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--ivory); }
}
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 22px; height: 30px; }
.brand-name { display: block; font: 500 1.16rem/1 var(--serif); letter-spacing: -.01em; }
.brand-role { display: block; margin-top: 4px; font: 500 .74rem/1.2 var(--sans); color: var(--ink-3); }
.nav { display: none; }
.nav a {
  padding: 10px 12px;
  border-radius: var(--pill);
  color: var(--ink-2);
  font: 500 .94rem/1 var(--sans);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { color: var(--ink); background: rgb(28 25 22 / .06); }
.hdr-cta { display: none; }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--amber);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.menu { position: static; }
.menu > summary {
  list-style: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: rgb(28 25 22 / .06); }
.menu .i-close { display: none; }
.menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - var(--hdr));
  overflow-y: auto;
  padding: 12px var(--gut) 28px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgb(28 25 22 / .35);
}
.menu-panel a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 500 1.5rem/1.2 var(--serif);
  text-decoration: none;
}
.menu-panel .btn { margin-top: 20px; width: 100%; }

@media (min-width: 1120px) {
  .nav { display: flex; gap: 2px; }
  .hdr-cta { display: inline-flex; min-height: 44px; padding-inline: 1.15em; font-size: .95rem; }
  .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vh, 64px) clamp(48px, 8vh, 96px); overflow: clip; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: inherit; }
.hero .kicker { font-family: var(--sans); letter-spacing: .14em; line-height: 1.5; }
.promise {
  display: block;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.promise .line { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.promise .line > span { display: block; }
.promise em { color: var(--amber); line-height: 1.1; }
.hero-sub { margin-top: 30px; font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.hero .btn-row { margin-top: 36px; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-disc {
  position: absolute;
  top: -7%; right: -16%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F4E2C6 0%, #EBCDA3 58%, #E3BF8E 100%);
  translate: calc(var(--mx, 0) * 26px) calc(var(--my, 0) * 26px);
  transition: translate .8s var(--ease);
}
.hero-ring {
  position: absolute;
  bottom: -9%; left: -12%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgb(168 107 44 / .38);
  translate: calc(var(--mx, 0) * 40px) calc(var(--my, 0) * 40px);
  transition: translate .8s var(--ease);
}
.hero-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--linen);
  box-shadow: 0 50px 90px -50px rgb(70 42 16 / .55);
  translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -12px);
  transition: translate .8s var(--ease);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .hero-visual { width: min(82%, 380px); margin-top: 8px; }
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.12fr .88fr;
    gap: clamp(40px, 6vw, 96px);
    min-height: min(calc(100dvh - var(--hdr) - 150px), 760px);
  }
}

/* ---------- Choix du parcours ---------- */
.paths-wrap { padding-bottom: clamp(24px, 4vw, 48px); }
.paths-title { font: 400 italic 1.35rem/1.2 var(--serif); color: var(--ink-2); margin-bottom: 18px; }
.paths { display: grid; gap: 12px; }
.path {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .3s ease, transform .4s var(--ease);
}
.path::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--amber-soft);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.path:hover::before, .path:focus-visible::before { transform: none; }
.path:hover { border-color: transparent; }
.path-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.round {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--amber-deep);
}
.round .ic { width: 22px; height: 22px; }
.path-arrow { color: var(--ink-3); transition: transform .45s var(--ease), color .3s ease; }
.path:hover .path-arrow { transform: translateX(6px); color: var(--ink); }
.path-label { font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.015em; }
.path-text { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Approche ---------- */
.approche-grid { display: grid; gap: 52px; }
.approche-aside figure { margin-top: 40px; }
.approche-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
.pillars { display: grid; }
.pillar { padding-block: 40px; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar-word { font: 500 clamp(3.1rem, 6.4vw, 5.6rem)/1 var(--serif); letter-spacing: -.035em; }
.pillar-sub { margin-top: 12px; font: 600 1rem/1.4 var(--sans); color: var(--amber-deep); }
.ticks { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic { margin-top: .2em; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li {
  padding: 11px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 500;
  line-height: 1.3;
  transition: background-color .3s ease, transform .4s var(--ease), border-color .3s ease;
}
.chips li:hover { background: var(--amber-soft); border-color: transparent; transform: translateY(-2px); }
@media (min-width: 960px) {
  .approche-grid { grid-template-columns: 5fr 7fr; gap: clamp(56px, 7vw, 120px); align-items: start; }
  .approche-aside { position: sticky; top: calc(var(--hdr) + 40px); }
}
@media (max-width: 959px) {
  .approche-aside img { aspect-ratio: 16 / 11; object-position: 50% 35%; }
}

/* ---------- Citation ---------- */
.quote { background: var(--linen); }
.quote p {
  max-width: 25ch;
  font: 400 italic clamp(1.9rem, 4.3vw, 3.7rem)/1.2 var(--serif);
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.quote footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 40px; font-weight: 600; }
.quote footer img { width: 20px; height: 27px; }
.quote footer span { color: var(--ink-3); font-weight: 400; }

/* ---------- Soins (grille) ---------- */
.bento { display: grid; gap: 16px; margin-top: 56px; }
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -32px rgb(70 42 16 / .4); }
.ic-badge {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  transition: transform .5s var(--ease);
}
.ic-badge .ic { width: 24px; height: 24px; }
.card:hover .ic-badge { transform: rotate(-8deg) scale(1.06); }
.card h3 { font-size: 1.25rem; }
.dots { display: grid; gap: 8px; margin-top: 14px; padding: 0; list-style: none; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before {
  content: "";
  position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}
.card--tint { background: var(--amber-soft); border-color: transparent; }
.card--tint .ic-badge { background: var(--paper); }
.card--coord { display: grid; gap: 24px; overflow: hidden; }
.card--coord figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 14px; }
.card--cuisine {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
}
.card--cuisine figure { position: relative; overflow: hidden; }
.card--cuisine figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 28%; transition: transform 1.2s var(--ease); }
.card--cuisine:hover figure img { transform: scale(1.05); }
.card--cuisine .caption { margin: 0; padding: 10px 28px 0; }
.cuisine-body { display: flex; flex-direction: column; gap: 0; padding: 18px 28px 30px; flex: 1; }
.signature { font: 400 italic 1.05rem/1.3 var(--serif); color: var(--amber-light); margin-bottom: 10px; }
.card--cuisine h3 { font: 500 1.9rem/1.1 var(--serif); letter-spacing: -.015em; }
.cuisine-lead { margin-top: 14px; color: var(--on-dark); font-size: 1rem; line-height: 1.55; }
.card--cuisine .dots { color: var(--on-dark-2); margin-top: 18px; }
.card--cuisine .dots li::before { background: var(--amber-light); }
.cuisine-note { margin-top: auto; padding-top: 22px; font-size: .92rem; color: var(--on-dark-2); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--coord { grid-column: 1 / -1; grid-template-columns: 1.1fr .9fr; align-items: center; }
  .card--cuisine { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .card--cuisine figure img { height: 100%; aspect-ratio: auto; min-height: 320px; }
}
@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "eval soins cuisine"
      "crise psycho cuisine"
      "coord coord cuisine";
  }
  .a-eval { grid-area: eval; }
  .a-soins { grid-area: soins; }
  .a-crise { grid-area: crise; }
  .a-psycho { grid-area: psycho; }
  .card--coord { grid-column: auto; grid-area: coord; }
  .card--cuisine { grid-column: auto; grid-area: cuisine; display: flex; }
  .card--cuisine figure img { aspect-ratio: 4 / 4.4; height: auto; min-height: 0; }
}

/* ---------- Déroulement ---------- */
.steps { position: relative; display: grid; gap: 40px; margin-top: 64px; padding: 0; list-style: none; view-timeline: --steps block; }
.step { position: relative; padding-left: 70px; }
.step-node {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1.5px var(--amber);
  color: var(--amber-deep);
  font: 500 1.3rem/1 var(--serif);
  z-index: 1;
}
.step h3 { font: 500 1.75rem/1.15 var(--serif); letter-spacing: -.015em; padding-top: 8px; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 36ch; }
.seg { display: none; position: absolute; color: var(--amber); overflow: visible; pointer-events: none; }
.seg path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px; top: 56px; bottom: -36px;
  width: 1.6px;
  background: var(--amber);
  transform-origin: 50% 0;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .step { padding-left: 0; padding-top: 74px; }
  .step:not(:last-child)::before { display: none; }
  .seg { display: block; left: 56px; top: 0; width: calc(100% + 48px - 64px); height: 48px; }
}
.wide-photo { margin-top: 72px; }
.wide-photo .frame { overflow: hidden; border-radius: var(--r-lg); background: var(--linen); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 759px) { .wide-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Votre infirmier ---------- */
.bio-grid { display: grid; gap: 48px; }
.bio-photo .frame { overflow: hidden; border-radius: var(--r-lg); background: var(--linen); }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.bio-text h2 { margin-bottom: 30px; }
.bio-text p + p, .bio-text p + .todo-block, .bio-text .todo-block + p { margin-top: 18px; }
.bio-text > p { color: var(--ink-2); max-width: 60ch; }
.bio-text > p:first-of-type { color: var(--ink); font-size: 1.2rem; line-height: 1.55; }
.skills { display: grid; gap: 16px; margin-top: 44px; }
.panel { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.panel--tint { background: var(--amber-soft); border-color: transparent; }
.panel h3 { margin-bottom: 4px; }
.panel p { margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.timeline { position: relative; display: grid; margin-top: 52px; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1.5px;
  background: var(--amber);
  transform-origin: 0 50%;
}
.timeline li { padding: 22px 20px 0 0; }
.timeline .when { display: block; font: 500 1.45rem/1.1 var(--serif); letter-spacing: -.01em; }
.timeline .where { display: block; margin-top: 6px; color: var(--ink-2); font-size: .98rem; }
@media (min-width: 700px) {
  .skills { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .bio-grid { grid-template-columns: 5fr 7fr; gap: clamp(56px, 7vw, 112px); align-items: start; }
  .bio-photo { position: sticky; top: calc(var(--hdr) + 40px); }
}

/* ---------- Sections sombres ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead, .dark .muted { color: var(--on-dark-2); }
.dark a { color: var(--amber-light); }

/* Médecins */
.medecins { position: relative; overflow: clip; }
.medecins .watermark {
  position: absolute;
  right: -70px; bottom: -150px;
  width: clamp(200px, 26vw, 360px);
  opacity: .045;
  pointer-events: none;
}
.med-grid { display: grid; margin-top: 60px; border-top: 1px solid var(--line-dark); }
.med-col { padding: 34px 0; border-bottom: 1px solid var(--line-dark); }
.med-col:last-child { border-bottom: 0; }
.med-col .ic { width: 30px; height: 30px; color: var(--amber-light); margin-bottom: 18px; }
.med-col h3 { font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.01em; }
.med-col p { margin-top: 12px; color: var(--on-dark-2); max-width: 38ch; }
.medecins .btn-row { margin-top: 44px; }
@media (min-width: 900px) {
  .med-grid { grid-template-columns: repeat(3, 1fr); }
  .med-col { padding: 40px 36px 8px 0; border-bottom: 0; }
  .med-col + .med-col { padding-left: 36px; border-left: 1px solid var(--line-dark); }
}

/* ---------- Remboursement ---------- */
.tarifs { display: grid; margin-top: 8px; }
.tarif { padding: 28px 0; border-top: 1px solid var(--line); }
.tarif-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tarif-amount .cur { font: 600 .95rem/1 var(--sans); color: var(--ink-3); }
.tarif-amount .num { font: 500 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tarif-amount .per { font-size: .95rem; color: var(--ink-3); }
.tarif h3 { margin-top: 14px; }
.tarif p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; max-width: 34ch; }
.charge { display: grid; gap: 28px; margin-top: 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--linen); }
.charge h3 { font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.01em; }
.charge .ticks { margin-top: 18px; }
.charge .cond { color: var(--ink-2); font-size: .98rem; }
.charge .cond strong { color: var(--ink); }
.remb-sub { margin-top: 48px; }
@media (min-width: 900px) {
  .tarifs { grid-template-columns: repeat(3, 1fr); }
  .tarif { padding: 32px 32px 8px 0; }
  .tarif + .tarif { padding-left: 32px; border-left: 1px solid var(--line); }
  .charge { grid-template-columns: 1.2fr .8fr; align-items: start; }
}

/* ---------- Outils ---------- */
.tools { margin-top: 52px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.tool { display: grid; gap: 14px; padding: 34px 0; border-top: 1px solid var(--line); }
.tool-acr {
  font: 500 clamp(3.2rem, 6.6vw, 5.4rem)/.95 var(--serif);
  letter-spacing: -.04em;
  transition: color .35s ease, transform .6s var(--ease);
}
.tool:hover .tool-acr { color: var(--amber); transform: translateX(8px); }
.tool h3 { font-size: 1.3rem; }
.tool p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.tool-link {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: none;
}
.tool-link span { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.tool-link .ic { transition: transform .4s var(--ease); }
.tool-link:hover .ic { transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .tool { grid-template-columns: minmax(220px, 300px) 1fr auto; align-items: center; gap: 40px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; }
.big-phone {
  display: inline-block;
  margin-top: 36px;
  color: var(--on-dark);
  font: 500 clamp(2.3rem, 6vw, 4.6rem)/1 var(--serif);
  letter-spacing: -.025em;
  text-decoration: none;
  transition: color .3s ease;
}
.dark a.big-phone { color: var(--on-dark); }
.dark a.big-phone:hover { color: var(--amber-light); }
.contact .btn-row { margin-top: 28px; }
.info { display: grid; gap: 22px; margin-top: 48px; }
.info div { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; align-items: start; }
.info .ic { grid-row: span 2; margin-top: 2px; width: 22px; height: 22px; color: var(--amber-light); }
.info dt { font-weight: 600; color: var(--on-dark); }
.info dd { color: var(--on-dark-2); }
.note-wa { margin-top: 32px; max-width: 52ch; font-size: .95rem; color: var(--on-dark-2); }
.urgence { align-self: start; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--r); background: var(--ivory); color: var(--ink); }
.urgence-head { display: flex; gap: 12px; align-items: center; color: #9B2C1F; }
.urgence-head .ic { width: 28px; height: 28px; }
.urgence-head h3 { font: 500 1.6rem/1.15 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.urgence > p { margin-top: 14px; color: var(--ink-2); }
.urg-list { display: grid; gap: 4px; margin-top: 22px; padding: 0; list-style: none; }
.urg-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.urg-list .what { color: var(--ink-2); line-height: 1.35; }
.urg-list .what strong { display: block; color: var(--ink); }
.dark .urg-list a, .urg-list a {
  flex: none;
  min-width: 64px; min-height: 48px;
  display: inline-grid; place-items: center;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--ivory);
  font: 500 1.35rem/1 var(--serif);
  text-decoration: none;
}
.urg-list a:hover { background: #9B2C1F; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: clamp(56px, 7vw, 112px); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: clamp(64px, 9vw, 112px) 0 40px; overflow: clip; }
.footer-word { color: var(--on-dark); font: 500 clamp(3rem, 9.4vw, 8.6rem)/.98 var(--serif); letter-spacing: -.045em; }
.footer-word em { display: block; color: var(--amber-light); padding-bottom: .08em; }
.footer-row { display: grid; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.footer-row a { color: var(--on-dark); text-decoration: none; }
.footer-row a:hover { color: var(--amber-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
@media (min-width: 900px) { .footer-row { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; } }

/* ---------- Barre d'appel mobile ---------- */
.callbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px;
  border-radius: var(--pill);
  background: rgb(28 25 22 / .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55);
}
.callbar .btn { min-height: 48px; padding: 0 1em; }
.callbar .btn-primary { background: var(--amber-light); color: var(--ink); }
.callbar .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgb(244 239 230 / .35); }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(40px + 84px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- Pages juridiques ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 16ch; }
.page-hero .lead { margin-top: 26px; }
.prose { padding-bottom: var(--sec); }
.prose-grid { display: grid; gap: 40px; }
.prose-toc { display: none; }
.prose-body { max-width: 46rem; }
.prose-body section + section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 22px; }
.prose-body h3 { margin-top: 30px; margin-bottom: 8px; }
.prose-body p, .prose-body li { color: var(--ink-2); }
.prose-body p + p { margin-top: 14px; }
.prose-body ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.facts { display: grid; gap: 14px; margin-top: 8px; }
.facts div { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-2); }
.rights { display: grid; gap: 14px; margin-top: 12px; }
.right { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.right .ic { width: 26px; height: 26px; color: var(--amber-deep); margin-bottom: 12px; }
.right h3 { margin-top: 0; }
.right p { margin-top: 8px; font-size: 1rem; }
.callout { margin-top: 18px; padding: 22px 24px; border-radius: var(--r); background: var(--amber-soft); }
.callout p { color: var(--ink); }
.updated { margin-top: 56px; font-size: .9rem; color: var(--ink-3); }
@media (min-width: 700px) { .rights { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .prose-grid { grid-template-columns: 240px 1fr; gap: 80px; }
  .prose-toc { display: block; position: sticky; top: calc(var(--hdr) + 40px); align-self: start; }
  .prose-toc p { font-weight: 600; margin-bottom: 12px; }
  .prose-toc ul { padding: 0; list-style: none; display: grid; gap: 4px; }
  .prose-toc a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); padding-left: 14px; }
  .prose-toc a:hover { color: var(--ink); border-left-color: var(--amber); }
}

/* =========================================================
   Mouvement. Tout est ici, et tout se coupe si l'appareil
   demande moins d'animation.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-disc, .hero-ring, .hero-photo { translate: none !important; transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée du hero, au chargement */
  .h-in { animation: h-in 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
  .promise .line > span { animation: h-rise 1.15s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 160ms); }
  .hero-photo { animation: curtain 1.4s var(--ease) .25s both; }
  .hero-photo img { animation: settle 2s var(--ease) .25s both; }
  .hero-disc { animation: pop 1.6s var(--ease) .1s both; }
  .hero-ring { animation: pop 1.6s var(--ease) .45s both; }

  @keyframes h-in { from { opacity: 0; transform: translateY(22px); } }
  @keyframes h-rise { from { transform: translateY(108%); } }
  @keyframes curtain {
    from { clip-path: inset(100% 0 0 0 round var(--r-lg)); }
    to { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  }
  @keyframes settle { from { transform: scale(1.18); } }
  @keyframes pop { from { opacity: 0; transform: scale(.7); } }

  /* Animations liées au scroll (Chrome, Edge, Safari 26 et plus) */
  @supports (animation-timeline: view()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }

    .site-header { animation: hdr-shade linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
    @keyframes hdr-shade { to { border-bottom-color: var(--line); background: rgb(244 239 230 / .94); } }

    /* Apparition douce des blocs */
    .rv { animation: rv var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
    .rv-2 { animation-range: entry 8% entry 75%; }
    .rv-3 { animation-range: entry 16% entry 85%; }
    @keyframes rv { from { opacity: 0; transform: translateY(40px); } }

    /* Le portrait remonte moins vite que la page : effet de profondeur */
    .hero-visual { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes drift { to { transform: translateY(-14%); } }
    .hero-copy { animation: fade-up linear both; animation-timeline: view(); animation-range: exit 10% exit 90%; }
    @keyframes fade-up { to { opacity: .25; transform: translateY(-6%); } }

    /* Approche : chaque mot s'allume quand il passe au centre de l'écran */
    .pillar-word { animation: light-up linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes light-up { 0% { opacity: .22; } 35%, 70% { opacity: 1; } 100% { opacity: .5; } }

    /* Citation : le texte se remplit à la lecture */
    .fill {
      color: transparent;
      background: linear-gradient(90deg, var(--ink) 50%, rgb(28 25 22 / .2) 50%);
      background-size: 200% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      animation: fill linear both;
      animation-timeline: view();
      animation-range: cover 18% cover 58%;
    }
    @keyframes fill { to { background-position: 0 0; } }

    /* Déroulement : le fil se dessine d'une étape à l'autre */
    .seg path { stroke-dashoffset: 1; animation: draw linear both; animation-timeline: --steps; }
    .step:nth-child(1) .seg path { animation-range: entry 55% cover 48%; }
    .step:nth-child(2) .seg path { animation-range: cover 40% cover 62%; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    .step:not(:last-child)::before { animation: draw-y linear both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
    @keyframes draw-y { from { transform: scaleY(0); } }
    .step-node { animation: node linear both; animation-timeline: view(); animation-range: entry 30% entry 90%; }
    @keyframes node { from { transform: scale(.4); opacity: 0; } }

    /* Grandes photos : léger zoom arrière en entrant */
    .zoom img { animation: zoom-out linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes zoom-out { from { transform: scale(1.16); } }

    /* Parcours : la ligne se trace */
    .timeline::before { animation: trace linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    @keyframes trace { from { transform: scaleX(0); } }

    /* Barre d'appel mobile : arrive après le hero */
    .callbar { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 120px 320px; }
    @keyframes bar-in { from { opacity: 0; transform: translateY(24px); pointer-events: none; } }

    /* Signature de pied de page */
    .footer-word { animation: word-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes word-in { from { letter-spacing: .02em; opacity: .2; } }
  }
}
