/* =========================================================
   Centre d'Urologie et d'Andrologie d'Agadir
   Intégration de la maquette Figma — v2 (échelle normalisée)
   ========================================================= */

/* Polices auto-hébergées */
@font-face{font-family:"Cairo";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/cairo-arabic-500-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/cairo-latin-500-normal.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}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/tajawal-arabic-300-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/tajawal-latin-300-normal.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}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/tajawal-arabic-500-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Tajawal";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/tajawal-latin-500-normal.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}
@font-face{font-family:"Geist";font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/geist-latin-300-normal.woff2") format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/geist-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/geist-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/geist-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2")}

/* =========================================================
   SYSTÈME
   - Contenu : 1200px max, marges 24 → 48px
   - Espacement des sections : 64 → 112px (identique partout)
   - Échelle typo : 13 / 15 / 16 / 17 / 20 / 24 / 28-40 / 34-52
   - Boutons : 44px de haut, 15px
   ========================================================= */
:root {
  --ink: #0a0a0a;
  --ink-2: #22282b;
  --muted: rgba(10, 10, 10, .62);
  --navy: #02272f;
  --primary: #0699c2;
  --primary-dark: #0587ab;
  --white: #fff;
  --line: rgba(10, 10, 10, .14);
  --bg-soft: #f5f8f9;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --head-gap: clamp(32px, 4vw, 56px);
  --radius: 20px;
  --header-h: 76px;

  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-lead: clamp(16px, 1.25vw, 17px);
  --fs-h3: clamp(20px, 1.8vw, 24px);
  --fs-h2: clamp(28px, 3vw, 40px);
  --fs-h1: clamp(34px, 4vw, 52px);
  --fs-stat: clamp(40px, 4.4vw, 56px);

  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Manrope", "Geist", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typo ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2--xl { font-size: var(--fs-h2); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}
.lead--muted { opacity: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px -8px rgba(6, 153, 194, .55); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.btn--ghost { color: var(--white); padding: 0 14px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost-dark { color: var(--ink); border: 1px solid var(--line); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--primary); border-color: var(--primary); }
.link-arrow:hover svg { transform: translateX(3px); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Le PNG du logo a ~8% de marge transparente : on la compense */
.header__logo { position: relative; flex: none; width: 196px; margin-inline-start: -14px; }
.header__logo img { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.header__logo .logo--dark { position: absolute; inset: 0; opacity: 0; }

.nav { display: flex; gap: 28px; }
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--white);
  white-space: nowrap;
  opacity: .85;
  transition: color .25s var(--ease), opacity .25s;
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link.is-active { font-weight: 600; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.header__actions .btn { height: 40px; }

.burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
  z-index: 2;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease), background-color .25s;
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }

.header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }
.header.is-scrolled .nav__link { color: var(--ink); }
.header.is-scrolled .btn--ghost { color: var(--ink); }
.header.is-scrolled .btn--ghost:hover { background: rgba(10, 10, 10, .05); }
.header.is-scrolled .btn--white { background: var(--primary); color: var(--white); }
.header.is-scrolled .burger { background: rgba(10, 10, 10, .06); }
.header.is-scrolled .burger span { background: var(--ink); }
.header.is-hidden { transform: translateY(-100%); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: min(88svh, 720px);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #0a0a0a;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,0) 28%),
    linear-gradient(0deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 55%),
    rgba(10, 10, 10, .35);
}
.hero__content { position: relative; padding-bottom: clamp(48px, 7vh, 72px); }
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: none;
  white-space: nowrap;
}
.hero__text {
  margin-top: 16px;
  max-width: 600px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  opacity: .85;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__scroll {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: clamp(48px, 7vh, 72px);
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm);
  color: var(--white);
  opacity: .8;
  transition: opacity .25s;
}
.hero__scroll svg { width: 20px; height: 20px; }
.hero__scroll:hover { opacity: 1; }
.hero__scroll-wheel { animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(3px); opacity: .3; } }
@media (min-width: 1500px) { .hero__scroll { inset-inline-end: calc((100vw - var(--container)) / 2); } }

/* =========================================================
   SECTIONS (même rythme partout)
   ========================================================= */
.section { padding-block: var(--section); }

/* ---- Chirurgie ---- */
.surgery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.surgery__head .h2 { max-width: 520px; }
.surgery__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; }
.surgery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: var(--head-gap);
}
.card-surgery {
  display: flex; flex-direction: column; gap: 14px;
  padding: 0; border: 0; background: none; text-align: start; font: inherit; color: inherit;
  cursor: pointer;
}
.card-surgery__media { display: block; }
.card-surgery__more {
  position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 22px; line-height: 1; font-weight: 300;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.card-surgery:hover .card-surgery__more { transform: rotate(90deg); background: var(--primary); color: var(--white); }
.card-surgery:hover .card-surgery__title { color: var(--primary); }
.card-surgery__media,
.member__photo,
.spec__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.card-surgery__media { aspect-ratio: 4 / 5; }
.card-surgery__media img,
.member__photo img,
.spec__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card-surgery:hover img,
.member:hover img,
.spec:hover .spec__media img { transform: scale(1.04); }
.card-surgery__title {
  display: block;
  transition: color .25s;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-2);
}

/* ---- Équipe ---- */
.team { background: var(--bg-soft); }
.team__head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  max-width: 680px;
  margin-inline: auto;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 24px);
  margin-top: var(--head-gap);
}
.member__photo { aspect-ratio: 4 / 5; background: rgba(0, 0, 0, .08); }
.member figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 4px 0;
  font-family: var(--f-display);
  color: var(--ink-2);
  line-height: 1.35;
}
.member strong { font-weight: 500; font-size: 17px; }
.member span { font-size: 14px; color: var(--muted); }

/* ---- Spécialités ---- */
.specialties__head { max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.specialties__list { display: flex; flex-direction: column; margin-top: var(--head-gap); }
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec { cursor: pointer; }
.spec:hover .spec__title { color: var(--primary); }
.spec__title { transition: color .25s; }
button.link-arrow { background: none; border-width: 0 0 1px; border-style: solid; border-color: var(--line); padding: 0 0 4px; font-family: inherit; color: inherit; cursor: pointer; }
.spec__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.spec__title {
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #292929;
  margin-bottom: -8px;
}
.spec__list {
  list-style: disc;
  padding-inline-start: 20px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--muted);
}
.spec__list li::marker { color: var(--primary); }
.spec__media { aspect-ratio: 569 / 332; border-radius: 16px; background: #0b1a24; }

/* ---- Chiffres ---- */
.stats { padding-block: 0 var(--section); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.stat__num {
  font-size: var(--fs-stat);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { font-size: var(--fs-sm); color: var(--muted); }

/* ---- Photo du centre ---- */
.showcase { position: relative; overflow: hidden; height: clamp(320px, 42vw, 600px); width: 100%; }
.showcase img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { color: var(--navy); padding-top: clamp(48px, 6vw, 72px); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.footer__brand img { width: 200px; height: auto; margin-inline-start: -14px; }
.footer__brand p {
  margin-top: 16px;
  max-width: 340px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: rgba(2, 39, 47, .75);
}
.footer__col { padding-top: 8px; }
.footer__col h4 { font-size: var(--fs-base); font-weight: 600; line-height: 1.3; margin-bottom: 18px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: var(--fs-sm); line-height: 1.5; color: rgba(2, 39, 47, .8); transition: color .2s; }
.footer__col a:hover { color: var(--primary); }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact svg { flex: none; width: 16px; height: 16px; }
.footer__contact .u { text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.footer__social svg { width: 16px; height: 16px; }
.footer__social a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a:hover { color: var(--primary); }
.footer__copy {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: rgba(2, 39, 47, .65);
  text-align: center;
}

/* =========================================================
   RÉCLAMATION
   ========================================================= */
.complaint { padding-bottom: var(--section); }
.complaint__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 24px 32px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #02343f 0%, #04566a 55%, #0699c2 130%);
  color: var(--white);
}
.complaint__card::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); pointer-events: none;
}
.complaint__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.12); color: var(--white);
}
.complaint__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.02em; }
.complaint__body p { margin-top: 8px; max-width: 620px; font-size: var(--fs-sm); line-height: 1.6; color: rgba(255,255,255,.8); }
.complaint__action { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.complaint__mail { font-size: var(--fs-xs); color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.complaint__mail:hover { color: var(--white); }
@media (max-width: 860px) {
  .complaint__card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .complaint__body p { margin-inline: auto; }
}
@media (max-width: 640px) { .complaint__action, .complaint__action .btn { width: 100%; } }

/* =========================================================
   AVIS GOOGLE & ACCÈS
   ========================================================= */
.reviews { background: var(--bg-soft); }
.reviews__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}
.reviews__head > div:first-child { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.rating {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(2, 39, 47, .25);
}
.rating__score { font-family: var(--f-display); font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.rating__score small { font-size: 18px; color: var(--muted); margin-inline-start: 2px; }
.stars {
  --r: 5;
  position: relative; display: inline-block;
  font-size: 20px; letter-spacing: 2px; line-height: 1;
  color: #dfe3e5;
}
.stars::before {
  content: "★★★★★";
  position: absolute; inset: 0;
  width: calc(var(--r) / 5 * 100%);
  overflow: hidden; color: #fbbc04;
}
.rating__count { margin-top: 6px; display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--muted); }
.g-logo { display: inline-block; }

.reviews__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: var(--head-gap);
}
.review {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--white); border-radius: 16px;
  box-shadow: 0 1px 0 var(--line);
}
.review__stars { color: #fbbc04; letter-spacing: 2px; }
.review__text {
  margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: rgba(10,10,10,.8);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review__author { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.review__author img, .review__initial { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.review__initial { display: grid; place-items: center; background: var(--primary); color: var(--white); font-weight: 600; }
.review__author span { display: flex; flex-direction: column; line-height: 1.3; }
.review__author strong { font-weight: 600; font-size: var(--fs-sm); }
.review__author small { font-size: var(--fs-xs); color: var(--muted); }

.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reviews .btn--ghost-dark { background: var(--white); }

.access {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: var(--head-gap);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(2, 39, 47, .35);
}
.access__map { position: relative; min-height: 380px; background: #e8eef0; }
.access__map { overflow: hidden; }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; opacity: 0; transition: opacity .5s; }
.access__map.has-live-map iframe { opacity: 1; }
.map-static { position: absolute; inset: 0; display: block; }
.map-static > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.02); transition: transform 1.2s var(--ease); }
.map-static:hover > img { transform: scale(1.04); }
.map-pin {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 8px 14px rgba(2, 39, 47, .35));
}
.map-pin svg { animation: pinDrop .9s var(--ease) both; }
@keyframes pinDrop { from { transform: translateY(-24px); opacity: 0; } }
.map-pin__label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding: 8px 14px 8px 8px;
  background: var(--white); border-radius: 12px;
  font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; color: var(--navy);
}
.map-pin__label img { width: 96px; height: auto; }
.map-open {
  position: absolute; inset-inline-start: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--white); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.35);
}
.map-credit { position: absolute; inset-inline-end: 8px; bottom: 6px; z-index: 1; font-size: 11px; color: rgba(2,39,47,.7); background: rgba(255,255,255,.8); padding: 1px 6px; border-radius: 4px; }

.access__info { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.access__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -0.02em; }
.access__list { font-style: normal; display: flex; flex-direction: column; gap: 18px; }
.access__row { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; color: rgba(10,10,10,.8); }
.access__row svg { flex: none; margin-top: 2px; color: var(--primary); }
.access__row strong { color: var(--ink); font-weight: 600; }
.access__phone { font-size: 18px; font-weight: 600; color: var(--ink); }
.access__phone:hover { color: var(--primary); }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 20px; margin: 0; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.access__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* stats après la section avis */
.reviews + .stats { padding-top: var(--section); }

.footer__insta { display: inline-block; margin-top: 12px; font-size: var(--fs-sm); color: rgba(2,39,47,.8); }
.footer__insta:hover { color: var(--primary); }
.footer__contact li span { font-size: var(--fs-sm); color: rgba(2,39,47,.8); }
.footer__contact li { align-items: flex-start; }
.footer__contact svg { margin-top: 3px; }

/* =========================================================
   POPUP
   ========================================================= */
body.modal-open { overflow: hidden; }
.modal {
  width: min(880px, calc(100% - 32px));
  max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.modal[open] { animation: modalIn .35s var(--ease); }
.modal.is-closing { animation: modalOut .22s ease forwards; }
.modal::backdrop { background: rgba(2, 20, 26, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open]::backdrop { animation: fadeIn .35s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }

.modal__panel {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain;
}
.modal__media { position: sticky; top: 0; height: 100%; max-height: calc(100dvh - 48px); background: #0b1a24; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(28px, 4vw, 44px); }
.modal__close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
  cursor: pointer; transition: transform .25s var(--ease), background-color .2s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--bg-soft); }
.modal__kicker { font-size: var(--fs-xs); font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.modal__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.025em; padding-inline-end: 32px; }
.modal__content { margin-top: 18px; font-size: var(--fs-sm); line-height: 1.65; color: rgba(10,10,10,.8); }
.modal__content p + p { margin-top: 10px; }
.modal__content strong { color: var(--ink); font-weight: 600; }
.modal__content h3 { margin: 22px 0 10px; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.modal__content ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.modal__content li { position: relative; padding-inline-start: 28px; }
.modal__content ul.check li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(6,153,194,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230699c2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.modal__content ul.dot li::before {
  content: ""; position: absolute; inset-inline-start: 7px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.modal__links { margin-top: 20px !important; }
.modal__links button {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.modal__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.modal__note { margin-top: 18px; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }

@media (max-width: 980px) {
  .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access { grid-template-columns: 1fr; }
  .access__map { min-height: 300px; }
}
@media (max-width: 640px) {
  .reviews__list { grid-template-columns: 1fr; }
  .rating { width: 100%; }
  .reviews__actions .btn, .access__ctas .btn { flex: 1 1 auto; }
  .modal { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal[open] { animation: sheetIn .4s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal__panel { grid-template-columns: 1fr; max-height: 92dvh; }
  .modal__media { position: relative; height: 180px; }
  .modal__ctas .btn { flex: 1 1 100%; }
}

/* =========================================================
   GALERIE DU CENTRE
   ========================================================= */
.gallery__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.gallery__head .h2 { max-width: 520px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: var(--head-gap);
}
.g-item {
  position: relative; overflow: hidden;
  padding: 0; border: 0; border-radius: 16px;
  background: #e9eef0; cursor: zoom-in;
}
.g-item.big { grid-column: span 2; grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item.tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-item:hover img { transform: scale(1.05); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 14, 18, .94); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 72px; }
.lightbox__fig img { max-width: min(1400px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox__fig figcaption { font-size: var(--fs-sm); opacity: .85; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--white); cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; inset-inline-start: 24px; font-size: var(--fs-sm); opacity: .7; }

@media (max-width: 980px) {
  .gallery__head { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 640px) {
  .gallery__grid { grid-auto-rows: 130px; }
  .lightbox__fig { padding: 64px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .map-pin__label img { display: none; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { animation: none; transform: none; }
  .hero__scroll-wheel { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header__logo { width: 176px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .header__logo { width: 196px; }
  .header__actions { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 96px var(--gutter) 40px;
    background: var(--white);
    clip-path: circle(0 at calc(100% - 44px) 34px);
    transition: clip-path .55s var(--ease);
    visibility: hidden;
  }
  .nav__link { color: var(--ink); opacity: 1; font-family: var(--f-display); font-size: 28px; line-height: 1.5; letter-spacing: -0.02em; }
  .nav__link.is-active { font-weight: 500; color: var(--primary); }
  .nav__link::after { display: none; }
  .nav__mobile-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

  body.menu-open { overflow: hidden; }
  body.menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 34px); visibility: visible; }
  body.menu-open .burger { background: rgba(10, 10, 10, .06); }
  body.menu-open .burger span { background: var(--ink); top: 20px; }
  body.menu-open .burger span:first-child { transform: rotate(45deg); }
  body.menu-open .burger span:last-child { transform: rotate(-45deg); }
  body.menu-open .logo--light { opacity: 0; }
  body.menu-open .logo--dark { opacity: 1; }
  body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .surgery__head { grid-template-columns: 1fr; align-items: start; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: 1fr; gap: 20px; }
  .spec__media { order: -1; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { height: 88svh; min-height: 540px; max-height: 720px; }
  .hero__title { white-space: normal; text-wrap: balance; font-size: 38px; text-align: center; margin-inline: auto; }
  .hero__text { text-align: center; margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.4) 40%, rgba(10,10,10,.8) 100%); }
  .hero__content { padding-bottom: 72px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__scroll { inset-inline-end: auto; inset-inline-start: var(--gutter); bottom: 24px; font-size: var(--fs-xs); }

  .surgery__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .surgery__grid::-webkit-scrollbar { display: none; }
  .card-surgery { scroll-snap-align: start; }

  .team__grid { gap: 28px 12px; }
  .member strong { font-size: 15px; }
  .member span { font-size: 13px; }

  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
  .stat { padding-inline-start: 16px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__brand img { width: 176px; }
}
.stats + .gallery { padding-top: 0; }

/* =========================================================
   VERSION ARABE (RTL)
   ========================================================= */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.35); color: var(--white);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lang-switch:hover { background: rgba(255,255,255,.12); }
.header.is-scrolled .lang-switch, body.menu-open .lang-switch { color: var(--ink); border-color: var(--line); }
.lang-switch--mobile { display: none; }
@media (max-width: 980px) {
  .lang-switch--mobile { display: inline-flex; margin-inline-start: auto; margin-inline-end: 10px; position: relative; z-index: 2; }
}

/* Arabe : titres en Cairo Medium, textes en Tajawal Light / Medium */
html[lang="ar"] {
  --f-display: "Cairo", system-ui, sans-serif;
  --f-label: "Cairo", system-ui, sans-serif;
  --f-body: "Tajawal", system-ui, sans-serif;
}
html[lang="ar"] body { font-weight: 300; font-size: 17px; }
/* L'arabe ne supporte pas l'espacement négatif des lettres */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
/* Titres : Cairo Medium */
html[lang="ar"] .hero__title, html[lang="ar"] .h2, html[lang="ar"] .modal__title,
html[lang="ar"] .spec__title, html[lang="ar"] .access__title, html[lang="ar"] .card-surgery__title,
html[lang="ar"] .member strong, html[lang="ar"] .footer__col h4, html[lang="ar"] .modal__content h3,
html[lang="ar"] .nav__link { font-family: var(--f-display); font-weight: 500; }
html[lang="ar"] .hero__title, html[lang="ar"] .h2, html[lang="ar"] .modal__title { line-height: 1.4; }
html[lang="ar"] .nav__link.is-active { color: var(--primary); }
html[lang="ar"] .header:not(.is-scrolled) .nav__link.is-active { color: var(--white); }
@media (max-width: 980px) { html[lang="ar"] .header .nav__link.is-active { color: var(--primary); } }
/* Textes : Tajawal Light, éléments d'interface en Tajawal Medium */
html[lang="ar"] .lead, html[lang="ar"] .hero__text, html[lang="ar"] .spec__list,
html[lang="ar"] .modal__content, html[lang="ar"] .member span, html[lang="ar"] .access__row,
html[lang="ar"] .footer__brand p, html[lang="ar"] .stat__label { font-weight: 300; }
html[lang="ar"] .lead, html[lang="ar"] .hero__text { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.8; }
html[lang="ar"] .modal__content { font-size: 16px; line-height: 1.85; }
html[lang="ar"] .spec__list { font-size: 16px; }
html[lang="ar"] .btn, html[lang="ar"] .link-arrow, html[lang="ar"] .footer__col a,
html[lang="ar"] strong, html[lang="ar"] .modal__kicker, html[lang="ar"] .rating__count,
html[lang="ar"] .map-open, html[lang="ar"] .map-pin__label, html[lang="ar"] .hours dt,
html[lang="ar"] .lang-switch, html[lang="ar"] .hero__scroll { font-weight: 500; }
html[lang="ar"] .btn { font-size: 16px; }
html[lang="ar"] .member span { font-size: 15px; }
[dir="rtl"] .link-arrow svg, [dir="rtl"] .lightbox__prev svg, [dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .lightbox__prev { left: auto; right: 16px; }
[dir="rtl"] .lightbox__next { right: auto; left: 16px; }
[dir="rtl"] .nav__link::after { transform-origin: left; }
[dir="rtl"] .nav__link:hover::after { transform-origin: right; }
[dir="rtl"] .tel, [dir="rtl"] .access__phone, [dir="rtl"] .hours dd, [dir="rtl"] .stat__num, [dir="rtl"] .rating__score, [dir="rtl"] .stars { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat__num { text-align: right; }
[dir="rtl"] .btn .tel { margin-inline-start: 4px; }
[dir="rtl"] .hours dd { text-align: right; }
@media (max-width: 980px) {
  [dir="rtl"] .nav { clip-path: circle(0 at 44px 34px); }
  [dir="rtl"] body.menu-open .nav, body.menu-open[dir="rtl"] .nav { clip-path: circle(150% at 44px 34px); }
}
@media (max-width: 640px) {
  [dir="rtl"] .lightbox__prev { right: calc(50% - 60px); left: auto; }
  [dir="rtl"] .lightbox__next { left: calc(50% - 60px); right: auto; }
}
html[lang="ar"] .btn, html[lang="ar"] .lang-switch { padding-top: 4px; }
html[lang="ar"] .header__logo { width: 220px; }
@media (max-width: 980px) { html[lang="ar"] .header__logo { width: 200px; } }
html[lang="ar"] .footer__brand img { width: 230px; }
html[lang="ar"] .complaint__title { font-weight: 500; }
html[lang="ar"] .complaint__body p { font-weight: 300; font-size: 16px; line-height: 1.8; }
