/* =====================================================================
   CABINET D'UROLOGIE VICTOR HUGO — Dr WAKRIM Badreddine
   Feuille de style principale (mobile first)
   ---------------------------------------------------------------------
   SOMMAIRE
   01. Variables (design tokens) — thème clair
   02. Thème sombre
   03. Reset & base
   04. Typographie
   05. Mise en page (container, sections, grilles)
   06. Utilitaires
   07. Boutons
   08. Eyebrows, pastilles, puces, badges
   09. Préchargement, rideau de transition, View Transitions
   10. Barre de progression, curseur, zellige, toast
   11. Header & navigation
   12. Menu déroulant « Spécialités »
   13. Menu mobile plein écran
   14. Hero (accueil)
   15. Illustrations SVG animées
   16. Bandeau de confiance & marquee
   17. Cartes, bento grid, tilt 3D
   18. Pourquoi nous choisir, chiffres clés, étapes, valeurs
   19. Scroll horizontal épinglé
   20. Timeline du parcours
   21. Hero des pages internes & fil d'Ariane
   22. Pages pathologies (sommaire, blocs, encadrés)
   23. Accordéon / FAQ / recherche
   24. Filtres par catégorie
   25. Articles, blog & contenu éditorial (prose)
   26. Formulaires
   27. Contact, carte, horaires
   28. Bande d'appel à l'action
   29. Footer
   30. Boutons flottants & retour en haut
   31. Page 404
   32. Animations de révélation au scroll
   33. Keyframes
   34. Ajustements RTL (arabe)
   35. Mouvement réduit & impression
   ===================================================================== */


/* =====================================================================
   01. VARIABLES — THÈME CLAIR
   Modifiez ici les couleurs, rayons, ombres et typographies du site.
   ===================================================================== */
:root {
  /* --- Couleurs de marque (issues de la carte de visite) --- */
  --c-royal: #1E3A8A;          /* bleu roi */
  --c-royal-600: #172E6E;
  --c-royal-400: #3B5BDB;
  --c-royal-200: #9DB4FF;
  --c-night: #0F1B4C;          /* bleu nuit */
  --c-coral: #F28C38;          /* orange corail */
  --c-coral-600: #D9620F;
  --c-coral-200: #FFB070;
  --c-red: #D7263D;            /* rouge accent (touches) */
  --c-offwhite: #F8FAFC;       /* blanc cassé */
  --c-indigo: #4F46E5;
  --c-success: #0F8A5F;
  --c-whatsapp: #149C4A;

  /* --- Gris doux --- */
  --gray-50: #F8FAFC;
  --gray-100: #EEF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;

  /* --- Couleurs sémantiques (utilisées partout) --- */
  --bg: #F8F7F4;
  --bg-alt: #EFEDE7;
  --surface: #FFFFFF;
  --card-bg: rgba(255, 255, 255, .78);
  --glass-bg: rgba(255, 255, 255, .62);
  --border: rgba(15, 27, 76, .09);
  --border-strong: rgba(30, 58, 138, .24);
  --text: #334155;
  --text-muted: #556079;
  --heading: #0F1B4C;
  --primary: #1E3A8A;            /* texte/liens primaires */
  --primary-strong: #1E3A8A;     /* fonds primaires (texte blanc dessus) */
  --primary-soft: rgba(30, 58, 138, .08);
  --on-primary: #FFFFFF;
  --accent: #F28C38;
  --accent-text: #B4530C;        /* corail lisible sur fond clair (AA) */
  --accent-soft: rgba(242, 140, 56, .14);
  --danger: #C81E33;
  --danger-soft: rgba(215, 38, 61, .09);
  --success: #0F8A5F;
  --success-soft: rgba(15, 138, 95, .1);
  --link: #1E3A8A;
  --focus: #1E3A8A;
  --hl-color: rgba(242, 140, 56, .32);   /* surligneur */

  /* --- Logo (s'adapte au thème) --- */
  --logo-blue: #34479A;
  --logo-red: #E2523E;
  --logo-liquid-1: #A9DEF3;
  --logo-liquid-2: #6FC3E6;
  --logo-text: #0F1B4C;

  /* --- Dégradés --- */
  --grad-brand: linear-gradient(90deg, #1E3A8A 0%, #1E3A8A 55%, #F28C38 100%);
  --grad-brand-v: linear-gradient(180deg, #1E3A8A 0%, #1E3A8A 60%, #F28C38 100%);
  --grad-night: linear-gradient(160deg, #1E3A8A 0%, #0F1B4C 100%);
  --grad-text: linear-gradient(90deg, #B4530C, #B4530C);
  --grad-soft: linear-gradient(180deg, rgba(30, 58, 138, .04), rgba(242, 140, 56, .05));
  --mesh-1: rgba(30, 58, 138, .12);
  --mesh-2: rgba(242, 140, 56, .14);
  --mesh-3: rgba(196, 160, 120, .14);
  --mesh-4: rgba(215, 38, 61, .05);

  /* --- Ombres douces --- */
  --shadow-xs: 0 1px 2px rgba(15, 27, 76, .06);
  --shadow-sm: 0 1px 2px rgba(15, 27, 76, .05), 0 4px 12px rgba(15, 27, 76, .05);
  --shadow-md: 0 4px 12px rgba(15, 27, 76, .05), 0 22px 44px -16px rgba(15, 27, 76, .16);
  --shadow-lg: 0 10px 30px rgba(15, 27, 76, .07), 0 44px 80px -24px rgba(15, 27, 76, .26);
  --shadow-glow: 0 12px 36px -10px rgba(30, 58, 138, .55);
  --shadow-glow-coral: 0 12px 36px -10px rgba(242, 140, 56, .6);

  /* --- Rayons (coins très arrondis) --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* --- Typographies ---
     Titres : Newsreader (serif éditorial) — Texte : Instrument Sans
     Arabe  : Noto Naskh Arabic (titres) — IBM Plex Sans Arabic (texte) */
  --font-latin: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-arabic-display: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --font-body: var(--font-latin);
  --font-display: var(--font-serif);

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-3xl: clamp(2.4rem, 1.5rem + 4vw, 4.25rem);
  --fs-hero: clamp(2.5rem, 1.3rem + 3.9vw, 4.75rem);

  /* --- Espacements & dimensions --- */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 72px;
  --topbar-h: 0px;
  --header-total: calc(var(--header-h) + var(--topbar-h));

  /* --- Courbes d'animation --- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .2s;
  --dur: .4s;
  --dur-slow: .8s;

  /* --- Motif zellige (SVG inline, très discret) --- */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%231E3A8A' stroke-width='1'%3E%3Cpath d='M48 14l9 25 25 9-25 9-9 25-9-25-25-9 25-9z'/%3E%3Crect x='31' y='31' width='34' height='34' transform='rotate(45 48 48)'/%3E%3Crect x='31' y='31' width='34' height='34'/%3E%3Cpath d='M0 0l14 14M96 0L82 14M0 96l14-14M96 96L82 82M48 0v8M48 88v8M0 48h8M88 48h8'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-opacity: .05;

  color-scheme: light;
}

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
}

/* Typographie arabe */
:root[lang="ar"] {
  --font-body: var(--font-arabic);
  --font-display: var(--font-arabic-display);
}


/* =====================================================================
   02. THÈME SOMBRE
   ===================================================================== */
:root[data-theme="dark"] {
  --bg: #0A0F1F;
  --bg-alt: #0E1428;
  --surface: #121A33;
  --card-bg: rgba(20, 31, 72, .62);
  --glass-bg: rgba(12, 20, 52, .58);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(157, 180, 255, .32);
  --text: #C9D3EA;
  --text-muted: #9AA7C6;
  --heading: #F5F7FF;
  --primary: #9DB4FF;
  --primary-strong: #3550B8;
  --primary-soft: rgba(157, 180, 255, .1);
  --accent-text: #FFB070;
  --accent-soft: rgba(242, 140, 56, .16);
  --danger: #FF6B7D;
  --danger-soft: rgba(255, 107, 125, .12);
  --success: #3DDC97;
  --success-soft: rgba(61, 220, 151, .12);
  --link: #9DB4FF;
  --focus: #FFB070;
  --hl-color: rgba(242, 140, 56, .34);

  --logo-blue: #AFC0FF;
  --logo-red: #FF6B57;
  --logo-text: #FFFFFF;

  --grad-text: linear-gradient(90deg, #FFB070, #FFB070);
  --grad-soft: linear-gradient(180deg, rgba(157, 180, 255, .05), rgba(242, 140, 56, .05));
  --mesh-1: rgba(30, 58, 138, .45);
  --mesh-2: rgba(242, 140, 56, .12);
  --mesh-3: rgba(30, 58, 138, .25);
  --mesh-4: rgba(215, 38, 61, .08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .25), 0 22px 44px -16px rgba(0, 0, 0, .55);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .3), 0 44px 80px -24px rgba(0, 0, 0, .7);
  --shadow-glow: 0 12px 40px -8px rgba(59, 91, 219, .6);

  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%239DB4FF' stroke-width='1'%3E%3Cpath d='M48 14l9 25 25 9-25 9-9 25-9-25-25-9 25-9z'/%3E%3Crect x='31' y='31' width='34' height='34' transform='rotate(45 48 48)'/%3E%3Crect x='31' y='31' width='34' height='34'/%3E%3Cpath d='M0 0l14 14M96 0L82 14M0 96l14-14M96 96L82 82M48 0v8M48 88v8M0 48h8M88 48h8'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-opacity: .06;

  color-scheme: dark;
}


/* =====================================================================
   03. RESET & BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--dur-fast);
}

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

/* :where() = spécificité nulle, les composants peuvent redéfinir le padding */
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
dd {
  overflow-wrap: break-word;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
}

::selection {
  background: var(--c-coral);
  color: var(--c-night);
}

/* Focus visible accessible (navigation clavier) */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement */
.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 10000;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-night);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* Scrollbar discrète */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--border-strong) transparent;
    scrollbar-width: thin;
  }
}

/* Bascule de langue : fondu du contenu */
body.is-switching-lang .site-header > *,
body.is-switching-lang main,
body.is-switching-lang .site-footer {
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}

body .site-header > *,
body main,
body .site-footer {
  transition: opacity .35s var(--ease-out);
}


/* =====================================================================
   04. TYPOGRAPHIE
   ===================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.018em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
/* Petits titres : retour à la police de texte, plus lisible */
h3 { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }

:root[lang="ar"] h1,
:root[lang="ar"] h2 {
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: var(--heading);
}

small {
  font-size: var(--fs-xs);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
}

/* Mot mis en valeur dans un titre : italique serif, couleur corail
   (la classe garde son nom historique .text-grad) */
.text-grad,
.accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

:root[lang="ar"] .text-grad,
:root[lang="ar"] .accent-word {
  font-style: normal;
  font-weight: 700;
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-text); }
.text-primary { color: var(--primary); }

/* Effet surligneur progressif au scroll (--hl piloté en JS) */
.hl {
  --hl: 0;
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--hl-color), var(--hl-color));
  background-repeat: no-repeat;
  background-size: calc(var(--hl) * 100%) 40%;
  background-position: 0 88%;
  padding-inline: .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Arabe : jamais d'espacement de lettres (casse les liaisons) */
:root[lang="ar"] body,
:root[lang="ar"] body * {
  letter-spacing: 0 !important;
}

:root[lang="ar"] body {
  line-height: 1.85;
}

:root[lang="ar"] h1,
:root[lang="ar"] h2,
:root[lang="ar"] h3,
:root[lang="ar"] h4 {
  line-height: 1.35;
}


/* =====================================================================
   05. MISE EN PAGE
   ===================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

.section--alt {
  background: var(--bg-alt);
}

.section--soft {
  background: var(--grad-soft);
}

.section--flush-top {
  padding-block-start: 0;
}

.section-head {
  max-width: 780px;
  margin-block-end: clamp(40px, 5vw, 64px);
}

.section-head > * + * {
  margin-block-start: 16px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head--split {
  display: grid;
  gap: 20px;
  max-width: none;
  align-items: end;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: 1fr;
}

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

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

.grid-auto {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.split {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.stack > * + * {
  margin-block-start: var(--stack-gap, 1.1em);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, 12px);
  align-items: center;
}


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

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-block-start: 0 !important; }
.mt-1 { margin-block-start: 8px; }
.mt-2 { margin-block-start: 16px; }
.mt-3 { margin-block-start: 24px; }
.mt-4 { margin-block-start: 32px; }
.mt-5 { margin-block-start: 48px; }
.mt-6 { margin-block-start: 64px; }
.mb-0 { margin-block-end: 0 !important; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: embed; }
[hidden] { display: none !important; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* Icônes génériques */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* Icônes qui se redessinent au survol (pathLength=1 ajouté en JS) */
.anim-icons .icon-draw-host:hover .icon-draw [pathLength],
.anim-icons .icon-draw-host:focus-visible .icon-draw [pathLength],
.anim-icons .icon-draw:hover [pathLength] {
  animation: redraw .9s var(--ease-out) both;
}

/* Emplacement photo réelle (placeholder visuel) */
.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--grad-soft), var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--fs-sm);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =====================================================================
   07. BOUTONS
   ===================================================================== */
.btn {
  --btn-bg: var(--primary-strong);
  --btn-color: var(--on-primary);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background-color .3s,
    border-color .3s,
    color .3s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  color: var(--btn-color);
}

.btn:active {
  transform: scale(.97);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform .35s var(--ease-out);
}

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

/* Effet de brillance qui traverse le bouton */
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

/* Variantes */
.btn--primary {
  --btn-bg: var(--c-royal);
  background-image: var(--grad-night);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 18px 44px -10px rgba(30, 58, 138, .7);
}

.btn--accent {
  --btn-bg: var(--c-coral);
  --btn-color: var(--c-night);
  box-shadow: var(--shadow-glow-coral);
}

.btn--gradient {
  --btn-bg: var(--c-royal);
  background-image: var(--grad-brand);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: var(--shadow-glow);
  transition: background-position .6s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s;
}

.btn--gradient:hover {
  background-position: 100% 0;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--heading);
  --btn-border: var(--border-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--primary-soft);
  --btn-border: var(--primary);
}

.btn--glass {
  --btn-bg: var(--glass-bg);
  --btn-color: var(--heading);
  --btn-border: var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.btn--white {
  --btn-bg: #fff;
  --btn-color: var(--c-night);
}

.btn--outline-white {
  --btn-bg: transparent;
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, .45);
}

.btn--outline-white:hover {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-border: #fff;
}

.btn--whatsapp {
  --btn-bg: var(--c-whatsapp);
  --btn-color: #fff;
}

.btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: var(--fs-xs);
}

.btn--lg {
  min-height: 60px;
  padding: 18px 34px;
  font-size: var(--fs-base);
}

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

.btn--icon {
  width: 46px;
  min-height: 46px;
  height: 46px;
  padding: 0;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

/* Lien texte avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform .35s var(--ease-out);
}

.link-arrow:hover .icon,
.card:hover .link-arrow .icon {
  transform: translateX(5px);
}

/* Boutons magnétiques : transform piloté en JS */
.is-magnetic {
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}


/* =====================================================================
   08. EYEBROWS, PASTILLES, PUCES, BADGES
   ===================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--heading);
  box-shadow: var(--shadow-xs);
}

.pill__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-coral);
}

.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-coral);
  animation: ping 2s var(--ease-out) infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
}

.badge--accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

/* Pastille d'icône */
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 18px;
  background: var(--grad-soft), var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  transition: transform .5s var(--ease-spring), background .4s;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.icon-badge--accent {
  color: var(--accent-text);
}

.icon-badge--solid {
  background: var(--grad-night);
  color: #fff;
  border-color: transparent;
}

.card:hover .icon-badge {
  transform: translateY(-3px) rotate(-4deg);
}

/* Liste avec coches */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-inline-start: 36px;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: calc(.2em + 6px);
  width: 8px;
  height: 12px;
  border: solid var(--primary);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

.check-list--accent li::before { background: var(--accent-soft); }
.check-list--accent li::after { border-color: var(--accent-text); }

.check-list--warn li::before { background: var(--danger-soft); }
.check-list--warn li::after {
  content: "!";
  inset-inline-start: 0;
  top: .2em;
  width: 24px;
  height: 24px;
  border: 0;
  transform: none;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--danger);
}

/* Puces (chips) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease-out), box-shadow .3s;
}

.chip:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--on-primary);
  box-shadow: var(--shadow-glow);
}

.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  font-size: .75rem;
}

.chip[aria-pressed="true"] .chip__count {
  background: rgba(255, 255, 255, .2);
}


/* =====================================================================
   09. PRÉCHARGEMENT, RIDEAU DE TRANSITION, VIEW TRANSITIONS
   ===================================================================== */

/* Voile immédiat (posé par boot.js avant le rendu) */
html.is-preloading {
  overflow: hidden;
}

/* Voile immédiat (posé par boot.js avant le rendu) — même couleur que l'intro */
html.is-preloading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
}

/* ---------------------------------------------------------------------
   INTRO ANIMÉE DU LOGO (≈ 2 s, une seule fois par session)
   1. les reins rouge et bleu se dessinent trait par trait puis se remplissent
   2. les lettres C, U, V montent
   3. le liquide remplit le U
   4. la croix (♀) et la flèche (♂) se tracent, la croix pulse
   5. fondu vers le site
   --------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 45%, var(--surface) 0%, var(--bg) 70%);
  transition: opacity .5s var(--ease-out), visibility .5s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  transition: transform .6s var(--ease-out);
}

.preloader.is-done .preloader__inner {
  transform: scale(1.06);
}

.preloader .logo-icon {
  width: min(230px, 52vw);
  height: auto;
  overflow: visible;
}

/* 1. Reins : contour qui se dessine, puis remplissage */
.preloader .logo__kid-red,
.preloader .logo__kid-red2,
.preloader .logo__kid-blue,
.preloader .logo__kid-blue2 {
  fill-opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    draw .75s var(--ease-in-out) forwards,
    pre-fill .35s ease-out forwards;
}

.preloader .logo__kid-red { animation-delay: 0s, .6s; }
.preloader .logo__kid-red2 { animation-delay: .12s, .68s; }
.preloader .logo__kid-blue { animation-delay: .06s, .64s; }
.preloader .logo__kid-blue2 { animation-delay: .18s, .72s; }

/* 2. Lettres C U V qui montent */
.preloader .logo__c,
.preloader .logo__u,
.preloader .logo__v {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pre-rise .55s var(--ease-out) forwards;
}

.preloader .logo__c { animation-delay: .35s; }
.preloader .logo__u { animation-delay: .45s; }
.preloader .logo__v { animation-delay: .55s; }

/* 3. Le liquide remplit le U depuis le bas */
.preloader .logo__liquid {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: pre-liquid .55s var(--ease-out) .8s forwards;
}

/* 4. Croix et flèche tracées, la croix pulse */
.preloader .logo__cross,
.preloader .logo__arrow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .4s var(--ease-out) .7s forwards;
}

.preloader .logo__cross {
  transform-box: fill-box;
  transform-origin: center;
  animation:
    draw .4s var(--ease-out) .7s forwards,
    cross-pulse .45s var(--ease-spring) 1.15s;
}

.preloader__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--heading);
  opacity: 0;
  transform: translateY(8px);
  animation: pre-text .5s var(--ease-out) .75s forwards;
}

.preloader__sub {
  display: block;
  margin-block-start: 4px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

:root[lang="ar"] .preloader__sub {
  letter-spacing: 0;
  text-transform: none;
}

.preloader__bar {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border);
}

.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--logo-red), var(--logo-blue));
  transform-origin: left;
  transform: scaleX(0);
  animation: bar-fill 1.6s var(--ease-in-out) forwards;
}

[dir="rtl"] .preloader__bar::after {
  transform-origin: right;
}

@keyframes pre-fill {
  to { fill-opacity: 1; }
}

@keyframes pre-rise {
  from { opacity: 0; transform: translateY(40%) scaleY(.9); }
  to { opacity: 1; transform: none; }
}

@keyframes pre-liquid {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes pre-text {
  to { opacity: 1; transform: none; }
}

/* Rideau de transition (fallback sans View Transitions API) */
html.is-curtain-in::after,
html.is-curtain-out::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background:
    url("../assets/svg/logo-white.svg") center / 140px auto no-repeat,
    linear-gradient(135deg, #1E3A8A 0%, #0F1B4C 100%);
}

html.is-curtain-out::after {
  animation: curtain-cover .5s var(--ease-in-out) both;
}

html.is-curtain-in::after {
  animation: curtain-reveal .75s .1s var(--ease-in-out) both;
}

/* View Transitions API — transitions entre pages (navigateurs compatibles) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition {
    background: #0F1B4C;
  }

  ::view-transition-old(root) {
    animation: vt-old .55s var(--ease-in-out) both;
  }

  ::view-transition-new(root) {
    animation: vt-new .75s var(--ease-out) both;
  }

  ::view-transition-group(brand) {
    animation-duration: .6s;
    animation-timing-function: var(--ease-out);
  }
}

.brand {
  view-transition-name: brand;
}

/* Bascule de thème : animation circulaire pilotée en JS */
html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.vt-theme::view-transition-old(root) { z-index: 1; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
html.vt-theme::view-transition-group(brand) { animation: none; }


/* =====================================================================
   10. BARRE DE PROGRESSION, CURSEUR, ZELLIGE, TOAST
   ===================================================================== */
.progress-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1E3A8A, #4F46E5 50%, #F28C38);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

[dir="rtl"] .progress-bar span {
  transform-origin: right center;
  background: linear-gradient(-90deg, #1E3A8A, #4F46E5 50%, #F28C38);
}

/* Curseur personnalisé (desktop uniquement) */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s;
  will-change: transform;
}

.has-cursor .cursor,
.has-cursor .cursor-dot {
  opacity: 1;
}

.cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}

.cursor__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
}

.cursor.is-hover .cursor__ring {
  transform: scale(1.75);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cursor.is-down .cursor__ring {
  transform: scale(.8);
}

.cursor.is-hidden,
.cursor-dot.is-hidden {
  opacity: 0;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

/* Motif zellige marocain en arrière-plan (opacité pilotée au scroll) */
.zellige-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  transition: opacity .2s linear;
}

/* Intensité du motif selon le thème (l'opacité de .zellige-bg est pilotée en JS) */
.zellige-bg__layer {
  position: absolute;
  inset: 0;
  background-image: var(--zellige);
  background-size: 96px 96px;
  opacity: calc(var(--zellige-opacity) * 1.4);
}

/* Toast */
.toast {
  position: fixed;
  inset-block-end: 24px;
  left: 50%;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: var(--c-night);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .5s var(--ease-spring), opacity .3s;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast .icon {
  color: var(--c-coral);
}


/* =====================================================================
   11. HEADER & NAVIGATION
   Transparent en haut → verre dépoli au scroll → se cache en descendant
   ===================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: transform .5s var(--ease-out);
}

.header__inner {
  height: var(--header-h);
  transition: height .4s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-block-end: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}

/* Au scroll : le bandeau d'infos remonte, la barre se compacte */
.site-header.is-scrolled {
  transform: translateY(calc(-1 * var(--topbar-h)));
}

.site-header.is-scrolled .header__inner {
  height: calc(var(--header-h) - 8px);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Marque (logo + texte) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--heading);
  flex: none;
  min-width: 0;
}

.brand:hover {
  color: var(--heading);
}

.brand .logo-icon {
  width: 54px;
  height: auto;
  flex: none;
  transition: transform .5s var(--ease-spring);
}

.brand:hover .logo-icon {
  transform: rotate(-6deg) scale(1.05);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--heading);
}

.brand__sub {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.brand__name,
.brand__sub {
  white-space: nowrap;
}

/* Petits écrans : le bouton thème passe dans le menu mobile */
@media (max-width: 559px) {
  .header__actions > .theme-toggle { display: none; }
  .header__actions { gap: 6px; }
  .brand { gap: 10px; }
  .brand .logo-icon { width: 46px; }
  .brand__name { font-size: .92rem; }
  .brand__sub { font-size: .66rem; }
  .lang-switch__btn { min-width: 34px; height: 32px; padding-inline: 8px; }
}

@media (max-width: 380px) {
  .brand__sub { display: none; }
}

/* Navigation principale (desktop) */
.nav {
  display: none;
}

@media (min-width: 1280px) {
  .nav { display: block; }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled .nav__list {
  background: transparent;
  border-color: transparent;
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s, background-color .25s;
}

/* Écrans intermédiaires : on libère de la place pour la navigation */
@media (min-width: 1280px) and (max-width: 1439px) {
  .brand__sub { display: none; }
  .nav__link { padding: 10px 12px; font-size: .86rem; }
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--heading);
  background: var(--primary-soft);
}

.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--on-primary);
  background: var(--primary-strong);
}

.nav__link .icon--chevron {
  width: 16px;
  height: 16px;
  transition: transform .35s var(--ease-out);
}

.nav__link[aria-expanded="true"] .icon--chevron {
  transform: rotate(180deg);
}

/* Actions du header */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__cta {
  display: none;
}

@media (min-width: 720px) {
  .header__cta { display: inline-flex; }
}

/* Sélecteur de langue FR / ع */
.lang-switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lang-switch__btn {
  position: relative;
  z-index: 1;
  min-width: 40px;
  height: 36px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .3s;
}

.lang-switch__btn[lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 1rem;
}

.lang-switch__btn[aria-pressed="true"] {
  color: var(--on-primary);
}

.lang-switch__indicator {
  position: absolute;
  inset-block: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill);
  background: var(--primary-strong);
  box-shadow: var(--shadow-glow);
  transition: transform .45s var(--ease-spring);
}

.lang-switch[data-active="ar"] .lang-switch__indicator {
  transform: translateX(100%);
}

/* Le groupe reste en LTR pour que FR soit toujours à gauche */
.lang-switch {
  direction: ltr;
}

/* Bouton thème clair/sombre */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--heading);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: rotate(-12deg);
}

.theme-toggle .icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform .6s var(--ease-spring), opacity .3s;
}

.theme-toggle .icon--sun {
  transform: translateY(0) rotate(0);
}

.theme-toggle .icon--moon {
  transform: translateY(150%) rotate(-90deg);
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .icon--sun {
  transform: translateY(-150%) rotate(90deg);
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .icon--moon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* Burger animé */
.burger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-strong);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 1280px) {
  .burger { display: none; }
}

.burger__lines {
  position: relative;
  width: 20px;
  height: 14px;
}

.burger__lines span {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out), opacity .3s, width .35s var(--ease-out);
}

.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; width: 70%; }
.burger__lines span:nth-child(3) { top: 12px; }

.burger:hover .burger__lines span:nth-child(2) {
  width: 100%;
}

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

.burger[aria-expanded="true"] .burger__lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Header au-dessus du menu mobile ouvert : contenus en blanc */
html.menu-open .site-header {
  --heading: #fff;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, .7);
  --glass-bg: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .16);
  --logo-blue: #B7C8FF;
  --logo-red: #FF7A66;
  --primary-strong: #F28C38;
  --on-primary: #0F1B4C;
  transform: none;
}

html.menu-open .site-header::before {
  opacity: 0;
}

html.menu-open .header__cta {
  display: none;
}

html.menu-open {
  overflow: hidden;
}


/* =====================================================================
   12. MENU DÉROULANT « SPÉCIALITÉS »
   ===================================================================== */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 10;
  width: min(680px, 92vw);
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px) scale(.98);
  transform-origin: top center;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}

/* Pont invisible pour garder le survol entre lien et panneau */
.nav__item--dropdown::after {
  content: "";
  position: absolute;
  inset-inline: -20px;
  top: 100%;
  height: 18px;
}

.nav__item--dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
  .nav__item--dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s;
  }
}

.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  list-style: none;
  padding: 0;
}

.dropdown__link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: background .25s;
}

.dropdown__link:hover,
.dropdown__link:focus-visible,
.dropdown__link[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--text);
}

.dropdown__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: var(--grad-soft), var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  transition: transform .45s var(--ease-spring);
}

.dropdown__link:hover .dropdown__icon {
  transform: scale(1.08) rotate(-6deg);
}

.dropdown__icon .icon {
  width: 22px;
  height: 22px;
}

.dropdown__title {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.dropdown__desc {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-block-start: 2px;
}

.dropdown__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--grad-soft), var(--bg);
}

.dropdown__footer p {
  font-size: .82rem;
  color: var(--text-muted);
}


/* =====================================================================
   13. MENU MOBILE PLEIN ÉCRAN (ouverture circulaire clip-path)
   ===================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(242, 140, 56, .28), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(79, 70, 229, .35), transparent 70%),
    linear-gradient(160deg, #1E3A8A 0%, #0F1B4C 70%);
  clip-path: circle(0 at var(--mx, calc(100% - 40px)) var(--my, 36px));
  visibility: hidden;
  transition: clip-path .75s var(--ease-in-out), visibility 0s .75s;
}

html.menu-open .mobile-menu {
  clip-path: circle(150% at var(--mx, calc(100% - 40px)) var(--my, 36px));
  visibility: visible;
  transition: clip-path .75s var(--ease-in-out), visibility 0s;
}

@media (min-width: 1280px) {
  .mobile-menu { display: none; }
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--zellige);
  background-size: 96px;
  opacity: .06;
  pointer-events: none;
  filter: invert(1) brightness(2);
}

.mobile-nav {
  position: relative;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mobile-nav > li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: 0s;
}

html.menu-open .mobile-nav > li {
  opacity: 1;
  transform: none;
  transition-delay: calc(.25s + var(--i, 0) * 55ms);
}

.mobile-nav__link,
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-block-end: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__link:hover,
.mobile-nav summary:hover {
  color: var(--c-coral-200);
}

.mobile-nav__link[aria-current="page"] {
  color: var(--c-coral);
}

.mobile-nav summary .icon {
  transition: transform .35s var(--ease-out);
}

.mobile-nav details[open] summary .icon {
  transform: rotate(180deg);
}

.mobile-sub {
  list-style: none;
  padding: 10px 0 14px;
  display: grid;
  gap: 2px;
}

.mobile-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .85);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-sub a:hover,
.mobile-sub a[aria-current="page"] {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-sub .icon {
  color: var(--c-coral);
}

.mobile-menu__footer {
  position: relative;
  margin-block-start: auto;
  padding-block-start: 28px;
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .6s var(--ease-out);
}

html.menu-open .mobile-menu__footer {
  opacity: 1;
  transform: none;
  transition-delay: .7s;
}

.mobile-menu__prefs {
  --heading: #fff;
  --glass-bg: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .2);
  display: flex;
  gap: 10px;
}

.mobile-menu__contact {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .75);
}

.mobile-menu__contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}


/* =====================================================================
   14. HERO (ACCUEIL)
   ===================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-total) + 40px) 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

/* Mesh gradient animé (transform uniquement) */
.hero__mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38% 38% at 22% 30%, var(--mesh-1), transparent 70%),
    radial-gradient(34% 34% at 78% 22%, var(--mesh-2), transparent 70%),
    radial-gradient(42% 42% at 70% 78%, var(--mesh-3), transparent 70%),
    radial-gradient(30% 30% at 28% 82%, var(--mesh-4), transparent 70%);
  animation: mesh-move 24s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

/* Blobs organiques flottants */
.blob {
  position: absolute;
  width: clamp(240px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  filter: blur(48px);
  opacity: .55;
  will-change: transform;
}

.blob--1 {
  top: -8%;
  inset-inline-start: -6%;
  background: radial-gradient(circle at 30% 30%, #3B5BDB, transparent 70%);
  animation: blob-a 19s var(--ease-in-out) infinite alternate;
}

.blob--2 {
  top: 18%;
  inset-inline-end: -10%;
  background: radial-gradient(circle at 60% 40%, #F28C38, transparent 70%);
  opacity: .42;
  animation: blob-b 23s var(--ease-in-out) infinite alternate;
}

.blob--3 {
  bottom: -18%;
  inset-inline-start: 30%;
  background: radial-gradient(circle at 50% 50%, #4F46E5, transparent 70%);
  opacity: .32;
  animation: blob-c 27s var(--ease-in-out) infinite alternate;
}

[data-theme="dark"] .blob { opacity: .38; }

@media (max-width: 899px) {
  .blob--3 { display: none; }
  .blob { filter: blur(36px); }
}

/* Grille du zellige dans le hero */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--zellige);
  background-size: 96px;
  opacity: var(--zellige-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

/* Canvas de particules */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; }
}

.hero__content > * + * {
  margin-block-start: 24px;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 400;
}

:root[lang="ar"] .hero__title {
  line-height: 1.3;
}

.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block-start: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  color: var(--accent-text);
}

/* Visuel du hero (carte verre + illustration) */
.hero__visual {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.hero__card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__card svg {
  width: 100%;
  height: 100%;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  line-height: 1.35;
  color: var(--text-muted);
  animation: float 6s var(--ease-in-out) infinite;
}

.float-badge strong {
  display: block;
  font-size: .92rem;
  color: var(--heading);
}

.float-badge .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.float-badge .icon-badge .icon {
  width: 20px;
  height: 20px;
}

.float-badge--1 {
  top: 8%;
  inset-inline-start: -6%;
}

.float-badge--2 {
  bottom: 10%;
  inset-inline-end: -4%;
  animation-delay: -3s;
}

@media (max-width: 640px) {
  .float-badge { padding: 10px 14px 10px 10px; font-size: .75rem; }
  .float-badge--1 { inset-inline-start: 0; top: -4%; }
  .float-badge--2 { inset-inline-end: 0; bottom: -4%; }
}

/* Indicateur de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-indicator__mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
}

.scroll-indicator__mouse::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 1.8s var(--ease-in-out) infinite;
}

@media (max-height: 700px), (max-width: 999px) {
  .scroll-indicator { display: none; }
}

/* Découpage du titre mot par mot (split text) */
.word {
  display: inline-block;
  vertical-align: top;
}

.word__inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em);
  filter: blur(12px);
  transition:
    opacity .8s var(--ease-out),
    transform .9s var(--ease-out),
    filter .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + var(--split-delay, 0ms));
}

.is-split-in .word__inner {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Les titres à découper restent invisibles le temps du découpage */
.js [data-split]:not(.is-split-ready) {
  visibility: hidden;
}

.no-anim [data-split] {
  visibility: visible !important;
}

.no-anim .word__inner {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}


/* =====================================================================
   15. ILLUSTRATIONS SVG ANIMÉES
   ===================================================================== */
.illus {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Flux lumineux reins → vessie (path avec pathLength="1") */
.flow-path {
  fill: none;
  stroke: url(#flowGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: .12 .88;
  stroke-dashoffset: 1;
  animation: flow 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(242, 140, 56, .8));
}

.flow-path--delay {
  animation-delay: -1.6s;
}

.illus-float {
  animation: float 7s var(--ease-in-out) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illus-float--slow {
  animation-duration: 10s;
  animation-delay: -2s;
}

.illus-pulse {
  animation: soft-pulse 3s var(--ease-in-out) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illus-spin {
  animation: spin 40s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illus-draw [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.is-visible .illus-draw [pathLength],
.illus-draw.is-visible [pathLength] {
  stroke-dashoffset: 0;
}

/* Couleurs d'illustration adaptatives */
.illus .fill-royal { fill: var(--c-royal); }
.illus .fill-night { fill: var(--c-night); }
.illus .fill-coral { fill: var(--c-coral); }
.illus .fill-red { fill: var(--c-red); }
.illus .fill-soft { fill: var(--primary-soft); }
.illus .fill-surface { fill: var(--surface); }
.illus .fill-bg { fill: var(--bg-alt); }
.illus .stroke-royal { stroke: var(--primary); }
.illus .stroke-coral { stroke: var(--c-coral); }
.illus .stroke-muted { stroke: var(--border-strong); }

[data-theme="dark"] .illus .fill-royal { fill: #3B5BDB; }
[data-theme="dark"] .illus .fill-night { fill: #9DB4FF; }


/* =====================================================================
   16. BANDEAU DE CONFIANCE & MARQUEE
   ===================================================================== */
.trust {
  position: relative;
  padding-block: 28px;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.trust__inner {
  display: grid;
  gap: 18px;
  align-items: center;
}

@media (min-width: 900px) {
  .trust__inner {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }
}

.trust__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust__items {
  display: grid;
  gap: 14px;
}

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

.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.trust__item strong {
  display: block;
}

/* Marquee défilant infini */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  background: var(--c-night);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee--light {
  background: transparent;
  color: var(--heading);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0;
  list-style: none;
  padding: 0;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 4px rgba(242, 140, 56, .25);
}

.marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .7);
}

.marquee--light .marquee__item--outline {
  -webkit-text-stroke-color: var(--border-strong);
}


/* =====================================================================
   17. CARTES, BENTO GRID, TILT 3D
   ===================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition:
    box-shadow .45s var(--ease-out),
    border-color .45s var(--ease-out),
    transform .6s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.card--solid {
  background: var(--surface);
}

.card--dark {
  --heading: #fff;
  --text: rgba(255, 255, 255, .82);
  --text-muted: rgba(255, 255, 255, .7);
  --primary: #B7C8FF;
  --primary-soft: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .12);
  background: var(--grad-night);
  color: var(--text);
}

.card--gradient {
  --heading: #fff;
  --text: rgba(255, 255, 255, .88);
  --text-muted: rgba(255, 255, 255, .78);
  --primary: #fff;
  --primary-soft: rgba(255, 255, 255, .14);
  background: var(--grad-brand);
  color: var(--text);
  border-color: transparent;
}

.card--lift:hover {
  transform: translateY(-6px);
}

.card__title {
  font-size: var(--fs-lg);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.card__footer {
  margin-block-start: auto;
  padding-block-start: 8px;
}

/* Lien étiré sur toute la carte */
.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card__link:hover {
  color: inherit;
}

.card:has(.card__link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card__link:focus-visible {
  outline: none;
}

/* Décor : grand numéro / illustration d'angle */
.card__deco {
  position: absolute;
  inset-block-start: -20px;
  inset-inline-end: -20px;
  z-index: -1;
  width: 160px;
  height: 160px;
  opacity: .12;
  color: var(--primary);
  transition: transform .8s var(--ease-out), opacity .4s;
}

.card:hover .card__deco {
  transform: rotate(-10deg) scale(1.08);
  opacity: .2;
}

.card__num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--accent-text);
}

/* Effet 3D tilt + reflet lumineux qui suit le curseur */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-tilt].is-tilting {
  transition: box-shadow .45s var(--ease-out), border-color .45s;
}

.card__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), transparent 42%);
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity .4s;
}

[data-theme="dark"] .card__glare {
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(157, 180, 255, .22), transparent 42%);
  mix-blend-mode: screen;
}

[data-tilt]:hover .card__glare {
  opacity: 1;
}

/* Bento grid */
.bento {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide { grid-column: span 2; }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(230px, auto);
  }
  .bento > * { grid-column: span 4; }
  .bento .b-3 { grid-column: span 3; }
  .bento .b-4 { grid-column: span 4; }
  .bento .b-5 { grid-column: span 5; }
  .bento .b-6 { grid-column: span 6; }
  .bento .b-7 { grid-column: span 7; }
  .bento .b-8 { grid-column: span 8; }
  .bento .b-12 { grid-column: span 12; }
  .bento .b-wide { grid-column: span 8; }
  .bento .b-tall { grid-row: span 2; }
}

.bento .card {
  min-height: 230px;
}

.bento__feature {
  justify-content: space-between;
}

.bento__feature .card__title {
  font-size: var(--fs-xl);
}

.bento__illus {
  position: absolute;
  inset-inline-end: -16px;
  inset-block-end: -16px;
  z-index: -1;
  width: 38%;
  max-width: 220px;
  height: auto;
  opacity: .9;
  pointer-events: none;
  transition: transform .8s var(--ease-out);
}

/* Le texte de la grande carte laisse la place à l'illustration */
.bento__feature > .stack,
.bento__feature > .card__footer {
  max-width: 64%;
}

@media (max-width: 639px) {
  .bento__illus { width: 34%; opacity: .5; }
  .bento__feature > .stack,
  .bento__feature > .card__footer { max-width: none; }
}

.card:hover .bento__illus {
  transform: translate(-6px, -6px) scale(1.04);
}


/* =====================================================================
   18. POURQUOI NOUS CHOISIR, CHIFFRES CLÉS, ÉTAPES, VALEURS
   ===================================================================== */
.features {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--r-md);
  transition: background .35s;
}

.feature:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature h3 {
  font-size: 1.12rem;
  margin-block-end: 6px;
}

.feature p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Chiffres clés */
.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}

.stat.is-visible::before,
.is-visible .stat::before {
  transform: scaleX(1);
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .stat__num {
  text-align: end;
}

.stat__label {
  display: block;
  margin-block-start: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.stats-note {
  margin-block-start: 16px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Étapes numérotées */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
  list-style: none;
  padding: 0;
}

@media (min-width: 900px) {
  .steps--row { grid-template-columns: repeat(var(--cols, 4), 1fr); }
}

.step {
  position: relative;
  padding: 26px;
  padding-block-start: 70px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-block-start: 22px;
  inset-inline-start: 26px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 1.1rem;
  margin-block-end: 8px;
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Valeurs */
.value-card {
  text-align: start;
}

.value-card .icon-badge {
  margin-block-end: 6px;
}


/* =====================================================================
   19. SCROLL HORIZONTAL ÉPINGLÉ
   Par défaut : défilement horizontal natif (mobile / mouvement réduit).
   .is-pinned (ajouté en JS sur desktop) : défilement piloté par le scroll vertical.
   ===================================================================== */
.hscroll {
  position: relative;
}

.hscroll__sticky {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
}

.hscroll__head {
  margin-block-end: 36px;
}

.hscroll__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding-inline: var(--gutter);
  padding-block-end: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hscroll__track::-webkit-scrollbar {
  display: none;
}

.hscroll__card {
  flex: none;
  width: min(380px, 82vw);
  scroll-snap-align: start;
}

.hscroll__progress {
  height: 3px;
  margin-inline: var(--gutter);
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  max-width: var(--container);
}

.hscroll__progress span {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(0);
}

[dir="rtl"] .hscroll__progress span {
  transform-origin: right;
}

/* Mode épinglé (desktop) */
.hscroll.is-pinned .hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 10px) 40px;
}

.hscroll.is-pinned .hscroll__track {
  width: max-content;
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.hscroll.is-pinned .hscroll__card {
  width: clamp(320px, 28vw, 400px);
}

.hscroll.is-pinned .hscroll__progress {
  margin-inline: auto;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-block-start: 28px;
}


/* =====================================================================
   20. TIMELINE DU PARCOURS
   ===================================================================== */
.timeline {
  position: relative;
  --tl: 0;
}

.timeline__line {
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 21px;
  width: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--grad-brand-v);
  transform-origin: top;
  transform: scaleY(var(--tl));
  will-change: transform;
}

.timeline__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 40px;
}

.timeline__item {
  position: relative;
  padding-inline-start: 72px;
}

.timeline__dot {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  transition: background .5s, border-color .5s, color .5s, box-shadow .6s var(--ease-out), transform .6s var(--ease-spring);
}

.timeline__dot .icon {
  width: 20px;
  height: 20px;
}

.timeline__card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: .45;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .5s;
}

.timeline__date {
  display: inline-block;
  margin-block-end: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.timeline__card h3 {
  margin-block-end: 8px;
}

.timeline__card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Étape allumée */
.timeline__item.is-active .timeline__dot {
  background: var(--grad-night);
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 8px var(--accent-soft), var(--shadow-glow);
}

.timeline__item.is-active .timeline__card {
  opacity: 1;
  transform: none;
  box-shadow: var(--shadow-md);
}

/* Desktop : ligne centrale et étapes alternées */
@media (min-width: 900px) {
  .timeline__line {
    inset-inline-start: calc(50% - 1px);
  }

  .timeline__list {
    gap: 24px;
  }

  .timeline__item {
    width: 50%;
    padding-inline: 0 64px;
  }

  .timeline__item:nth-child(even) {
    margin-inline-start: 50%;
    padding-inline: 64px 0;
  }

  .timeline__item .timeline__dot {
    inset-inline-start: auto;
    inset-inline-end: -22px;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    inset-inline-start: -22px;
    inset-inline-end: auto;
  }
}


/* =====================================================================
   21. HERO DES PAGES INTERNES & FIL D'ARIANE
   ===================================================================== */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-total) + clamp(40px, 7vw, 88px)) clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% 0;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 85% 20%, var(--mesh-2), transparent 70%),
    radial-gradient(45% 55% at 10% 10%, var(--mesh-1), transparent 70%),
    radial-gradient(35% 40% at 60% 90%, var(--mesh-3), transparent 70%);
  animation: mesh-move 26s var(--ease-in-out) infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 96px;
  opacity: var(--zellige-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.page-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.3fr .7fr; }
}

.page-hero__content > * + * {
  margin-block-start: 20px;
}

.page-hero__title {
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -.025em;
}

.page-hero__visual {
  max-width: 360px;
  width: 100%;
  margin-inline: auto;
}

.page-hero--compact {
  padding-block-end: 40px;
}

/* Fil d'Ariane */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  font-size: 1.1em;
  color: var(--border-strong);
}

[dir="rtl"] .breadcrumb li + li::before {
  content: "‹";
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

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


/* =====================================================================
   22. PAGES PATHOLOGIES (sommaire collant, blocs, encadrés)
   ===================================================================== */
.layout-toc {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1000px) {
  .layout-toc {
    grid-template-columns: 270px 1fr;
    gap: 64px;
  }
}

.toc {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
}

@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.toc__title {
  margin-block-end: 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .25s, background .25s;
}

.toc a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--grad-brand-v);
  transform: translateY(-50%);
  transition: height .35s var(--ease-out);
}

.toc a:hover {
  color: var(--heading);
  background: var(--primary-soft);
}

.toc a.is-active {
  color: var(--heading);
  background: var(--primary-soft);
}

.toc a.is-active::before {
  height: 60%;
}

.toc__cta {
  margin-block-start: 18px;
}

/* Blocs de contenu */
.content-blocks {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  min-width: 0;
}

.content-block {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-end: 22px;
}

.block-head h2 {
  font-size: var(--fs-xl);
}

.content-block > p,
.content-block .prose > p {
  max-width: 72ch;
}

.content-block > * + * {
  margin-block-start: 18px;
}

/* Grille de symptômes */
.symptom-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  list-style: none;
  padding: 0;
}

.symptom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
  transition: transform .35s var(--ease-out), border-color .3s;
}

.symptom:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.symptom .icon {
  color: var(--accent-text);
}

/* Encadrés */
.callout {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--primary-soft);
  border-inline-start: 4px solid var(--primary);
}

.callout .icon {
  width: 24px;
  height: 24px;
  flex: none;
  margin-block-start: 2px;
  color: var(--primary);
}

.callout p + p {
  margin-block-start: 8px;
}

.callout__title {
  display: block;
  margin-block-end: 4px;
  font-weight: 700;
  color: var(--heading);
}

.callout--warn {
  background: var(--danger-soft);
  border-inline-start-color: var(--danger);
}

.callout--warn .icon {
  color: var(--danger);
}

.callout--accent {
  background: var(--accent-soft);
  border-inline-start-color: var(--accent);
}

.callout--accent .icon {
  color: var(--accent-text);
}

/* Mention médicale (avertissement) */
.medical-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--danger-soft);
  border: 1px solid rgba(215, 38, 61, .2);
  font-size: var(--fs-sm);
  color: var(--text);
}

.medical-notice .icon {
  flex: none;
  color: var(--danger);
  margin-block-start: 3px;
}

.medical-notice strong {
  color: var(--danger);
}

/* Cartes de traitements */
.treatment-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.treatment-grid .card {
  gap: 10px;
}

.treatment-grid h3 {
  font-size: 1.1rem;
}

/* Pages connexes */
.related {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}


/* =====================================================================
   23. ACCORDÉON / FAQ / RECHERCHE
   ===================================================================== */
.accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color .35s, box-shadow .35s, background .35s;
}

.acc-item:hover {
  border-color: var(--border-strong);
}

.acc-item.is-open {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.acc-heading {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  text-align: start;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.45;
  color: var(--heading);
  border-radius: inherit;
}

.acc-icon {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-soft);
  transition: transform .5s var(--ease-spring), background .35s;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--primary);
  transition: background .35s;
}

.acc-icon::after {
  transform: rotate(90deg);
}

/* Le + tourne en × */
.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(135deg);
  background: var(--primary-strong);
}

.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  background: #fff;
}

/* Ouverture fluide (grid-template-rows 0fr → 1fr) */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}

.acc-panel.is-open {
  grid-template-rows: 1fr;
}

.acc-panel__inner {
  overflow: hidden;
  min-height: 0;
  padding-inline: 22px;
  visibility: hidden;
  transition: visibility 0s .5s;
  color: var(--text-muted);
}

.acc-panel.is-open .acc-panel__inner {
  visibility: visible;
  transition-delay: 0s;
}

.acc-panel__inner > :first-child {
  margin-block-start: 0;
}

.acc-panel__inner > :last-child {
  margin-block-end: 22px;
}

.acc-panel__inner > * + * {
  margin-block-start: 12px;
}

.acc-panel__inner ul {
  padding-inline-start: 1.2em;
}

/* Recherche FAQ */
.search-box {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}

.search-box .icon--search {
  position: absolute;
  inset-inline-start: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box__input {
  width: 100%;
  min-height: 64px;
  padding: 16px 60px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-md);
  box-shadow: var(--shadow-md);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}

.search-box__input::-webkit-search-cancel-button {
  display: none;
}

.search-box__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft), var(--shadow-md);
}

.search-box__clear {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: background .25s, color .25s;
}

.search-box__clear:hover {
  background: var(--primary-soft);
  color: var(--heading);
}

.search-status {
  margin-block-start: 14px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-height: 1.6em;
}

.faq-group + .faq-group {
  margin-block-start: 48px;
}

.faq-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 18px;
  font-size: var(--fs-lg);
}

.faq-empty {
  padding: 40px 20px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-strong);
  text-align: center;
  color: var(--text-muted);
}

mark.search-hit {
  background: var(--hl-color);
  color: inherit;
  border-radius: 3px;
  padding-inline: 2px;
}


/* =====================================================================
   24. FILTRES PAR CATÉGORIE
   ===================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-end: clamp(32px, 4vw, 48px);
}

[data-filter-item] {
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}

[data-filter-item].is-leaving {
  opacity: 0;
  transform: scale(.94) translateY(10px);
}

[data-filter-item].is-entering {
  animation: filter-in .5s var(--ease-out) both;
  animation-delay: var(--fd, 0ms);
}

.filter-status {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-block-start: -24px;
  margin-block-end: 32px;
}


/* =====================================================================
   25. ARTICLES, BLOG & CONTENU ÉDITORIAL (PROSE)
   ===================================================================== */
.post-card {
  padding: 0;
  gap: 0;
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grad-soft), var(--bg-alt);
}

.post-card__media svg {
  width: 100%;
  height: 100%;
  transition: transform .9s var(--ease-out);
}

.post-card:hover .post-card__media svg {
  transform: scale(1.06);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: clamp(20px, 2.6vw, 28px);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.post-card__title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.post-card .link-arrow {
  margin-block-start: auto;
}

/* Article : en-tête */
.article-head {
  max-width: var(--container-narrow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-cover {
  margin-block: clamp(32px, 5vw, 56px);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--grad-soft), var(--bg-alt);
  border: 1px solid var(--border);
}

.article-cover svg {
  width: 100%;
  height: 100%;
}

/* Prose (texte long) */
.prose {
  max-width: 72ch;
  font-size: 1.075rem;
  line-height: 1.85;
}

.prose > * + * {
  margin-block-start: 1.15em;
}

.prose h2 {
  margin-block-start: 2.2em;
  font-size: var(--fs-xl);
}

.prose h3 {
  margin-block-start: 1.8em;
  font-size: var(--fs-lg);
}

.prose h2 + *,
.prose h3 + * {
  margin-block-start: .7em;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.3em;
}

.prose li + li {
  margin-block-start: .45em;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border-inline-start: 4px solid var(--accent);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--heading);
}

.prose a {
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-block-end: 1px solid var(--border);
  text-align: start;
}

.prose th {
  color: var(--heading);
  font-weight: 700;
}

/* Partage */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}


/* =====================================================================
   26. FORMULAIRES (labels flottants, validation, succès)
   ===================================================================== */
.form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
}

.form-legend {
  margin-block-end: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--heading);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Champ */
.field {
  position: relative;
}

.field__input {
  width: 100%;
  min-height: 62px;
  padding: 26px 50px 10px 18px;
  padding-inline: 18px 50px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color .3s, box-shadow .35s var(--ease-out), background .3s;
  -webkit-appearance: none;
  appearance: none;
}

textarea.field__input {
  min-height: 150px;
  padding-block-start: 30px;
  resize: vertical;
}

select.field__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 18px center;
}

[dir="rtl"] select.field__input {
  background-position: left 18px center;
}

input[type="date"].field__input {
  min-height: 62px;
}

.field__input::placeholder {
  color: transparent;
}

/* Label flottant */
.field__label {
  position: absolute;
  inset-inline-start: 19px;
  top: 20px;
  max-width: calc(100% - 60px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-base);
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s;
}

[dir="rtl"] .field__label {
  transform-origin: right top;
}

.field:has(:required) .field__label::after {
  content: " *";
  color: var(--danger);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
select.field__input + .field__label,
input[type="date"].field__input + .field__label {
  transform: translateY(-11px) scale(.78);
  color: var(--primary);
  font-weight: 600;
}

/* Bordure qui s'illumine au focus */
.field__input:hover {
  border-color: var(--border-strong);
}

.field__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), 0 10px 30px -12px rgba(30, 58, 138, .45);
  outline: none;
}

/* États de validation */
.field.is-invalid .field__input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.field.is-invalid .field__label {
  color: var(--danger);
}

.field.is-valid .field__input {
  border-color: var(--success);
}

.field__status {
  position: absolute;
  inset-inline-end: 16px;
  top: 19px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

select.field__input ~ .field__status {
  inset-inline-end: 44px;
}

.field__status svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field__status circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .35;
}

.field__status path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.field.is-valid .field__status circle {
  animation: draw-to .5s var(--ease-out) forwards;
}

.field.is-valid .field__status path {
  animation: draw-to .4s .25s var(--ease-out) forwards;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  margin-block-start: 6px;
  padding-inline-start: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

/* Choix (radios / cases sous forme de cartes) */
.choice-group {
  display: grid;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

@media (min-width: 640px) {
  .choice-group--row { grid-template-columns: repeat(2, 1fr); }
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, background .3s;
}

.choice:hover {
  border-color: var(--border-strong);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: border-color .3s;
}

.choice__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary-strong);
  transform: scale(0);
  transition: transform .35s var(--ease-spring);
}

.choice__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.choice__label {
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.choice__label small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.choice:has(input:checked) .choice__mark {
  border-color: var(--primary-strong);
}

.choice:has(input:checked) .choice__mark::after {
  transform: scale(1);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Case à cocher (consentement) */
.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.checkbox__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-block-start: 2px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: background .3s, border-color .3s;
}

.checkbox__box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .35s var(--ease-out);
}

.checkbox input:checked + .checkbox__box {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.checkbox input:checked + .checkbox__box svg {
  stroke-dashoffset: 0;
}

.checkbox input:focus-visible + .checkbox__box {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.checkbox.is-invalid .checkbox__box {
  border-color: var(--danger);
}

/* Secousse en cas d'erreur */
.shake {
  animation: shake .5s var(--ease-out);
}

/* Bouton d'envoi : état de chargement */
.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  animation: spin .7s linear infinite;
}

/* Confirmation après envoi */
.form-success {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 56px) clamp(12px, 3vw, 24px);
  text-align: center;
}

.form-success h2,
.form-success h3 {
  font-size: var(--fs-xl);
}

.form-success p {
  max-width: 48ch;
  color: var(--text-muted);
}

.checkmark {
  width: 96px;
  height: 96px;
}

.checkmark circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.checkmark .checkmark__bg {
  fill: var(--success-soft);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.checkmark path {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.form-success.is-shown .checkmark .checkmark__bg {
  animation: pop .6s var(--ease-spring) forwards;
}

.form-success.is-shown .checkmark circle:not(.checkmark__bg) {
  animation: draw-to .7s .1s var(--ease-out) forwards;
}

.form-success.is-shown .checkmark path {
  animation: draw-to .45s .6s var(--ease-out) forwards;
}

.form-success.is-shown > :not(.checkmark) {
  animation: fade-up .6s var(--ease-out) both;
}

.form-success.is-shown > :nth-child(2) { animation-delay: .5s; }
.form-success.is-shown > :nth-child(3) { animation-delay: .6s; }
.form-success.is-shown > :nth-child(4) { animation-delay: .7s; }
.form-success.is-shown > :nth-child(5) { animation-delay: .8s; }

/* Canvas de confettis */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9500;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* =====================================================================
   27. CONTACT, CARTE, HORAIRES
   ===================================================================== */
.contact-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .35s, transform .45s var(--ease-out);
}

.contact-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card__value {
  display: block;
  margin-block-start: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  word-break: break-word;
}

a.contact-card__value:hover {
  color: var(--primary);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background .25s;
}

.copy-btn:hover {
  background: var(--border-strong);
}

/* Carte Google Maps + épingle animée */
.map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--grad-soft), var(--bg-alt);
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.9) contrast(1.02);
}

[data-theme="dark"] .map-wrap iframe {
  filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 64px;
  margin: -64px 0 0 -26px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-140px);
}

.map-pin svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 10px rgba(15, 27, 76, .35));
}

.map-pin__shadow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 26px;
  height: 8px;
  margin: -4px 0 0 -13px;
  border-radius: 50%;
  background: rgba(15, 27, 76, .35);
  filter: blur(2px);
  opacity: 0;
  transform: scale(.2);
  pointer-events: none;
}

.map-wrap.is-visible .map-pin {
  animation: pin-drop 1s .35s var(--ease-out) forwards;
}

.map-wrap.is-visible .map-pin__shadow {
  animation: pin-shadow 1s .35s var(--ease-out) forwards;
}

.map-card {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  z-index: 3;
  max-width: min(320px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.map-card strong {
  display: block;
}

/* Horaires */
.hours {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.hours__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: background .25s;
}

.hours__row:nth-child(odd) {
  background: var(--primary-soft);
}

.hours__day {
  font-weight: 700;
  color: var(--heading);
}

.hours__time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.hours__row.is-closed .hours__time {
  color: var(--danger);
}

.hours__row.is-today {
  background: var(--accent-soft);
  outline: 1.5px solid var(--accent);
  outline-offset: -1.5px;
}

.hours__row.is-today .hours__day::after {
  content: " •";
  color: var(--accent-text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-open {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.is-open::before {
  animation: soft-pulse 1.6s infinite;
}

.hours-note {
  margin-block-start: 12px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Footer : horaires plus compacts */
.site-footer .hours__row {
  padding: 6px 0;
  background: none;
  outline: none;
}

.site-footer .hours__row.is-today .hours__day {
  color: var(--c-coral);
}


/* =====================================================================
   28. BANDE D'APPEL À L'ACTION
   ===================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--r-xl);
  background: var(--grad-night);
  color: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1.4fr auto; }
}

.cta-band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 140, 56, .55), transparent 65%);
  filter: blur(20px);
  animation: blob-b 18s var(--ease-in-out) infinite alternate;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 96px;
  opacity: .08;
  filter: invert(1) brightness(2);
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-2xl);
}

.cta-band p {
  margin-block-start: 12px;
  max-width: 56ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =====================================================================
   29. FOOTER
   ===================================================================== */
.site-footer {
  --heading: #FFFFFF;
  --text: #B9C4E2;
  --text-muted: #93A0C2;
  --border: rgba(255, 255, 255, .1);
  --primary: #B7C8FF;
  --primary-soft: rgba(255, 255, 255, .08);
  --logo-blue: #B7C8FF;
  --logo-red: #FF7A66;
  --focus: #FFB070;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px) 28px;
  background: #0A1235;
  color: var(--text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(242, 140, 56, .14), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(59, 91, 219, .25), transparent 70%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--zellige);
  background-size: 96px;
  opacity: .05;
  filter: invert(1) brightness(2);
}

[data-theme="dark"] .site-footer::after {
  filter: none;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1.4fr .8fr 1fr 1.1fr 1fr; gap: 36px; }
}

.footer__brand .brand {
  margin-block-end: 18px;
}

.footer__brand p {
  font-size: var(--fs-sm);
  max-width: 38ch;
}

.footer__title {
  margin-block-end: 18px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-coral);
}

.footer__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
}

.footer__links a {
  position: relative;
  display: inline-block;
}

.footer__links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--c-coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

[dir="rtl"] .footer__links a::after {
  transform-origin: left;
}

.footer__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

[dir="rtl"] .footer__links a:hover::after {
  transform-origin: right;
}

.footer__contact {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: var(--fs-sm);
}

.footer__contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer__contact .icon {
  margin-block-start: 3px;
  color: var(--c-coral);
}

.socials {
  display: flex;
  gap: 10px;
  margin-block-start: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  transition: background .3s, border-color .3s, transform .4s var(--ease-spring);
}

.socials a:hover {
  background: var(--c-coral);
  border-color: var(--c-coral);
  color: var(--c-night);
  transform: translateY(-3px);
}

.footer__notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-block-start: 48px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(215, 38, 61, .12);
  border: 1px solid rgba(255, 90, 110, .25);
  font-size: var(--fs-sm);
  color: #FFD9DE;
}

.footer__notice .icon {
  color: #FF7A8A;
  margin-block-start: 3px;
}

.footer__notice a {
  color: #fff;
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block-start: 28px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
}

/* Grand mot décoratif en bas du footer */
.footer__giant {
  margin-block-start: 40px;
  font-size: clamp(3.5rem, 15vw, 13rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  user-select: none;
  white-space: nowrap;
}


/* =====================================================================
   30. BOUTONS FLOTTANTS & RETOUR EN HAUT
   ===================================================================== */
.fab-stack {
  position: fixed;
  inset-inline-end: clamp(14px, 2vw, 24px);
  inset-block-end: clamp(14px, 2vw, 24px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform .4s var(--ease-spring), box-shadow .3s;
}

.fab:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.fab .icon {
  width: 26px;
  height: 26px;
}

/* Pulsation douce */
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

.fab--whatsapp {
  background: var(--c-whatsapp);
}

.fab--call {
  background: var(--grad-night);
  background-color: var(--c-royal);
}

.fab--call::before {
  background: var(--c-royal);
  animation-delay: 1.3s;
}

/* Infobulle du bouton flottant */
.fab__tip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-night);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}

[dir="rtl"] .fab__tip {
  transform: translate(-8px, -50%);
}

.fab:hover .fab__tip,
.fab:focus-visible .fab__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (hover: none) {
  .fab__tip { display: none; }
}

/* Retour en haut avec cercle de progression */
.to-top {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.8);
  transition: opacity .35s, transform .45s var(--ease-spring), visibility 0s .45s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s, transform .45s var(--ease-spring), visibility 0s;
}

.to-top:hover .to-top__arrow {
  transform: translateY(-3px);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.to-top__progress {
  fill: none;
  stroke: url(#toTopGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.to-top__arrow {
  width: 20px;
  height: 20px;
  transition: transform .35s var(--ease-out);
}


/* =====================================================================
   31. PAGE 404
   ===================================================================== */
.error-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-total) + 40px) 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.error-page__code {
  font-size: clamp(7rem, 26vw, 16rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.07em;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  direction: ltr;
}

.error-page__illus {
  width: min(260px, 60vw);
  margin-inline: auto;
}

.error-page__content > * + * {
  margin-block-start: 20px;
}

.error-page__content .lead {
  margin-inline: auto;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}


/* =====================================================================
   32. ANIMATIONS DE RÉVÉLATION AU SCROLL
   Les éléments sont masqués uniquement si JS est actif (.js).
   .no-anim (sécurité posée par boot.js) ou mouvement réduit : tout visible.
   ===================================================================== */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity .9s var(--ease-out),
    translate 1s var(--ease-out),
    scale 1s var(--ease-out),
    clip-path 1.2s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal="fade-up"] { translate: 0 44px; }
.js [data-reveal="fade-down"] { translate: 0 -32px; }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="left"] { translate: -56px 0; }
.js [data-reveal="right"] { translate: 56px 0; }
.js [data-reveal="zoom"] { scale: .9; }
.js [data-reveal="blur"] { filter: blur(14px); translate: 0 20px; }

/* Révélation par masque : un panneau couvre l'élément puis se retire.
   (Pas de clip-path sur l'élément observé : Chrome le considérerait
   comme invisible et ne le révélerait jamais.) */
.js [data-reveal="mask"],
.js [data-reveal="mask-up"] {
  opacity: 1;
  position: relative;
  overflow: hidden;
}

.js [data-reveal="mask"]::after,
.js [data-reveal="mask-up"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--bg-alt);
  transform-origin: right center;
  transition: transform 1.1s var(--ease-in-out);
  transition-delay: var(--d, 0ms);
  pointer-events: none;
}

.js [data-reveal="mask-up"]::after {
  transform-origin: center top;
}

.js [data-reveal="mask"] img {
  scale: 1.12;
  transition: scale 1.6s var(--ease-out), transform 1.4s var(--ease-out), filter .6s;
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
  scale: none;
  filter: none;
}

.js [data-reveal="mask"].is-visible::after {
  transform: scaleX(0);
}

.js [data-reveal="mask-up"].is-visible::after {
  transform: scaleY(0);
}

.js [data-reveal="mask"].is-visible img {
  scale: 1;
}

.no-anim [data-reveal="mask"]::after,
.no-anim [data-reveal="mask-up"]::after {
  transform: scale(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="mask"]::after,
  .js [data-reveal="mask-up"]::after {
    content: none;
  }
  .js [data-reveal="mask"] img {
    scale: 1;
  }
}

/* Sécurité : si les animations ne se chargent pas */
.no-anim [data-reveal] {
  opacity: 1 !important;
  translate: none !important;
  scale: none !important;
  filter: none !important;
  clip-path: none !important;
}


/* =====================================================================
   33. KEYFRAMES
   ===================================================================== */
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-to {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes redraw {
  0% { stroke-dasharray: 1; stroke-dashoffset: 1; }
  100% { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes kidney-fill {
  to { fill-opacity: .18; }
}

@keyframes cross-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@keyframes bar-fill {
  to { transform: scaleX(1); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes curtain-cover {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes curtain-reveal {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes vt-old {
  to { opacity: 0; transform: scale(.94) translateY(-2%); filter: blur(4px); }
}

@keyframes vt-new {
  from { clip-path: inset(100% 0 0 0 round 40px 40px 0 0); transform: translateY(6%); }
  to { clip-path: inset(0 0 0 0 round 0); transform: none; }
}

@keyframes mesh-move {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-6deg) scale(1.02); }
}

/* Les blobs se déforment via des échelles non uniformes (transform uniquement) */
@keyframes blob-a {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1, 1); }
  33% { transform: translate3d(8%, 6%, 0) rotate(40deg) scale(1.15, .9); }
  66% { transform: translate3d(-4%, 12%, 0) rotate(90deg) scale(.92, 1.12); }
  100% { transform: translate3d(6%, -4%, 0) rotate(140deg) scale(1.08, .96); }
}

@keyframes blob-b {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1, 1); }
  50% { transform: translate3d(-10%, 8%, 0) rotate(-60deg) scale(.9, 1.18); }
  100% { transform: translate3d(-4%, -10%, 0) rotate(-120deg) scale(1.12, .94); }
}

@keyframes blob-c {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1, 1); }
  50% { transform: translate3d(12%, -10%, 0) rotate(70deg) scale(1.2, .88); }
  100% { transform: translate3d(-8%, -4%, 0) rotate(160deg) scale(.94, 1.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .75; }
}

@keyframes ping {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(50%, 0, 0); }
}

@keyframes flow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes pin-drop {
  0% { opacity: 0; transform: translateY(-140px); }
  15% { opacity: 1; }
  55% { transform: translateY(0) scale(1.05, .9); }
  70% { transform: translateY(-22px) scale(.97, 1.04); }
  85% { transform: translateY(0) scale(1.02, .97); }
  93% { transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pin-shadow {
  0% { opacity: 0; transform: scale(.2); }
  55% { opacity: 1; transform: scale(1.1); }
  70% { opacity: .5; transform: scale(.7); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes filter-in {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: none; }
}


/* =====================================================================
   34. AJUSTEMENTS RTL (ARABE)
   La majorité des règles utilisent des propriétés logiques
   (inset-inline, margin-inline…) et s'inversent automatiquement.
   ===================================================================== */
[dir="rtl"] .icon-flip,
[dir="rtl"] .icon--arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .icon--arrow,
[dir="rtl"] .link-arrow:hover .icon--arrow,
[dir="rtl"] .card:hover .link-arrow .icon--arrow {
  transform: scaleX(-1) translateX(5px);
}

[dir="rtl"] .marquee__track {
  animation-name: marquee-rtl;
}

[dir="rtl"] .js [data-reveal="left"],
.js[dir="rtl"] [data-reveal="left"] { translate: 56px 0; }

[dir="rtl"] .js [data-reveal="right"],
.js[dir="rtl"] [data-reveal="right"] { translate: -56px 0; }

.js[dir="rtl"] [data-reveal="mask"]::after {
  transform-origin: left center;
}

.js[dir="rtl"] [data-reveal].is-visible {
  translate: none;
}


[dir="rtl"] .hl {
  background-position: 100% 88%;
}

[dir="rtl"] .stat::before {
  transform-origin: right;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .trust__label,
[dir="rtl"] .footer__title,
[dir="rtl"] .toc__title,
[dir="rtl"] .contact-card__label,
[dir="rtl"] .timeline__date {
  text-transform: none;
}

/* Numéros de téléphone & e-mails toujours lisibles de gauche à droite */
[dir="rtl"] .phone,
[dir="rtl"] .email,
[dir="rtl"] [href^="tel:"],
[dir="rtl"] [href^="mailto:"] .email {
  direction: ltr;
  unicode-bidi: isolate;
}


/* =====================================================================
   35. MOUVEMENT RÉDUIT & IMPRESSION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    /* 0s (et non .01ms) : aucune transition, l'état final s'applique immédiatement */
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .hero__mesh,
  .blob,
  .float-badge,
  .marquee__track,
  .fab::before,
  .illus-float,
  .illus-spin,
  .illus-pulse,
  .flow-path {
    animation: none !important;
  }

  .flow-path {
    stroke-dasharray: none;
    opacity: .6;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
    filter: none;
    clip-path: none;
  }

  .word__inner {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .timeline__card {
    opacity: 1;
    transform: none;
  }

  .map-pin,
  .map-pin__shadow {
    opacity: 1;
    transform: none;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .fab-stack,
  .progress-bar,
  .cursor,
  .cursor-dot,
  .zellige-bg,
  .hero__bg,
  .scroll-indicator,
  .preloader,
  .marquee,
  .site-footer .socials,
  .footer__giant {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .js [data-reveal],
  .word__inner {
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .page-hero,
  .hero {
    min-height: 0;
    padding-block: 24px;
  }

  .acc-panel {
    grid-template-rows: 1fr !important;
  }

  .acc-panel__inner {
    visibility: visible !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
  }
}


/* =====================================================================
   36. REFONTE ÉDITORIALE — composants photo, listes, survols
   (bandeau d'infos, navigation soulignée, hero photo, spécialités en
   liste, cartes photo, citations, infos pratiques)
   ===================================================================== */

/* --- Bandeau d'infos pratiques (au-dessus du header, desktop) --- */
@media (min-width: 900px) {
  :root { --topbar-h: 38px; }
}

.topbar {
  display: none;
  height: var(--topbar-h);
  background: var(--c-night);
  color: rgba(255, 255, 255, .78);
  font-size: .8rem;
}

@media (min-width: 900px) {
  .topbar { display: block; }
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__item .icon {
  width: 15px;
  height: 15px;
  color: var(--c-coral);
}

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

.topbar a:hover {
  color: var(--c-coral-200);
}

.topbar .status-badge {
  padding: 2px 10px;
  font-size: .72rem;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.topbar .status-badge.is-open {
  background: rgba(61, 220, 151, .14);
  color: #7BE8B8;
}

@media (max-width: 1099px) {
  .topbar__address { display: none; }
}

/* --- Navigation : soulignement animé plutôt que pastilles --- */
.nav__list {
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav__link,
.nav__link:hover,
.nav__link[aria-expanded="true"],
.nav__link[aria-current="page"],
.nav__link.is-active {
  background: none;
  border-radius: 0;
}

.nav__link {
  padding: 10px 12px;
  color: var(--text);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}

[dir="rtl"] .nav__link::after {
  transform-origin: left;
}

.nav__link:hover,
.nav__link[aria-expanded="true"],
.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--heading);
}

.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after,
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

[dir="rtl"] .nav__link:hover::after,
[dir="rtl"] .nav__link[aria-current="page"]::after,
[dir="rtl"] .nav__link.is-active::after {
  transform-origin: right;
}

.nav__link[aria-current="page"],
.nav__link.is-active {
  font-weight: 700;
}

/* --- Photos : cadre, ratio, zoom au survol --- */
.photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  isolation: isolate;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter .6s;
}

.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--1x1 { aspect-ratio: 1; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 3 / 4; }

.photo:hover img,
a:hover > .photo img,
.zoom-host:hover .photo img {
  transform: scale(1.045);
}

.photo__caption {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-end: 14px;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  background: rgba(15, 27, 76, .72);
  color: #fff;
  font-size: .75rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-width: calc(100% - 28px);
}

[data-theme="dark"] .photo img {
  filter: brightness(.88) saturate(.92);
}

/* --- Hero avec photo --- */
.hero--photo {
  min-height: 0;
  padding-block: calc(var(--header-total) + clamp(36px, 6vw, 72px)) clamp(56px, 8vw, 104px);
}

.hero--photo .hero__mesh {
  opacity: .8;
}

@media (min-width: 1000px) {
  .hero--photo .hero__grid {
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(48px, 6vw, 88px);
  }
}

.hero__figure {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
}

.hero__figure .photo {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 6px;
  box-shadow: var(--shadow-lg);
}

[dir="rtl"] .hero__figure .photo {
  border-radius: var(--r-xl) var(--r-xl) 6px var(--r-xl);
}

/* Fiche pratique posée sur la photo */
.info-card {
  position: absolute;
  inset-inline-start: -28px;
  inset-block-end: 28px;
  width: min(300px, 82%);
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  display: grid;
  gap: 12px;
}

@media (max-width: 1099px) {
  .info-card { inset-inline-start: 16px; }
}

@media (max-width: 639px) {
  .info-card {
    position: relative;
    inset: auto;
    width: auto;
    margin: -48px 14px 0;
  }
}

.info-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

.info-card__row .icon {
  width: 18px;
  height: 18px;
  margin-block-start: 2px;
  color: var(--accent-text);
}

.info-card__row strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.info-card__row a,
.info-card__row span {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}

.info-card__row a:hover {
  color: var(--primary);
}

.info-card .status-badge {
  justify-self: start;
}

/* Pastille d'introduction sobre (sans pulsation) */
.pill {
  padding: 6px 14px;
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-weight: 600;
}

.pill__dot::after {
  content: none;
}

/* --- Bandeau de confiance plus discret --- */
.trust {
  background: transparent;
}

/* --- Spécialités en liste éditoriale --- */
.spec-list {
  list-style: none;
  padding: 0;
  border-block-start: 1px solid var(--border-strong);
}

.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 48px;
  gap: 6px 18px;
  align-items: center;
  padding: 24px 10px;
  border-block-end: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}

@media (min-width: 900px) {
  .spec-row {
    grid-template-columns: 72px minmax(240px, .85fr) 1.3fr 56px;
    gap: 32px;
    padding: 30px 16px;
  }
}

/* Remplissage qui monte au survol */
.spec-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}

.spec-row:hover::before,
.spec-row:focus-visible::before {
  transform: scaleY(1);
}

.spec-row:hover {
  color: var(--text);
}

.spec-row__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent-text);
}

.spec-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--heading);
  transition: translate .55s var(--ease-out);
}

:root[lang="ar"] .spec-row__title {
  font-weight: 700;
}

.spec-row:hover .spec-row__title {
  translate: 10px 0;
}

[dir="rtl"] .spec-row:hover .spec-row__title {
  translate: -10px 0;
}

.spec-row__desc {
  grid-column: 2 / -1;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .spec-row__desc { grid-column: auto; }
}

.spec-row__arrow {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--heading);
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease-out);
}

@media (min-width: 900px) {
  .spec-row__arrow { grid-column: 4; width: 52px; height: 52px; }
}

.spec-row:hover .spec-row__arrow {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
  transform: rotate(-45deg);
}

[dir="rtl"] .spec-row:hover .spec-row__arrow {
  transform: rotate(45deg);
}

/* --- Motifs de consultation (liens « puces ») --- */
.symptom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.symptom-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s, border-color .35s;
}

.symptom-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-strong);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}

.symptom-link:hover {
  color: #fff;
  border-color: var(--primary-strong);
}

.symptom-link:hover::before {
  transform: translateY(0);
}

.symptom-link .icon {
  width: 0;
  height: 16px;
  opacity: 0;
  transition: opacity .3s, width .35s var(--ease-out);
}

.symptom-link:hover .icon {
  width: 16px;
  opacity: 1;
}

/* --- Cartes photo (techniques, cabinet…) --- */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
}

.media-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 31, 0) 30%, rgba(10, 15, 31, .55) 62%, rgba(10, 15, 31, .9) 100%);
}

.media-card:hover {
  color: #fff;
}

.media-card:hover > img {
  transform: scale(1.06);
}

.media-card__tag {
  align-self: flex-start;
  margin-block-end: auto;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  font-weight: 600;
}

.media-card h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.media-card__text {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}

.media-card__text > p {
  overflow: hidden;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .86);
  opacity: 0;
  transition: opacity .4s .05s, padding .4s;
}

.media-card:hover .media-card__text,
.media-card:focus-within .media-card__text {
  grid-template-rows: 1fr;
}

.media-card:hover .media-card__text > p,
.media-card:focus-within .media-card__text > p {
  opacity: 1;
  padding-block-start: 8px;
}

/* Écrans tactiles : la description reste visible */
@media (hover: none) {
  .media-card__text { grid-template-rows: 1fr; }
  .media-card__text > p { opacity: 1; padding-block-start: 8px; }
}

.media-card .link-arrow {
  margin-block-start: 14px;
  color: #fff;
}

/* --- Bloc présentation du docteur --- */
.intro {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

@media (min-width: 900px) {
  .intro { grid-template-columns: .9fr 1.1fr; }
}

.intro__media {
  position: relative;
  padding-block-end: 32px;
}

.intro__media .photo:first-child {
  aspect-ratio: 4 / 5;
  width: 86%;
}

.intro__media .photo + .photo {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 44%;
  aspect-ratio: 1;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

.quote {
  position: relative;
  margin: 0;
  padding-inline-start: 26px;
  border-inline-start: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--heading);
}

:root[lang="ar"] .quote {
  font-style: normal;
}

.quote footer {
  display: block;
  margin-block-start: 14px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-style: normal;
  color: var(--text-muted);
}

.facts {
  list-style: none;
  padding: 0;
  border-block-start: 1px solid var(--border);
}

.facts li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-block-end: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.facts li > :first-child {
  color: var(--text-muted);
}

.facts li > :last-child {
  color: var(--heading);
  font-weight: 600;
}

@media (max-width: 479px) {
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* --- Infos pratiques (bandeau 4 colonnes) --- */
.quick-info {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

@media (min-width: 640px) {
  .quick-info { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .quick-info { grid-template-columns: repeat(4, 1fr); }
}

.quick-info__item {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 26px 24px;
  border-block-end: 1px solid var(--border);
  transition: background .35s;
}

@media (min-width: 1000px) {
  .quick-info__item { border-block-end: 0; border-inline-end: 1px solid var(--border); }
  .quick-info__item:last-child { border-inline-end: 0; }
}

.quick-info__item:hover {
  background: var(--bg);
}

.quick-info__item .icon {
  width: 22px;
  height: 22px;
  margin-block-end: 6px;
  color: var(--accent-text);
}

.quick-info__label {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

[dir="rtl"] .quick-info__label {
  text-transform: none;
}

.quick-info__value {
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  line-height: 1.45;
}

a.quick-info__value:hover {
  color: var(--primary);
}

/* --- Cartes d'articles avec photo --- */
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

:root[lang="ar"] .post-card__title {
  font-weight: 700;
}

.post-card:hover .post-card__title {
  color: var(--primary);
}

/* --- Survols communs plus riches --- */
.card--solid:hover,
.card--glass:hover {
  transform: translateY(-4px);
}

/* Lien texte souligné qui se trace au survol */
.link-line {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}

[dir="rtl"] .link-line {
  background-position: 100% 100%;
}

.link-line:hover {
  color: var(--primary);
  background-size: 100% 1.5px;
}

.prose a,
.card__text a,
.acc-panel__inner a,
.lead a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color .3s, color .3s;
}

.prose a:hover,
.card__text a:hover,
.acc-panel__inner a:hover,
.lead a:hover {
  text-decoration-color: currentColor;
}

/* Boutons : brillance plus discrète, légère élévation */
.btn::after {
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
}

.btn--primary {
  box-shadow: 0 8px 22px -10px rgba(30, 58, 138, .6);
}

.btn--primary:hover {
  box-shadow: 0 14px 30px -12px rgba(30, 58, 138, .75);
}

.btn--primary:hover,
.btn--ghost:hover,
.btn--glass:hover,
.btn--white:hover,
.btn--accent:hover {
  transform: translateY(-2px);
}

/* Accordéon : la question se décale légèrement au survol */
.acc-trigger > span:first-child {
  transition: translate .4s var(--ease-out), color .3s;
}

.acc-trigger:hover > span:first-child {
  translate: 4px 0;
  color: var(--primary);
}

[dir="rtl"] .acc-trigger:hover > span:first-child {
  translate: -4px 0;
}

.dropdown__link {
  transition: background .25s, transform .35s var(--ease-out);
}

.dropdown__link:hover {
  transform: translateX(3px);
}

[dir="rtl"] .dropdown__link:hover {
  transform: translateX(-3px);
}

/* --- Liste de documents à apporter --- */
.doc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .4s var(--ease-out);
}

.doc-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

[dir="rtl"] .doc-list li:hover {
  transform: translateX(-4px);
}

.doc-list .icon {
  width: 22px;
  height: 22px;
  margin-block-start: 1px;
  color: var(--accent-text);
}

.doc-list strong {
  display: block;
  font-weight: 600;
}

.doc-list small {
  color: var(--text-muted);
  font-size: .85rem;
}

/* --- Bannière photo pleine largeur --- */
.banner-photo {
  position: relative;
  min-height: clamp(340px, 45vw, 520px);
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.banner-photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}

.banner-photo:hover > img {
  transform: scale(1.03);
}

.banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 15, 31, .88) 0%, rgba(10, 15, 31, .6) 45%, rgba(10, 15, 31, .1) 100%);
}

[dir="rtl"] .banner-photo::after {
  background: linear-gradient(-90deg, rgba(10, 15, 31, .88) 0%, rgba(10, 15, 31, .6) 45%, rgba(10, 15, 31, .1) 100%);
}

.banner-photo__content > * + * {
  margin-block-start: 16px;
}

.banner-photo h2 {
  color: #fff;
  max-width: 18ch;
}

.banner-photo p {
  max-width: 52ch;
  color: rgba(255, 255, 255, .86);
}

.banner-photo .eyebrow {
  color: var(--c-coral-200);
}

/* Note discrète sous une photo générique */
.photo-note {
  margin-block-start: 10px;
  font-size: .75rem;
  color: var(--text-muted);
}

/* --- Mouvement réduit : pas de zoom ni de décalage au survol --- */
@media (prefers-reduced-motion: reduce) {
  .photo:hover img,
  .media-card:hover > img,
  .post-card:hover .post-card__media img,
  .banner-photo:hover > img {
    transform: none;
  }
}

/* Logo inséré via [data-logo] */
[data-logo] svg {
  width: 100%;
  height: auto;
}

/* Bouton dans le sommaire : ne pas hériter du style des liens .toc a */
.toc a.btn,
.toc a.btn:hover {
  display: flex;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  background-image: var(--grad-night);
  color: var(--btn-color);
}

.toc a.btn::before {
  content: none;
}

/* Cartes de traitement : 2 colonnes dans la zone de contenu */
.treatment-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

/* E-mails : taille réduite pour éviter la coupure en plein mot */
.contact-card__value.email {
  font-size: .92rem;
  overflow-wrap: normal;
  word-break: normal;
}
