/* ==========================================================================
   Pr. Abdelkader Ehirchiou — feuille de style du site public
   Palette V3 : #0392D6 (identité), #1D3354 (bleu nuit), #CBEF43 (accent),
   #EBF2FA et #FBFBFF (fonds). Le citron n'est employé que sur le bleu nuit ;
   sémantiques (succès / avertissement / erreur) conservent leur couleur.
   Propriétés logiques partout (LTR + RTL). Contraste : WCAG 2.2 AA.
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* --- bleu médical principal (imposé) — identité, liens, boutons, actif --- */
  --brand: #0392D6;
  --brand-600: #0479AE;      /* fonds de bouton, texte blanc AA (4,83:1) */
  --brand-700: #0A6E9E;      /* liens et sur-titres sur fond clair (5,4:1) */
  --brand-800: #0B5B85;
  --brand-100: #D6ECF8;
  --brand-200: #B5DEF3;
  --brand-050: #EAF6FC;

  /* --- bleu très clair (imposé) — fonds secondaires et séparations --- */
  --tint: #EBF2FA;
  --tint-2: #E2EBF7;

  /* --- bleu nuit (imposé) — titres, en-tête, pied de page, surfaces sombres --- */
  --navy: #1D3354;
  --navy-2: #24405F;
  --navy-3: #16273F;

  /* --- vert citron (imposé) — accent, touches, indicateurs, focus sur sombre.
         UNIQUEMENT sur fond bleu nuit : 9,65:1 là, 1,3:1 sur blanc. --- */
  --lime: #CBEF43;
  --lime-600: #B5DA2F;
  --lime-050: #F4FCDD;

  /* --- neutres --- */
  --ink: #1D3354;            /* texte fort et titres (bleu nuit) */
  --ink-2: #2A4468;
  --muted: #4E6076;          /* >= 5,0:1 sur tous les fonds clairs */
  --muted-2: #55677F;        /* >= 4,8:1 sur tous les fonds clairs */
  --line: #DCE6F2;
  --line-2: #EAF1F8;
  --bg: #FBFBFF;             /* blanc froid (imposé) : fond principal */
  --bg-soft: #EBF2FA;        /* bleu très clair : sections alternées */
  --bg-tint: #E2EBF7;

  /* --- sombre (alias du bleu nuit, pour les bandeaux) --- */
  --dark: #1D3354;
  --dark-2: #24405F;
  --dark-ink: #EAF0F8;       /* 11,1:1 sur --dark */
  --dark-muted: #A9BCD3;     /* 6,5:1 sur --dark */

  /* --- focus : bleu sur fond clair (3,1:1), citron sur fond sombre (9,6:1) --- */
  --focus: #0392D6;
  --focus-dark: #CBEF43;

  /* --- sémantique (conservée : la couleur porte le sens) --- */
  --ok: #17795A;
  --ok-bg: #E7F6EF;
  --warn: #9A5B00;
  --warn-bg: #FDF3E2;
  --danger: #B3322B;
  --danger-bg: #FDECEA;

  /* --- formes --- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29, 51, 84, .06), 0 8px 20px -16px rgba(29, 51, 84, .30);
  --shadow: 0 2px 6px rgba(29, 51, 84, .05), 0 24px 48px -32px rgba(29, 51, 84, .38);
  --glass: rgba(255, 255, 255, .10);
  --glass-bd: rgba(255, 255, 255, .18);

  /* --- typographie --- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar-title: "Cairo", "IBMPlexSansArabic", "Segoe UI", Tahoma, sans-serif;
  --font-ar: "Tajawal", "Cairo", "IBMPlexSansArabic", "Segoe UI", Tahoma, sans-serif;

  /* --- rythme --- */
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sect-y: clamp(3.75rem, 7.5vw, 7.5rem);
}

/* --- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Les contrôles de formulaire n'héritent PAS de la police par défaut : sans
   cette règle, le texte placé dans un <button> (légendes de galerie, pastilles
   de navigation) est rendu en Arial par le navigateur, en français comme en
   arabe — la police du site n'y est alors jamais appliquée. */
button, input, select, textarea, optgroup { font: inherit; color: inherit; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .965rem + .18vw, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: clamp(1.09rem, 1.03rem + .28vw, 1.2rem);
  line-height: 1.8;
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em; color: var(--ink); font-weight: 700;
  line-height: 1.12; letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.14rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.012em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--font-ar-title);
  line-height: 1.5; letter-spacing: 0;
}
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 800; }
html[lang="ar"] h3 { font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child, ul:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; height: auto; }
svg { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* fonds sombres : anneau citron (9,6:1) */
.band :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.hero-dark :focus-visible, .lb-stage :focus-visible { outline-color: var(--focus-dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm);
  transition: top .15s ease;
}
.skip:focus { top: .75rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

section { padding-block: var(--sect-y); }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }

/* --- icônes directionnelles (miroir en RTL) ------------------------------ */

html[dir="rtl"] .icon-dir { transform: scaleX(-1); }
/* Le symbole de LECTURE n'est jamais miroité : il pointe vers la droite dans
   les deux langues (convention de lecture vidéo). */
.icon-play, html[dir="rtl"] .icon-play { transform: none; }

/* --- éléments éditoriaux ------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 1rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--brand); border-radius: 2px; }

.kicker { /* compatibilité : même rendu que .eyebrow */
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 1rem;
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.kicker::before { content: ""; width: 2rem; height: 2px; background: var(--brand); border-radius: 2px; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4.5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker, .section-head.center .eyebrow { justify-content: center; }
.section-note {
  margin-top: 2rem; font-size: .93rem; color: var(--muted);
  border-inline-start: 2px solid var(--brand-200); padding-inline-start: 1rem; max-width: 74ch;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- boutons : système complet, 5 états explicites ----------------------- */

.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #ffffff;
  --btn-bd: transparent;
  --btn-hover-bg: var(--brand-800);
  --btn-hover-fg: #ffffff;
  --btn-hover-bd: var(--brand-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; min-height: 46px;
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-bd); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .58rem 1rem; min-height: 40px; font-size: .94rem; }
.btn-lg { padding: .95rem 1.7rem; min-height: 54px; font-size: 1.04rem; }

/* secondaire (contour) */
.btn-outline {
  --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--brand-200);
  --btn-hover-bg: var(--brand-050); --btn-hover-fg: var(--brand-800); --btn-hover-bd: var(--brand);
}
/* tertiaire (fantôme) */
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line);
  --btn-hover-bg: var(--bg-soft); --btn-hover-fg: var(--ink); --btn-hover-bd: var(--muted-2);
}
/* clair : réservé aux fonds sombres */
.btn-light {
  --btn-bg: #ffffff; --btn-fg: var(--brand-800); --btn-bd: transparent;
  --btn-hover-bg: var(--brand-050); --btn-hover-fg: var(--brand-800); --btn-hover-bd: transparent;
}
/* sur fond sombre : contour blanc, survol = fond blanc + texte sombre.
   Remplace les surcharges inline `--btn-fg` qui rendaient le texte illisible. */
.btn-on-dark {
  --btn-bg: transparent; --btn-fg: #ffffff; --btn-bd: rgba(255, 255, 255, .38);
  --btn-hover-bg: #ffffff; --btn-hover-fg: var(--dark); --btn-hover-bd: #ffffff;
  /* V3.2.6 — le survol INVERSE le contraste (texte clair sur fond transparent
     -> texte sombre sur fond blanc). En interpolant les deux au même rythme, le
     milieu de la transition donne un contraste proche de 1 pendant ~160 ms.
     On n'anime donc que le déplacement : l'état bascule d'un coup, sans creux. */
  transition: transform .16s ease;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.btn-row.tight { margin-top: 0; }

/* --- en-tête : capsule flottante en verre dépoli (toujours sur fond sombre) - */

.notice { background: var(--navy-3); color: #fff; text-align: center; padding: .6rem var(--gutter); font-size: .95rem; }
.site-header {
  position: sticky; top: 0; z-index: 100; background: transparent; border: 0;
  padding-block: clamp(.5rem, 1.4vw, .85rem);
  transition: padding .22s ease;
}
.site-header.is-scrolled { padding-block: .35rem; }
.header-inner {
  display: flex; align-items: center; gap: .55rem;
  min-height: 58px; padding-block: .4rem; padding-inline: .9rem .45rem;
  border-radius: var(--r-pill);
  background: rgba(21, 39, 63, .86);
  border: 1px solid var(--glass-bd);
  box-shadow: 0 12px 34px -24px rgba(6, 16, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  color: var(--dark-ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner { background: rgba(21, 39, 63, .97); }
}
.brand { display: inline-flex; align-items: center; margin-inline-end: auto; min-width: 0; flex: 0 1 auto; }
.brand picture { display: inline-flex; }
.brand-logo { height: 38px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 640px) { .brand-logo { height: 42px; } }
.nav { display: none; }
.nav-list { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: .5rem .78rem; border-radius: var(--r-pill);
  color: var(--dark-ink); text-decoration: none; font-weight: 500; font-size: .96rem;
  transition: background .16s ease, color .16s ease;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.nav-list a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: .78rem; bottom: .18rem; height: 2px;
  background: var(--lime); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: .45rem; }
.lang-btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: .4rem .8rem;
  border: 1px solid var(--glass-bd); border-radius: var(--r-pill);
  color: var(--dark-ink); text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.lang-btn:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
.header-call span { display: none; }
.header-call { min-height: 40px; padding: .5rem .95rem; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--glass-bd); border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.menu-btn:hover { background: rgba(255, 255, 255, .16); }
.menu-btn svg { width: 1.3em; height: 1.3em; }
/* le panneau mobile reprend le verre sombre : cohérent et lisible partout */
.mobile-menu {
  margin-top: .45rem; border-radius: var(--r-lg); background: rgba(21, 39, 63, .97);
  border: 1px solid var(--glass-bd); padding: 1rem var(--gutter) 1.4rem; color: var(--dark-ink);
  box-shadow: var(--shadow);
}
.mobile-menu ul { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.mobile-menu li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem .2rem; color: var(--dark-ink); text-decoration: none; font-weight: 500;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu a[aria-current="page"] { color: #fff; }
.mobile-menu a[aria-current="page"] svg { color: var(--lime); }
.mobile-menu a svg { color: var(--dark-muted); }
.mobile-contact { display: grid; gap: .6rem; }

/* les ancres ne doivent jamais passer sous la capsule de navigation */
section[id], [id^="video"] { scroll-margin-top: 92px; }

/* --- héro : bento sur fond bleu nuit avec fond cinétique ----------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--dark-ink);
  border-bottom: 0;
  padding-block: clamp(5.5rem, 11vw, 8.5rem) clamp(3rem, 6vw, 5rem);
  margin-top: calc(-1 * (58px + clamp(.5rem, 1.4vw, .85rem) * 2));
}
.hero::after {  /* voile de lisibilité sous le verre */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 30, 52, .55) 0%, rgba(16, 30, 52, .30) 55%, rgba(16, 30, 52, .62) 100%);
}
/* fond cinétique : formes organiques floutées, dérive très lente */
.hero-kinetic {
  position: absolute; inset: -25% -15%; z-index: 0; pointer-events: none;
  filter: blur(64px) saturate(1.25);
  opacity: .92;
}
.hero-kinetic span { position: absolute; display: block; border-radius: 50%; }
.hero-kinetic .k1 {
  width: 58%; aspect-ratio: 1; inset-block-start: 4%; inset-inline-start: 2%;
  background: radial-gradient(circle at 35% 35%, rgba(3, 146, 214, .95), rgba(3, 146, 214, 0) 68%);
  animation: kdrift1 30s ease-in-out infinite alternate;
}
.hero-kinetic .k2 {
  width: 46%; aspect-ratio: 1; inset-block-start: 32%; inset-inline-end: 4%;
  background: radial-gradient(circle at 60% 40%, rgba(63, 120, 200, .85), rgba(36, 64, 95, 0) 70%);
  animation: kdrift2 36s ease-in-out infinite alternate;
}
.hero-kinetic .k3 {
  width: 30%; aspect-ratio: 1; inset-block-end: -6%; inset-inline-start: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(203, 239, 67, .30), rgba(203, 239, 67, 0) 66%);
  animation: kdrift3 42s ease-in-out infinite alternate;
}
.hero-kinetic .k4 {
  width: 38%; aspect-ratio: 1; inset-block-start: -8%; inset-inline-start: 46%;
  background: radial-gradient(circle at 40% 60%, rgba(10, 110, 158, .75), rgba(10, 110, 158, 0) 70%);
  animation: kdrift2 33s ease-in-out infinite alternate-reverse;
}
.hero.is-idle .hero-kinetic span { animation-play-state: paused; }
@keyframes kdrift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4%, 6%, 0) scale(1.12); } }
@keyframes kdrift2 { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-5%, 4%, 0) scale(.95); } }
@keyframes kdrift3 { from { transform: translate3d(0, 2%, 0) scale(1); } to { transform: translate3d(6%, -4%, 0) scale(1.18); } }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; gap: .9rem; grid-template-columns: 1fr;
}
.bento {
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  padding: clamp(1.2rem, 2.6vw, 2rem);
}
.hero-intro { display: flex; flex-direction: column; align-items: flex-start; }

/* capsule façon « Apple » : translucide, bord fin, respiration */
.hero-badge, .capsule {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1.05rem .5rem .8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 8px 22px -18px rgba(0, 0, 0, .8);
  color: #fff; font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[lang="ar"] .hero-badge, html[lang="ar"] .capsule { letter-spacing: 0; font-size: .95rem; }
.hero-badge .dot, .capsule .dot {
  width: .48rem; height: .48rem; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 3px rgba(203, 239, 67, .20);
}

/* typographie scénographique : le nom porte le header */
.hero h1 {
  color: #fff; margin: 0 0 .55rem;
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.028em; font-weight: 700;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { line-height: 1.32; font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.8rem); }
.hero .specialty {
  font-size: clamp(1.02rem, .95rem + .6vw, 1.32rem); font-weight: 600;
  color: var(--brand-100); margin: 0 0 1.05rem;
}
.hero .lead, .hero-lead { color: #C9D8EA; max-width: 52ch; margin-bottom: 0; }

.hero-visual { position: relative; display: flex; align-items: stretch; padding: 0; }
.hero-portrait {
  position: relative; width: 100%; border-radius: calc(var(--r-lg) - 1px);
  overflow: hidden; background: var(--navy-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
/* Photo « dézoomée au maximum » : cadrage d'origine conservé, aucun recadrage.
   `contain` garantit qu'aucun pixel n'est coupé, quelle que soit la cellule. */
.hero-portrait img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain; object-position: 50% 50%;
  display: block;
}
.hero-figure .accent-frame { display: none; }

/* cellules de contact : filets, pas de cartes empilées */
.hero-meta {
  display: grid; gap: 0; list-style: none; margin: 0; padding: 0; flex: 1 1 260px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-meta li {
  display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.hero-meta li span { color: var(--dark-ink); font-size: .97rem; }
.hero-meta svg { color: var(--brand-100); margin-top: .28rem; width: 1.1em; height: 1.1em; }
.hero-meta a { color: #fff; font-weight: 500; }
.hero-meta .cl-label { color: var(--dark-muted); }

/* objet 3D stylisé (tracé du côlon) */
.hero-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.colon-object {
  --ox: 0; --oy: 0;
  position: relative; flex: 0 0 auto;
  width: clamp(96px, 12vw, 148px); aspect-ratio: 1;
  display: grid; place-items: center;
  /* perspective : les rotations ci-dessous sont lues comme un volume, pas
     comme un simple aplat penché */
  perspective: 720px;
  perspective-origin: 50% 50%;
}
.colon-object svg {
  width: 100%; height: 100%; overflow: visible;
  transform-style: preserve-3d;
  /* inclinaison réelle de quelques degrés, pilotée par le pointeur (--ox/--oy
     sont lissés en JavaScript : aucune transition CSS ici, pour éviter une
     double interpolation) */
  transform: rotateX(calc(var(--oy) * -7deg)) rotateY(calc(var(--ox) * 9deg));
  will-change: transform;
}
/* contre-décalage de la face supérieure : renforce la sensation de volume en
   creusant légèrement l'écart entre la face et la paroi extrudée */
.colon-object .colon-top { transform: translate3d(calc(var(--ox) * -1.4px), calc(var(--oy) * -1.4px), 0); }
.colon-object::after {  /* halo doux derrière l'objet */
  content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(3, 146, 214, .42), rgba(3, 146, 214, 0) 70%);
  filter: blur(10px);
}
/* rendu WebGL actif : le SVG cède la place au canvas (aucune transformation
   CSS ne subsiste, la rotation est celle de la scène Three.js) */
.colon-object.is-webgl { perspective: none; }
.colon-object.is-webgl svg { display: none; }
.colon-canvas {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%;
  pointer-events: none;   /* ne doit jamais intercepter les clics voisins */
}

/* --- V3.2.6 : commande d'animation -------------------------------------- */

/* Commande accessible : bouton réel, cible 44 px, anneau de focus visible.
   Placée dans la carte Adresse/Téléphone (flux normal) : elle ne recouvre
   jamais le titre ni les boutons. */
.hero-motion {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .55rem;
  border-radius: 999px; cursor: pointer;
  color: var(--dark-ink);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--glass-bd);
  transition: background .2s ease, border-color .2s ease;
}
.hero-motion:hover { background: rgba(255, 255, 255, .16); }
.hero-motion:focus-visible { outline: 3px solid #CBEF43; outline-offset: 2px; }
.hero-motion svg { width: 18px; height: 18px; display: block; }
.hero-motion[aria-pressed="false"] svg.i-pause { display: none; }
.hero-motion[aria-pressed="true"] svg.i-play { display: none; }

.hero-foot .hero-meta { border-top: 0; }
@media (min-width: 560px) { .hero-foot .hero-meta { display: grid; grid-auto-flow: column; } }

/* --- bandeau éditorial (remplace la bande pleine couleur) ---------------- */

.band {
  position: relative; background: var(--dark); color: var(--dark-ink);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.band::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--lime); }
.band .wrap { display: grid; gap: 1.6rem 3rem; align-items: end; grid-template-columns: 1fr; }
.band-quote {
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.9rem); font-weight: 600; line-height: 1.4;
  color: #fff; margin: 0; max-width: 34ch; text-wrap: balance;
}
.band-stat { display: flex; align-items: baseline; gap: .9rem; }
.band-stat b { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: .95; font-weight: 700; color: var(--brand-100); }
.band-stat span { font-size: .95rem; color: var(--dark-muted); max-width: 20ch; }
.band-link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  color: #fff; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: .2rem;
}
.band-link:hover { color: #fff; border-bottom-color: var(--brand); }
.band a:not(.btn) { color: #fff; }

/* --- sections « split » (praticien, cabinet) ----------------------------- */

.split { display: grid; gap: clamp(1.8rem, 4vw, 3.6rem); grid-template-columns: 1fr; align-items: center; }
.split-media img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.split.reverse .split-media { order: 0; }
.split .prose { max-width: 62ch; }

/* liste de faits institutionnelle : filets, pas d'icônes empilées */
.facts { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: .15rem; padding: 1rem .1rem; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); font-size: .95rem; }

/* --- spécialités : grille éditoriale à rythme variable ------------------- */

.spec-grid { display: grid; gap: 0; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line); }
.spec-card {
  position: relative; grid-column: span 12; display: flex; flex-direction: column; gap: .55rem;
  padding: 1.6rem 1.3rem 1.7rem; border-bottom: 1px solid var(--line);
  background: transparent; text-decoration: none; color: inherit;
  transition: background .18s ease;
}
.spec-card:hover { background: var(--bg-soft); }
.spec-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--brand-050); color: var(--brand-700); margin-bottom: .4rem;
}
.spec-icon svg { width: 28px; height: 28px; stroke-width: 2.4; }
.spec-card h3 { margin: 0; font-size: 1.1rem; }
.spec-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
html[lang="ar"] .spec-card p { line-height: 1.85; }
.spec-card .num {
  position: absolute; inset-block-start: 1.5rem; inset-inline-end: 1.3rem;
  font-size: .78rem; font-weight: 700; color: var(--muted-2);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
/* première carte mise en avant (fond sombre) */
.spec-card.feature { background: var(--dark); border-bottom-color: var(--dark); color: var(--dark-ink); }
.spec-card.feature:hover { background: var(--dark-2); }
.spec-card.feature h3 { color: #fff; }
.spec-card.feature p { color: var(--dark-muted); }
.spec-card.feature .spec-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.spec-card.feature .num { color: rgba(255, 255, 255, .55); }

/* --- parcours (profil institutionnel) ------------------------------------ */

.record { display: grid; gap: clamp(1.4rem, 3vw, 3rem); grid-template-columns: 1fr; }
.record-label { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-700); }
html[lang="ar"] .record-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  position: relative; display: grid; gap: .2rem; padding: 1.5rem 0 1.5rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
html[dir="rtl"] .timeline li { padding-inline-start: 0; padding-inline-end: 1.6rem; padding-left: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-block-start: 1.9rem; inset-inline-start: 0;
  width: .65rem; height: 2px; background: var(--brand);
}
html[dir="rtl"] .timeline li::before { inset-inline-start: auto; inset-inline-end: 0; }
.timeline h3 { margin: 0; font-size: 1.12rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; }
.timeline.dark li { border-color: rgba(255, 255, 255, .16); }
.timeline.dark h3 { color: #fff; }
.timeline.dark p { color: var(--dark-muted); }

/* --- cabinet : composition photographique -------------------------------- */

.place-media { display: grid; gap: .7rem; }
.place-media img { width: 100%; border-radius: var(--r); object-fit: cover; }
.place-media .pm-lead img { aspect-ratio: 4 / 3; }
.place-media .pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.place-media .pm-row img { aspect-ratio: 3 / 2; }

/* --- galerie ------------------------------------------------------------- */

.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); }
.gallery button {
  position: relative; padding: 0; border: 0; background: var(--bg-soft);
  border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; width: 100%;
  aspect-ratio: 4 / 3;
}
.gallery button.wide { aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.045); }
.gallery button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gallery .cap {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.4rem .8rem .55rem;
  background: linear-gradient(to top, rgba(10, 39, 51, .86), rgba(10, 39, 51, 0));
  color: #fff; font-size: .88rem; text-align: start;
}

/* --- slider « En images » (défilement natif + commandes explicites) ------- */

.slider { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.slider-viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-viewport:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.slider-track {
  display: flex; gap: clamp(.6rem, 1.4vw, 1rem);
  list-style: none; margin: 0; padding: 0;
}
.slide { flex: 0 0 clamp(240px, 38vw, 430px); scroll-snap-align: start; }
.slide button {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--navy-2); border-radius: var(--r); overflow: hidden;
  cursor: zoom-in; line-height: 0;
}
.slide button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.slide img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.slide button:hover img { transform: scale(1.035); }
.slide .cap {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.5rem .85rem .6rem;
  background: linear-gradient(to top, rgba(12, 24, 42, .88), rgba(12, 24, 42, 0));
  color: #fff; font-size: .89rem; line-height: 1.35; text-align: start;
}
.slide[aria-current="true"] .cap { color: #fff; }
.slide[aria-current="true"] button { outline: 2px solid var(--brand); outline-offset: -2px; }

.slider-ui {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.1rem;
}
.slider-nav { display: flex; align-items: center; gap: .5rem; }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.slider-btn:hover { background: var(--brand-600); }
.slider-btn:disabled { opacity: .32; cursor: not-allowed; }
.slider-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.slider-btn svg { width: 1.15em; height: 1.15em; }

/* points de pagination : cible tactile >= 24 px, pastille visuelle plus fine */
.slider-dots {
  display: flex; align-items: center; gap: .3rem; list-style: none;
  margin-inline: auto; padding: 0; flex-wrap: wrap;
}
.slider-dots li { display: flex; }
.slider-dots button {
  position: relative; width: 26px; height: 26px; padding: 0; border: 0;
  background: none; cursor: pointer;
}
.slider-dots button::before {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 999px; background: var(--line);
  transition: background .18s ease, width .18s ease;
}
.slider-dots button:hover::before { background: var(--muted-2); }
.slider-dots button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 999px; }
.slider-dots button[aria-current="true"]::before { background: var(--navy); width: 28px; }

.slider-meter { display: flex; align-items: center; gap: .7rem; flex: 0 1 220px; min-width: 140px; }
.slider-progress { position: relative; flex: 1 1 auto; height: 3px; border-radius: 999px; background: var(--line); }
.slider-progress span {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 12%;
  border-radius: 999px; background: var(--brand); transition: width .2s ease;
}
.slider-count { margin: 0; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* curseur stéthoscope : uniquement la ZONE PHOTOGRAPHIQUE, uniquement à la
   souris. Il doit être porté par l'élément réellement survolé : les vignettes
   sont des <button>, dont le `cursor` propre (zoom-in) masquerait sinon le
   curseur du conteneur — le stéthoscope n'apparaîtrait jamais. */
@media (hover: hover) and (pointer: fine) {
  /* PNG d'abord : c'est le format de curseur le mieux pris en charge ; le SVG
     suit en second recours, puis le curseur système. */
  .slider-viewport {
    /* V3.3.2 : même dessin que l'illustration d'en-tête (stéthoscope fourni),
       rasterisé en 32 px — les navigateurs ne prennent pas les curseurs SVG de
       façon fiable. Point chaud sur la pastille : (26, 7). */
    cursor: url("../icons/cursor-stethoscope-svgrepo.png") 26 7,
            url("../stethoscope-svgrepo-com.svg") 26 7, grab;
  }
  .slider-viewport .slide button {
    cursor: url("../icons/cursor-stethoscope-svgrepo.png") 26 7,
            url("../stethoscope-svgrepo-com.svg") 26 7, zoom-in;
  }
}
html[dir="rtl"] .slider-btn svg { transform: scaleX(-1); }

/* --- visionneuse --------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(6, 22, 30, .93); padding: clamp(1rem, 4vw, 3rem);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1100px); max-height: 82vh; border-radius: var(--r-xs); }
.lightbox-cap { color: #fff; text-align: center; margin-top: .8rem; font-size: .97rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-close { inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox-nav { inset-block-start: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { inset-inline-start: clamp(.4rem, 3vw, 2rem); }
.lightbox-nav.next { inset-inline-end: clamp(.4rem, 3vw, 2rem); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
/* flèches directionnelles : miroir en RTL (contrairement au bouton lecture) */
html[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }

/* --- vidéo : média et texte nettement séparés ---------------------------- */

.video-block { display: grid; gap: clamp(1.5rem, 3.5vw, 2.8rem); grid-template-columns: 1fr; align-items: start; }
.video-frame {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--navy-3);
}
.video-frame video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: var(--navy-3); object-fit: contain; }
.video-poster { position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; background: transparent; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
/* bouton translucide : laisse voir la vignette, contraste garanti par le verre */
.video-poster .play {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 11vw, 88px); height: clamp(58px, 11vw, 88px); border-radius: 50%;
  background: rgba(251, 251, 255, .78);
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px -14px rgba(6, 16, 32, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  transition: background .18s ease, transform .18s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .video-poster .play { background: rgba(251, 251, 255, .92); }
}
.video-poster .play svg {
  width: clamp(22px, 4.4vw, 32px); height: clamp(22px, 4.4vw, 32px);
  /* triangle centré géométriquement dans son cercle ; léger décalage optique
     physique (jamais logique) pour qu'il pointe vers la droite dans les deux langues */
  margin-left: 4%; margin-right: 0;
}
.video-poster:hover .play { background: rgba(255, 255, 255, .95); transform: translate(-50%, -50%) scale(1.06); }
.video-poster:focus-visible .play { outline: 3px solid var(--focus); outline-offset: 3px; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1rem; }
.video-play-link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  color: var(--brand-700); background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
}
.video-play-link:hover { color: var(--brand-800); }
.video-play-link svg { width: 1.05em; height: 1.05em; }
.video-note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); border-inline-start: 2px solid var(--line); padding-inline-start: .9rem; }

/* Petits écrans : la pastille superposée masquerait les libellés incrustés
   dans la vignette (constaté à 375 px). On la remplace par un bouton plein,
   sous le média — cible tactile plus grande et nom explicite. L'image reste
   cliquable dans son ensemble : l'interaction est conservée. */
@media (max-width: 767px) {
  .video-poster .play { display: none; }
  .video-actions { margin-top: 1rem; }
  .video-play-link {
    padding: .8rem 1.35rem; min-height: 48px; border-radius: var(--r-pill);
    background: var(--brand-600); color: #fff; font-size: 1rem;
    box-shadow: var(--shadow-sm);
  }
  .video-play-link:hover { background: var(--brand-800); color: #fff; }
  .video-play-link svg { width: 1.15em; height: 1.15em; }
}

/* --- contact : colonne d'informations + carte + formulaire --------------- */

.contact-grid { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem); grid-template-columns: 1fr; align-items: start; }
.contact-panel { display: grid; gap: 1.4rem; }
.contact-side { display: grid; gap: clamp(1.2rem, 2.6vw, 1.8rem); align-content: start; }

/* coordonnées : icônes en pastille, filets, valeurs en grand */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem .1rem; border-bottom: 1px solid var(--line); }
.contact-list > li > svg {
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--brand-050); color: var(--brand-700); margin-top: .1rem; flex: none;
}
.cl-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .18rem; }
html[lang="ar"] .cl-label { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.cl-value { display: block; color: var(--ink); font-weight: 600; font-size: 1.06rem; text-decoration: none; line-height: 1.4; }
a.cl-value:hover { color: var(--brand-800); text-decoration: underline; }
.cl-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .93rem; font-weight: 600; }
.cl-link svg { width: 1em; height: 1em; }
.contact-note {
  font-size: .93rem; color: var(--muted); border-inline-start: 2px solid var(--brand-200);
  padding-inline-start: 1rem; max-width: 60ch;
}

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; margin-bottom: 1.05rem; }
.field label { font-weight: 600; font-size: .94rem; }
.field .hint { font-size: .85rem; color: var(--muted-2); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(3, 146, 214, .18); outline-offset: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .87rem; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; gap: 0 1.05rem; grid-template-columns: 1fr; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { padding: .9rem 1.05rem; border-radius: var(--r-sm); margin-bottom: 1.1rem; font-weight: 500; }
.form-alert.ok { background: var(--ok-bg); color: var(--ok); }
.form-alert.err { background: var(--danger-bg); color: var(--danger); }

/* --- formulaire de demande de rendez-vous (surface de type Apple) --------- */

.rdv-block { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.rdv-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.rdv-head h2 { margin-bottom: .45rem; }
.rdv-head .lead { margin-bottom: 1.7rem; font-size: 1.02rem; }
.opt { font-weight: 500; font-size: .82rem; color: var(--muted-2); }
.rdv-form .field { margin-bottom: 1.15rem; }
.rdv-form .field > label { font-size: .93rem; font-weight: 600; }
.rdv-form .field input,
.rdv-form .field select,
.rdv-form .field textarea {
  border-radius: 10px; padding: .85rem 1rem; background: var(--bg);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.rdv-form .field textarea { min-height: 120px; }
/* select : chevron discret maison (aucune dépendance externe) */
.rdv-form .field select {
  appearance: none; -webkit-appearance: none;
  padding-inline-end: 2.7rem; background-repeat: no-repeat;
  background-position: right 1rem center; background-size: 1.05rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355677F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15l6-5.5'/%3E%3C/svg%3E");
}
html[dir="rtl"] .rdv-form .field select { background-position: left 1rem center; }
.rdv-form .field input:hover,
.rdv-form .field select:hover,
.rdv-form .field textarea:hover { border-color: var(--brand-200); }
.rdv-form .field input:focus,
.rdv-form .field select:focus,
.rdv-form .field textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(3, 146, 214, .14); outline: none;
}
.rdv-form .check { font-size: .93rem; color: var(--muted); }
.rdv-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin-top: .5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-2);
}
.rdv-note { margin: 0; font-size: .87rem; color: var(--muted); max-width: 44ch; }

/* carte : grande surface, chargée à la demande */
.map-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  min-height: clamp(280px, 34vw, 420px); display: flex;
}
.map-card iframe { width: 100%; height: 100%; min-height: clamp(280px, 34vw, 420px); border: 0; display: block; }
.map-placeholder {
  display: grid; gap: 1rem; align-content: center; justify-items: center;
  text-align: center; padding: 2rem 1.5rem; width: 100%; margin: 0;
}
.map-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-050); color: var(--brand-700);
}
.map-pin svg { width: 1.5em; height: 1.5em; }
.map-addr { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.5; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.map-note { margin: 0; font-size: .86rem; color: var(--muted-2); }

/* --- appel à l'action ---------------------------------------------------- */

.cta-band { position: relative; background: var(--navy); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--lime); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--dark-muted); max-width: 46ch; }
.cta-inner { display: grid; gap: 1.8rem; grid-template-columns: 1fr; align-items: center; }

/* --- pied de page : composition éditoriale + crédit de création --------- */

.site-footer { position: relative; background: var(--navy); color: var(--dark-ink); padding-block: clamp(2.8rem, 5.5vw, 4.6rem) 1.7rem; }
.site-footer::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--brand); }
.site-footer a:not(.btn) { color: var(--dark-ink); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-logo { height: 44px; width: auto; margin-bottom: 1.1rem; }
.footer-top { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-tagline { color: var(--dark-muted); max-width: 34ch; font-size: .96rem; margin-bottom: 1.2rem; }
.footer-access { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-access .btn { min-height: 44px; }
.footer-col h2 {
  color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 1rem;
}
html[lang="ar"] .footer-col h2 { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .58rem; }
.footer-col a { color: var(--dark-muted); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; color: var(--dark-muted); }
.footer-contact svg { color: var(--brand-100); margin-top: .32rem; width: 1.05em; height: 1.05em; flex: none; }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: space-between; align-items: flex-end;
}
.footer-disclaimer { color: var(--dark-muted); font-size: .85rem; max-width: 66ch; margin: 0; }
.footer-legal { text-align: end; display: grid; gap: .3rem; }
.footer-copy { color: var(--dark-muted); font-size: .85rem; margin: 0; }
.footer-credit { color: var(--dark-muted); font-size: .85rem; margin: 0; }
.footer-credit a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer-credit a:hover { border-bottom-color: var(--lime); text-decoration: none; }

/* --- pages secondaires --------------------------------------------------- */

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .89rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--line); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.7rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .4rem; }

.spec-detail {
  display: grid; gap: 1rem 2.6rem; grid-template-columns: 1fr;
  padding-block: clamp(1.9rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.spec-detail:first-of-type { border-top: 0; }
.spec-detail .sd-head { display: flex; gap: 1rem; align-items: center; }
.spec-detail .sd-head .spec-icon { margin-bottom: 0; }
.spec-detail h2 { font-size: clamp(1.35rem, 1.2rem + .8vw, 1.85rem); margin: 0; }
.spec-detail p { color: var(--muted); margin: 0; max-width: 68ch; }

.state-page { text-align: center; padding-block: clamp(3rem, 9vw, 7rem); }

/* --- apparitions --------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* --- responsive ---------------------------------------------------------- */

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .header-call span { display: inline; }
  .hero-meta { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .hero-meta li { border-bottom: 0; }
  .hero-meta li + li { border-inline-start: 1px solid rgba(255, 255, 255, .16); padding-inline-start: 1.1rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery button.wide { grid-column: span 2; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  /* bento : blocs de tailles différentes, pas de fragmentation */
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: stretch; }
  .hero-intro { grid-column: 1 / span 7; justify-content: center; }
  .hero-visual { grid-column: 8 / span 5; grid-row: 1; }
  .hero-foot { grid-column: 1 / span 12; }
  .hero-portrait { height: 100%; }
  .hero-portrait img { aspect-ratio: 1 / 1; height: 100%; min-height: 0; }
  .hero-foot .hero-meta { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .band .wrap { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
  .split.media-40 { grid-template-columns: .8fr 1.2fr; }
  .video-block { grid-template-columns: 1.4fr .6fr; }
  .contact-grid { grid-template-columns: 1fr 1.12fr; }
  .cta-inner { grid-template-columns: 1.5fr auto; }
  .spec-detail { grid-template-columns: 250px 1fr; align-items: start; }
  .record { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
  .place-media .pm-lead img { aspect-ratio: 16 / 11; }
}

@media (min-width: 1040px) {
  /* rythme variable : 2 cellules larges puis des cellules moyennes */
  .spec-card { grid-column: span 4; }
  .spec-card:nth-child(1) { grid-column: span 6; }
  .spec-card:nth-child(2) { grid-column: span 6; }
  .spec-card:nth-child(2) { padding-inline-end: 2rem; }
  .spec-card:nth-child(-n+2) h3 { font-size: 1.24rem; }
  .split.media-40 { grid-template-columns: .8fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-kinetic span { animation: none !important; }
  .colon-object svg { transform: none !important; }
  .colon-object .colon-top { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .mobile-menu, .skip, .video-poster { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: none; }
  section { padding-block: 1rem; }
}


/* --- V3.2.6 : états de mouvement du hero -------------------------------- */
.hero.is-motion-paused .hero-kinetic span { animation-play-state: paused; }
.hero.is-motion-on .hero-kinetic span { animation-play-state: running; }

/* --- parcours du patient -------------------------------------------------
   Structure reprise du parcours de référence (étapes numérotées reliées par
   une ligne : verticale en mobile, horizontale en 4 colonnes ≥1024px),
   transposée sur les jetons de couleur du site. */

.parcours-track {
  position: relative; margin: 0; padding: 0; list-style: none;
}
.parcours-step {
  position: relative;
  padding-inline-start: 62px;
  padding-block-end: 34px;
}
.parcours-step:last-child { padding-block-end: 0; }
.parcours-num {
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 46px; block-size: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand-700); font-weight: 700; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.parcours-track::before {
  content: ""; position: absolute;
  inset-inline-start: 22px; inset-block-start: 8px; inset-block-end: 12px;
  inline-size: 1px; background: var(--line);
}
.parcours-title { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.parcours-text {
  margin-top: .35rem; color: var(--muted);
  font-size: .95rem; line-height: 1.65; max-width: 46ch;
}
html[lang="ar"] .parcours-text { line-height: 1.85; }

@media (min-width: 1024px) {
  .parcours-track {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.4rem, 2.4vw, 2.2rem);
  }
  .parcours-track::before {
    inset-inline-start: 23px; inset-inline-end: 23px;
    inset-block-start: 23px; inset-block-end: auto;
    inline-size: auto; block-size: 1px;
  }
  .parcours-step { padding: 0; }
  .parcours-num { position: static; margin-block-end: 1.25rem; }
  .parcours-text { max-width: 34ch; }
}

/* --- FAQ : carte de verre, accordéons natifs ------------------------------ */
.faq-card {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  padding: clamp(1.2rem, 3.2vw, 2.4rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(160deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .44));
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 24px 60px -40px rgba(16, 38, 66, .45);
}
/* repli lisible si le flou d'arrière-plan n'est pas pris en charge */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .faq-card { background: #fff; }
}
@media (min-width: 900px) {
  .faq-card { grid-template-columns: .8fr 1.2fr; align-items: start; }
}
.faq-intro .lead { margin-top: .9rem; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .2rem;
  font-weight: 600; color: var(--ink);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; flex: none; line-height: 1;
  font-size: 1.35rem; color: var(--brand-700);
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-q:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.faq-a { padding: 0 .2rem 1.2rem; color: var(--muted); line-height: 1.75; max-width: 68ch; }
.faq-a p { margin: 0; }
html[lang="ar"] .faq-a { line-height: 1.9; }

/* --- illustrations d'en-tête de section ----------------------------------
   Fichiers fournis dans assets/ (chargés en <img> : leurs couleurs internes
   sont conservées). Même boîte pour toutes, centrage vertical, ratio préservé. */
.section-mark { margin: 0 0 .9rem; display: flex; align-items: center; }
.section-mark img { display: block; width: 44px; height: 44px; object-fit: contain; }
