/* ==========================================================================
   ANIM — Association Nîmoise d'Imagerie Médicale
   Feuille de style principale
   Architecture : tokens → base → layout → composants → utilitaires
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Couleurs — dominante bleu médical, accent cyan lumineux */
  --c-ink:            #0a1628;   /* texte principal / fonds sombres */
  --c-ink-2:          #12233d;
  --c-ink-3:          #1b3255;
  --c-slate:          #4a5c78;   /* texte secondaire */
  --c-slate-light:    #5d6f8c;   /* contraste 5.1:1 sur blanc — conforme AA */
  --c-line:           #e2e8f2;
  --c-bg:             #ffffff;
  --c-bg-soft:        #f5f8fc;
  --c-bg-tint:        #eef4fb;

  --c-primary:        #0d63c4;   /* bleu ANIM */
  --c-primary-dark:   #094a96;
  --c-primary-light:  #3d8ce8;
  --c-accent:         #14b8c4;   /* cyan « écran d'imagerie » */
  --c-accent-light:   #4fd8e0;
  --c-accent-glow:    rgba(20, 184, 196, .35);

  --c-success:        #0f9d76;
  --c-warn-bg:        #fff8e6;
  --c-warn-border:    #f0c14b;
  --c-warn-ink:       #6b4e00;

  /* Verre (glassmorphism) sur fond sombre */
  --glass-bg:         rgba(255, 255, 255, .07);
  --glass-bg-strong:  rgba(255, 255, 255, .12);
  --glass-border:     rgba(255, 255, 255, .16);
  --glass-blur:       blur(18px) saturate(140%);

  /* Typographie */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-xs:   .78rem;
  --t-sm:   .875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.375rem;
  --t-2xl:  1.75rem;
  --t-3xl:  2.25rem;
  --t-4xl:  3rem;
  --t-5xl:  3.75rem;

  /* Espacements */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6.5rem; --s-12: 8rem;

  /* Rayons & ombres */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-full: 999px;
  --sh-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 2px 8px rgba(10, 22, 40, .04);
  --sh-md: 0 4px 12px rgba(10, 22, 40, .07), 0 12px 32px rgba(10, 22, 40, .06);
  --sh-lg: 0 8px 24px rgba(10, 22, 40, .09), 0 24px 64px rgba(10, 22, 40, .09);
  --sh-glow: 0 0 0 1px var(--c-accent-glow), 0 8px 32px var(--c-accent-glow);

  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 88px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------------- 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, var(--t-5xl)); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.6vw, var(--t-3xl)); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Icônes en ligne — garde-fou : un <svg> sans dimension explicite prend
   sinon la taille par défaut de 300x150 px. Les composants qui définissent
   leur propre taille (.pole-card__icon svg, etc.) restent prioritaires. */
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn svg { width: 1.05em; height: 1.05em; }
.arrow svg { width: 1em; height: 1em; }

/* Titre précédé d'une icône discrète, alignée sur la ligne de texte */
.check-ico { color: var(--c-success); display: inline-flex; flex-shrink: 0; }
.check-ico svg { width: 1.15em; height: 1.15em; stroke-width: 2.4; }

.doc-item { display: flex; gap: var(--s-3); align-items: flex-start; }

.acc-ico { color: var(--c-primary); display: inline-flex; }
.acc-ico svg { width: 1.15em; height: 1.15em; }

.ttl-ico { display: flex; align-items: center; gap: .55rem; }
.ttl-ico svg { width: 1.05em; height: 1.05em; color: var(--c-primary); stroke-width: 2; }
.section--dark .ttl-ico svg, .action-tile .ttl-ico svg { color: var(--c-accent-light); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

/* Accessibilité — focus visible sur tous les éléments interactifs */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: #fff;
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------- 3. LAYOUT */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--s-11)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-9)); }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: var(--c-bg-tint); }

.section--dark {
  background: linear-gradient(165deg, var(--c-ink) 0%, var(--c-ink-2) 55%, var(--c-ink-3) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }

.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
}
.section--dark .eyebrow { color: var(--c-accent-light); }

.lede { font-size: var(--t-lg); color: var(--c-slate); line-height: 1.7; }
.section--dark .lede { color: rgba(255,255,255,.78); }

/* Grilles */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ----------------------------------------------------------- 4. COMPOSANTS */

/* 4.1 — Boutons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .95rem 1.8rem;
  font-family: inherit; font-size: var(--t-base); font-weight: 700; line-height: 1.2;
  letter-spacing: -.005em;
  border: 2px solid transparent; border-radius: var(--r-full);
  cursor: pointer; text-align: center;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; box-shadow: 0 6px 18px -4px var(--c-primary);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px -6px var(--c-primary); }

.btn--accent {
  background: linear-gradient(135deg, var(--c-accent-light) 0%, var(--c-accent) 100%);
  color: var(--c-ink); box-shadow: 0 6px 20px -4px var(--c-accent);
}
.btn--accent:hover { color: var(--c-ink); box-shadow: 0 12px 34px -6px var(--c-accent); }

.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-bg-tint); box-shadow: var(--sh-sm); }

.btn--glass {
  background: var(--glass-bg-strong); color: #fff;
  border-color: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn--glass:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.34); }

.btn--sm { padding: .68rem 1.4rem; font-size: .95rem; border-width: 1.5px; }
.btn--lg { padding: 1.15rem 2.4rem; font-size: var(--t-lg); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 4.2 — En-tête / navigation ------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background:
    linear-gradient(180deg, var(--c-bg-tint) 0%, rgba(255,255,255,.92) 62%);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
/* Liseré dégradé en haut du bandeau */
.header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg,
    var(--c-primary) 0%, var(--c-primary-light) 28%,
    var(--c-accent) 62%, var(--c-accent-light) 100%);
}
.header.is-scrolled { box-shadow: var(--sh-md); background: rgba(255,255,255,.96); }

.header__inner {
  height: 100%; display: flex; align-items: center; gap: var(--s-5);
  max-width: 1560px; margin-inline: auto; padding-inline: var(--s-5);
  min-width: 0;
}
.brand, .header__cta { flex-shrink: 0; }
/* .nav ne doit jamais être compressé sous sa taille de contenu : ses liens sont en
   white-space:nowrap et ne rétrécissent pas eux-mêmes — sans ce flex-shrink:0, le
   flex-basis de .nav peut être réduit en dessous du besoin réel, et les derniers
   liens débordent visuellement par-dessus la recherche au lieu de rester alignés. */
.nav { flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }
.brand__logo {
  height: 52px; width: auto; display: block;
  transition: transform .3s var(--ease-out);
}
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__divider {
  width: 2px; height: 34px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 800; font-size: var(--t-lg); color: var(--c-ink); letter-spacing: -.02em; }
.brand__sub {
  font-size: .79rem; font-weight: 700; color: var(--c-slate);
  letter-spacing: .045em; text-transform: uppercase;
}
.brand__sub:first-child { color: var(--c-primary); }

/* --- Signature logo dans le hero --- */
.hero__logo { margin-bottom: var(--s-6); }
.hero__logo img {
  height: clamp(52px, 8vw, 82px); width: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.28));
}
.hero__logo-sub {
  margin: var(--s-3) 0 0;
  font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* Filigrane du monogramme, en fond de hero */
.hero__watermark {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: min(46%, 560px); opacity: .05; pointer-events: none;
  filter: grayscale(1) brightness(3);
}

/* --- Logo du pied de page --- */
.footer__logo { height: 52px; width: auto; margin-bottom: var(--s-4); display: block; }

/* --- Bandeau logo des pages intérieures --- */
.page-logo { height: clamp(38px, 5vw, 52px); width: auto; margin-bottom: var(--s-5); opacity: .95; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: .62rem .6rem;
  font-size: 1rem; font-weight: 700; letter-spacing: -.014em; color: var(--c-ink);
  border-radius: var(--r-full); position: relative; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--c-primary); }
.nav__link[aria-current="page"] { color: var(--c-primary-dark); }
/* Point coloré sous la page courante */
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent);
}

.header__cta { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--c-line);
  border-radius: var(--r-md); cursor: pointer; color: var(--c-ink);
}
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .28s var(--ease-out), top .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* 4.3 — Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #071120 0%, var(--c-ink) 42%, var(--c-ink-3) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
/* halos lumineux façon écran d'imagerie */
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.hero__bg::before {
  width: 620px; height: 620px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(20,184,196,.30), transparent 68%);
  animation: float-slow 22s ease-in-out infinite;
}
.hero__bg::after {
  width: 540px; height: 540px; bottom: -240px; left: -140px;
  background: radial-gradient(circle, rgba(13,99,196,.34), transparent 68%);
  animation: float-slow 26s ease-in-out infinite reverse;
}
/* trame technique discrète */
.hero__grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 65% at 50% 35%, #000 25%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .45rem 1rem; margin-bottom: var(--s-5);
  font-size: var(--t-sm); font-weight: 600; color: rgba(255,255,255,.9);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent-light);
  box-shadow: 0 0 0 0 var(--c-accent-glow);
  animation: pulse-dot 2.6s ease-out infinite;
}
.hero__title { max-width: 15ch; margin-bottom: var(--s-5); }
.hero__title .accent {
  background: linear-gradient(120deg, var(--c-accent-light), var(--c-primary-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.05rem, 2vw, var(--t-xl)); color: rgba(255,255,255,.8); max-width: 56ch; margin-bottom: var(--s-7); }
.hero__actions { margin-bottom: var(--s-9); }

/* 4.4 — Cartes « réponses » (les 4 questions clés) ---------------------- */
.answers { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.answer-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  background: var(--glass-bg); border: 1.5px solid var(--glass-border);
  border-radius: var(--r-lg); color: #fff;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .3s var(--ease-out), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.answer-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c-accent-light), var(--c-primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.answer-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.16), transparent 42%);
}
.answer-card:hover { 
  transform: translateY(-7px);
  background: var(--glass-bg-strong);
  border-color: var(--c-accent-light);
  box-shadow: 0 22px 52px rgba(0,0,0,.36);
}
.answer-card:hover::before { transform: scaleX(1); }
.answer-card__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  border: 0; color: #fff; flex-shrink: 0;
  box-shadow: 0 8px 22px -6px var(--c-accent);
  transition: transform .3s var(--ease-out);
}
.answer-card:hover .answer-card__icon { transform: scale(1.08) rotate(-5deg); }
.answer-card__icon svg { width: 27px; height: 27px; stroke-width: 2; }
.answer-card h2, .answer-card h3 { font-size: var(--t-xl); margin: 0; color: #fff; font-weight: 800; }
.answer-card p { font-size: var(--t-sm); color: rgba(255,255,255,.76); margin: 0; flex-grow: 1; }
.answer-card__link {
  font-size: var(--t-sm); font-weight: 700; color: var(--c-accent-light);
  display: inline-flex; align-items: center; gap: .4rem;
}
.answer-card:hover .answer-card__link { color: #fff; }
.answer-card__link .arrow { transition: transform .25s var(--ease-out); }
.answer-card:hover .answer-card__link .arrow { transform: translateX(6px); }

/* 4.5 — Statistiques ---------------------------------------------------- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  position: relative; padding: var(--s-6) var(--s-5); text-align: center;
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s var(--ease-out);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--c-primary-light); }
.stat:hover::before { transform: scaleX(1); }
.stat__value {
  font-size: clamp(2.4rem, 5.4vw, 3.4rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; margin-bottom: var(--s-3);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-weight: 800; font-size: var(--t-lg); color: var(--c-ink); letter-spacing: -.015em; }
.stat__note  { font-size: var(--t-sm); color: var(--c-slate); }

/* 4.6 — Carte générique ------------------------------------------------- */
.card {
  position: relative;
  background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: var(--c-primary-light); }
.card:hover::before { transform: scaleX(1); }
.card__body { padding: var(--s-5); }
.card__title { margin-bottom: var(--s-2); }

/* 4.7 — Carte centre ---------------------------------------------------- */
.centre-card { display: flex; flex-direction: column; height: 100%; }
.centre-card--feature { grid-column: 1 / -1; }

.centre-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg-tint); }
.centre-card--feature .centre-card__media { aspect-ratio: 21 / 9; }
.centre-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.centre-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.34), transparent 42%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.centre-card:hover .centre-card__media img { transform: scale(1.07); }
.centre-card:hover .centre-card__media::after { opacity: 1; }

.centre-card__flag {
  position: absolute; top: var(--s-4); left: var(--s-4); z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; font-size: var(--t-xs); font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-ink); background: rgba(255,255,255,.94);
  border-radius: var(--r-full); box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.centre-card__flag svg { width: 15px; height: 15px; stroke-width: 2; }
.centre-card__flag--vitrine {
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  box-shadow: 0 6px 20px -4px var(--c-accent);
}

.centre-card__body { padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex-grow: 1; }
.centre-card__type {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-primary);
}
.centre-card__type::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
}
.centre-card__name { margin: 0; font-size: clamp(1.35rem, 2.4vw, var(--t-2xl)); font-weight: 800; }
.centre-card--feature .centre-card__name { font-size: clamp(1.6rem, 3.2vw, var(--t-3xl)); }
.centre-card__meta { display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--t-sm); color: var(--c-slate); }
.centre-card__meta-row { display: flex; align-items: flex-start; gap: var(--s-3); font-weight: 500; }
.centre-card__meta-row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-primary); stroke-width: 2; }
.centre-card__actions { margin-top: auto; padding-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 4.8 — Carte pôle / examen -------------------------------------------- */
.pole-card { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6) var(--s-5); height: 100%; }
.pole-card__icon {
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: var(--r-md);
  background: var(--c-bg-tint);
  color: var(--c-primary); flex-shrink: 0;
  transition: transform .35s var(--ease-out), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.pole-card__icon svg { width: 31px; height: 31px; stroke-width: 1.9; }
.pole-card:hover .pole-card__icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff;
  box-shadow: 0 10px 26px -8px var(--c-primary);
}
.pole-card__name { margin: 0; font-size: var(--t-xl); font-weight: 800; letter-spacing: -.025em; }
.pole-card__accroche { font-size: var(--t-sm); color: var(--c-slate); margin: 0; flex-grow: 1; line-height: 1.6; }
.pole-card__count {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  padding: .3rem .85rem; border-radius: var(--r-full);
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .03em;
  color: var(--c-primary-dark); background: var(--c-bg-tint);
  transition: transform .25s var(--ease-out), background .25s var(--ease), color .25s var(--ease);
}
.pole-card:hover .pole-card__count { background: var(--c-primary); color: #fff; transform: translateX(4px); }

/* 4.9 — Accordéon (examens & FAQ) -------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: var(--s-3); }

.acc-item {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc-item:hover { border-color: #c9d8ec; }
.acc-item.is-open { border-color: var(--c-primary-light); box-shadow: var(--sh-sm); }

.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); text-align: left;
  font-family: inherit; font-size: var(--t-base); font-weight: 600; color: var(--c-ink);
  background: transparent; border: 0; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.acc-trigger:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.acc-trigger__text { flex-grow: 1; }
.acc-trigger__icon {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-bg-tint); color: var(--c-primary);
  transition: transform .32s var(--ease-out), background .25s var(--ease), color .25s var(--ease);
}
.acc-trigger__icon svg { width: 14px; height: 14px; }
.acc-item.is-open .acc-trigger__icon { transform: rotate(180deg); background: var(--c-primary); color: #fff; }

.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease-out);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { overflow: hidden; }
.acc-panel__content { padding: 0 var(--s-5) var(--s-5); color: var(--c-slate); }
.acc-panel__content > *:first-child { margin-top: 0; }
.acc-panel__content strong { color: var(--c-ink); }

/* Liste d'examens dans l'accordéon */
.exam-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.exam-list li {
  margin: 0; padding-left: var(--s-5); position: relative;
  border-left: 2px solid var(--c-line);
}
.exam-list li::before {
  content: ""; position: absolute; left: -5px; top: .55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 3px rgba(20,184,196,.15);
}
.exam-list__name { display: block; font-weight: 700; color: var(--c-ink); margin-bottom: 2px; }
.exam-list__desc { display: block; font-size: var(--t-sm); color: var(--c-slate); line-height: 1.6; }

/* 4.10 — Fiche radiologue ---------------------------------------------- */
.radio-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.radio-card { display: flex; flex-direction: column; height: 100%; }
.radio-card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-bg-tint); }
.radio-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.radio-card:hover .radio-card__media img { transform: scale(1.05); }
.radio-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.55) 0%, transparent 45%);
}
.radio-card__name {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  z-index: 1; color: #fff; margin: 0; font-size: var(--t-lg); line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.radio-card__name .titre { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.radio-card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex-grow: 1; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.tags li { margin: 0; }
.tag {
  display: inline-block; padding: .25rem .7rem;
  font-size: var(--t-xs); font-weight: 600; line-height: 1.5;
  color: var(--c-primary-dark); background: var(--c-bg-tint);
  border: 1px solid #d8e5f5; border-radius: var(--r-full);
}
.tag--accent { color: #0a6b73; background: rgba(20,184,196,.1); border-color: rgba(20,184,196,.28); }
.tag--muted { color: var(--c-slate); background: var(--c-bg-soft); border-color: var(--c-line); }

.radio-card__centres { font-size: var(--t-xs); color: var(--c-slate-light); margin-top: auto; padding-top: var(--s-2); border-top: 1px dashed var(--c-line); }

.radio-card__parcours { margin: 0; padding: 0; list-style: none; font-size: var(--t-sm); color: var(--c-slate); }
.radio-card__parcours li { position: relative; padding-left: var(--s-4); margin-bottom: var(--s-1); }
.radio-card__parcours li::before { content: "—"; position: absolute; left: 0; color: var(--c-slate-light); }

/* 4.11 — Bandeau RDV / résultats --------------------------------------- */
.action-band { position: relative; overflow: hidden; }
.action-band__grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); position: relative; z-index: 1; }

.action-tile {
  padding: var(--s-6); border-radius: var(--r-xl);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease);
}
.action-tile:hover { transform: translateY(-4px); border-color: rgba(79,216,224,.4); }
.action-tile h2, .action-tile h3 { margin: 0; font-size: var(--t-xl); }
.action-tile__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.action-tile__steps li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; color: rgba(255,255,255,.82); font-size: var(--t-sm); }
.action-tile__num {
  flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; font-size: var(--t-xs); font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent)); color: var(--c-ink);
}

/* Liste des téléphones */
.phone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.phone-list li { margin: 0; }
.phone-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease-out);
}
.phone-item:hover { border-color: var(--c-primary-light); box-shadow: var(--sh-sm); transform: translateX(3px); }
.phone-item__label { font-size: var(--t-sm); color: var(--c-slate); }
.phone-item__name { display: block; font-weight: 700; color: var(--c-ink); font-size: var(--t-base); }
.phone-item__num { font-weight: 700; color: var(--c-primary); white-space: nowrap; font-size: var(--t-lg); letter-spacing: -.01em; }

.section--dark .phone-item {
  background: var(--glass-bg); border-color: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.section--dark .phone-item__name { color: #fff; }
.section--dark .phone-item__label { color: rgba(255,255,255,.6); }
.section--dark .phone-item__num { color: var(--c-accent-light); }
.section--dark .phone-item:hover { border-color: rgba(79,216,224,.45); }

/* 4.12 — Page centre : détail ------------------------------------------ */
.centre-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: var(--c-ink); }
.centre-hero__img { position: absolute; inset: 0; }
.centre-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.centre-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,17,32,.96) 8%, rgba(10,22,40,.6) 45%, rgba(10,22,40,.35) 100%);
}
.centre-hero__inner { position: relative; z-index: 1; width: 100%; padding-block: var(--s-8) var(--s-7); color: #fff; }
.centre-hero__inner h1 { color: #fff; margin-bottom: var(--s-3); }

.info-block { padding: var(--s-5); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg); height: 100%; }
.info-block__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.info-block__icon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md);
  background: var(--c-bg-tint); color: var(--c-primary); flex-shrink: 0;
}
.info-block__icon svg { width: 20px; height: 20px; }
.info-block h2, .info-block h3 { margin: 0; font-size: var(--t-lg); }
.info-block ul { margin: 0; padding-left: 1.15rem; color: var(--c-slate); font-size: var(--t-sm); }
.info-block dl { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.info-block dt { font-weight: 700; font-size: var(--t-sm); color: var(--c-ink); }
.info-block dd { margin: 0 0 0 0; font-size: var(--t-sm); color: var(--c-slate); }

/* Galerie */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-tint); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { padding: var(--s-3); font-size: var(--t-xs); color: var(--c-slate); background: var(--c-bg); }

/* 4.13 — Encadré d'information ----------------------------------------- */
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  background: var(--c-warn-bg); border: 1px solid var(--c-warn-border);
  border-left-width: 4px; border-radius: var(--r-md);
  font-size: var(--t-sm); color: var(--c-warn-ink);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 0; }

.notice--info { background: var(--c-bg-tint); border-color: #b9d3f2; color: #0b3f7d; }

/* 4.14 — Filtres -------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-btn {
  padding: .5rem 1.05rem; font-family: inherit; font-size: var(--t-sm); font-weight: 600;
  color: var(--c-slate); background: var(--c-bg); border: 1.5px solid var(--c-line);
  border-radius: var(--r-full); cursor: pointer;
  transition: all .22s var(--ease);
}
.filter-btn:hover { border-color: var(--c-primary-light); color: var(--c-primary); }
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(13,99,196,.28);
}

/* 4.15 — Fil d'Ariane --------------------------------------------------- */
.breadcrumb { font-size: var(--t-sm); color: var(--c-slate); padding-block: var(--s-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.breadcrumb li + li::before { content: "›"; color: var(--c-slate-light); }
.breadcrumb [aria-current] { color: var(--c-ink); font-weight: 600; }

/* 4.16 — Pied de page --------------------------------------------------- */
.footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding-block: var(--s-9) var(--s-5); }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--c-accent-light); }
.footer__grid { display: grid; gap: var(--s-7); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--s-7); }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); letter-spacing: .05em; }
.footer__brand p { font-size: var(--t-sm); margin-top: var(--s-4); }
.footer h2 { color: #fff; font-size: var(--t-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.footer li { margin-bottom: var(--s-2); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: var(--t-xs); color: rgba(255,255,255,.5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* 4.17 — Barre d'action mobile ----------------------------------------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: var(--s-2); padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--c-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 -4px 20px rgba(10,22,40,.08);
}
.mobile-bar .btn { flex: 1; padding: .8rem 1rem; font-size: var(--t-sm); }

/* -------------------------------------------------------- 5. ANIMATIONS */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, 30px) scale(1.07); }
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 var(--c-accent-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(20,184,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,196,0); }
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }



/* ==========================================================================
   5 bis — ANIMATIONS
   Toutes désactivées si l'utilisateur a demandé une réduction des animations
   (voir la règle prefers-reduced-motion en fin de fichier).
   ========================================================================== */

/* --- Barre de progression de lecture ---------------------------------- */
.read-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  will-change: transform;
}

/* --- Ligne de balayage du hero (métaphore du scanner) ------------------ */
.hero__scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero__scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.028) 42%,
    rgba(255,255,255,.075) 50%,
    rgba(255,255,255,.028) 58%,
    transparent 100%);
  animation: scan-sweep 9s cubic-bezier(.5,0,.5,1) infinite;
}
.hero__scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-light) 22%, var(--c-accent-light) 78%, transparent);
  opacity: .5; filter: blur(.4px);
  animation: scan-sweep 9s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes scan-sweep {
  0%        { top: -190px; opacity: 0; }
  8%        { opacity: 1; }
  82%       { opacity: 1; }
  92%, 100% { top: 100%; opacity: 0; }
}

/* --- Entrée en cascade du hero ----------------------------------------- */
.hero__inner > * { opacity: 0; transform: translateY(24px); }
.js-anim .hero__inner > * { animation: rise-in .85s var(--ease-out) forwards; }
.js-anim .hero__inner > *:nth-child(1) { animation-delay: .05s; }
.js-anim .hero__inner > *:nth-child(2) { animation-delay: .16s; }
.js-anim .hero__inner > *:nth-child(3) { animation-delay: .27s; }
.js-anim .hero__inner > *:nth-child(4) { animation-delay: .38s; }
.js-anim .hero__inner > *:nth-child(5) { animation-delay: .49s; }
.js-anim .hero__inner > *:nth-child(6) { animation-delay: .60s; }
.no-js .hero__inner > *, .no-anim .hero__inner > * { opacity: 1; transform: none; }

@keyframes rise-in { to { opacity: 1; transform: none; } }

/* Le titre se révèle ligne par ligne, derrière un masque */
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(105%); }
.js-anim .hero__title .line > span { animation: line-up .95s var(--ease-out) forwards; }
.js-anim .hero__title .line:nth-child(1) > span { animation-delay: .22s; }
.js-anim .hero__title .line:nth-child(2) > span { animation-delay: .36s; }
.no-js .hero__title .line > span, .no-anim .hero__title .line > span { transform: none; }

@keyframes line-up { to { transform: none; } }

/* --- En-tête compact au défilement ------------------------------------- */
.header {
  transition: box-shadow .3s var(--ease), background .3s var(--ease), height .3s var(--ease);
}
.header.is-compact { height: 68px; }
.header.is-compact .brand__logo { height: 42px; }
.header.is-compact .brand__divider, .header.is-compact .brand__text { opacity: 0; width: 0; overflow: hidden; }
.brand__divider, .brand__text { transition: opacity .25s var(--ease), width .3s var(--ease); }

/* --- Bouton flottant « Prendre RDV » ----------------------------------- */
.float-rdv {
  position: fixed; right: var(--s-5); bottom: var(--s-6); z-index: 95;
  opacity: 0; transform: translateY(18px) scale(.94); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  box-shadow: 0 10px 34px -6px var(--c-accent);
}
.float-rdv.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* --- Tracé des icônes de pôles ----------------------------------------- */
.pole-card__icon svg path,
.pole-card__icon svg circle,
.pole-card__icon svg rect { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-anim .pole-card.draw .pole-card__icon svg > * {
  animation: draw-stroke 1.15s var(--ease-out) forwards;
}
@keyframes draw-stroke {
  from { stroke-dasharray: 120; stroke-dashoffset: 120; }
  to   { stroke-dasharray: 120; stroke-dashoffset: 0; }
}

/* --- Cascade des examens à l'ouverture d'un accordéon ------------------ */
.acc-item.is-open .exam-list li { animation: rise-in .5s var(--ease-out) backwards; }
.acc-item.is-open .exam-list li:nth-child(1) { animation-delay: .06s; }
.acc-item.is-open .exam-list li:nth-child(2) { animation-delay: .11s; }
.acc-item.is-open .exam-list li:nth-child(3) { animation-delay: .16s; }
.acc-item.is-open .exam-list li:nth-child(4) { animation-delay: .21s; }
.acc-item.is-open .exam-list li:nth-child(5) { animation-delay: .26s; }
.acc-item.is-open .exam-list li:nth-child(6) { animation-delay: .31s; }
.acc-item.is-open .exam-list li:nth-child(n+7) { animation-delay: .36s; }

/* Barre d'accent sur l'élément ouvert */
.acc-item { border-left: 3px solid transparent; transition: border-left-color .3s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.acc-item.is-open { border-left-color: var(--c-accent); }

/* --- Réorganisation des cartes au filtrage ----------------------------- */
.is-filtering { transition: transform .42s var(--ease-out); }
.card-out { opacity: 0; transform: scale(.94); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.card-in  { animation: rise-in .45s var(--ease-out) backwards; }



/* ==========================================================================
   5 ter — EFFETS INTERACTIFS
   ========================================================================== */

/* --- Sélecteur corporel ------------------------------------------------ */
.bodymap {
  display: grid; grid-template-columns: minmax(200px, 280px) 1fr;
  gap: var(--s-8); align-items: center;
}
.bodymap__figure { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.bodymap__svg { width: 100%; max-width: 250px; height: auto; }
.bodymap__hint {
  margin: 0; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-slate-light);
}
.bodymap__silhouette { fill: var(--c-bg-tint); }
.section--dark .bodymap__silhouette { fill: rgba(255,255,255,.09); }

.bodymap__zone {
  fill: transparent; stroke: var(--c-primary); stroke-width: 1.2; stroke-opacity: .3;
  cursor: pointer; transition: fill .25s var(--ease), stroke-opacity .25s var(--ease), stroke-width .25s var(--ease);
}
.bodymap__zone:hover, .bodymap__zone:focus-visible, .bodymap__zone.is-active {
  fill: var(--c-accent); fill-opacity: .3;
  stroke: var(--c-accent); stroke-opacity: 1; stroke-width: 2.4;
  outline: none;
}
.bodymap__zone:focus-visible { stroke-dasharray: 5 3; }

.bodymap__panel { min-height: 260px; display: flex; align-items: center; }
.bodymap__result { animation: rise-in .4s var(--ease-out); width: 100%; }
.bodymap__result h3 { font-size: var(--t-2xl); font-weight: 800; margin: var(--s-2) 0 var(--s-3); }
.bodymap__result > p { color: var(--c-slate); margin-bottom: var(--s-4); }
.bodymap__examples { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.bodymap__examples li { margin: 0; }

/* Repli sans JavaScript : la liste des pôles reste accessible */
.bodymap__fallback { display: none; }
.no-js .bodymap { display: block; }
.no-js .bodymap__figure { display: none; }
.no-js .bodymap__fallback { display: block; }


/* Vidéo de fond du hero — pleine page, cadrée à droite pour dégager le texte à gauche */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero__photo {
  position: absolute; inset: 0; pointer-events: none;
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  opacity: 1;
}

/* --- Trame réactive au curseur ----------------------------------------- */
.hero__grid {
  transition: -webkit-mask-image .3s var(--ease), mask-image .3s var(--ease);
}
.hero.is-tracking .hero__grid {
  -webkit-mask-image:
    radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.45) 55%, transparent 100%),
    radial-gradient(ellipse 85% 65% at 50% 35%, rgba(0,0,0,.5) 25%, transparent 78%);
          mask-image:
    radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.45) 55%, transparent 100%),
    radial-gradient(ellipse 85% 65% at 50% 35%, rgba(0,0,0,.5) 25%, transparent 78%);
  -webkit-mask-composite: source-over; mask-composite: add;
  opacity: .85;
}

/* --- Parcours patient --------------------------------------------------- */
.journey { position: relative; display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.journey::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 3px; border-radius: 2px;
  background: var(--c-line);
}
.journey__line {
  position: absolute; left: 0; top: 34px; height: 3px; border-radius: 2px; width: 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transition: width .9s var(--ease-out);
}
.journey__step { position: relative; text-align: center; padding-top: 0; }
.journey__dot {
  position: relative; z-index: 1; width: 70px; height: 70px; margin: 0 auto var(--s-4);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--c-bg); border: 3px solid var(--c-line);
  color: var(--c-slate-light);
  transition: border-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.journey__dot svg { width: 28px; height: 28px; stroke-width: 1.9; }
.journey__step.is-lit .journey__dot {
  border-color: var(--c-primary); color: var(--c-primary);
  transform: scale(1.08); box-shadow: 0 10px 30px -10px var(--c-primary);
}
.journey__num {
  position: absolute; top: -4px; right: -4px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: var(--t-xs); font-weight: 800;
  background: var(--c-line); color: var(--c-slate); transition: background .45s var(--ease), color .45s var(--ease);
}
.journey__step.is-lit .journey__num { background: var(--c-accent); color: var(--c-ink); }
.journey__step h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.journey__step p { font-size: var(--t-sm); color: var(--c-slate); }

@media (max-width: 760px) {
  .journey::before, .journey__line { display: none; }
  .journey { gap: var(--s-5); }
}

/* --- Transitions morphées entre pages ---------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; }



/* ==========================================================================
   5 quater — BANDEAU DE NAVIGATION
   ========================================================================== */

/* --- Indicateur glissant sous les onglets ------------------------------ */
.nav__list { position: relative; }
.nav__pill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: var(--r-full);
  background: var(--c-bg-tint);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c-primary) 15%, transparent),
    color-mix(in srgb, var(--c-accent) 18%, transparent));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-primary) 22%, transparent);
  z-index: 0;
  opacity: 0; pointer-events: none;
  transition: transform .38s var(--ease-out), width .38s var(--ease-out), opacity .25s var(--ease);
}
.nav__list.has-pill .nav__pill { opacity: 1; }
.nav__item { position: relative; z-index: 1; display: flex; align-items: center; }
.nav__link { background: transparent !important; }
.nav__link[aria-current="page"] { color: var(--c-primary); }

.nav__caret {
  display: grid; place-items: center; width: 22px; height: 22px; margin-left: -6px;
  padding: 0; border: 0; background: transparent; color: var(--c-primary);
  border-radius: 50%; cursor: pointer;
  transition: transform .3s var(--ease-out), color .2s var(--ease);
}
.nav__caret svg { width: 15px; height: 15px; stroke-width: 2.4; }
.nav__caret:hover { color: var(--c-primary); }
.nav__item--mega.is-open .nav__caret { transform: rotate(180deg); color: var(--c-primary); }

/* --- Méga-menu ---------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--c-primary), var(--c-accent)) 1;
  box-shadow: 0 24px 60px -18px rgba(10,22,40,.22);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .28s var(--ease), transform .32s var(--ease-out);
  z-index: 90;
}
.mega[hidden] { display: block; }              /* piloté par les classes, pas par [hidden] */
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mega__inner {
  max-width: var(--container); margin-inline: auto;
  padding: var(--s-6) var(--s-5);
  display: grid; grid-template-columns: 1fr 300px; gap: var(--s-7);
}
.mega--centres .mega__inner { grid-template-columns: 1fr; }

.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }

.mega__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3); border-radius: var(--r-md);
  transition: background .2s var(--ease), transform .2s var(--ease-out);
}
.mega__item:hover { background: var(--c-bg-tint); transform: translateX(4px); }
.mega__ico {
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: var(--r-sm); background: var(--c-bg-tint); color: var(--c-primary);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.mega__ico svg { width: 21px; height: 21px; }
.mega__item:hover .mega__ico { background: var(--c-primary); color: #fff; }
.mega__txt { display: flex; flex-direction: column; line-height: 1.3; }
.mega__txt strong { font-size: var(--t-base); font-weight: 700; color: var(--c-ink); }
.mega__txt em { font-style: normal; font-size: var(--t-sm); color: var(--c-primary); font-weight: 600; }

.mega__aside {
  padding: var(--s-5); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--c-bg-tint), var(--c-bg-soft));
  border: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start;
}
.mega__label { font-weight: 800; font-size: var(--t-base); margin: 0; color: var(--c-ink); }
.mega__hint { font-size: var(--t-sm); color: var(--c-slate); margin: 0; }
.mega__all { font-size: var(--t-sm); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }

.mega__centres { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mega__centre {
  display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden;
  border: 1.5px solid var(--c-line); background: var(--c-bg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mega__centre:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary-light); }
.mega__centre img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mega__centre-body { padding: var(--s-3) var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: 3px; }
.mega__centre-body strong { font-size: var(--t-base); font-weight: 700; color: var(--c-ink); }
.mega__centre-body em { font-style: normal; font-size: var(--t-xs); color: var(--c-slate-light); }
.mega__centre-tel {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--s-2);
  font-size: var(--t-sm); font-weight: 700; color: var(--c-primary);
}

/* --- Bouton de recherche ------------------------------------------------ */
.search-open {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .6rem 1rem; font-family: inherit; font-size: var(--t-base); font-weight: 700;
  color: var(--c-primary-dark); background: var(--c-bg);
  border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
  border-radius: var(--r-full); cursor: pointer;
  transition: all .22s var(--ease);
}
.search-open:hover {
  border-color: var(--c-primary); color: var(--c-primary-dark);
  background: var(--c-bg-tint); box-shadow: 0 4px 14px -4px var(--c-primary);
  transform: translateY(-1px);
}
.search-open svg { width: 17px; height: 17px; stroke-width: 2.2; color: var(--c-accent); }
.search-open kbd {
  font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 6px;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  border: 0; color: var(--c-ink);
}

/* --- Palette de recherche ----------------------------------------------- */
.search { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; padding-top: 12vh; }
.search[hidden] { display: none; }
.search__scrim {
  position: absolute; inset: 0; background: rgba(10,22,40,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in .2s var(--ease) both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.search__box {
  position: relative; width: min(620px, calc(100% - 2rem)); max-height: 66vh;
  display: flex; flex-direction: column;
  background: var(--c-bg); border-radius: var(--r-lg);
  box-shadow: 0 32px 90px -20px rgba(10,22,40,.5);
  overflow: hidden;
  animation: pop-in .32s var(--ease-out) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }

.search__field { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-line); }
.search__field > svg { width: 20px; height: 20px; color: var(--c-slate-light); flex-shrink: 0; }
.search__field input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: var(--t-lg); color: var(--c-ink);
  min-width: 0;
}
.search__field input::placeholder { color: var(--c-slate-light); }
.search__close {
  font-family: inherit; font-size: 10.5px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  background: var(--c-bg-soft); border: 1px solid var(--c-line); color: var(--c-slate);
}

.search__results { list-style: none; margin: 0; padding: var(--s-2); overflow-y: auto; flex: 1; }
.search__results li { margin: 0; }
.search__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  cursor: pointer; color: var(--c-ink);
}
.search__item.is-sel, .search__item:hover { background: var(--c-bg-tint); }
.search__item.is-sel { box-shadow: inset 3px 0 0 var(--c-primary); }
.search__kind {
  flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-full);
  background: var(--c-bg-soft); color: var(--c-slate); border: 1px solid var(--c-line);
}
.search__item[data-k="examen"] .search__kind { color: var(--c-primary-dark); background: var(--c-bg-tint); }
.search__item[data-k="action"] .search__kind { color: var(--c-ink); background: var(--c-accent-light); border-color: transparent; }
.search__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.search__txt strong { font-size: var(--t-sm); font-weight: 700; }
.search__txt strong mark { background: var(--c-accent-light); color: var(--c-ink); border-radius: 3px; padding: 0 2px; }
.search__txt span { font-size: var(--t-xs); color: var(--c-slate-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search__empty { padding: var(--s-7) var(--s-5); text-align: center; color: var(--c-slate); font-size: var(--t-sm); }
.search__foot {
  display: flex; gap: var(--s-3); align-items: center; justify-content: center; flex-wrap: wrap;
  margin: 0; padding: var(--s-3); border-top: 1px solid var(--c-line);
  background: var(--c-bg-soft); font-size: var(--t-xs); color: var(--c-slate-light);
}
.search__foot kbd {
  font-family: inherit; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  background: var(--c-bg); border: 1px solid var(--c-line);
}



/* --------------------------------------------------------------------------
   Repliements du bandeau — la barre s'allège au fur et à mesure que
   la largeur diminue, avant de basculer en menu déroulant.
   -------------------------------------------------------------------------- */

/* Sous 1560 px : le texte à côté du logo disparaît */
@media (max-width: 1559px) {
  .brand__divider, .brand__text { display: none; }
}

/* Sous 1400 px : le bouton « Mes résultats » quitte le bandeau
   (il reste dans le menu, le pied de page et la page Rendez-vous) */
@media (max-width: 1399px) {
  .header__cta > .btn--ghost { display: none; }
}

/* Sous 1340 px : la recherche se réduit à son icône
   (seuil relevé pour absorber le 7e lien de nav "Actualités") */
@media (max-width: 1339px) {
  .search-open__txt, .search-open kbd { display: none; }
  .search-open { padding: .6rem; }
}

/* ---------------------------------------------------- 6. RESPONSIVE */
@media (max-width: 1259px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: flex; }
  .header__cta .btn--rdv { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    padding: var(--s-5);
    transform: translateX(100%); transition: transform .34s var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .nav__link { padding: var(--s-4); font-size: var(--t-xl); font-weight: 700; border-radius: var(--r-md); }
  .nav__link:hover, .nav__link[aria-current="page"] { background: var(--c-bg-tint); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta-mobile { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }

  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }

  /* Bandeau de navigation en affichage mobile */
  .search-open__txt, .search-open kbd { display: none; }
  .search-open { padding: .55rem; }
  .mega { position: static; opacity: 1; transform: none; pointer-events: auto;
          background: transparent; border: 0; box-shadow: none; }
  .mega[hidden] { display: none; }
  .mega__inner { grid-template-columns: 1fr; padding: 0 0 var(--s-4); gap: var(--s-4); }
  .mega__grid, .mega__centres { grid-template-columns: 1fr; }
  .mega__centre { flex-direction: row; align-items: center; }
  .mega__centre img { width: 92px; aspect-ratio: 1; }
  .nav__pill { display: none; }
  .nav__item { flex-wrap: wrap; }
  .nav__item--mega { display: grid; grid-template-columns: 1fr auto; }
  .nav__caret { width: 44px; height: 44px; margin: 0; }
  .nav__caret svg { width: 16px; height: 16px; }
  .mega { grid-column: 1 / -1; }


  .centre-card--feature .centre-card__media { aspect-ratio: 16/9; }
}

@media (max-width: 560px) {
  .brand__divider, .brand__sub { display: none; }
  .brand__logo { height: 40px; }
  .hero__watermark { display: none; }
  .hero__actions .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .footer__bottom { flex-direction: column; }
}

@media (min-width: 1260px) {
  .nav__cta-mobile { display: none; }
}

/* ---------------------------------------------- 7. PRÉFÉRENCES & IMPRESSION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__inner > * { opacity: 1 !important; transform: none !important; }
  .hero__title .line > span { transform: none !important; }
  .hero__scan, .read-progress { display: none; }
  .float-rdv { opacity: 1; transform: none; pointer-events: auto; }
  .xray, .journey__line { display: none; }
  .hero.is-tracking .hero__grid { -webkit-mask-image: none; mask-image: none; }
  .journey__step .journey__dot { border-color: var(--c-primary); color: var(--c-primary); }
  @view-transition { navigation: none; }
}

@media print {
  .header, .footer, .mobile-bar, .hero__bg, .hero__grid, .hero__scan, .read-progress, .float-rdv, .btn, .filters { display: none !important; }
  body { color: #000; background: #fff; padding-bottom: 0; }
  .section--dark, .hero { background: #fff !important; color: #000 !important; }
  .section--dark h1, .section--dark h2, .section--dark h3, .section--dark p,
  .hero h1, .hero p { color: #000 !important; }
  .acc-panel { grid-template-rows: 1fr !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
