/* ==========================================================================
   Dr Mounir Lahyani — Design System  ·  MEDICAL EDITORIAL 2026 (V3)
   Urologie — Tanger
   Direction : précision médicale + sérénité contemporaine + design éditorial.
   Typographie : Manrope (auto-hébergée) — titres, interface et texte.
   CSS pur, aucun framework, aucune étape de build.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette « Deep Atlantic + Digital Mint » */
  --primary: #102A43;
  --primary-800: #0B1F33;
  --primary-700: #16385A;
  --interactive: #087F8C;
  --interactive-700: #0A6E7A;
  --accent: #43D9C5;
  --background: #F4F7F8;
  --surface: #FFFFFF;
  --text: #243746;
  --muted: #56697A;
  --border: #DCE5E9;

  /* Alias conservés (compatibilité avec les règles existantes) */
  --deep-teal: var(--primary);
  --deep-teal-800: var(--primary-800);
  --deep-teal-700: var(--primary-700);
  --teal: var(--primary);
  --teal-800: var(--primary-800);
  --teal-700: var(--primary-700);
  --teal-500: var(--interactive);

  --sage: #6E9299;
  --sage-600: #557880;
  --sage-300: #A9CBD0;
  --sage-100: #E3F0F1;

  --mist: #F4F7F8;
  --ivory: #FFFFFF;

  --mint: #43D9C5;
  --mint-soft: rgba(67, 217, 197, 0.12);
  --mint-border: rgba(67, 217, 197, 0.28);

  --brass: var(--accent);
  --accent-soft: rgba(67, 217, 197, 0.15);

  --ink: #243746;
  --on-dark: #F3F7F6;
  --on-dark-muted: rgba(243, 247, 246, 0.74);

  --white: #FFFFFF;
  --line: rgba(16, 42, 67, 0.10);
  --line-strong: rgba(16, 42, 67, 0.20);

  --success: #2F7D62;
  --success-soft: #E5F1EB;
  --danger: #B0413A;
  --danger-soft: #F8E7E5;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;


  --fs-hero: clamp(2.8rem, 1.2rem + 6.5vw, 6rem);
  --fs-h2: clamp(2rem, 1.15rem + 3.4vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --fs-h4: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.72rem;

  --r-sm: 10px;
  --r-md: 14px;
  --r-card: 18px;
  --r-premium: 22px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 42, 67, 0.05);
  --shadow-card: 0 1px 2px rgba(16, 42, 67, 0.03), 0 18px 40px -30px rgba(16, 42, 67, 0.32);
  --shadow-card-hover: 0 10px 30px -22px rgba(16, 42, 67, 0.4);

  --nav-h: 84px;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(76px, 8vw, 150px);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--deep-teal); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

svg[viewBox="0 0 24 24"] {
  width: 1.2rem; height: 1.2rem;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--deep-teal); color: #fff; padding: 10px 18px;
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-small);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

section[id] { scroll-margin-top: 112px; }

/* --------------------------------------------------------------------------
   3. MISE EN PAGE
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--ivory); }
.section--mist { background: var(--mist); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.section-number {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-600);
  display: inline-flex; align-items: center; gap: 12px;
}
.section-number::after { content: ""; width: 48px; height: 1px; background: var(--brass); }
.section-title { font-size: var(--fs-h2); max-width: 18ch; }
.section-subtitle { color: var(--muted); font-size: var(--fs-lead); max-width: 64ch; line-height: 1.65; }
.section-note { margin-top: 42px; color: var(--muted); font-size: var(--fs-xs); max-width: 92ch; line-height: 1.7; }

.accent-rule { display: block; width: 56px; height: 2px; background: var(--brass); border-radius: 2px; }

/* --------------------------------------------------------------------------
   4. BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 30px; padding: 7px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--white); color: var(--deep-teal);
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
.badge--sage { border-color: rgba(8, 127, 140, 0.35); color: var(--interactive); background: var(--background); }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; line-height: 1;
  padding: 15px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-arrow { width: 1.05rem; height: 1.05rem; transition: transform 0.28s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--primary { background: var(--interactive); color: #fff; }
.btn--primary:hover { background: var(--interactive-700); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--interactive); border-color: var(--interactive); }
.btn--secondary:hover { background: var(--interactive); color: #fff; transform: translateY(-1px); }
.btn--on-dark { background: var(--white); color: var(--interactive); }
.btn--on-dark:hover { background: var(--background); transform: translateY(-1px); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 18px; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   6. NAVBAR FLOTTANTE
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: clamp(10px, 1.4vw, 16px) var(--gutter);
  transition: padding 0.35s ease;
  pointer-events: none;          /* seule la capsule est cliquable, pas la bande pleine largeur */
}
.nav-shell {
  pointer-events: auto;
  max-width: 1160px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 10px 8px 20px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(220, 229, 233, 0.9);
  box-shadow: 0 10px 30px -20px rgba(16, 42, 67, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .nav-shell { background: rgba(255, 255, 255, 0.95); }   /* repli lisible sans flou d'arrière-plan */
}
.site-header.is-scrolled { padding-top: 7px; padding-bottom: 7px; }
.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px -24px rgba(16, 42, 67, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.main-nav { display: none; align-items: center; gap: 28px; }
.nav-link {
  position: relative; padding: 6px 0; white-space: nowrap; isolation: isolate;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem; color: var(--ink);
  transition: color 0.3s ease;
}
/* Fond arrondi au survol (langage d'interaction de la référence, adapté à la palette claire).
   Pseudo-element ⇒ aucun impact sur la largeur/hauteur : pas de débordement. */
.nav-link::before {
  content: ""; position: absolute; inset: 0 -12px; border-radius: var(--r-pill);
  background-color: rgba(8, 127, 140, 0); z-index: -1;
  transition: background-color 0.3s ease;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease; }
.nav-link:hover, .nav-link:focus-visible { color: var(--primary); }
.nav-link:hover::before, .nav-link:focus-visible::before { background-color: rgba(8, 127, 140, 0.10); }
.nav-link.is-active { color: var(--interactive); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--deep-teal);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--mist); border-color: var(--sage); }
.header-cta { display: none; border-radius: var(--r-pill); padding: 10px 20px; transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; }

/* Menu mobile — panneau capsule (cohérent avec la navbar) */
.mobile-menu {
  position: fixed; z-index: 90;
  top: calc(var(--nav-h) - 8px); left: var(--gutter); right: var(--gutter);
  margin-inline: auto; width: auto; max-width: 520px;
  display: flex; flex-direction: column;
  padding: 6px 16px 18px; border-radius: var(--r-premium);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(16, 42, 67, 0.55);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .mobile-menu { background: rgba(255, 255, 255, 0.98); }
}
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 10px; }
.mobile-menu-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--deep-teal);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-close:hover { background: var(--mist); border-color: var(--sage); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link:focus-visible { color: var(--interactive); background: rgba(8, 127, 140, 0.06); padding-left: 6px; border-radius: var(--r-sm); }
.mn-index { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--sage-600); }
.mobile-menu-cta { margin-top: 16px; flex-shrink: 0; border-radius: var(--r-pill); }

/* --------------------------------------------------------------------------
   7. HERO — Editorial Portrait Stage
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(120px, 15vh, 200px) clamp(40px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(232, 240, 238, 0.86) 0%, rgba(247, 246, 242, 0.96) 58%, #FFFFFF 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 52px); align-items: end; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-top { display: flex; align-items: center; gap: 16px; }
.hero-rule { flex: 1; max-width: 130px; height: 1px; background: var(--line-strong); }
.hero-name { font-size: var(--fs-hero); font-weight: 500; line-height: 0.98; margin-top: 20px; letter-spacing: -0.02em; }
.hero-accent { display: block; width: 56px; height: 2px; border-radius: 2px; background: var(--brass); margin: 22px 0 0; }
.hero-subtitle {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--sage-600); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  line-height: 1.25; margin-top: 16px; max-width: 24ch;
}
.hero-text { color: var(--muted); font-size: var(--fs-lead); margin-top: 20px; max-width: 46ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Portrait détouré monumental + forme arrière-plan */
.hero-figure { position: relative; display: flex; align-items: flex-end; justify-content: center; align-self: end; }
.hero-stage {
  position: absolute; left: 0; right: 0; margin-inline: auto; bottom: -1px;
  width: min(560px, 94%); height: 74%; z-index: 0;
  background: linear-gradient(180deg, #E3F0F1 0%, rgba(220, 231, 228, 0.30) 100%);
  border-radius: 300px 300px 0 0;
}
.hero-portrait-cutout {
  position: relative; z-index: 1; height: clamp(280px, 40vh, 380px); width: auto; max-width: 100%; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 87%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 87%, rgba(0, 0, 0, 0) 100%);
}

.hero-foot { display: flex; flex-wrap: wrap; gap: 26px 38px; margin-top: clamp(36px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.hero-fact { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.hero-fact svg { width: 1.15rem; height: 1.15rem; color: var(--sage-600); }

/* Animation d'entrée éditoriale (jouée une fois ; état final = repli sans JS) */
.js-enabled .hero [data-hero] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.65, 0.25, 1), transform 0.9s cubic-bezier(0.22, 0.65, 0.25, 1);
}
.js-enabled .hero [data-hero="portrait"] { transform: translateY(34px) scale(0.985); }
.hero.is-ready [data-hero] { opacity: 1; transform: none; }
.js-enabled .hero [data-hero="stage"] { transition-delay: 0s; }
.js-enabled .hero [data-hero="portrait"] { transition-delay: 0.08s; }
.js-enabled .hero [data-hero="eyebrow"] { transition-delay: 0.15s; }
.js-enabled .hero [data-hero="name"] { transition-delay: 0.22s; }
.js-enabled .hero [data-hero="sub"] { transition-delay: 0.30s; }
.js-enabled .hero [data-hero="text"] { transition-delay: 0.38s; }
.js-enabled .hero [data-hero="actions"] { transition-delay: 0.46s; }

/* --------------------------------------------------------------------------
   8. DÉCLARATION ÉDITORIALE (01 — Le médecin)
   -------------------------------------------------------------------------- */
.statement { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 64px); }
.statement-title { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); margin-top: 16px; max-width: 17ch; line-height: 1.06; }
.statement-right { color: var(--muted); font-size: var(--fs-lead); line-height: 1.75; display: flex; flex-direction: column; gap: 16px; }

/* --------------------------------------------------------------------------
   9. DOMAINES (liste éditoriale)
   -------------------------------------------------------------------------- */
.domaines { margin-top: 50px; border-top: 1px solid var(--line-strong); }
.domaine { border-bottom: 1px solid var(--line); }
.domaine-link {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: 22px;
  padding: 26px 6px; transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.domaine-num { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; color: var(--brass); }
.domaine-name { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.55rem, 1rem + 2.4vw, 2.6rem); color: var(--deep-teal); line-height: 1.05; }
.domaine-desc { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 6px; max-width: 60ch; line-height: 1.6; }
.domaine-arrow {
  width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--deep-teal);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.domaine-arrow svg { width: 1.05rem; height: 1.05rem; }
.domaine-link:hover { background: rgba(255, 255, 255, 0.6); padding-left: 18px; }
.domaine-link:hover .domaine-arrow { opacity: 1; transform: none; background: var(--deep-teal); color: #fff; border-color: var(--deep-teal); }
.domaine-link:focus-visible { outline-offset: -2px; }

/* --------------------------------------------------------------------------
   10. ACTES & EXPLORATIONS
   -------------------------------------------------------------------------- */
.acts-grid { display: grid; grid-template-columns: 1fr; gap: 30px 40px; margin-top: 52px; }
.act-group-title {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-600);
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong);
}
.act-list { margin-top: 4px; }
.act-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.act-item:last-child { border-bottom: 0; }
.act-item-title { font-family: var(--font-sans); font-weight: 700; color: var(--deep-teal); font-size: 0.98rem; }
.act-item-desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. TIMELINE (alternée desktop / verticale mobile)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 52px; }
.step { position: relative; padding: 0 0 34px 62px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--mist);
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem; color: var(--deep-teal);
}
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 12px; width: 1px; background: var(--line-strong); }
.step-title { font-family: var(--font-sans); font-weight: 700; font-size: 1.06rem; color: var(--deep-teal); }
.step-text { color: var(--muted); font-size: var(--fs-small); margin-top: 6px; line-height: 1.65; max-width: 46ch; }

/* Timeline horizontale sur grand écran */
@media (min-width: 1024px) {
  .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 34px; }
  .timeline::before { left: 23px; right: 23px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .step { padding: 0; }
  .step-num { position: static; margin-bottom: 20px; }
  .step-text { max-width: 34ch; }
}

/* --------------------------------------------------------------------------
   12. CABINET
   -------------------------------------------------------------------------- */
.cabinet-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 60px); align-items: start; margin-top: 56px; }
.cabinet-figure { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); box-shadow: var(--shadow-card); }
.cabinet-figure img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-info { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--deep-teal); }
.info-row-icon svg { width: 1.2rem; height: 1.2rem; }
.info-row-title { font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; color: var(--deep-teal); }
.info-row-text { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; margin-top: 2px; }
.info-row-text a:hover { color: var(--interactive); text-decoration: underline; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.map-frame { margin-top: 44px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   13. GALERIE (éditoriale)
   -------------------------------------------------------------------------- */
.gallery-grid { columns: 2; column-gap: 16px; margin-top: 52px; }
.gallery-card { break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery-card img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.02); }
.gallery-card figcaption { padding: 12px 15px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.gallery-empty { margin-top: 52px; padding: 46px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--muted); font-size: var(--fs-small); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 31, 51, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--on-dark); font-size: var(--fs-small); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.10); color: #fff; display: grid; place-items: center; transition: background-color 0.2s ease; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.10); color: #fff; display: grid; place-items: center; transition: background-color 0.2s ease; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
/* #faq — deux colonnes éditoriales (présentation + accordéons) */
.faq-layout { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 64px); }
.faq-intro { display: flex; flex-direction: column; }
.faq-intro .section-title { margin-top: 14px; }
.faq-intro .section-subtitle { margin-top: 16px; }
.faq-intro .btn { margin-top: 28px; align-self: flex-start; }
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-q { cursor: pointer; list-style: none; padding: 22px 4px; font-family: var(--font-display); font-weight: 500; color: var(--deep-teal); font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--interactive); line-height: 1; flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 4px 24px; color: var(--muted); font-size: var(--fs-small); line-height: 1.75; max-width: 68ch; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

/* --------------------------------------------------------------------------
   16. CONTACT — composition éditoriale, formulaire « unboxed »
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(44px, 5vw, 88px); }
.contact-intro { display: flex; flex-direction: column; }
.contact-intro .section-title { margin-top: 14px; }
.contact-intro .section-subtitle { margin-top: 16px; }

/* Contrepartie éditoriale : liste de coordonnées (label / valeur) */
.contact-list { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.contact-row { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row-label { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-600); padding-top: 3px; }
.contact-row-value { color: var(--ink); font-size: var(--fs-small); line-height: 1.55; }
.contact-row-value a { color: var(--interactive); font-weight: 600; }
.contact-row-value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-row:has(a[hidden]) { display: none; }

/* Formulaire — champs ouverts, lignes fines */
.contact-form { display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 32px 28px; }
.form-field { display: flex; flex-direction: column; position: relative; }
.form-field label, .field-label {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-600);
  margin-bottom: 12px; transition: color 0.2s ease;
}
.form-field:focus-within label, .form-field:focus-within .field-label { color: var(--deep-teal); }

.control { position: relative; }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.4; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 6px 2px 12px; width: 100%; transition: border-color 0.2s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(86, 105, 122, 0.45); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-bottom-color: transparent; }
.control-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--deep-teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s ease;
}
.form-field:focus-within .control-line { transform: scaleX(1); }

.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C7B75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center;
}
.form-textarea { resize: vertical; min-height: 170px; }

.form-field.has-error .form-input,
.form-field.has-error .form-select,
.form-field.has-error .form-textarea { border-bottom-color: var(--danger); }
.form-field.has-error .control-line { background: var(--danger); transform: scaleX(1); }
.form-error { display: none; align-items: center; gap: 6px; color: var(--danger); font-size: var(--fs-xs); font-weight: 600; margin-top: 10px; }
.form-field.has-error .form-error, .consent-block.has-error .form-error { display: flex; }
.form-error svg { width: 0.95rem; height: 0.95rem; }

.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent;
  font-size: var(--fs-small); font-weight: 600; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.radio-pill input { accent-color: var(--deep-teal); }
.radio-pill:hover { border-color: var(--sage); }
.radio-pill:has(input:checked) { border-color: var(--deep-teal); background: var(--mist); color: var(--deep-teal); }

.consent-block { display: flex; flex-direction: column; gap: 8px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--deep-teal); flex-shrink: 0; }
.checkbox-row.has-error { color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 40px; align-self: flex-start; }
@media (max-width: 520px) { .form-submit { align-self: stretch; width: 100%; } }

.form-status { display: none; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 12px; font-size: var(--fs-small); font-weight: 600; margin-top: 16px; }
.form-status.is-visible { display: flex; }
.form-status.success { background: var(--success-soft); color: var(--success); }
.form-status.info { background: var(--success-soft); color: var(--success); }
.form-status.warning { background: var(--surface); color: var(--deep-teal); border: 1px solid var(--brass); }
.form-field[hidden] { display: none; }
.form-status.error { background: var(--danger-soft); color: var(--danger); }
.form-status.error svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

/* État de succès — le formulaire se transforme en confirmation */
.form-success-icon { width: 54px; height: 54px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--success-soft); color: var(--success); flex-shrink: 0; }
.form-success-icon svg { width: 1.7rem; height: 1.7rem; }
.form-status.success.is-warning { background: var(--surface); color: var(--deep-teal); }
.form-status.success.is-warning .form-success-icon { background: var(--surface); color: var(--brass); border: 1px solid var(--brass); }
.form-status.success.is-warning .form-success-title { color: var(--brass); }
.contact-form.is-sent .form-grid,
.contact-form.is-sent .form-submit { display: none; }
.contact-form.is-sent .form-status.success { background: none; color: var(--muted); flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 4vw, 44px) 0; }
.contact-form.is-sent .form-status.success.is-visible { display: flex; }
.form-success-body { display: flex; flex-direction: column; gap: 8px; }
.form-success-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.08; color: var(--deep-teal); }
.form-success-body p { color: var(--muted); font-size: var(--fs-lead); max-width: 46ch; line-height: 1.6; }

/* --------------------------------------------------------------------------
   17. CTA (plein écran)
   -------------------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, #102A43 0%, #16385A 100%); color: var(--on-dark); }
.cta-inner { text-align: center; max-width: 900px; margin-inline: auto; padding-block: clamp(96px, 12vw, 180px); }
.cta-rule { display: block; width: 48px; height: 2px; background: var(--brass); border-radius: 2px; margin: 0 auto 28px; }
.cta-title { font-size: clamp(2.4rem, 1.4rem + 5vw, 5rem); color: #fff; line-height: 1.02; }
.cta-text { color: var(--on-dark-muted); font-size: var(--fs-lead); margin: 20px auto 0; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* --------------------------------------------------------------------------
   18. FOOTER MONUMENTAL
   -------------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, #0B1F33 0%, #102A43 100%); color: var(--on-dark-muted); padding-block: clamp(64px, 8vw, 110px) 32px; }
.footer-masthead {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(34px, 5vw, 56px) clamp(24px, 4vw, 48px);
  margin-bottom: clamp(36px, 5vw, 60px); border-radius: 20px;
  background-image: linear-gradient(180deg, rgba(11, 31, 51, 0.70) 0%, rgba(11, 31, 51, 0.88) 100%), url("../assets/images/tanger.webp");
  background-size: cover; background-position: center 58%; background-repeat: no-repeat;
}
.footer-name { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(2rem, 1rem + 4.5vw, 4rem); line-height: 1; letter-spacing: -0.015em; }
.footer-role { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage-300); }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: clamp(36px, 5vw, 60px); }
.footer-tagline { color: var(--on-dark-muted); font-size: var(--fs-small); max-width: 40ch; line-height: 1.7; }
.footer-heading { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--on-dark); font-size: var(--fs-small); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--mint); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer-contact a { color: var(--on-dark); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--mint); text-decoration: underline; }
.footer-bottom { margin-top: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 12px; color: var(--on-dark-muted); font-size: var(--fs-xs); }
.footer-bottom a { color: var(--on-dark); }
.footer-bottom a:hover { color: var(--mint); }
.footer-disclaimer { line-height: 1.65; max-width: 90ch; }

/* --------------------------------------------------------------------------
   19bis. ACTION FLOTTANTE — retour en haut
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 55; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.fa-btn {
  position: relative; pointer-events: auto;
  width: 52px; height: 52px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--deep-teal);
  box-shadow: 0 12px 26px -20px rgba(16, 42, 67, 0.55);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.fa-btn svg { width: 1.3rem; height: 1.3rem; }
.fa-btn:hover { transform: translateY(-2px); background: var(--interactive); color: #fff; border-color: var(--interactive); }
.fa-btn:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; }

/* (bouton WhatsApp flottant retiré — action intégrée à la section #contact) */

/* Retour en haut — action secondaire, révélée après scroll */
.fa-top { opacity: 0; visibility: hidden; transform: translateY(8px); }
.fa-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fa-top:hover { transform: translateY(-2px); }

/* Tooltip (desktop uniquement) */
.fa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap; background: var(--deep-teal); color: #fff;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fa-btn:hover .fa-tip, .fa-btn:focus-visible .fa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* --------------------------------------------------------------------------
   20. RÉVÉLATION AU SCROLL
   -------------------------------------------------------------------------- */
.js-enabled [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.js-enabled [data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-enabled [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
.js-enabled [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.js-enabled [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.js-enabled [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js-enabled [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.js-enabled [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   21. UTILITAIRES
   -------------------------------------------------------------------------- */
.text-muted { color: var(--muted); }
.link-underline { text-decoration: underline; text-underline-offset: 3px; }
.placeholder-tag { color: var(--sage-600); font-weight: 600; }
[hidden] { display: none !important; }

/* Conservés pour les pages légales */
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-600); }
.card { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }

/* --------------------------------------------------------------------------
   22. PAGES LÉGALES
   -------------------------------------------------------------------------- */
.legal-header { border-bottom: 1px solid var(--line); background: rgba(247, 246, 242, 0.92); }
.legal-header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-hero { padding-block: 56px 24px; }
.legal-body { padding-bottom: 90px; }
.legal-card { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; margin-bottom: 18px; }
.legal-card h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.legal-card p { color: var(--muted); line-height: 1.75; }
.legal-card p + p { margin-top: 12px; }
.legal-card a { color: var(--deep-teal); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .gallery-grid { columns: 3; }
  .acts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full-span { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .statement { grid-template-columns: 1fr 1fr; align-items: start; }
  .cabinet-grid { grid-template-columns: 1.15fr 0.85fr; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  /* Hero asymétrique — portrait monumental */
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; align-items: end; }
  .hero-portrait-cutout { height: clamp(460px, 66vh, 720px); }
}

@media (min-width: 1120px) {
  .main-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1120px) and (max-width: 1320px) {
  .nav-shell { gap: 12px; padding: 8px 8px 8px 14px; }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 0.82rem; }
  .nav-link::before { inset: 0 -6px; }   /* pills rapprochés : pas de chevauchement à gap 12px */
  .header-cta { padding: 8px 12px; font-size: 0.8rem; }
  .brand-name { font-size: 1.0rem; }
  .brand-mark { height: 34px; }
}

@media (max-width: 899px) {
  .floating-actions { right: 16px; gap: 8px; }
  .fa-btn { width: 48px; height: 48px; }
  .fa-tip { display: none; }
}

/* --------------------------------------------------------------------------
   24. ACCESSIBILITÉ — mouvement réduit
   -------------------------------------------------------------------------- */

/* ==========================================================================
   25. ADAPTATION MAQUETTE (13 vues) — Dr Mounir Lahyani
   ========================================================================== */
/* Marque : symbole + nom (titre « Dr » en HTML) */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { height: 40px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--deep-teal); letter-spacing: 0.005em; white-space: nowrap; }
.brand-sub { font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; color: var(--sage-600); }
.brand-mark--light { }
.brand-name--light { color: #fff; }
.site-header.is-scrolled .brand-mark { height: 34px; }
.site-header.is-scrolled .brand-name { font-size: 1.1rem; }

/* Cercles d'icônes (vert pâle) */
.icon-circle {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--sage-100); color: var(--deep-teal);
}
.icon-circle svg { width: 1.35rem; height: 1.35rem; }
.icon-circle--lg { width: 54px; height: 54px; }
.icon-circle--lg svg { width: 1.6rem; height: 1.6rem; }

/* PAGE 1 — HERO (texte + bandeau) */
.hero { padding-block: clamp(120px, 15vh, 190px) 0; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 900px; }
.hero-name { margin-top: 22px; }
.hero-role { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.35rem); color: var(--deep-teal); margin-top: 18px; }
.hero-text { margin-top: 16px; max-width: 46ch; }
.hero-banner { margin-top: clamp(36px, 5vw, 64px); }
.hero-banner img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; object-position: center; display: block; }

/* PAGE 2 — LE PRATICIEN */
.praticien-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 40px; }
.praticien-figure { position: relative; display: flex; justify-content: center; background: linear-gradient(180deg, var(--mist), rgba(232,240,238,0.25)); border-radius: 18px; overflow: hidden; }
.praticien-figure .cutout { height: clamp(300px, 42vh, 460px); width: auto; -webkit-mask-image: linear-gradient(180deg,#000 92%, rgba(0,0,0,0)); mask-image: linear-gradient(180deg,#000 92%, rgba(0,0,0,0)); }
.info-blocks { display: flex; flex-direction: column; gap: 4px; }
.info-block { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background-color 0.2s ease, padding-left 0.2s ease; }
.info-block-text { flex: 1; font-family: var(--font-sans); font-weight: 600; color: var(--deep-teal); font-size: 1rem; }
.info-block-arrow { width: 1.1rem; height: 1.1rem; color: var(--interactive); flex-shrink: 0; transition: transform 0.2s ease; }
a.info-block:hover { background: var(--background); padding-left: 12px; }
a.info-block:hover .info-block-arrow { transform: translateX(3px); }
a.info-block:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }

/* PAGE 3 — APPROCHE */
.statement { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 780px; }
.statement-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.1; }
.statement-text { color: var(--muted); font-size: var(--fs-lead); line-height: 1.7; max-width: 58ch; }
.wide-figure { margin-top: clamp(32px, 4vw, 56px); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.wide-figure img { width: 100%; height: clamp(220px, 34vw, 430px); object-fit: cover; display: block; }
.wide-figure--sm img { height: clamp(200px, 28vw, 340px); }

/* PAGES 4-6 — DOMAINES (num | icône | texte | flèche) */
.domaine-link { grid-template-columns: 44px 46px 1fr 40px; gap: 18px; padding: 22px 6px; }
.domaine-body { display: flex; flex-direction: column; }
.domaine-name { font-size: clamp(1.2rem, 0.98rem + 1vw, 1.6rem); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 48px; }
.feature-block { border-top: 1px solid var(--line-strong); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-title { font-size: var(--fs-h3); }
.feature-text { color: var(--muted); font-size: var(--fs-small); line-height: 1.65; }

/* #actes — grille éditoriale asymétrique (intro + blocs) */
.actes-layout { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); }
.actes-intro { display: flex; flex-direction: column; }
.actes-intro .section-title { margin-top: 14px; }
.actes-intro .section-subtitle { margin-top: 16px; }
.actes-intro .section-note { margin-top: 26px; }
.actes-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.acte { display: block; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.acte-inner { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.acte-body { display: flex; flex-direction: column; gap: 4px; }
.acte-name { font-family: var(--font-sans); font-weight: 700; color: var(--deep-teal); font-size: 1.05rem; line-height: 1.35; }
.acte-desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
@media (hover: hover) { .acte:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); } }
@media (min-width: 640px) { .actes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .actes-layout { grid-template-columns: 0.82fr 1.18fr; align-items: start; } }

/* PAGE 12 — INFORMATIONS PRATIQUES */
.info-list { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.info-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cabinet-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Responsive maquette */
@media (min-width: 760px) {
  .praticien-grid { grid-template-columns: 0.9fr 1.1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
}
@media (min-width: 900px) {
  .hero-banner img { height: clamp(300px, 30vw, 460px); }
}

/* ==========================================================================
   26. HERO IMMERSIF (inspiration Bloomava adaptée) + micro-raffinements
   ========================================================================== */
.badge--on-dark { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.30); color: #fff; }

.hero--media {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(560px, 84vh, 840px); padding: 0; overflow: hidden;
  background: #0B1F33;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 31, 51, 0.62) 0%, rgba(11, 31, 51, 0.42) 42%, rgba(11, 31, 51, 0.88) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(130px, 16vh, 210px) clamp(52px, 7vw, 96px); }
.hero--media .hero-copy { max-width: 760px; }
.hero--media .hero-name { color: #fff; }
.hero--media .hero-role { color: #fff; }
.hero--media .hero-text { color: rgba(243, 247, 246, 0.82); }

/* 26.b — micro-raffinements (harmonisation rayons, grille label, survols) */
:root { --r-card: 20px; }
.wide-figure, .cabinet-figure, .praticien-figure { border-radius: 20px; }

@media (min-width: 1024px) {
  .section-head:has(.section-number) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 48px; align-items: start; }
  .section-head:has(.section-number) .section-number { grid-column: 1; grid-row: 1; }
  .section-head:has(.section-number) .section-title { grid-column: 2; grid-row: 1; }
  .section-head:has(.section-number) .section-subtitle { grid-column: 2; grid-row: 2; }
}

@media (hover: hover) {
  .wide-figure, .cabinet-figure { overflow: hidden; }
  .wide-figure img, .cabinet-figure img { transition: transform 0.6s ease; }
  .wide-figure:hover img, .cabinet-figure:hover img { transform: scale(1.02); }
}

.footer-links a { display: inline-flex; align-items: center; gap: 7px; }
@media (hover: hover) {
  .footer-links a::after {
    content: ""; width: 0.85rem; height: 0.85rem; background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
    opacity: 0; transform: translateX(-4px); transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .footer-links a:hover::after, .footer-links a:focus-visible::after { opacity: 0.7; transform: none; }
}

.section-number { font-size: 0.74rem; letter-spacing: 0.16em; }

@media (max-width: 899px) {
  .hero--media { min-height: clamp(520px, 78vh, 700px); }
  .hero-bg { object-position: 66% 45%; }
}

/* ==========================================================================
   27. Etats boutons + rayon des cartes
   ========================================================================== */
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.gallery-card { border-radius: 20px; }

/* ==========================================================================
   28. #chirurgie — diptyque texte/image
   ========================================================================== */
.chirurgie-diptyque { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.chirurgie-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.chirurgie-media img { width: 100%; height: clamp(260px, 30vw, 460px); object-fit: cover; display: block; transition: transform 0.6s ease; }
.chirurgie-body { display: flex; flex-direction: column; }
.chirurgie-body .section-title { margin-top: 14px; }
.chirurgie-body .section-subtitle { margin-top: 16px; }
.chirurgie-points { margin-top: 30px; border-top: 1px solid var(--line-strong); }
.chirurgie-points li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.point-title { font-family: var(--font-sans); font-weight: 700; color: var(--deep-teal); font-size: 1rem; }
.point-desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
@media (hover: hover) { .chirurgie-media:hover img { transform: scale(1.02); } }
@media (min-width: 900px) { .chirurgie-diptyque { grid-template-columns: 1.05fr 0.95fr; } }

/* ==========================================================================
   29. #contact — actions directes (appel + WhatsApp)
   ========================================================================== */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-actions .btn { flex: 1 1 200px; justify-content: center; }

/* ==========================================================================
   30. NAVBAR — capsule compacte sur petits écrans
   (placé en fin de feuille pour primer sur les règles .is-scrolled)
   ========================================================================== */
@media (max-width: 520px) {
  .site-header .nav-shell { gap: 12px; padding: 8px 8px 8px 14px; }
  .site-header .brand-mark, .site-header.is-scrolled .brand-mark { height: 32px; }
  .site-header .brand-name, .site-header.is-scrolled .brand-name { font-size: 0.98rem; }
}
@media (max-width: 360px) {
  .site-header .nav-shell { padding: 7px 7px 7px 12px; }
  .site-header .brand-mark, .site-header.is-scrolled .brand-mark { height: 30px; }
  .site-header .brand-name, .site-header.is-scrolled .brand-name { font-size: 0.9rem; }
  .site-header .brand-sub { font-size: 0.6rem; letter-spacing: 0.2em; }
}

/* ==========================================================================
   V3.7 — Actes : onglets de catégories, cartes, Instagram
   ========================================================================== */

.acts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.acts-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--deep-teal);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.acts-tab:hover { border-color: var(--teal); background: var(--mist, #f4f7f6); }
.acts-tab[aria-selected="true"] { background: var(--deep-teal); border-color: var(--deep-teal); color: #fff; }
.acts-tab:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.acts-tab-icon { display: inline-flex; flex: none; }
.acts-tab-icon svg { width: 20px; height: 20px; display: block; }
.acts-tab-label { display: inline-block; }

.acts-panel[hidden] { display: none; }
.acts-panel-desc { margin: 0 0 18px; color: var(--muted); font-size: var(--fs-small); }
.acts-panel-empty { margin: 0; padding: 22px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

.actes-grid--panel { margin-top: 0; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 600;
}
.footer-social svg { flex: none; }

@media (min-width: 560px) {
  .actes-grid--panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .acts-tab { width: 100%; justify-content: flex-start; }
}



@media (max-width: 380px) {
  .domaine-link { grid-template-columns: 2.2rem 46px minmax(0, 1fr) 40px; gap: 12px; padding: 20px 4px; }
  .domaine-arrow { width: 40px; height: 40px; }
  .domaine-name, .domaine-desc { overflow-wrap: anywhere; }
}


@media (max-width: 380px) {
  .nav-shell { gap: 10px; padding: 8px 8px 8px 12px; }
  .brand { gap: 8px; }
  .brand-mark { height: 34px; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { font-size: 0.56rem; letter-spacing: 0.16em; }
  .mobile-menu { width: calc(100vw - 2 * var(--gutter)); max-width: none; }
}


@media (max-width: 380px) {
  .nav-shell { width: 100%; max-width: 100%; gap: 8px; padding: 8px 8px 8px 10px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand-name, .brand-sub { overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.12em; }
}


/* V3.7 — le viewport mobile ne doit jamais s'élargir à cause d'un élément
   décoratif fixe (le contenu de page reste à la largeur de l'écran). */
html, body { overflow-x: clip; }

/* ==========================================================================
   V3.8 — Actes : onglets pleine largeur (composant Pill Nav)
   ========================================================================== */

.acts-main { width: 100%; min-width: 0; }

/* La zone des onglets occupe toute la largeur de la section (plus de colonne
   asymétrique) : l'intro reste au-dessus, le composant en dessous. */
@media (min-width: 1024px) {
  .actes-layout { grid-template-columns: minmax(0, 1fr); }
}

.acts-tabs {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -24px rgba(16, 42, 67, 0.45);
}

.acts-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease,
              box-shadow 0.28s ease, transform 0.28s ease;
}

.acts-tab:hover { background: rgba(255, 255, 255, 0.9); border-color: var(--line); }

.acts-tab[aria-selected="true"] {
  background: var(--deep-teal);
  border-color: var(--deep-teal);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(16, 42, 67, 0.65);
}

.acts-tab-icon svg { width: 21px; height: 21px; }

@media (min-width: 900px) {
  .acts-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .acts-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    min-height: 60px;
  }
  .acts-tab-label { font-size: 0.92rem; }
}

@media (min-width: 900px) {
  .acts-tab[aria-selected="true"] { transform: translateY(-1px); }
}

@media (max-width: 899px) {
  .acts-tabs { border-radius: 24px; }
  .acts-tab { flex: 1 1 260px; }
}

@media (max-width: 420px) {
  .acts-tabs { border-radius: 20px; padding: 5px; }
  .acts-tab { flex-basis: 100%; min-height: 52px; }
}


/* ==========================================================================
   V3.8 — Galerie : slider (composant repris du site du Pr Ehirchiou)
   ========================================================================== */

.slider { margin-top: clamp(28px, 4vw, 44px); }

.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: 20px;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.slider-track {
  display: flex;
  gap: clamp(0.7rem, 1.4vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.slide { flex: 0 0 clamp(250px, 36vw, 440px); scroll-snap-align: start; }
.slide button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--primary-800);
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}
.slide button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slide button:hover img { transform: scale(1.035); }
.slide .cap {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.5rem 0.9rem 0.65rem;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.9), rgba(11, 31, 51, 0));
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: start;
}
.slide[aria-current="true"] button { outline: 2px solid var(--interactive); outline-offset: -2px; }

.slider-ui {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.slider-nav { display: flex; align-items: center; gap: 0.5rem; }
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.slider-btn:hover { background: var(--interactive); }
.slider-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.slider-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.slider-btn svg { width: 1.15em; height: 1.15em; }

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.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-strong);
  transition: background 0.18s ease, width 0.18s ease;
}
.slider-dots button:hover::before { background: var(--sage); }
.slider-dots button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-radius: 999px; }
.slider-dots button[aria-current="true"]::before { background: var(--primary); width: 28px; }

.slider-meter { display: flex; align-items: center; gap: 0.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(--interactive);
  transition: width 0.2s ease;
}
.slider-count { margin: 0; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 560px) {
  .slide { flex-basis: 78vw; }
  .slider-meter { flex: 1 1 100%; }
}


/* ==========================================================================
   V3.8 — Mégamenu public
   ========================================================================== */

.nav-shell { position: relative; }

.mega-nav { gap: 2px; }

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] { background: var(--mist); color: var(--primary); }
.mega-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mega-chevron {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.24s ease;
}
.mega-trigger[aria-expanded="true"] .mega-chevron { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-start: 50%;
  width: min(680px, calc(100vw - 2 * var(--gutter)));
  transform: translateX(-50%) translateY(-6px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -34px rgba(16, 42, 67, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 95;
}
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.mega-panel.is-open .mega-group:not([hidden]) { animation: megaGroupIn 0.28s ease both; }
@keyframes megaGroupIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.mega-title {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--interactive);
}

.mega-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background 0.18s ease;
}
.mega-link:hover { background: var(--mist); }
.mega-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.mega-link small { color: var(--muted); font-size: 0.78rem; font-weight: 400; line-height: 1.35; }
.mega-link--all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; border-radius: 0 0 12px 12px; }

.mobile-nav-title {
  margin: 16px 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-600);
}
.mobile-nav-title:first-child { margin-top: 4px; }
.mobile-nav .mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}
.mobile-nav .mobile-nav-link:hover,
.mobile-nav .mobile-nav-link:focus-visible { background: var(--mist); }
.mobile-nav .mobile-nav-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

@media (max-width: 1119px) {
  .mega-panel { display: none; }
}


/* V3.8 — icônes de sections (bibliothèque SVG médicale) */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 8px;
  vertical-align: -4px;
  color: var(--interactive);
}
.section-icon svg { width: 22px; height: 22px; display: block; }
.section-title .section-icon { vertical-align: -3px; margin-inline-end: 10px; }
.eyebrow .section-icon { vertical-align: -5px; }

.statement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--interactive);
  background: var(--mint-soft);
  border: 1px solid var(--mint-border);
}
.statement-icon svg { width: 28px; height: 28px; }

@media (max-width: 560px) {
  .section-icon { width: 20px; height: 20px; }
  .section-icon svg { width: 20px; height: 20px; }
  .statement-icon { width: 46px; height: 46px; }
}

/* V3.8 — espacement des liens directs du mégamenu */
.mega-nav > .nav-link { padding: 10px 12px; border-radius: 999px; }
.mega-nav > .nav-link:hover { background: var(--mist); }

/* ==========================================================================
   V3.9 — Pill Nav : composant original fourni (pill-nav.html)
   Les paramètres d'animation (durées, courbes, flex 1 → 2.4, échelle icône,
   max-width du libellé) sont conservés ; seules les couleurs et la largeur
   maximale du libellé sont adaptées au site et aux intitulés français.
   ========================================================================== */

.acts-pill {
  width: 100%;
  flex: 1;
  display: flex;
  gap: 6px;
  padding: 6px;
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -24px rgba(16, 42, 67, 0.45);
}

.acts-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.acts-pill .tt13b {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  flex: 1;
  transition: flex 0.45s cubic-bezier(0.34, 1.4, 0.5, 1), background 0.25s, color 0.25s;
}

.acts-pill .tt13b:hover { color: var(--primary); }

.acts-pill .tt13i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.acts-pill .tt13l {
  max-width: 0;
  white-space: normal;
  line-height: 1.15;
  height: 2.3em;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: max-width 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.05s;
}

.acts-pill input:checked + .tt13b {
  background: var(--primary);
  color: #fff;
  flex: 2.4;
}

.acts-pill input:checked + .tt13b .tt13i { transform: scale(1.1); }

.acts-pill input:checked + .tt13b .tt13l { max-width: min(320px, 62vw); }

.acts-pill input:focus-visible + .tt13b {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Panneaux : le composant d'origine n'a pas de JavaScript, l'état coché
   pilote l'affichage (aucun script, aucun saut de mise en page). */
.acts-panel { display: none; }
.acts-main:has(#act-cat-1:checked) .acts-panel[data-cat="1"],
.acts-main:has(#act-cat-2:checked) .acts-panel[data-cat="2"],
.acts-main:has(#act-cat-3:checked) .acts-panel[data-cat="3"],
.acts-main:has(#act-cat-4:checked) .acts-panel[data-cat="4"],
.acts-main:has(#act-cat-0:checked) .acts-panel[data-cat="0"] { display: block; }

@media (max-width: 380px) {
  .acts-pill { gap: 4px; padding: 5px; }
  .acts-pill .tt13b { padding: 9px 10px; gap: 6px; }
  .acts-pill input:checked + .tt13b .tt13l { max-width: 56vw; }
}


/* V3.9 — titre lisible de la catégorie active (les libellés d'onglets sont
   volontairement comprimés par le composant Pill Nav d'origine). */
.acts-panel-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--interactive);
}

/* ==========================================================================
   V4.0 — Icônes de sections (au-dessus du contenu) et du mégamenu
   ========================================================================== */

.section-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  color: var(--primary);
}
.section-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

.chirurgie-body .section-mark { margin-bottom: 14px; }
.actes-intro .section-mark,
.faq-intro .section-mark,
.contact-intro .section-mark { margin-bottom: 16px; }

/* Tons communs aux SVG de sections (injectés en ligne, couleurs pilotées) */
.section-svg .ic-primary { fill: currentColor; }
.section-svg .ic-accent { fill: var(--interactive); }
.section-svg .ic-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-svg .ic-soft { fill: currentColor; opacity: 0.18; }
.section-svg .ic-shadow { display: none; }

/* Mégamenu : icône à gauche du titre et de la description */
.mega-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}
.mega-link .mega-icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-link .mega-icon svg { width: 24px; height: 24px; display: block; }
.mega-link small { grid-column: 2; }

/* Menu mobile : icône compacte, l'intitulé garde sa largeur */
.mobile-nav .mobile-nav-link .mega-icon {
  width: 22px;
  height: 22px;
  margin-inline-end: 10px;
  flex: none;
}
.mobile-nav .mobile-nav-link .mega-icon svg { width: 22px; height: 22px; display: block; }

@media (max-width: 560px) {
  .section-mark { width: 42px; height: 42px; margin-bottom: 14px; }
  .mega-link { grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; }
  .mega-link .mega-icon, .mega-link .mega-icon svg { width: 20px; height: 20px; }
}


/* V4.1 — cadrage du fond robotique : garder le bras chirurgical à l'écran */
@media (max-width: 700px) {
  .hero-bg { object-position: 72% 50%; }
}

/* ==========================================================================
   V4.2 — Parallax, révélations, ripple, motifs et séparateurs
   ========================================================================== */

/* A. Parallax du fond uniquement (le contenu reste fixe) */
.hero-bg {
  transform: translate3d(0, var(--lahyani-parallax-y, 0px), 0) scale(1.1);
  will-change: transform;
}

/* B. Séparateurs SVG sobres (mist -> white) */
.lahyani-divider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(24px, 3vw, 40px);
  overflow: hidden;
  pointer-events: none;
  background: var(--mist);
  color: var(--white);
}
.lahyani-divider svg { display: block; width: 100%; height: 100%; }

/* C. Apparition progressive (contenu visible par défaut) */
[data-lahyani-reveal] { opacity: 1; transform: none; }

.lahyani-reveal-ready [data-lahyani-reveal]:not(.acte) {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.lahyani-reveal-ready [data-lahyani-reveal]:not(.acte).is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms ease var(--reveal-delay, 0ms),
    transform 420ms ease var(--reveal-delay, 0ms);
}

/* Les cartes d'actes gardent leur transform de survol sur .acte :
   l'animation porte sur le conteneur interne. */
.lahyani-reveal-ready .acte[data-lahyani-reveal] { opacity: 0; }
.lahyani-reveal-ready .acte[data-lahyani-reveal] .acte-inner {
  transform: translate3d(0, 12px, 0);
}
.lahyani-reveal-ready .acte[data-lahyani-reveal].is-revealed {
  opacity: 1;
  transition: opacity 420ms ease var(--reveal-delay, 0ms);
}
.lahyani-reveal-ready .acte[data-lahyani-reveal].is-revealed .acte-inner {
  transform: none;
  transition: transform 420ms ease var(--reveal-delay, 0ms);
}

/* D. Ripple (canvas fixe, non interactif) */
#lahyani-ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  contain: strict;
}

/* E. Motifs de croix médicales arrondies */
.lahyani-medical-pattern {
  position: relative;
  isolation: isolate;
}
.lahyani-medical-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cpath d='M56 46V66 M46 56H66' fill='none' stroke='%23087F8C' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 112px 112px;
  opacity: 0.09;
}


@media (hover: none), (pointer: coarse) {
  #lahyani-ripple-canvas { display: none; }
}

/* ==========================================================================
   V4.3 — Amplification : parallax, pleine largeur, remplissages, motif CTA
   ========================================================================== */

/* A. Hero : amplitude forte, image agrandie, aucun bord découvert */
.hero-bg {
  inset: -20% 0;
  height: 140%;
  transform: translate3d(0, var(--lahyani-parallax-y, 0px), 0) scale(1.06);
  will-change: auto;
}

/* B. Deux images en pleine largeur avec parallax propre */
.lahyani-media-parallax {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 560px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  overflow: clip;
  background: var(--primary-800, #102A43);
}
.lahyani-media-parallax img {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate3d(0, var(--lahyani-parallax-y, 0px), 0) scale(1.06);
}

/* C. Remplissage des trois rubriques « Le praticien » */
.info-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.info-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--interactive), #0A6A75);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.info-block:hover::before,
.info-block:focus-visible::before { transform: scaleX(1); }
a.info-block:hover,
a.info-block:focus-visible { background: transparent; padding-left: 0; }
.info-block:hover .info-block-text,
.info-block:focus-visible .info-block-text { color: #fff; }
.info-block:hover .icon-circle,
.info-block:focus-visible .icon-circle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.info-block:hover .info-block-arrow,
.info-block:focus-visible .info-block-arrow { color: #fff; }

/* D. Remplissage des rubriques « Urologie » */
.domaine-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.domaine-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--interactive);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.domaine-link:hover::before,
.domaine-link:focus-visible::before { transform: scaleX(1); }
.domaine-link:hover,
.domaine-link:focus-visible { background: transparent; padding-left: 6px; }
.domaine-link:hover .domaine-name,
.domaine-link:focus-visible .domaine-name { color: #fff; }
.domaine-link:hover .domaine-num,
.domaine-link:hover .domaine-desc,
.domaine-link:focus-visible .domaine-num,
.domaine-link:focus-visible .domaine-desc { color: rgba(255, 255, 255, 0.92); }
.domaine-link:hover .icon-circle,
.domaine-link:focus-visible .icon-circle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.domaine-link:hover .domaine-arrow,
.domaine-link:focus-visible .domaine-arrow {
  background: #fff;
  color: var(--interactive);
  border-color: #fff;
  opacity: 1;
  transform: none;
}

/* F. Profondeur des cartes d'actes (calque décoratif, pas le texte) */
.acte { position: relative; overflow: hidden; }
.acte::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -25%;
  right: -12%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 140, 0.22), rgba(8, 127, 140, 0) 68%);
  transform: translate3d(0, var(--acte-y, 0px), 0);
  pointer-events: none;
}
.acte-inner { position: relative; z-index: 1; }

/* G. Motif de croix flouté, uniquement dans la bande de consultation */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.lahyani-consultation-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='2.4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M56 45V67 M45 56H67' fill='none' stroke='%2343D9C5' stroke-width='4' stroke-linecap='round' filter='url(%23b)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 112px 112px;
  opacity: 0.22;
}

@media (max-width: 700px) {
  .lahyani-media-parallax { height: clamp(250px, 58vw, 380px); }
}


/* ==========================================================================
   V4.4 — Conteneurs arrondis + remplissage diagonal (skew)
   Correction d'empilement : le calque est AU-DESSUS du fond de la carte
   (z-index: 0) et le contenu est au-dessus (z-index: 1).
   ========================================================================== */

/* Le praticien */
.info-blocks { gap: 10px; }
.info-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 18px 20px;
  margin: 0;
  box-shadow: 0 12px 30px -30px rgba(16, 42, 67, 0.45);
}
.info-block::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 220%;
  z-index: 0;
  background: linear-gradient(100deg, #087F8C, #0A6A75);
  transform: translateX(-125%) skewX(-28deg);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.info-block:hover::before,
.info-block:focus-visible::before { transform: translateX(0) skewX(-28deg); }
.info-block > * { position: relative; z-index: 1; }
.info-block:hover,
.info-block:focus-visible { padding-left: 20px; }

/* Urologie */
#services-grid { display: flex; flex-direction: column; gap: 10px; }
.domaine {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  margin: 0;
}
.domaine-link { border-radius: 16px; padding: 20px 18px; }
.domaine-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 220%;
  z-index: 0;
  background: linear-gradient(100deg, #087F8C, #0A6A75);
  transform: translateX(-125%) skewX(-28deg);
  transform-origin: center;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.domaine-link:hover::before,
.domaine-link:focus-visible::before { transform: translateX(0) skewX(-28deg); }
.domaine-link > * { position: relative; z-index: 1; }
.domaine-link:hover,
.domaine-link:focus-visible { padding-left: 18px; }

@media (max-width: 560px) {
  .info-block { padding: 16px; border-radius: 14px; }
  .info-block:hover, .info-block:focus-visible { padding-left: 16px; }
  .domaine-link { padding: 18px 14px; }
  .domaine-link:hover, .domaine-link:focus-visible { padding-left: 14px; }
}


/* V4.4 — icônes lisibles sur le remplissage (traits forcés en currentColor) */
.info-block:hover .icon-circle svg,
.info-block:hover .icon-circle svg *,
.info-block:focus-visible .icon-circle svg,
.info-block:focus-visible .icon-circle svg *,
.domaine-link:hover .icon-circle svg,
.domaine-link:hover .icon-circle svg *,
.domaine-link:focus-visible .icon-circle svg,
.domaine-link:focus-visible .icon-circle svg * { stroke: currentColor; }


/* ==========================================================================
   V4.5 — Amplification finale et diagonale plus lisible
   ========================================================================== */

.hero-bg {
  inset: -30% 0;
  height: 160%;
  transform: translate3d(0, var(--lahyani-parallax-y, 0px), 0) scale(1.06);
}

.lahyani-media-parallax img {
  inset: -30% 0;
  height: 160%;
}

.info-block::before {
  left: -60%;
  width: 240%;
  transform: translateX(-130%) skewX(-32deg);
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.info-block:hover::before,
.info-block:focus-visible::before { transform: translateX(0) skewX(-32deg); }

.domaine-link::before {
  left: -60%;
  width: 240%;
  transform: translateX(-130%) skewX(-32deg);
  transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.domaine-link:hover::before,
.domaine-link:focus-visible::before { transform: translateX(0) skewX(-32deg); }


/* V4.5b — cadrage du hero : moins de recadrage horizontal, parallax inversé */
.hero-bg {
  inset: -20% 0;
  height: 140%;
}


/* ==========================================================================
   V4.6 — Transitions premium + effets conservés sous prefers-reduced-motion
   ========================================================================== */

/* Entrée et sortie distinctes (la règle de base porte la sortie, le survol
   porte l'entrée). */
.info-block::before {
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1);
}
.info-block:hover::before,
.info-block:focus-visible::before {
  transition-duration: 900ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.domaine-link::before {
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.domaine-link:hover::before,
.domaine-link:focus-visible::before {
  transition-duration: 850ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}


/* V4.6b — lisibilité pendant la diagonale (texte sur fond clair ou teal) */
.info-block:hover .info-block-text,
.info-block:focus-visible .info-block-text,
.domaine-link:hover .domaine-name,
.domaine-link:focus-visible .domaine-name,
.domaine-link:hover .domaine-desc,
.domaine-link:focus-visible .domaine-desc,
.domaine-link:hover .domaine-num,
.domaine-link:focus-visible .domaine-num {
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 20, 30, 0.5);
}

.info-block:hover .icon-circle,
.info-block:focus-visible .icon-circle,
.domaine-link:hover .icon-circle,
.domaine-link:focus-visible .icon-circle {
  background: #fff;
  border-color: #fff;
  color: var(--interactive);
}

.info-block:hover .info-block-arrow,
.info-block:focus-visible .info-block-arrow {
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(8, 20, 30, 0.55));
}

/* V4.6c — synchronisation des couleurs de texte avec la sortie du calque */
.info-block-text,
.domaine-name,
.domaine-desc,
.domaine-num {
  transition: color 120ms ease 380ms, text-shadow 120ms ease 380ms;
}
.info-block:hover .info-block-text,
.info-block:focus-visible .info-block-text,
.domaine-link:hover .domaine-name,
.domaine-link:focus-visible .domaine-name,
.domaine-link:hover .domaine-desc,
.domaine-link:focus-visible .domaine-desc,
.domaine-link:hover .domaine-num,
.domaine-link:focus-visible .domaine-num {
  transition-delay: 0ms;
}

/* ==========================================================================
   V4.7 — Géométrie du remplissage : traversée visible sur toute la durée
   Calque de 240 % : bord droit à -7 % au repos, +106 % à l'arrivée.
   Le texte reste navy sur un lavis teal clair (contraste garanti à tout instant).
   ========================================================================== */

.info-block::before,
.domaine-link::before {
  left: -60%;
  width: 240%;
  background: linear-gradient(100deg, #8fd4d2, #6fc5c5);
  transform: translateX(-78%) skewX(-32deg);
  transform-origin: center;
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1);
}

.info-block:hover::before,
.info-block:focus-visible::before,
.domaine-link:hover::before,
.domaine-link:focus-visible::before {
  transform: translateX(-31%) skewX(-32deg);
}

.info-block:hover::before,
.info-block:focus-visible::before {
  transition-duration: 900ms;
  transition-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
}
.domaine-link:hover::before,
.domaine-link:focus-visible::before {
  transition-duration: 850ms;
  transition-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
}

/* Le contenu reste navy : pas de bascule blanche sur un fond clair. */
.info-block:hover .info-block-text,
.info-block:focus-visible .info-block-text,
.domaine-link:hover .domaine-name,
.domaine-link:focus-visible .domaine-name,
.domaine-link:hover .domaine-desc,
.domaine-link:focus-visible .domaine-desc,
.domaine-link:hover .domaine-num,
.domaine-link:focus-visible .domaine-num {
  color: var(--primary);
  text-shadow: none;
}
.info-block:hover .info-block-arrow,
.info-block:focus-visible .info-block-arrow {
  color: var(--interactive);
  filter: none;
}

/* Marge intérieure des cartes Praticien : icône jamais collée au bord. */
.info-block { padding: 18px 24px; }
a.info-block:hover,
a.info-block:focus-visible { padding-left: 24px; }

@media (max-width: 560px) {
  .info-block { padding: 16px 20px; }
  a.info-block:hover,
  a.info-block:focus-visible { padding-left: 20px; }
}


/* ==========================================================================
   V1 — diagonale mobile/tablette complète
   Le calque incliné de 240 % ne couvrait pas le bas des cartes hautes
   (Urologie sur 375/390 px et tablette). On élargit le calque sous 1024 px
   et on le fait sortir complètement à gauche au repos. Le desktop conserve
   la géométrie V4.7 validée.
   ========================================================================== */
@media (max-width: 1023px) {
  .info-block::before,
  .domaine-link::before {
    left: -150%;
    width: 400%;
    transform: translateX(-150%) skewX(-32deg);
  }

  .info-block:hover::before,
  .info-block:focus-visible::before,
  .domaine-link:hover::before,
  .domaine-link:focus-visible::before {
    transform: translateX(0) skewX(-32deg);
  }
}



/* ==========================================================================
   HOTFIX 2026-10-21 — onglets des catégories d’actes sur petits écrans
   Le libellé actif était limité à 2,3em de haut et débordait verticalement.
   On laisse le libellé grandir, on autorise la césure et on garde la barre
   défilable sans provoquer de débordement de page.
   ========================================================================== */
@media (max-width: 560px) {
  .acts-pill {
    gap: 3px;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .acts-pill::-webkit-scrollbar { display: none; }
  .acts-pill .tt13b {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 7px;
    gap: 5px;
  }
  .acts-pill input:checked + .tt13b { flex: 2.7 1 0; }
  .acts-pill .tt13l {
    min-width: 0;
    height: 2.3em;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  .acts-pill input:checked + .tt13b .tt13l {
    max-width: min(58vw, 220px);
    height: auto;
    min-height: 2.3em;
    max-height: none;
    overflow: visible;
  }
  .acts-pill .tt13i { width: 16px; height: 16px; }
}



/* ==========================================================================
   HOTFIX 2026-10-21 — portrait du praticien dans son cadre
   Le portrait est rendu par .praticien-figure .cutout avec une hauteur fixe
   et une largeur automatique : une photo rectangulaire ne remplissait pas la
   largeur du cadre gris. On fixe la hauteur du cadre et on cadrons l'image
   avec object-fit: cover, sans toucher aux autres images.
   ========================================================================== */
.praticien-figure {
  height: clamp(300px, 42vh, 460px);
}

.praticien-figure .cutout {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* Ajustement du cadrage du portrait du médecin */
.praticien-figure .cutout {
  object-position: center center;
}