/* =====================================================
   Marne Vision — Cabinet d'ophtalmologie Neuilly-sur-Marne
   Design system & global styles
   ===================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* ===== Couleurs marque ===== */
  /* Bleu marine (logo + carte de visite + palette client) */
  --c-navy-900: #0E1F26;
  --c-navy-800: #1B3239;
  --c-navy-700: #2C3639;
  /* couleur principale (palette client) */
  --c-navy-600: #3F4E4F;
  /* secondaire (palette client) */
  --c-navy-500: #5A6A6E;
  --c-navy-100: #DCE7EA;
  --c-navy-50: #F2F6F7;

  /* Vert (logo) */
  --c-green-700: #3F9B45;
  --c-green-600: #4FAC52;
  --c-green-500: #5FB85F;
  /* accent principal — vert logo */
  --c-green-400: #7AC97A;
  --c-green-100: #DDF1DD;

  /* Terracotta / chaleureux (palette client) */
  --c-warm-700: #7E5C42;
  --c-warm-600: #A27B5C;
  /* terracotta principal */
  --c-warm-300: #D9C4B0;
  --c-warm-100: #F4ECDF;

  /* Crème / neutre (palette client) */
  --c-cream: #DCD7C9;
  --c-cream-50: #F6F4EE;

  --c-white: #FFFFFF;
  --c-grey-50: #F6F8F8;
  --c-grey-100: #ECEFF1;
  --c-grey-200: #DCE2E5;
  --c-grey-400: #8A9BA3;
  --c-grey-600: #4F6671;
  --c-grey-800: #1F2D34;

  --c-error: #C0392B;
  --c-success: #2E7D32;

  /* ===== Sémantique (mode clair par défaut) ===== */
  --bg: var(--c-white);
  --bg-soft: var(--c-cream-50);
  --bg-section: var(--c-grey-50);
  --bg-card: #FFFFFF;
  --text: var(--c-grey-800);
  --text-soft: var(--c-navy-600);
  /* ardoise de la palette (rôle : secondaire) */
  --primary: var(--c-navy-700);
  --primary-dark: var(--c-navy-800);
  --accent: var(--c-green-500);
  --accent-dark: var(--c-green-700);
  --warm: var(--c-warm-600);
  --warm-dark: var(--c-warm-700);
  --border: var(--c-grey-200);
  --bg-badge-success: var(--c-green-100);
  --color-badge-success: var(--accent-dark);

  /* Transition globale pour le toggle dark/light */
  color-scheme: light;
}

/* ===== MODE SOMBRE ===== */
:root[data-theme="dark"] {
  --bg: #0E1F26;
  --bg-soft: #163243;
  --bg-section: #1B3239;
  --bg-card: #1F3942;
  --text: #E7EFF3;
  --text-soft: #B7C7D0;
  --primary: var(--c-green-400);
  --primary-dark: #FFFFFF;
  --accent: var(--c-green-500);
  --accent-dark: var(--c-green-400);
  --warm: var(--c-warm-600);
  --warm-dark: var(--c-warm-300);
  --border: rgba(255, 255, 255, 0.12);
  --c-grey-50: #1B3239;
  --c-grey-100: rgba(255, 255, 255, 0.08);
  --c-grey-200: rgba(255, 255, 255, 0.12);
  --c-cream-50: #163243;
  --bg-badge-success: rgba(95, 184, 95, 0.15);
  --color-badge-success: var(--c-green-400);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

:root[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="dark"] .site-header {
  background: rgba(14, 31, 38, 0.92);
}

:root[data-theme="dark"] .topbar {
  background: #0A1419;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .doctor,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .form,
:root[data-theme="dark"] .org-card,
:root[data-theme="dark"] .role-card,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .path-card {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

:root[data-theme="dark"] .card h3,
:root[data-theme="dark"] .doctor h3 {
  color: #FFFFFF;
}

:root[data-theme="dark"] .card p,
:root[data-theme="dark"] .org-card p {
  color: var(--text-soft);
}

:root[data-theme="dark"] .nav-list a {
  color: #E7EFF3;
}

:root[data-theme="dark"] .nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

:root[data-theme="dark"] .brand-text strong {
  color: #fff;
}

:root[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0E1F26 0%, #163243 100%);
}

:root[data-theme="dark"] .hero h1 {
  color: #fff;
}

:root[data-theme="dark"] .hero .lead {
  color: var(--text-soft);
}

:root[data-theme="dark"] .section--soft {
  background: var(--bg-soft);
}

:root[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .doctolib-iframe-wrapper {
  background: #1F3942;
  border-color: var(--border);
}

:root[data-theme="dark"] .reviews-rating {
  background: var(--bg-card);
  border-color: var(--border);
}

:root[data-theme="dark"] .reviews-rating .score {
  color: #fff;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 {
  color: #fff;
}

:root[data-theme="dark"] .breadcrumb [aria-current="page"] {
  color: var(--c-green-400);
}

/* Transition de transition entre les modes */
html,
body,
.card,
.doctor,
.faq-item,
.org-card,
.role-card,
.review-card,
.path-card,
.site-header,
.topbar,
.nav-list a,
.doctolib-iframe-wrapper {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ===== Détection automatique prefers-color-scheme ===== */
@media (prefers-color-scheme: dark) {

  :root:not([data-theme]),
  :root[data-theme="auto"] {
    --bg: #0E1F26;
    --bg-soft: #163243;
    --bg-section: #1B3239;
    --bg-card: #1F3942;
    --text: #E7EFF3;
    --text-soft: #B7C7D0;
    --primary: var(--c-green-400);
    --primary-dark: #FFFFFF;
    --accent: var(--c-green-500);
    --accent-dark: var(--c-green-400);
    --warm: var(--c-warm-600);
    --warm-dark: var(--c-warm-300);
    --border: rgba(255, 255, 255, 0.12);
    --c-grey-50: #1B3239;
    --c-grey-100: rgba(255, 255, 255, 0.08);
    --c-grey-200: rgba(255, 255, 255, 0.12);
    --c-cream-50: #163243;
    --bg-badge-success: rgba(95, 184, 95, 0.15);
    --color-badge-success: var(--c-green-400);
    color-scheme: dark;
  }
}

/* ===== Toggle dark/light (bouton header) ===== */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  width: 56px;
  height: 32px;
  padding: 2px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}

/* Toggle visible aussi sur mobile (en dehors du menu burger) */
.theme-toggle-mobile {
  display: none;
}

@media (max-width: 880px) {

  /* Cache le toggle dans le menu mobile et affiche celui en dehors */
  .nav-list .theme-toggle {
    display: none;
  }

  .theme-toggle-mobile {
    display: inline-flex;
    margin-right: var(--sp-3);
  }
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-navy-700);
  transition: transform var(--t-base), background var(--t-base);
  display: grid;
  place-items: center;
}

:root[data-theme="dark"] .theme-toggle::before {
  transform: translateX(24px);
  background: var(--c-green-500);
}

.theme-toggle .theme-icon {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 7px;
  z-index: 1;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.theme-toggle .theme-icon-sun {
  left: 7px;
  color: #FFB400;
  opacity: 0;
}

/* Mode clair : la lune est sur la piste blanche, pas sur la pastille.
   Elle doit donc être foncée — en blanc elle était invisible. */
.theme-toggle .theme-icon-moon {
  right: 7px;
  color: var(--c-navy-600);
  opacity: 1;
}

:root[data-theme="dark"] .theme-toggle .theme-icon-sun {
  opacity: 1;
}

:root[data-theme="dark"] .theme-toggle .theme-icon-moon {
  opacity: 0;
}

/* Réduction de la taille du toggle sur mobile uniquement */
@media (max-width: 880px) {
  .theme-toggle.theme-toggle-mobile {
    width: 44px;
    height: 26px;
    margin-left: auto;
    margin-right: 6px !important;
  }
  
  .font-toggle.font-toggle-mobile {
    margin-right: 6px !important;
  }
  
  .theme-toggle.theme-toggle-mobile::before {
    width: 20px;
    height: 20px;
    top: 1.5px;
    left: 1.5px;
  }
  
  :root[data-theme="dark"] .theme-toggle.theme-toggle-mobile::before {
    transform: translateX(18px);
  }
  
  .theme-toggle.theme-toggle-mobile .theme-icon {
    width: 12px;
    height: 12px;
    top: 5.5px;
  }
  
  .theme-toggle.theme-toggle-mobile .theme-icon-sun {
    left: 5.5px;
  }
  
  .theme-toggle.theme-toggle-mobile .theme-icon-moon {
    right: 5.5px;
  }
}

/* ===== Bouton flottant Doctolib (fallback) ===== */
.floating-rdv {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 199;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: var(--fs-400);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(95, 184, 95, 0.45);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.floating-rdv:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 16px 36px rgba(63, 155, 69, 0.5);
  color: #fff;
}

.floating-rdv svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .floating-rdv {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    left: 12px;
    bottom: 12px;
  }
}

/* ===== News Marne Vision (composant carte article) ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-5);
}

.news-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card .news-media {
  aspect-ratio: 16 / 9;
  background: var(--c-navy-50);
  overflow: hidden;
  position: relative;
}

.news-card .news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card .video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-card .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.news-card .news-content {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
}

.news-card .news-date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.news-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-500);
  color: var(--primary-dark);
  line-height: 1.3;
  margin: 0;
}

.news-card p {
  color: var(--text-soft);
  font-size: var(--fs-400);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.news-card .news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-grey-100);
}

.news-card .btn-read,
.news-card .btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.news-card .btn-read {
  background: var(--accent);
  color: #fff;
}

.news-card .btn-read:hover {
  background: var(--accent-dark);
  transform: translateX(2px);
}

.news-card .btn-pdf {
  background: var(--c-warm-100);
  color: var(--warm-dark);
  border: 1px solid var(--c-warm-300);
}

.news-card .btn-pdf:hover {
  background: var(--warm);
  color: #fff;
  border-color: var(--warm);
}

.news-card .btn-pdf svg {
  width: 16px;
  height: 16px;
}

/* ===== Instagram widget compact (en bas, discret) ===== */
.insta-compact {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.insta-compact .insta-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: #fff;
  display: grid;
  place-items: center;
}

.insta-compact strong {
  color: var(--primary-dark);
  font-size: var(--fs-400);
}

.insta-compact p {
  font-size: var(--fs-300);
  color: var(--text-soft);
  margin: 0;
}

.insta-compact a {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.insta-compact a:hover {
  text-decoration: underline;
}

/* ===== Galerie examens : grille stricte (3 col desktop / 2 tablette / 1 mobile) ===== */
.exam-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

@media (max-width: 900px) {
  .exam-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .exam-gallery {
    grid-template-columns: 1fr;
  }
}

.exam-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-navy-50);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.exam-gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.exam-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.exam-gallery-item:hover img {
  transform: scale(1.08);
}

.exam-gallery-item-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(0deg, rgba(15, 37, 48, 0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity var(--t-base);
}

.exam-gallery-item:hover .exam-gallery-item-caption {
  opacity: 1;
}

/* Cabinet : bannière hero avec photo floutée en background */
.page-hero--bg-photo {
  position: relative;
  background-color: var(--c-navy-800);
  overflow: hidden;
  padding-block: var(--sp-9);
}

.page-hero--bg-photo .hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  /* point de départ — le JS anime jusqu'à 45% */
  filter: blur(8px) brightness(0.4);
  transform: scale(1.1);
  z-index: 0;
}

.page-hero--bg-photo .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 38, 0.5) 0%, rgba(14, 31, 38, 0.85) 60%, rgba(14, 31, 38, 1) 100%);
  z-index: 0;
}

.page-hero--bg-photo .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.page-hero--bg-photo h1 {
  color: #fff;
}

.page-hero--bg-photo .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero--bg-photo .breadcrumb a {
  color: #fff;
}

.page-hero--bg-photo .lead {
  color: #C9DAE2;
}

:root {
  /* ===== Typographie ===== */
  /* Manrope pour titres (proche de la typo "MARNE VISION"), Inter pour le corps */
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Manrope", "Inter", serif;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.25rem;
  --fs-700: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-800: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-900: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --lh-tight: 1.15;
  --lh-base: 1.65;

  /* Espacement */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Élévations */
  --shadow-sm: 0 1px 2px rgba(15, 37, 48, 0.04), 0 1px 3px rgba(15, 37, 48, 0.06);
  --shadow: 0 4px 12px rgba(15, 37, 48, 0.08), 0 2px 4px rgba(15, 37, 48, 0.04);
  --shadow-elevated: 0 12px 32px rgba(15, 37, 48, 0.12), 0 4px 8px rgba(15, 37, 48, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 37, 48, 0.12);

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 220ms ease;
  --t-slow: 420ms cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset moderne ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================================
   SPLASH SCREEN — logo blur → net
   ======================================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0E1F26;
  display: flex;
  align-items: center;
  justify-content: center;
  /* pas de transition CSS — GSAP gère tout */
}

#splash.splash--hide {
  opacity: 0;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.splash-inner img {
  width: clamp(160px, 30vw, 260px);
  height: auto;
  display: block;
  opacity: 0;
  /* état initial — GSAP anime depuis ici */
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .splash-inner img {
    opacity: 1;
    filter: none;
  }

  #splash {
    transition: none;
  }
}

/* ======================================== */
* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Typographie : équilibrage et veuve/orpheline ── */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
.lead,
blockquote {
  text-wrap: pretty;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) 0;
  z-index: 999;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* Focus visible homogène */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Typographie ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-900);
}

h2 {
  font-size: var(--fs-800);
  font-variation-settings: 'opsz' 36, 'SOFT' 0, 'WONK' 0;
}

h3 {
  font-size: var(--fs-700);
}

h4 {
  font-size: var(--fs-600);
  font-family: var(--font-sans);
  font-weight: 700;
}

p {
  max-width: 70ch;
}

.lead {
  font-size: var(--fs-500);
  color: var(--text-soft);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-3);
}

.eyebrow--warm {
  color: var(--warm);
}

.eyebrow--normal {
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--fs-500);
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

/* ---------- 4. Conteneurs & sections ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--sp-9);
}

.section--soft {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) var(--sp-9), var(--bg-soft) calc(100% - var(--sp-9)), var(--bg) 100%);
}

.section--cream {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--c-cream-50) var(--sp-9), var(--c-cream-50) calc(100% - var(--sp-9)), var(--bg) 100%);
}

.section--cream-to-soft {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--c-cream-50) var(--sp-9), var(--c-cream-50) calc(100% - var(--sp-9)), var(--bg-soft) 100%);
}

.section--soft-to-white {
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg-soft) calc(100% - var(--sp-9)), var(--bg) 100%);
}

.section--white-to-soft-to-dark {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) var(--sp-9), var(--bg-soft) calc(100% - var(--sp-9)), #0E1F26 100%);
}

.section--soft-to-dark {
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg-soft) calc(100% - var(--sp-9)), #0E1F26 100%);
}

.section--white-to-cream-to-dark {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--c-cream-50) var(--sp-9), var(--c-cream-50) calc(100% - var(--sp-9)), #0E1F26 100%);
}

.section--white-to-dark {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) calc(100% - var(--sp-9)), #0E1F26 100%);
}

.section--white-to-soft {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) var(--sp-9));
}

.section--dark {
  background: linear-gradient(135deg, var(--c-navy-800) 0%, var(--c-navy-700) 60%, var(--c-navy-600) 100%);
  color: #E7EFF3;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark a {
  color: var(--c-green-400);
}

.section--dark-to-white {
  background: linear-gradient(to bottom, #0E1F26 0%, var(--c-navy-700) 50%, var(--bg) 100%);
  color: #E7EFF3;
}

.section--dark-to-white h1,
.section--dark-to-white h2,
.section--dark-to-white h3,
.section--dark-to-white h4 {
  color: #fff;
}

.section--dark-to-white a {
  color: var(--c-green-400);
}

.section--dark-to-soft {
  background: linear-gradient(to bottom, var(--c-navy-800) 0%, var(--c-navy-700) 50%, var(--bg-soft) 100%);
  color: #E7EFF3;
}

.section--dark-to-soft h1,
.section--dark-to-soft h2,
.section--dark-to-soft h3,
.section--dark-to-soft h4 {
  color: #fff;
}

.section--dark-to-soft a {
  color: var(--c-green-400);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.section-header>* {
  margin: 0;
}

.section-header p {
  margin-inline: auto;
  max-width: 62ch;
}

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-400);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--t-fast), background var(--t-base), color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
}

/* Sur petit écran, un libellé long en nowrap force un défilement horizontal
   de toute la page (cas « Voir toutes les pathologies prises en charge »).
   On l'autorise à passer sur deux lignes. */
@media (max-width: 600px) {
  .btn {
    white-space: normal;
    max-width: 100%;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(95, 184, 95, 0.35);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(63, 155, 69, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn--light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
}

.btn--light:hover {
  background: #fff;
  color: var(--primary-dark);
}

:root[data-theme="dark"] .btn--light {
  background: #fff;
  color: #1B3A4B;
}

:root[data-theme="dark"] .btn--light:hover {
  background: #f0f7fb;
  color: #1B3A4B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .btn--light {
    background: #fff;
    color: #1B3A4B;
  }

  :root:not([data-theme]) .btn--light:hover {
    background: #f0f7fb;
    color: #1B3A4B;
  }
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: var(--fs-500);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ---------- 6. En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--primary-dark);
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--t-base);
}

.brand:hover img {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .brand img {
    height: 44px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Déclaré APRÈS la règle de base : même spécificité, donc l'ordre tranche. */
@media (max-width: 600px) {
  .brand-text {
    display: none;
  }
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--sp-1);
  padding: 0;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  color: var(--primary-dark);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-list a:hover {
  background: var(--c-navy-50);
  color: var(--primary-dark);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--c-green-100);
}

/* Mode sombre : surbrillance des onglets en blanc pur ou bleu vif — !important pour battre les règles génériques */
:root[data-theme="dark"] .nav-list>li>a:hover,
:root[data-theme="dark"] .nav-list>li>a:focus-visible {
  background: rgba(95, 184, 95, 0.22) !important;
  color: #FFFFFF !important;
}

:root[data-theme="dark"] .nav-list>li>a[aria-current="page"] {
  color: #0E1F26 !important;
  background: var(--c-green-400) !important;
  font-weight: 600;
}

.nav-cta {
  margin-left: var(--sp-3);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-5);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base), opacity var(--t-base);
  }

  .nav-list[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list a {
    padding: var(--sp-3);
    border-radius: 0;
    border-bottom: 1px solid var(--c-grey-100);
    color: var(--primary-dark);
  }

  /* Menu mobile mode sombre */
  :root[data-theme="dark"] .nav-list {
    background: #0E1F26;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  :root[data-theme="dark"] .nav-list a {
    color: #E7EFF3;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .nav-list {
      background: #0E1F26;
      border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    :root:not([data-theme]) .nav-list a {
      color: #E7EFF3;
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }
  }

  .nav-cta {
    margin: var(--sp-3) 0 0;
  }
}

/* Bandeau d'urgence */
.topbar {
  background: var(--primary-dark);
  color: #DDEAF1;
  font-size: var(--fs-300);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 0.4rem;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a[href^="tel:"] {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar strong {
  color: var(--c-green-400);
}

:root[data-theme="dark"] .topbar a,
:root[data-theme="dark"] .topbar span {
  color: #E7EFF3;
}

@media (prefers-color-scheme: dark) {

  :root:not([data-theme]) .topbar a,
  :root:not([data-theme]) .topbar span {
    color: #E7EFF3;
  }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(800px 400px at 110% -10%, rgba(95, 184, 95, 0.2), transparent 60%),
    radial-gradient(500px 500px at -5% 100%, rgba(162, 123, 92, 0.09), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(27, 58, 75, 0.1), transparent 60%),
    linear-gradient(180deg, #F4F9F7 0%, #FFFFFF 100%);
  padding-block: var(--sp-9) var(--sp-8);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

.hero h1 {
  font-size: var(--fs-900);
  margin-bottom: var(--sp-4);
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
}

.hero h1 .accent {
  color: var(--accent-dark);
}

.hero p.lead {
  font-size: var(--fs-500);
  margin-bottom: var(--sp-6);
  max-width: 56ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  border: 1px solid var(--border);
  font-size: var(--fs-300);
  font-weight: 500;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

/* L'image est en 120% de hauteur pour laisser de la course au parallaxe :
   sans rognage elle déborde du cadre et le dégradé du bas tombe à côté.
   overflow ici = filet de sécurité si .hero-visual-inner est absent du HTML. */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
  position: absolute;
  top: -20%;
  left: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(15, 37, 48, 0.55), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
  z-index: 2;
}

/* Halo doux derrière la photo hero */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(95, 184, 95, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

/* ---------- 8. Cards & grilles ---------- */
.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-bento {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 900px) {
  .grid-bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-bento>.card--elevated {
    grid-column: span 2;
  }
}

.card {
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* Flat by default */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-green-100);
}

.card--elevated {
  box-shadow: var(--shadow-elevated);
  border-color: transparent;
}

.card--elevated:hover {
  box-shadow: var(--shadow-lg);
}

/* Logo de marque : voir la définition centrale ::before en fin de fichier */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.card h3 {
  font-size: var(--fs-600);
  margin-bottom: var(--sp-3);
  font-family: var(--font-sans);
  font-weight: 700;
}

.card p {
  color: var(--text-soft);
  font-size: var(--fs-400);
  margin-bottom: var(--sp-4);
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  /* Aligns all buttons/links perfectly at the bottom of the card! */
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}

.card a.card-link::after {
  content: "→";
  transition: transform var(--t-fast);
}

.card a.card-link:hover::after {
  transform: translateX(4px);
}

.card--feature .icon {
  background: none;
  color: var(--accent);
}

/* Card pathologie / examen avec en-tête colorée */
.path-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.path-card-header {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  color: #fff;
}

.path-card-header h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-600);
}

.path-card-header .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}

.path-card-body {
  padding: var(--sp-5);
}

.path-card-body p+p {
  margin-top: var(--sp-3);
}

.path-card-body h4 {
  color: var(--primary-dark);
  margin-block: var(--sp-4) var(--sp-2);
}

.path-card-body ul {
  padding-left: 1.1rem;
  color: var(--text-soft);
}

/* ---------- 9. Liste de réassurance ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}

.feature-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.feature-list .check {
  width: 28px;
  height: 28px;
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-list strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: var(--sp-1);
}

.feature-list span {
  color: var(--text-soft);
  font-size: var(--fs-400);
}

/* ---------- 10. Praticiens ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.doctor {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.doctor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.doctor-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto var(--sp-4);
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-green-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-600);
  margin-bottom: var(--sp-2);
}

.doctor .role {
  display: block;
  font-size: var(--fs-300);
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: var(--sp-4);
}

.doctor ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 240px;
  margin-inline: auto;
}

.doctor ul li {
  font-size: var(--fs-300);
  color: var(--text-soft);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-grey-100);
}

.doctor ul li:first-child {
  border-top: 0;
}

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-5);
}

.stat {
  text-align: center;
  padding: var(--sp-5);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 2rem + 2.5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.stat-label {
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.5;
  max-width: 14ch;
  margin-inline: auto;
}

/* ---------- 12. FAQ accordéon ---------- */
.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5);
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transition: background var(--t-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-dark);
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--c-navy-50);
}

:root[data-theme="dark"] .faq-item summary {
  color: #fff;
}

:root[data-theme="dark"] .faq-item summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {

  :root:not([data-theme]) .faq-item summary,
  :root[data-theme="auto"] .faq-item summary {
    color: #fff;
  }

  :root:not([data-theme]) .faq-item summary:hover,
  :root[data-theme="auto"] .faq-item summary:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.faq-item-content {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-soft);
}

/* ---------- 13. Formulaires ---------- */
.form {
  display: grid;
  gap: var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--primary-dark);
}

.field label .req {
  color: var(--c-error);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 184, 95, 0.18);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-help {
  font-size: var(--fs-300);
  color: var(--text-soft);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: var(--c-error);
}

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-300);
  color: var(--text-soft);
}

.checkbox input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox a {
  color: var(--primary);
}

/* ---------- 14. Coordonnées / contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}

.info-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.info-list .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.info-list strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: var(--sp-1);
}

.info-list a {
  color: var(--primary);
  font-weight: 500;
}

.info-list span.detail {
  color: var(--text-soft);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 15. Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-navy-800) 0%, var(--c-navy-700) 50%, var(--accent-dark) 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--sp-2);
}

.cta-band p {
  color: #DCE7ED;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- 16. Note médicale ---------- */
.medical-note {
  background: var(--c-navy-50);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-300);
  color: var(--text-soft);
  margin-top: var(--sp-6);
}

.medical-note strong {
  color: var(--primary-dark);
}

/* Dark mode : note médicale / disclaimer bien visible */
:root[data-theme="dark"] .medical-note {
  background: #0D2A38 !important;
  border-left-color: #2196C8 !important;
  color: #C8DDE8 !important;
}

:root[data-theme="dark"] .medical-note strong {
  color: #FFFFFF !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .medical-note {
    background: #0D2A38 !important;
    border-left-color: #2196C8 !important;
    color: #C8DDE8 !important;
  }

  :root:not([data-theme="light"]) .medical-note strong {
    color: #FFFFFF !important;
  }
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--c-navy-900);
  color: #B7C7D0;
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: var(--fs-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
  font-family: var(--font-sans);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.site-footer ul li {
  white-space: nowrap;
}

/* L'adresse mail reste sur une seule ligne (demande client).
   Taille en vw et non en rem : elle ne suit pas l'agrandisseur de texte,
   sinon elle repasserait à la ligne en A+ / A++. */
.site-footer ul li a[href^="mailto"] {
  white-space: nowrap;
  word-break: normal;
  font-size: clamp(0.75rem, 3.2vw, 0.9rem);
}

.site-footer a {
  color: #B7C7D0;
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-footer a:hover {
  color: var(--c-green-400);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer-brand img {
  height: 48px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--fs-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-300);
}

/* ---------- 18. Page titre / hero secondaire ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy-800) 0%, var(--c-navy-700) 60%, var(--c-navy-500) 130%);
  color: #fff;
  padding-block: var(--sp-9) var(--sp-8);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(95, 184, 95, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero>.container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.page-hero h1 {
  color: #fff;
  max-width: 16ch;
}

.page-hero .lead {
  color: #C9DAE2;
  max-width: 60ch;
}

.breadcrumb {
  font-size: var(--fs-300);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-green-400);
}

/* ---------- 19. Article body (textes longs) ---------- */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: var(--sp-7);
}

.prose h3 {
  margin-top: var(--sp-6);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: var(--sp-4);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose ul li,
.prose ol li {
  margin-bottom: var(--sp-2);
}

.prose strong {
  color: var(--primary-dark);
}

/* ---------- 20. Utilitaires ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-5 {
  margin-top: var(--sp-5);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 22. Bouton terracotta (accent secondaire) ---------- */
.btn--warm {
  background: var(--warm);
  color: #fff;
  box-shadow: 0 6px 16px rgba(162, 123, 92, 0.35);
}

.btn--warm:hover {
  background: var(--warm-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(126, 92, 66, 0.45);
}

/* ---------- 23b. Doctolib iframe intégré ---------- */
.doctolib-iframe-wrapper {
  max-width: 660px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(15, 37, 48, 0.12), 0 2px 8px rgba(15, 37, 48, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.doctolib-iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 540px;
  min-height: 540px;
  border: none;
  background: #fff;
}

@media (max-width: 600px) {
  .doctolib-iframe-wrapper iframe {
    height: 500px;
    min-height: 500px;
  }
}

.doctolib-fallback-text {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--fs-300);
  color: var(--text-soft);
  max-width: 100%;
  margin-inline: auto;
}

.doctolib-fallback-text a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- 23. Encart Doctolib (CTA externe) — conservé pour compat ---------- */
.doctolib-card {
  background: linear-gradient(135deg, #1854F0 0%, #0E3FBF 100%);
  /* couleurs Doctolib */
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-7);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.doctolib-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.doctolib-card::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(95, 184, 95, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

@media (max-width: 800px) {
  .doctolib-card {
    grid-template-columns: 1fr;
    padding: var(--sp-7) var(--sp-5);
  }
}

.doctolib-card-content {
  position: relative;
  z-index: 1;
}

.doctolib-card .label-doctolib {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-300);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.doctolib-card .label-doctolib::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #5FB85F;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(95, 184, 95, 0.4);
}

.doctolib-card h2 {
  color: #fff;
  font-size: var(--fs-800);
  margin-bottom: var(--sp-3);
  font-family: var(--font-serif);
}

.doctolib-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-500);
  margin-bottom: var(--sp-5);
  max-width: 50ch;
}

.doctolib-card .btn--primary {
  background: #fff;
  color: #1854F0;
  font-weight: 700;
  font-size: var(--fs-500);
  padding: 1.1rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.doctolib-card .btn--primary:hover {
  background: #FFF8E1;
  color: #0E3FBF;
  transform: translateY(-2px);
}

.doctolib-card .btn-row {
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.doctolib-card .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.doctolib-card .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.doctolib-card-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-3);
}

.doctolib-feature {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.doctolib-feature .icon {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #1854F0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.doctolib-feature strong {
  display: block;
  font-size: var(--fs-400);
  margin-bottom: 2px;
}

.doctolib-feature span {
  font-size: var(--fs-300);
  color: rgba(255, 255, 255, 0.85);
}

/* Sans-RDV / urgences highlight */
.urgent-banner {
  background: linear-gradient(135deg, var(--c-warm-100) 0%, var(--c-cream-50) 100%);
  border-left: 4px solid var(--warm);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  flex-wrap: wrap;
}

.urgent-banner .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.urgent-banner h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--warm-dark);
  margin-bottom: var(--sp-1);
}

.urgent-banner p {
  color: var(--c-grey-800);
}

/* ---------- 24. Carte Google Maps en bas ---------- */
.map-band {
  position: relative;
  background: #0E1F26;
  /* même sombre que les fins de section et le footer — zéro cassure */
  padding: 0;
  overflow: hidden;
}

.map-band-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 380px;
}

@media (max-width: 800px) {
  .map-band-inner {
    grid-template-columns: 1fr;
  }
}

.map-band-info {
  padding: var(--sp-7);
  color: #E7EFF3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-band-info h2 {
  color: #fff;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-700);
}

.map-band-info p {
  color: #C9DAE2;
  margin-bottom: var(--sp-4);
}

.map-band-info .info-list {
  margin-bottom: var(--sp-5);
}

.map-band-info .info-list strong {
  color: #fff;
}

.map-band-info .info-list a {
  color: var(--c-green-400);
}

.map-band-info .info-list .icon {
  background: none;
  color: var(--c-green-400);
}

.map-band-info .info-list span.detail {
  color: #C9DAE2;
}

.map-band-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: saturate(0.95);
}

/* ---------- 25. Bulle de discussion (chat widget) ---------- */
.chat-bubble {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  font-family: var(--font-sans);
}

.chat-launcher {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(63, 155, 69, 0.45), 0 0 0 6px rgba(95, 184, 95, 0.18);
  display: grid;
  place-items: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
}

.chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(63, 155, 69, 0.55), 0 0 0 8px rgba(95, 184, 95, 0.2);
}

.chat-launcher:active {
  transform: scale(0.96);
}

.chat-launcher svg {
  width: 28px;
  height: 28px;
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(15, 37, 48, 0.25), 0 4px 12px rgba(15, 37, 48, 0.1);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-slow), opacity var(--t-base);
  display: flex;
  flex-direction: column;
}

.chat-panel[data-open="true"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, var(--c-navy-800) 0%, var(--c-navy-700) 100%);
  color: #fff;
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-green-500), var(--c-green-700));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-header h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  margin-bottom: 2px;
}

.chat-header .status {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-header .status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-green-400);
  border-radius: 50%;
}

.chat-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.chat-body {
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-cream-50);
  flex: 1;
  max-height: 240px;
  overflow-y: auto;
}

.chat-message {
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: var(--sp-3);
  box-shadow: 0 2px 6px rgba(15, 37, 48, 0.05);
}

.chat-message strong {
  color: var(--primary-dark);
}

.chat-form {
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--sp-3);
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color var(--t-fast);
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 184, 95, 0.18);
}

.chat-form textarea {
  min-height: 70px;
  resize: vertical;
}

.chat-form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast);
}

.chat-form button:hover {
  background: var(--accent-dark);
}

.chat-form .legal {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 480px) {
  .chat-bubble {
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

/* ---------- 26. Carte article presse ---------- */
.press-card {
  background: linear-gradient(135deg, var(--c-cream-50) 0%, var(--c-warm-100) 100%);
  border-left: 4px solid var(--warm);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-6);
  align-items: center;
}

@media (max-width: 720px) {
  .press-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .press-card img {
    margin: 0 auto;
  }
}

.press-card img {
  width: 100%;
  max-width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.press-card .source {
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-dark);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  display: block;
}

.press-card blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  line-height: 1.5;
  color: var(--primary-dark);
  margin: var(--sp-3) 0;
  font-style: italic;
}

.press-card cite {
  font-size: var(--fs-300);
  color: var(--text-soft);
  font-style: normal;
}

/* ---------- 28. Bande Urgences Ophtalmologiques (ROUGE) ---------- */
.emergency-band {
  background: linear-gradient(135deg, #C0392B 0%, #A52A1F 50%, #8B1F18 100%);
  color: #fff;
  padding: var(--sp-6) 0;
  position: relative;
  overflow: hidden;
}

.emergency-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 20px, rgba(255, 255, 255, 0.04) 20px 22px);
  pointer-events: none;
}

.emergency-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-5);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .emergency-band-inner {
    grid-template-columns: auto 1fr;
    gap: var(--sp-4);
  }

  .emergency-band-inner .btn-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.emergency-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  color: #C0392B;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.emergency-band h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.emergency-band p {
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  font-size: var(--fs-400);
}

.emergency-band .btn--light {
  background: #fff;
  color: #C0392B;
  font-weight: 700;
}

.emergency-band .btn--light:hover {
  background: #FFF8E1;
  color: #8B1F18;
}

/* Section pathologies d'urgence (variante claire) */
.emergency-section {
  background: linear-gradient(180deg, #FFF5F4 0%, #FFFFFF 100%);
  border-top: 4px solid #C0392B;
  border-bottom: 1px solid #F4D6D2;
}

.emergency-section .eyebrow {
  color: #C0392B;
}

.emergency-section h2 {
  color: #8B1F18;
}

.emergency-card {
  background: #fff;
  border: 1px solid #F4D6D2;
  border-left: 4px solid #C0392B;
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.emergency-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.15);
}

.emergency-card h3 {
  color: #8B1F18;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-500);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.emergency-card p {
  color: var(--text);
  font-size: var(--fs-400);
}

/* ---------- 29. Motifs de consultation Doctolib ---------- */
.motifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.motif-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.motif-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(95, 184, 95, 0.15);
  color: var(--text);
}

.motif-card .motif-icon {
  width: 36px;
  height: 36px;
  background: var(--c-green-100);
  color: var(--accent-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.motif-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.motif-card span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- 30. Équipe complète (étendue) ---------- */
.team-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}

.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--c-green-100);
}

.role-card .role-count {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  box-shadow: 0 6px 16px rgba(95, 184, 95, 0.3);
}

.role-card h4 {
  font-size: var(--fs-500);
  color: var(--primary-dark);
  margin-bottom: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 700;
}

.role-card p {
  color: var(--text-soft);
  font-size: var(--fs-300);
  margin: 0 auto;
}

/* ---------- 31. Galerie d'images (placeholder + photos) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-navy-50), var(--c-cream));
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--c-navy-500);
  font-size: var(--fs-300);
  text-align: center;
  padding: var(--sp-4);
}

.gallery-item-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
  margin-bottom: var(--sp-2);
}

.gallery-item-large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
  .gallery-item-large {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 32. Avis / témoignages patients ---------- */
.reviews-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: #fff;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: var(--sp-4);
}

.reviews-rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #FFB400;
  font-size: 1.3rem;
}

.reviews-rating .score {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.reviews-rating .count {
  color: var(--text-soft);
  font-size: var(--fs-300);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.review-stars {
  color: #FFB400;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--sp-3);
}

.review-text {
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: var(--sp-4);
  flex: 1;
}

.review-text::before {
  content: "« ";
  color: var(--accent);
  font-weight: 700;
}

.review-text::after {
  content: " »";
  color: var(--accent);
  font-weight: 700;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-top: 1px solid var(--c-grey-100);
  padding-top: var(--sp-3);
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.review-author-info strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.review-author-info span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.reviews-cta {
  text-align: center;
  margin-top: var(--sp-7);
}

/* ---------- 33. Page-hero avec image (bannière pathologies) ---------- */
.page-hero--image {
  padding: 0;
  background: #0E1F26;
  /* couleur unique — même fond partout, zéro cassure */
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 52% 1fr;
  align-items: stretch;
  min-height: 360px;
}

@media (max-width: 800px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-image {
    min-height: 240px;
    max-height: 320px;
  }
}

.page-hero-image {
  position: relative;
  background-size: cover;
  background-position: center 70%;
  background-color: #0E1F26;
  min-height: 360px;
}

.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Fondu progressif de la photo vers #0E1F26 sur toute la moitié droite */
  background:
    linear-gradient(90deg,
      transparent 0%,
      transparent 10%,
      rgba(14, 31, 38, 0.02) 25%,
      rgba(14, 31, 38, 0.15) 45%,
      rgba(14, 31, 38, 0.50) 62%,
      rgba(14, 31, 38, 0.82) 78%,
      rgba(14, 31, 38, 0.96) 90%,
      #0E1F26 100%),
    linear-gradient(0deg, rgba(14, 31, 38, 0.20) 0%, transparent 30%),
    linear-gradient(180deg, rgba(14, 31, 38, 0.10) 0%, transparent 20%);
  pointer-events: none;
}

@media (max-width: 800px) {
  .page-hero-image::after {
    background:
      linear-gradient(180deg, rgba(14, 31, 38, 0.10) 0%, transparent 25%, transparent 40%, rgba(14, 31, 38, 0.60) 75%, #0E1F26 100%);
  }
}

.page-hero-text {
  padding: var(--sp-8) var(--sp-7);
  background: #0E1F26;
  /* identique au fond de la photo — aucune cassure possible */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  color: #fff;
}

.page-hero-text .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero-text .breadcrumb a {
  color: #fff;
}

.page-hero-text h1,
.page-hero-text h2,
.page-hero-text h3,
.page-hero-text h4 {
  color: #fff;
}

.page-hero-text .lead {
  color: #C9DAE2;
}

/* Styles spécifiques pour l'image à droite (ex: Cabinet) */
.page-hero--image-right .page-hero-grid {
  grid-template-columns: 1fr 48%;
}

@media (max-width: 800px) {
  .page-hero--image-right .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero--image-right .page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Fondu progressif de la photo vers la gauche (#0E1F26) pour se marier avec la colonne de texte */
  background:
    linear-gradient(90deg,
      #0E1F26 0%,
      rgba(14, 31, 38, 0.96) 10%,
      rgba(14, 31, 38, 0.82) 22%,
      rgba(14, 31, 38, 0.50) 38%,
      rgba(14, 31, 38, 0.15) 55%,
      rgba(14, 31, 38, 0.02) 75%,
      transparent 90%,
      transparent 100%),
    linear-gradient(0deg, rgba(14, 31, 38, 0.20) 0%, transparent 30%),
    linear-gradient(180deg, rgba(14, 31, 38, 0.10) 0%, transparent 20%);
  pointer-events: none;
}

@media (max-width: 800px) {
  .page-hero--image-right .page-hero-image {
    min-height: 240px;
    max-height: 320px;
  }

  .page-hero--image-right .page-hero-image::after {
    /* Sur mobile (les blocs s'empilent), le fondu va du sombre (en haut) vers le transparent (en bas) */
    background:
      linear-gradient(180deg,
        #0E1F26 0%,
        rgba(14, 31, 38, 0.60) 25%,
        transparent 60%,
        transparent 75%,
        rgba(14, 31, 38, 0.10) 100%);
  }
}


/* ---------- 34. Accordéon pathologies (details/summary) ---------- */
details.path-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
  margin-bottom: 0;
}

details.path-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

details.path-card[open] {
  box-shadow: var(--shadow);
}

details.path-card>summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  color: #fff;
  transition: background var(--t-base);
}

details.path-card>summary::-webkit-details-marker {
  display: none;
}

details.path-card>summary::after {
  content: "";
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
  transition: transform var(--t-base);
  flex-shrink: 0;
}

details.path-card[open]>summary::after {
  transform: rotate(-135deg);
}

details.path-card>summary .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-right: var(--sp-3);
  flex-shrink: 0;
}

details.path-card>summary h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-500);
  margin: 0;
  flex: 1;
}

details.path-card .path-card-body {
  padding: var(--sp-5) var(--sp-6);
}

details.path-card .path-card-body h4 {
  color: var(--primary-dark);
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-500);
}

details.path-card .path-card-body ul {
  padding-left: 1.1rem;
  color: var(--text-soft);
}

details.path-card .path-card-body ul li {
  margin-bottom: var(--sp-2);
}

/* Variante URGENCE (rouge) */
details.path-card.is-urgent {
  border-color: #F4D6D2;
}

details.path-card.is-urgent>summary {
  background: linear-gradient(135deg, #C0392B 0%, #A52A1F 100%);
  color: #fff;
}

details.path-card.is-urgent>summary .tag {
  background: rgba(255, 255, 255, 0.22);
}

details.path-card.is-urgent>summary::after {
  border-color: #fff;
}

details.path-card.is-urgent[open] {
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.18);
}

/* Sur fond de photo (urgences-bg-wrap), le body des cartes urgences prend un ton sombre chaud */
.urgences-bg-wrap details.path-card {
  background: rgba(255, 255, 255, 0.96);
}

.urgences-bg-wrap details.path-card.is-urgent {
  border-color: rgba(192, 57, 43, 0.35);
}

.path-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- 34b. Grille de cartes pathologies — UNIFIÉE avec les .card grises ---------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  /* chaque cellule a sa propre hauteur — empêche les voisines de s'étirer */
}

/* Modèle de boîte STRICTEMENT identique aux .card grises */
.path-grid details.path-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  /* height: 100% supprimé — incompatible avec align-items:start */
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
}

.path-grid details.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-green-100);
}

/* Summary devient l'en-tête de carte, fond clair comme .card */
.path-grid details.path-card>summary {
  padding: var(--sp-6);
  background: transparent;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  flex: 1;
  cursor: pointer;
  list-style: none;
  position: relative;
  z-index: 2;
}

.path-grid details.path-card>summary::after {
  display: none;
}

.path-grid details.path-card>summary::-webkit-details-marker {
  display: none;
}

.path-grid details.path-card>summary .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--c-green-100);
  color: var(--accent-dark);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin: 0;
  font-weight: 700;
}

.path-grid details.path-card>summary h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.3;
}

.path-grid details.path-card>summary .summary-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--c-green-100);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: background var(--t-fast), color var(--t-fast), gap var(--t-fast);
}

.path-grid details.path-card>summary .summary-cta::after {
  content: "↓";
  font-weight: 700;
  transition: transform var(--t-base);
}

.path-grid details.path-card[open]>summary .summary-cta::after {
  transform: rotate(180deg);
}

.path-grid details.path-card:hover>summary .summary-cta {
  background: var(--accent);
  color: #fff;
  gap: var(--sp-3);
}

/* Body : padding et bordure identiques au modèle */
.path-grid details.path-card .path-card-body {
  padding: 0 var(--sp-6) var(--sp-6);
  background: transparent;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-2);
  padding-top: var(--sp-5);
  position: relative;
  z-index: 2;
}

/* === Variante URGENCE — seule la couleur de liseré change === */
.path-grid details.path-card.is-urgent {
  border-color: #F4D6D2;
  border-left: 4px solid #C0392B;
}

.path-grid details.path-card.is-urgent:hover {
  border-color: #C0392B;
  border-left-color: #8B1F18;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.18);
}

.path-grid details.path-card.is-urgent>summary {
  background: transparent;
  color: var(--text);
}

.path-grid details.path-card.is-urgent>summary .tag {
  background: #FFE4E0;
  color: #8B1F18;
}

.path-grid details.path-card.is-urgent>summary h3 {
  color: #8B1F18;
}

.path-grid details.path-card.is-urgent>summary .summary-cta {
  background: #FFE4E0;
  color: #8B1F18;
}

.path-grid details.path-card.is-urgent:hover>summary .summary-cta {
  background: #C0392B;
  color: #fff;
}

.path-grid details.path-card.is-urgent .path-card-body {
  border-top-color: #F4D6D2;
}

/* Mode sombre — adaptation des cartes path */
:root[data-theme="dark"] .path-grid details.path-card {
  background: var(--bg-card);
  border-color: var(--border);
}

:root[data-theme="dark"] .path-grid details.path-card>summary {
  color: var(--text);
}

:root[data-theme="dark"] .path-grid details.path-card>summary h3 {
  color: #fff;
}

:root[data-theme="dark"] .path-grid details.path-card>summary .tag {
  background: rgba(95, 184, 95, 0.18);
  color: var(--c-green-400);
}

:root[data-theme="dark"] .path-grid details.path-card>summary .summary-cta {
  background: rgba(95, 184, 95, 0.18);
  color: var(--c-green-400);
}

:root[data-theme="dark"] .path-grid details.path-card .path-card-body {
  color: var(--text-soft);
}

:root[data-theme="dark"] .path-grid details.path-card .path-card-body h4 {
  color: #fff;
}

:root[data-theme="dark"] .path-grid details.path-card.is-urgent {
  border-color: #C0392B;
  border-left-color: #FF6B5C;
}

:root[data-theme="dark"] .path-grid details.path-card.is-urgent>summary h3 {
  color: #FF9A8E;
}

:root[data-theme="dark"] .path-grid details.path-card.is-urgent>summary .tag,
:root[data-theme="dark"] .path-grid details.path-card.is-urgent>summary .summary-cta {
  background: rgba(192, 57, 43, 0.25);
  color: #FF9A8E;
}

/* ---------- 35. Organigramme équipe (3 niveaux) ---------- */
.org-chart {
  display: grid;
  gap: var(--sp-7);
  position: relative;
}

.org-level {
  position: relative;
}

.org-level-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.org-level-label::before,
.org-level-label::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: linear-gradient(90deg, transparent, var(--c-green-400), transparent);
}

.org-cards {
  display: grid;
  gap: var(--sp-4);
  justify-content: center;
}

.org-cards.level-1 {
  grid-template-columns: repeat(2, minmax(240px, 320px));
}

.org-cards.level-2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
}

.org-cards.level-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
}

@media (max-width: 720px) {
  .org-cards.level-1 {
    grid-template-columns: 1fr;
  }
}

.org-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-green-100);
}

.org-card-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  box-shadow: var(--shadow-sm);
}

.org-card-avatar svg {
  width: 38px;
  height: 38px;
  color: #fff;
}

.level-1 .org-card-avatar {
  width: 96px;
  height: 96px;
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 24px rgba(63, 155, 69, 0.3);
}

.level-2 .org-card-avatar {
  background: linear-gradient(135deg, var(--c-warm-600), var(--c-warm-700));
}

.org-card h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-500);
  color: var(--primary-dark);
  margin-bottom: var(--sp-1);
}

.org-card .role-title {
  display: block;
  font-size: var(--fs-300);
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.level-2 .org-card .role-title {
  color: var(--warm-dark);
}

.org-card p {
  font-size: var(--fs-300);
  color: var(--text-soft);
  margin: 0 auto;
  line-height: 1.5;
}

.level-1 .org-card h4 {
  font-size: var(--fs-600);
}

/* ---------- 36. Galerie pleine largeur ---------- */
.fullwidth-gallery {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding-block: var(--sp-9);
  overflow: hidden;
}

.fullwidth-gallery-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  padding-inline: var(--sp-5);
}

.carousel {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-3);
}

.carousel-track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: carousel-scroll 60s linear infinite;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.carousel-slide {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--t-base);
}

.carousel-slide:hover {
  transform: scale(1.04);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.carousel-slide:hover img {
  transform: scale(1.08);
}

.carousel-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(0deg, rgba(15, 37, 48, 0.85), transparent);
  color: #fff;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform var(--t-base);
}

.carousel-slide:hover .carousel-slide-caption {
  transform: translateY(0);
}

.masonry {
  column-count: 4;
  column-gap: var(--sp-3);
  padding-inline: var(--sp-5);
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: zoom-in;
}


/* ---------- Lightbox avec navigation ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 32, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: var(--sp-5);
  animation: fadeIn 0.22s ease;
}

.lightbox[data-open="true"] {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox img {
  max-width: 84vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  cursor: default;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Bouton fermer */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.30);
}

/* Boutons précédent / suivant */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 2;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-prev:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-50%) scale(1.08);
}

/* Compteur d'images */
.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.50);
  color: rgba(255, 255, 255, 0.90);
  font-size: var(--fs-300);
  font-family: var(--ff-body);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .lightbox-prev {
    left: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox-next {
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 80vh;
  }
}


/* ============================================================
   OVERRIDE FINAL — medical-note bien visible en mode sombre
   Ces règles sont volontairement en fin de fichier pour battre
   toute autre règle, et utilisent des couleurs hardcodées.
   ============================================================ */
:root[data-theme="dark"] aside.medical-note,
:root[data-theme="dark"] .medical-note {
  background: #1B3850 !important;
  border: 1px solid rgba(95, 184, 95, 0.35) !important;
  border-left: 4px solid #5FB85F !important;
  color: #E7EFF3 !important;
  font-weight: 500 !important;
}

:root[data-theme="dark"] aside.medical-note strong,
:root[data-theme="dark"] .medical-note strong {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

@media (prefers-color-scheme: dark) {

  :root:not([data-theme="light"]) aside.medical-note,
  :root:not([data-theme="light"]) .medical-note {
    background: #1B3850 !important;
    border: 1px solid rgba(95, 184, 95, 0.35) !important;
    border-left: 4px solid #5FB85F !important;
    color: #E7EFF3 !important;
    font-weight: 500 !important;
  }

  :root:not([data-theme="light"]) aside.medical-note strong,
  :root:not([data-theme="light"]) .medical-note strong {
    color: #FFFFFF !important;
    font-weight: 700 !important;
  }
}

/* ============================================================
   OVERRIDE FINAL — Bulle de discussion lisible en mode sombre
   ============================================================ */
:root[data-theme="dark"] .chat-panel {
  background: #163243 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .chat-body {
  background: #0E1F26 !important;
}

:root[data-theme="dark"] .chat-message {
  background: #1F3942 !important;
  color: #E7EFF3 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme="dark"] .chat-message strong {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] .chat-message a {
  color: var(--c-green-400) !important;
}

:root[data-theme="dark"] .chat-form {
  background: #163243 !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .chat-form input,
:root[data-theme="dark"] .chat-form textarea {
  background: #1F3942 !important;
  color: #E7EFF3 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

:root[data-theme="dark"] .chat-form input::placeholder,
:root[data-theme="dark"] .chat-form textarea::placeholder {
  color: #8FA3AC !important;
}

:root[data-theme="dark"] .chat-form .legal {
  color: #B7C7D0 !important;
}

:root[data-theme="dark"] .chat-form .legal strong {
  color: #FFFFFF !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chat-panel {
    background: #163243 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  :root:not([data-theme="light"]) .chat-body {
    background: #0E1F26 !important;
  }

  :root:not([data-theme="light"]) .chat-message {
    background: #1F3942 !important;
    color: #E7EFF3 !important;
  }

  :root:not([data-theme="light"]) .chat-message strong {
    color: #FFFFFF !important;
  }

  :root:not([data-theme="light"]) .chat-message a {
    color: var(--c-green-400) !important;
  }

  :root:not([data-theme="light"]) .chat-form {
    background: #163243 !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }

  :root:not([data-theme="light"]) .chat-form input,
  :root:not([data-theme="light"]) .chat-form textarea {
    background: #1F3942 !important;
    color: #E7EFF3 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }

  :root:not([data-theme="light"]) .chat-form input::placeholder,
  :root:not([data-theme="light"]) .chat-form textarea::placeholder {
    color: #8FA3AC !important;
  }

  :root:not([data-theme="light"]) .chat-form .legal {
    color: #B7C7D0 !important;
  }

  :root:not([data-theme="light"]) .chat-form .legal strong {
    color: #FFFFFF !important;
  }
}

/* =====================================================
   ACCORDÉONS MOBILE — uniquement ≤ 767 px
   ===================================================== */
@media (max-width: 767px) {

  /* --- 1. Cards accordéon (index.html) --- */
  [data-mob-acc] {
    cursor: pointer;
    position: relative;
    padding-right: calc(var(--sp-5) + 1.5rem);
  }

  [data-mob-acc]::after {
    content: '+';
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
  }

  [data-mob-acc][data-open="true"]::after {
    content: '−';
  }

  [data-mob-acc]:not([data-open="true"]) p {
    display: none;
  }

  [data-mob-acc]:not([data-open="true"]) .card-link {
    display: none;
  }

  /* --- 2. Team groups accordéon (cabinet.html) --- */
  .team-group {
    margin-bottom: var(--sp-2) !important;
  }

  .team-group-hd {
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4) !important;
    background: var(--bg-soft);
    margin-bottom: 0 !important;
  }

  .team-group-hd::after {
    content: '+';
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
  }

  .team-group[data-open="true"] .team-group-hd::after {
    content: '−';
  }

  .team-group-bd {
    display: none !important;
    padding-top: var(--sp-3);
  }

  .team-group[data-open="true"] .team-group-bd {
    display: block !important;
  }

  /* --- 3. Engagements accordéon (cabinet.html) --- */
  .mob-section-acc>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-soft);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--fs-400);
    color: var(--text);
  }

  .mob-section-acc>summary::-webkit-details-marker {
    display: none;
  }

  .mob-section-acc>summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 300;
  }

  .mob-section-acc[open]>summary::after {
    content: '−';
  }

  .mob-section-acc>summary .section-header {
    margin: 0 !important;
    text-align: left;
  }

  .mob-section-acc>summary h2 {
    font-size: var(--fs-400);
    margin: 0;
  }

  .mob-section-acc>summary .eyebrow {
    display: none;
  }

  .mob-section-acc-body {
    padding-top: var(--sp-4);
  }

  /* --- 4. Path-group master accordion (pathologies.html) --- */
  details.path-group {
    margin-bottom: var(--sp-5);
    border: none;
  }

  details.path-group>summary {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--bg-soft);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: var(--fs-400);
    color: var(--text);
    list-style: none;
  }

  details.path-group>summary::-webkit-details-marker {
    display: none;
  }

  details.path-group>summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 300;
    flex-shrink: 0;
  }

  details.path-group[open]>summary::after {
    content: '−';
  }

  details.path-group--urgent>summary {
    background: #FFF1EE;
    color: #C0392B;
    border: 1px solid #F4D6D2;
  }

  details.path-group--urgent>summary::after {
    color: #C0392B;
  }

  details.path-group-body {
    padding-top: var(--sp-3);
  }

  /* --- 5. Galerie équipement compacte (examens.html) --- */
  .exam-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--sp-3) !important;
  }

  .exam-gallery-item:nth-child(n+5) {
    display: none;
  }

  .exam-gallery-see-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    background: var(--bg-soft);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--fs-300);
    cursor: pointer;
    border: 1px solid var(--border);
    margin-top: var(--sp-3);
    width: 100%;
  }
}

@media (min-width: 768px) {
  .exam-gallery-see-all {
    display: none !important;
  }

  details.path-group>summary {
    display: none !important;
  }

  details.path-group,
  details.path-group>.path-group-body {
    display: block !important;
  }

  .mob-path-toggle {
    display: none !important;
  }
}

/* =====================================================
   MICRO-INTERACTIONS — polish discret
   ===================================================== */

/* Sélection de texte aux couleurs de la marque */
::selection {
  background: rgba(95, 184, 95, 0.28);
}

/* Ombre du header quand la page est scrollée (classe posée par main.js) */
.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(15, 37, 48, 0.09);
}

:root[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* Carte presse : même élévation au survol que les autres cartes */
.press-card {
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.press-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Toggle thème : retour visuel au survol */
.theme-toggle:hover {
  border-color: var(--accent);
}

/* Flèche des boutons primaires : glisse légère au survol */
.btn--primary span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--t-fast);
}

.btn--primary:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

/* =====================================================
   PREMIUM PACK — transitions de page, thème animé,
   décor hero, polish 3D. Tout respecte reduced-motion.
   ===================================================== */

/* ---- 1. Transitions entre pages (View Transitions MPA) ---- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.2s ease both vt-fade-out;
}

::view-transition-new(root) {
  animation: 0.32s ease both vt-fade-in;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

/* ---- 2. Bascule de thème : cercle qui s'étend depuis le bouton ---- */
/* Le clip-path est animé en JS ; on neutralise le fondu par défaut */
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-vt::view-transition-old(root) {
  z-index: 1;
}

html.theme-vt::view-transition-new(root) {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
}

/* Perspective 3D pour le tilt de la photo hero (rotation posée par GSAP) */
.hero-visual {
  will-change: transform;
}

/* ---- 4. Reflet animé sur le mot accentué du titre hero ---- */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent-dark) 20%, #7ADB8F 50%, var(--accent-dark) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-sweep 7s ease-in-out infinite;
}

@keyframes accent-sweep {

  0%,
  100% {
    background-position: 0% 0;
  }

  50% {
    background-position: 100% 0;
  }
}

/* ---- 5. Chiffres clés : halo lumineux ---- */
.stat-number {
  text-shadow: 0 0 28px rgba(95, 184, 95, 0.35);
}

/* ---- 6. FAQ : ouverture fluide (navigateurs récents, sans risque ailleurs) ---- */
:root {
  interpolate-size: allow-keywords;
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  opacity: 0;
  transition: height 0.32s ease, opacity 0.32s ease, content-visibility 0.32s allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
  opacity: 1;
}

/* =====================================================
   LOGO DE MARQUE DANS LES CARTES — définition centrale.
   ::before = logo en filigrane (masque SVG), entier et centré,
   visible aussi sur les accordéons FERMÉS (pseudo-élément du
   <details> lui-même, pas de son contenu).
   ===================================================== */
:root {
  --logo-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='140 -10 620 360'><path d='M636.17,242.52c-18.64,3.18-37.28,3.44-55.84,1.64-20.35,36.2-59.11,60.65-103.59,60.65-65.59,0-118.77-53.17-118.77-118.77,0-3.52.16-7,.46-10.44-42.67-11.13-82.36-11.62-128.71,10.78l25.47,39.22c35.26,54.29,89.57,105.96,142.07,129,96.22,42.24,186.87,4.86,262.17-79.02,20.68-23.04,37.98-49.18,55.59-75.93l8.73-13.26-.22-.35c-18.88,30.27-52.25,50.35-87.37,56.47Z'/><path d='M723.75,185.71c-18.84,30.46-52.34,50.67-87.58,56.81-78.94,13.45-158.08-25.37-229.67-51.19-62.81-23.48-113.62-35.47-176.78-4.95,18.84-30.46,52.34-50.67,87.58-56.81,78.94-13.45,158.08,25.37,229.67,51.19,62.81,23.48,113.62,35.47,176.78,4.95h0Z'/><path d='M317.3,99.78c25.6-4.36,51.21-3.22,76.59,1.18,21.4-20.84,50.62-33.68,82.85-33.68,58.89,0,107.76,42.87,117.14,99.1,38.45,10.19,74.42,11.86,114.93-3.94l-3.37-5.41c-4.65-7.45-9.72-14.07-14.64-21.28-7.35-10.76-14.81-19.88-23.16-29.7-39.63-46.61-84.02-81.74-136.43-97.82-69.78-21.4-139.01.17-198.34,50.44-19.43,16.46-36.09,33.75-51.45,52.61,11.38-5.45,23.52-9.35,35.89-11.5Z'/></svg>");
}

.card::before,
details.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1B434D 0%, #2D606C 35%, #61D385 100%);
  -webkit-mask: var(--logo-mask) center / 88% auto no-repeat;
  mask: var(--logo-mask) center / 88% auto no-repeat;
  opacity: 0.16;
  transition: transform var(--t-base), opacity var(--t-base);
  pointer-events: none;
  z-index: 0;
}

.card:hover::before,
details.path-card:hover::before {
  transform: scale(1.04);
  opacity: 0.2;
}

/* zoom au survol conservé (validé) */
details.path-card {
  position: relative;
}

details.path-card>summary,
details.path-card .path-card-body {
  position: relative;
  z-index: 2;
}

.card>* {
  position: relative;
  z-index: 2;
}

/* contenu au-dessus du filigrane, même sans wrapper .card-content */
/* Variante terracotta (pathologies chroniques) */
details.path-card.logo-warm::before {
  background: linear-gradient(135deg, #7E5C42 0%, #A27B5C 50%, #CBB5A0 100%);
}

/* Variante rouge (urgences) — automatique */
details.path-card.is-urgent::before {
  background: linear-gradient(135deg, #C0392B 0%, #9E2A2B 50%, #7B1F18 100%);
}

/* Spotlight : halo doux qui suit le curseur (desktop uniquement) */
@media (hover: hover) and (pointer: fine) {

  .card::after,
  details.path-card::after,
  .doctor::after,
  .news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
        rgba(95, 184, 95, 0.13), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
  }

  .card:hover::after,
  details.path-card:hover::after,
  .doctor:hover::after,
  .news-card:hover::after {
    opacity: 1;
  }

  details.path-card.is-urgent::after {
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
        rgba(192, 57, 43, 0.13), transparent 65%);
  }

  /* Bordure qui s'illumine */
  .card:hover,
  .doctor:hover,
  .news-card:hover,
  .path-grid details.path-card:not(.is-urgent):hover {
    border-color: rgba(95, 184, 95, 0.55);
  }
}

.doctor,
.news-card {
  position: relative;
}

:root[data-theme="dark"] .card::after,
:root[data-theme="dark"] details.path-card:not(.is-urgent)::after,
:root[data-theme="dark"] .doctor::after,
:root[data-theme="dark"] .news-card::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
      rgba(122, 201, 122, 0.16), transparent 65%);
}

/* =====================================================
   CONFORT VISUEL — agrandissement du texte (A / A+ / A++)
   Pensé pour les patients malvoyants : tout le site est en
   rem, donc changer la racine agrandit tout proprement.
   ===================================================== */
:root[data-font-scale="1"] {
  font-size: 112.5%;
}

:root[data-font-scale="2"] {
  font-size: 125%;
}

.font-toggle {
  min-width: 56px;
  height: 32px;
  padding: 0 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Loupe en pseudo-élément : le JS réécrit le textContent du bouton
   (A / A+ / A++), il n'efface pas un ::before. Masque + currentColor
   pour suivre automatiquement le mode sombre. */
.font-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.font-toggle:hover {
  border-color: var(--accent);
  background: var(--c-green-100);
}

:root[data-theme="dark"] .font-toggle {
  color: #fff;
}

:root[data-theme="dark"] .font-toggle:hover {
  background: rgba(95, 184, 95, 0.18);
}

.font-toggle-mobile {
  display: none;
}

@media (max-width: 880px) {
  .nav-list .font-toggle {
    display: none;
  }

  .font-toggle-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--sp-2);
  }
}

/* =====================================================
   FRISE "VOTRE PREMIÈRE VISITE" (rendez-vous)
   La ligne verte se dessine au scroll (GSAP scrub),
   les étapes glissent, les numéros popent.
   ===================================================== */
.visite-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.visite-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.visite-line {
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  transform-origin: top;
  border-radius: 2px;
}

.visite-step {
  position: relative;
  padding: 0 0 var(--sp-6) 72px;
}

.visite-step:last-child {
  padding-bottom: 0;
}

.visite-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(95, 184, 95, 0.25);
  z-index: 1;
}

.visite-step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-500);
  margin-bottom: var(--sp-2);
}

.visite-step p {
  color: var(--text-soft);
  margin: 0;
}

:root[data-theme="dark"] .visite-node {
  background: var(--bg-card);
  color: var(--c-green-400);
}

/* Sommaire éditorial (pathologies) : ligne typographique, filets fins */
.sommaire {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: var(--sp-2);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.sommaire-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: var(--sp-5);
}

.sommaire a {
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding-inline: var(--sp-4);
  border-left: 1px solid var(--border);
  background-image: linear-gradient(var(--accent-dark), var(--accent-dark));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: var(--sp-4) 100%;
  transition: background-size var(--t-base), color var(--t-fast);
}

.sommaire a:first-of-type {
  border-left: 0;
  padding-left: 0;
  background-position: 0 100%;
}

.sommaire a:hover {
  color: var(--accent-dark);
  background-size: calc(100% - 2 * var(--sp-4)) 2px;
}

.sommaire a:first-of-type:hover {
  background-size: calc(100% - var(--sp-4)) 2px;
}

.sommaire .sommaire-urgence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #C0392B;
  font-weight: 700;
  background-image: linear-gradient(#C0392B, #C0392B);
}

.sommaire .sommaire-urgence:hover {
  color: #8B1F18;
}

:root[data-theme="dark"] .sommaire .sommaire-urgence {
  color: #FF9A8E;
  background-image: linear-gradient(#FF9A8E, #FF9A8E);
}

/* Hero accueil : ligne de faits typographique (remplace les pilules) */
.hero-facts {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: var(--sp-3);
}

.hero-facts li {
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--text-soft);
  padding-right: var(--sp-4);
  margin-right: var(--sp-4);
  border-right: 1px solid var(--border);
}

.hero-facts li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-fact-urgence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #C0392B;
  font-weight: 700;
  text-decoration: none;
}

.hero-fact-urgence .arrow {
  transition: transform var(--t-fast);
}

.hero-fact-urgence:hover {
  color: #8B1F18;
}

.hero-fact-urgence:hover .arrow {
  transform: translateX(3px);
}

:root[data-theme="dark"] .hero-fact-urgence {
  color: #FF9A8E;
}

:root[data-theme="dark"] .hero-fact-urgence:hover {
  color: #FFB4AA;
}

/* Carrousels v2 : bords fondus + prise en main manuelle */
.carousel {
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carousel-track {
  animation-duration: 75s;
}

.carousel--manual {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.carousel--manual::-webkit-scrollbar {
  display: none;
}

.carousel--manual .carousel-track {
  animation: none;
}

.carousel--manual .carousel-slide {
  scroll-snap-align: center;
}

.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .carousel-arrows {
    display: none;
  }
}

/* mobile : glissement au doigt */

/* Raccords fluides après les bannières sombres (#0E1F26) */
.section--after-dark {
  background: linear-gradient(180deg, #0E1F26 0%, var(--bg) 170px);
}

.section--after-dark-to-soft {
  background: linear-gradient(180deg, #0E1F26 0%, var(--bg) 170px, var(--bg-soft) 100%);
}

.hero--after-dark {
  background:
    linear-gradient(180deg, #0E1F26 0%, transparent 190px),
    radial-gradient(800px 400px at 110% -10%, rgba(95, 184, 95, 0.2), transparent 60%),
    radial-gradient(500px 500px at -5% 100%, rgba(162, 123, 92, 0.09), transparent 60%),
    linear-gradient(180deg, #F4F9F7 0%, #FFFFFF 100%);
}

:root[data-theme="dark"] .hero--after-dark {
  background: linear-gradient(180deg, #0E1F26 0%, #163243 100%);
}

/* Équipe : avatar moyen, photo vivante au survol, pastille terracotta */
.doctor-avatar {
  width: 132px;
  height: 132px;
}

.doctor-avatar img {
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.9);
}

.doctor:hover .doctor-avatar img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.badge-secteur {
  display: inline-block;
  margin-bottom: var(--sp-4);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--c-warm-100);
  color: var(--warm-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .badge-secteur {
  background: rgba(162, 123, 92, 0.22);
  color: #D9C4B0;
}

/* Palette : tags "étiquette" en crème + ardoise (rôles matière/secondaire) */
.path-grid details.path-card:not(.is-urgent)>summary .tag {
  background: #EDE8DC;
  color: var(--c-navy-600);
}

:root[data-theme="dark"] .path-grid details.path-card:not(.is-urgent)>summary .tag {
  background: rgba(220, 215, 201, 0.14);
  color: #D8D2C4;
}

/* mob-path-group : div accordion mobile pour les urgences */
@media (max-width: 767px) {
  .mob-path-group .path-group-body {
    display: none;
  }

  .mob-path-group[data-open="true"] .path-group-body {
    display: block;
  }

  .mob-path-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    user-select: none;
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius);
    font-weight: 700;
    list-style: none;
    margin-bottom: var(--sp-3);
  }

  .mob-path-toggle::after {
    content: '+';
    margin-left: auto;
    font-size: 1.3rem;
    font-weight: 300;
    flex-shrink: 0;
  }

  .mob-path-group[data-open="true"] .mob-path-toggle::after {
    content: '−';
  }

  .mob-path-group--urgent .mob-path-toggle {
    background: #FFF1EE;
    color: #C0392B;
    border: 1px solid #F4D6D2;
  }

  .mob-path-group--urgent .mob-path-toggle::after {
    color: #C0392B;
  }
}