/* ============ VARIABLES (couleurs du logo) ============ */
:root {
  --navy: #0f1647;
  --navy-2: #1a2260;
  --blue: #3558a8;
  --blue-dark: #2a4789;
  --sky: #9db4e6;
  --tint: #f2f5fb;
  --tint-2: #e1e8f6;
  --ink: #0f1647;
  --muted: #56607f;
  --line: #dfe5f1;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 44px rgba(15, 22, 71, .12);
  --shadow-sm: 0 4px 16px rgba(15, 22, 71, .07);
  --font: "Avenir Next", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fbfcfe;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: .005em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
address { font-style: normal; color: var(--muted); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.section { padding: 96px 0; background: #fff; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { margin: 12px 0 16px; }
.lead { font-size: 1.04rem; margin: 18px 0 26px; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
}

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .9rem var(--font); letter-spacing: .01em; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(53, 88, 168, .32); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ============ EN-TÊTE ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff;
  transition: background .3s, box-shadow .3s, color .3s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__img { width: 48px; height: 48px; }
.logo__img--color { display: none; }
.logo__text { font-weight: 600; font-size: .98rem; line-height: 1.2; letter-spacing: .01em; }
.logo__text small { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 24px; }
.nav__link { font-size: .92rem; position: relative; padding: 6px 0; opacity: .92; white-space: nowrap; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang {
  font: 600 .8rem var(--font); color: inherit; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 8px 10px; cursor: pointer;
}
.lang option { color: #0f1647; background: #fff; }
.header.is-solid .lang { background: var(--tint); border-color: var(--line); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .16); border-radius: 12px; cursor: pointer; padding: 12px 11px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 4px 0; transition: transform .25s, opacity .25s; }
.header .burger { color: inherit; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* en-tête après défilement (ou menu ouvert) */
.header.is-solid { background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 2px 20px rgba(15, 22, 71, .08); }
.header.is-solid .logo__img--color { display: block; }
.header.is-solid .logo__img--white { display: none; }
.header.is-solid .burger { background: var(--tint); }

/* ============ HERO ============ */
.hero {
  position: relative; color: #fff; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(15, 22, 71, .78) 0%, rgba(15, 22, 71, .55) 45%, rgba(15, 22, 71, .88) 100%),
    url("/images/salle-de-soins.jpg") center / cover no-repeat,
    var(--navy);
}
.hero__inner { padding: 170px 0 70px; text-align: center; margin-block: auto; }
.hero__eyebrow { color: var(--sky); font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.hero h1 {
  font-weight: 300; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); margin: 18px 0 22px;
}
.hero h1 span { display: block; font-size: .5em; letter-spacing: .3em; font-weight: 400; margin-bottom: 10px; opacity: .9; }
.hero__lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero__strip { border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(15, 22, 71, .45); backdrop-filter: blur(6px); }
.hero__strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.hero__strip-grid > * { display: block; padding: 22px 12px; border-left: 1px solid rgba(255, 255, 255, .14); color: inherit; transition: background .2s; }
.hero__strip-grid > a:hover { background: rgba(255, 255, 255, .08); }
.hero__strip-grid > *:first-child { border-left: 0; }
.hero__strip strong { display: block; font-weight: 600; font-size: 1rem; }
.hero__strip span { font-size: .82rem; color: rgba(255, 255, 255, .75); }

/* ============ LE CABINET ============ */
.cabinet__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 14px; border-radius: 999px;
  background: rgba(15, 22, 71, .72); color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .04em;
}
.contact-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.3rem; margin: 12px 0 12px; }
.addr-note { color: var(--ink); font-weight: 500; }
.addr-link { color: inherit; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; transition: color .2s; }
.addr-link:hover { color: var(--blue); }
.addr-link::after { content: " ↗"; color: var(--blue); }
.footer .addr-link { text-decoration-color: rgba(255, 255, 255, .35); }
.footer .addr-link:hover { color: #fff; }
.footer .addr-link::after { color: var(--sky); }
.footer .addr-note { color: inherit; }
.contact-card__map { display: inline-block; margin: 14px 0 20px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.contact-card__list li { border-top: 1px solid var(--line); }
.contact-card__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; transition: color .2s; }
.contact-card__list a:hover { color: var(--blue); }
.contact-card__list span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); grid-column: 1; }
.contact-card__list strong { font-weight: 600; font-size: .98rem; grid-column: 1; overflow-wrap: anywhere; }
.contact-card__list i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: var(--blue); }

/* ============ LE PRATICIEN ============ */
.praticien__grid { display: grid; grid-template-columns: .8fr 1fr; gap: 72px; align-items: center; }
.praticien__media { position: relative; padding: 0 0 56px; }
.praticien__photo { width: 82%; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.praticien__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.praticien__inset {
  position: absolute; right: 0; bottom: 0; width: 44%; margin: 0; aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow);
}
.praticien__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
[dir="rtl"] .praticien__photo { margin-inline-start: auto; }
[dir="rtl"] .praticien__inset { right: auto; left: 0; }
.praticien__grid h2 { margin-top: 12px; }
.checklist { display: grid; gap: 14px; margin-bottom: 32px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-2); position: relative; margin-top: 1px; }
.check::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ============ AVANT / APRÈS ============ */
.ba__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba { text-align: center; }
.ba__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); user-select: none; touch-action: pan-y; cursor: ew-resize; --pos: 50%;
}
.ba__img { position: absolute; inset: 0; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(15, 22, 71, .7); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .14em;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); }
.ba__handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--blue);
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba h3 { margin-top: 16px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.ba__note { text-align: center; font-size: .85rem; margin-top: 28px; }
.footer__legal { font-size: .74rem; color: rgba(255, 255, 255, .5); margin-inline-start: auto; }
.footer__legal--next { margin-inline-start: 0; }
.footer__legal:hover { color: rgba(255, 255, 255, .85); }
.footer__credits { font-size: .74rem; color: rgba(255, 255, 255, .5); }
.footer__credits summary { cursor: pointer; list-style: none; }
.footer__credits summary::-webkit-details-marker { display: none; }
.footer__credits summary:hover { color: rgba(255, 255, 255, .8); }
.footer__credits p { margin: 6px 0 0; color: inherit; max-width: 520px; }
.footer__credits a { text-decoration: underline; }

/* ============ SOINS ============ */
.soins__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.soin {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
}
.soin:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.soin__num { font-size: 2rem; font-weight: 300; color: var(--sky); line-height: 1; }
.soin h3 { margin: 18px 0 10px; }
.soin p { font-size: .93rem; flex: 1; }
.soin a { margin-top: 18px; font-weight: 600; font-size: .86rem; color: var(--blue); }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.booking { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 500; }
.field small { font-size: .76rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafd; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(53, 88, 168, .14); background: #fff; }
.field .is-invalid { border-color: #d9534f; }
.booking__msg { font-size: .9rem; margin-top: 12px; text-align: center; min-height: 1.4em; }
.booking__msg.is-ok { color: var(--blue-dark); font-weight: 500; }
.booking__msg.is-err { color: #c0392b; }
.booking__privacy { font-size: .8rem; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.booking__privacy strong { color: var(--ink); }
.infos { display: grid; gap: 16px; }
.infos__block { background: #fff; border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.infos__block h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.infos__block p a:hover { color: var(--blue); }
.infos__block p, .infos__block address { overflow-wrap: anywhere; }
.infos__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.infos__actions a, .infos__actions button {
  font: 600 .88rem var(--font); color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer;
}
.infos__map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--tint-2); }

/* ============ FAQ ============ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 680px; }

/* ============ PIED DE PAGE ============ */
.footer { background: var(--navy); color: #fff; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer p { margin-top: 18px; font-size: .93rem; max-width: 300px; color: rgba(255, 255, 255, .72); }
.footer h4, .footer .footer__title { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; color: var(--sky); }
.footer li { margin-bottom: 10px; font-size: .93rem; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.footer li a:hover { color: #fff; }
.footer .logo__img { width: 56px; height: 56px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-block: 22px; padding-inline: 0 80px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; color: rgba(255, 255, 255, .6); }

/* ============ NOTE GOOGLE ============ */
.rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: .9rem; transition: background .2s;
}
.rating:hover { background: rgba(255, 255, 255, .2); }
.rating__stars { color: #fbbc04; letter-spacing: 2px; }
.rating strong { font-weight: 700; }

.mutuelles { color: var(--ink); margin-bottom: 6px; }
.mutuelles::before { content: "✓ "; color: #1e8e4f; font-weight: 700; }

/* ============ HORAIRES ============ */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #1e8e4f; }
.open-status.is-closed { color: #c0392b; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.hours li.is-today { background: var(--tint); color: var(--ink); font-weight: 600; }
.hours__note { font-size: .82rem; margin-top: 10px; }

/* ============ BOUTON APPELER (téléphone) ============ */
.call-fab {
  display: none; position: fixed; right: 88px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
  place-items: center; box-shadow: 0 8px 24px rgba(53, 88, 168, .45);
}
.call-fab svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .call-fab { display: grid; } }

/* ============ RÉSEAUX SOCIAUX ============ */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social[hidden], .social__link[hidden], .social__title[hidden] { display: none; }
.social__title { margin: 22px 0 10px; }
.social__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: .85rem; transition: background .2s;
}
.social__link:hover { background: rgba(255, 255, 255, .12); }
.social__link svg { width: 18px; height: 18px; }
.social--card { margin-top: 16px; }
.social--card .social__link { border-color: var(--line); color: var(--blue); }
.social--card .social__link:hover { background: var(--tint); }

/* Case « Suivez-nous » du bandeau */
.strip-social__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.strip-social__links a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .85); font-size: .82rem; }
.strip-social__links a:hover { color: #fff; text-decoration: underline; }
.strip-social__links svg { width: 14px; height: 14px; }

/* Réseaux dans l'en-tête et le menu mobile */
.header__social { display: none; gap: 4px; }
.header__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; transition: background .2s; }
.header__social a:hover { background: rgba(127, 140, 180, .18); }
.header__social a[hidden], .nav__social a[hidden] { display: none; }
.header__social svg { width: 18px; height: 18px; }
@media (min-width: 1360px) { .header__social:not([hidden]) { display: flex; } }
.nav__social { display: none; }
.nav__social svg { width: 18px; height: 18px; }

.footer .footer__ar { margin-top: 8px; font-family: "Tajawal", "Segoe UI", sans-serif; font-size: .9rem; }

/* ============ WHATSAPP ============ */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }

/* ============ ANIMATIONS D'APPARITION ============ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============ ARABE (droite à gauche) ============ */
[dir="rtl"] body { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .btn, [dir="rtl"] .lang, [dir="rtl"] .infos__actions a, [dir="rtl"] .infos__actions button,
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: inherit; }
[dir="rtl"] .gallery__item figcaption { left: auto; right: 14px; }
[dir="rtl"] .hero__strip-grid > * { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .14); }
[dir="rtl"] .hero__strip-grid > *:first-child { border-right: 0; }
[dir="rtl"] .nav__link::after { transform-origin: right; }
[dir="rtl"] .hero h1 { font-weight: 400; }
[dir="rtl"] .hero h1 span { font-size: .6em; }
[dir="rtl"] .eyebrow, [dir="rtl"] .hero__eyebrow { font-size: .95rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .soins__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .ba__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199px) {
  .nav {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; color: var(--ink); padding: 8px 20px 20px; box-shadow: 0 20px 30px rgba(15, 22, 71, .1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__social:not([hidden]) { display: flex; gap: 10px; padding-top: 14px; }
  .nav__social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-size: .88rem; font-weight: 500; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .burger { display: block; }
}
@media (max-width: 920px) {
  .cabinet__grid, .praticien__grid, .contact__grid { grid-template-columns: 1fr; }
  .praticien__grid { gap: 36px; }
  .praticien__media { max-width: 480px; }
  .hero__strip-grid { grid-template-columns: 1fr 1fr; }
  .hero__strip-grid > *:nth-child(3) { border-left: 0; border-right: 0; }
  .hero__strip-grid > *:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .header__actions .btn { display: none; }
  .logo__text { font-size: .86rem; }
  .logo__img { width: 42px; height: 42px; }
  .hero__inner { padding: 130px 0 50px; }
  .ba__grid, .soins__grid, .field-row, .footer__grid { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .gallery__item figcaption { font-size: .7rem; left: 10px; bottom: 10px; }
  .booking, .contact-card { padding: 24px; }
  .section__head h2 br, .praticien__grid h2 br { display: none; }
}

/* ============ LIENS AJOUTÉS (v2) ============ */
.soin h3 a { color: inherit; }
.soin h3 a:hover { color: var(--blue); }
.praticien__more { display: inline-block; margin-inline-start: 18px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.nav__link--brand { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-weight: 700; }

/* ============ IMAGE DU HERO : WebP, plus légère sur téléphone (v2) ============ */
.hero { background-image: linear-gradient(180deg, rgba(15, 22, 71, .78) 0%, rgba(15, 22, 71, .55) 45%, rgba(15, 22, 71, .88) 100%), image-set(url("/images/salle-de-soins-800.webp") type("image/webp"), url("/images/salle-de-soins-800.jpg") type("image/jpeg")); }
@media (min-width: 901px) {
  .hero { background-image: linear-gradient(180deg, rgba(15, 22, 71, .78) 0%, rgba(15, 22, 71, .55) 45%, rgba(15, 22, 71, .88) 100%), image-set(url("/images/salle-de-soins.webp") type("image/webp"), url("/images/salle-de-soins.jpg") type("image/jpeg")); }
}

/* ============ PAGES INTÉRIEURES (v2) ============ */
picture { display: contents; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.page-hero { background: var(--navy); color: #fff; padding: 120px 0 48px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin: 12px 0 14px; text-wrap: balance; }
.page-lead { color: rgba(255, 255, 255, .85); font-size: 1.05rem; max-width: 760px; }
.page-meta { margin-top: 14px; font-size: .85rem; color: rgba(255, 255, 255, .72); }
.page-meta a { color: #fff; text-decoration: underline; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "›"; margin-inline-end: 6px; }
[dir="rtl"] .breadcrumb li + li::before { content: "‹"; }
.breadcrumb a { color: rgba(255, 255, 255, .9); }
.eyebrow--light { color: var(--sky); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 56px 80px; align-items: start; }
.prose { min-width: 0; color: var(--ink); }
.prose p, .prose li { color: #3a4366; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose-section { margin-top: 40px; }
.prose h2 { font-size: 1.4rem; margin-bottom: 14px; text-wrap: balance; }
.prose h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.prose ul, .prose ol { margin: 10px 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { text-decoration: none; }
.answer-first { font-size: 1.08rem; background: var(--tint); border-radius: 14px; padding: 18px 20px; color: var(--ink) !important; }
.refs ul { font-size: .9rem; }
.disclaimer { font-size: .85rem; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.author-box__name { font-weight: 600; color: var(--ink) !important; }
.author-box__role { font-size: .88rem; }
.author-box a { font-weight: 600; }
.page-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.aside-title { font-size: 1.05rem; margin-bottom: 4px; }
.btn--wa { background: #17804a; color: #fff; } /* vert WhatsApp foncé : contraste AA */
.btn--wa:hover { background: #136b3e; }
.btn--outline { border-color: var(--line); color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); }
.aside-card .btn svg { width: 18px; height: 18px; flex: none; }
.hours--compact li { padding: 4px 8px; font-size: .88rem; }
.link-list { list-style: none !important; padding: 0 !important; display: grid; gap: 8px; }
.link-list a { color: var(--blue); font-weight: 500; }
.signature { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-weight: 700; color: var(--blue) !important; font-size: 1.15rem; }
.signature--big { font-size: 1.5rem; text-align: center; margin: 18px 0; }
.soins__grid--3 { grid-template-columns: repeat(3, 1fr); }
.soin__title { font-size: 1.1rem; margin: 18px 0 10px; }
.soin__title a { color: inherit; }
.soin__title a:hover { color: var(--blue); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.post-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.post-card h2, .post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card__meta { font-size: .8rem; color: var(--blue) !important; font-weight: 600; }
.post-card--brand { background: var(--tint); }
.tag-list { list-style: none !important; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--tint); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.series-note { margin-top: 28px; padding: 14px 16px; border-inline-start: 4px solid var(--blue); background: var(--tint); border-radius: 8px; }
.video-placeholder { margin: 24px 0; padding: 22px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; }
.profile-photo { margin: 0 0 24px; max-width: 320px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.profile-photo img { width: 100%; height: auto; display: block; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.figure-pair figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; position: relative; }
.figure-pair img { width: 100%; height: 100%; object-fit: cover; }
.figure-pair figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; background: rgba(15, 22, 71, .72); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .78rem; }
.todo { background: #fff4d6; color: #7a5600; padding: 1px 6px; border-radius: 4px; }
.prose .gallery { margin-top: 8px; }
.prose .infos__block { box-shadow: none; border: 1px solid var(--line); }
.prose .infos__block h3 { margin-top: 0; }
[dir="rtl"] .page-hero h1, [dir="rtl"] .prose, [dir="rtl"] .aside-card { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .prose p, [dir="rtl"] .prose li { font-size: 1.08rem; }

/* ============ PAGE /links (v2) ============ */
.links-page { background: var(--navy); min-height: 100vh; }
.links { max-width: 520px; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); text-align: center; color: #fff; display: grid; gap: 10px; justify-items: center; }
.links__logo { width: 96px; height: 96px; }
.links__name { font-size: 1.8rem; font-weight: 600; }
.links__role, .links__addr { color: rgba(255, 255, 255, .82); }
.links__role span { font-family: "Tajawal", "Segoe UI", sans-serif; }
.links__addr { font-size: .88rem; }
.links__list { display: grid; gap: 12px; width: 100%; margin: 14px 0; }
.lk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-align: start; transition: background .2s, transform .2s; }
.lk:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.lk__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.lk__icon svg { width: 20px; height: 20px; }
.lk__txt { display: grid; gap: 2px; }
.lk__txt span { font-family: "Tajawal", "Segoe UI", sans-serif; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.links .signature { color: var(--sky) !important; }
.links__foot a { color: rgba(255, 255, 255, .75); font-size: .85rem; }

@media (max-width: 920px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .soins__grid--3 { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 110px; }
}
@media (max-width: 600px) {
  .soins__grid--3, .figure-pair { grid-template-columns: 1fr; }
  .figure-pair figure { aspect-ratio: 4 / 3; }
  .praticien__more { display: block; margin: 14px 0 0; }
}

.footer__langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; }
.footer__langs a { color: rgba(255, 255, 255, .7); }
.footer__langs a:hover { color: #fff; }
.footer__langs a[lang="ar"] { font-family: "Tajawal", "Segoe UI", sans-serif; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 1200px) { .header .btn--sm, .logo__text { white-space: nowrap; } }

/* Nom du cabinet dans l'en-tête : un seul nom, à toutes les largeurs (v3.1) */
@media (max-width: 600px) {
  .header .logo__text { white-space: nowrap; font-size: 1rem; }
  .header .logo__text small { letter-spacing: .14em; }
  .header__actions { gap: 8px; flex: none; }
  .header .lang { padding: 6px 6px; }
}

/* =========================================================
   v3 — Nouvelles sections (mêmes couleurs, rayons, ombres et typographie)
   ========================================================= */
.more-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .88rem; color: var(--blue); transition: transform .2s; }
.more-link:hover { transform: translateX(3px); }
[dir="rtl"] .more-link:hover { transform: translateX(-3px); }
.section-signature { text-align: center; margin: 44px auto 0; max-width: 680px; font-size: 1.12rem; font-weight: 500; font-style: italic; color: var(--blue); }
.section-signature--light { color: var(--sky); }
[dir="rtl"] .section-signature { font-style: normal; }
.note { margin-top: 14px; padding: 12px 16px; border-inline-start: 4px solid var(--sky); background: var(--tint); border-radius: 8px; font-size: .95rem; }

/* Notre engagement */
.engage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.engage__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.engage__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.engage__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--blue); margin-bottom: 20px; }
.engage__icon svg { width: 26px; height: 26px; }
.engage__card h3 { font-size: 1.2rem; margin-bottom: 12px; }

/* Découvrez votre cabinet (chiffres) */
.discover { background: var(--navy); color: #fff; padding: 88px 0; }
.discover .section__head h2 { color: #fff; }
.discover__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.discover__item { padding: 10px 18px; border-inline-start: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 6px; justify-items: center; align-content: start; }
.discover__item:first-child { border-inline-start: 0; }
.discover__value { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 300; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.discover__value--icon { color: var(--sky); display: grid; place-items: center; }
.discover__value--icon svg { width: 1em; height: 1em; }
.discover__item strong { font-weight: 600; font-size: 1rem; }
.discover__item span:last-child { font-size: .86rem; color: rgba(255, 255, 255, .7); }

/* Parcours de soins : frise en 4 étapes */
.journey__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey__list::before, .journey__list::after {
  content: ""; position: absolute; top: 32px; inset-inline: 12.5%; height: 2px; background: var(--tint-2);
}
.journey__list::after { background: var(--blue); transform-origin: left; }
[dir="rtl"] .journey__list::after { transform-origin: right; }
.motion .journey__list::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .2s; }
.motion .journey__list.is-in::after { transform: scaleX(1); }
.journey__step { position: relative; text-align: center; display: grid; justify-items: center; align-content: start; gap: 8px; }
.journey__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); border: 2px solid var(--tint-2); box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s; }
.journey__icon svg { width: 28px; height: 28px; }
.journey__step:hover .journey__icon { transform: translateY(-4px); border-color: var(--blue); }
.journey__num { font-size: .76rem; font-weight: 600; letter-spacing: .18em; color: var(--blue); margin-top: 8px; }
.journey__step h3 { font-size: 1.05rem; }
.journey__step p { font-size: .92rem; max-width: 240px; }

/* Avis Google (note réelle, lien vers la fiche) */
.reviews__card { display: grid; justify-items: center; gap: 6px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow-sm); }
.reviews__stars { color: #f4b400; font-size: 1.4rem; letter-spacing: .12em; }
.reviews__score { font-size: 2.6rem; font-weight: 300; line-height: 1.1; }
.reviews__count { font-size: .9rem; color: var(--muted); }
.reviews__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* Membre de l'Ordre */
.onmd--footer { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.onmd--footer img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; padding: 3px; }
.footer .onmd--footer p { margin: 0; display: grid; gap: 2px; font-size: .84rem; max-width: 300px; }
.onmd--footer strong { color: #fff; font-size: .9rem; }
.onmd--footer a { color: var(--sky); font-size: .82rem; }
.onmd--footer a:hover { color: #fff; }
.onmd__row { display: flex; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); }
.onmd__row img { width: 96px; height: 96px; flex: none; border-radius: 50%; background: #fff; padding: 4px; }

/* Deux salles de soins, même poids visuel */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.room { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover img { transform: scale(1.04); }
.room figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; background: rgba(15, 22, 71, .72); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .82rem; }
.room figcaption strong { font-weight: 600; }

/* Sécurité et hygiène */
.prose .safety { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.safety__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.safety__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.safety__icon svg { width: 22px; height: 22px; }
.prose .safety__item h3 { margin: 4px 0 0; font-size: 1.02rem; }
.safety__item p { font-size: .94rem; }

/* Appels à l'action dans les pages */
.inline-cta { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--tint); display: grid; gap: 16px; }
.inline-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .inline-cta a.btn { text-decoration: none; }
.urgent-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid #f1c9c4; background: #fff6f5; }
.urgent-callout h2 { font-size: 1.2rem; margin: 0 0 6px; color: #a5281b; }

@media (max-width: 920px) {
  .discover__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .discover__item:nth-child(3) { border-inline-start: 0; }
  .journey__list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .journey__list::before, .journey__list::after { display: none; }
}
@media (max-width: 600px) {
  .engage__grid, .rooms, .prose .safety { grid-template-columns: 1fr; }
  .engage__card { padding: 26px 22px; }
  /* frise verticale sur téléphone */
  .journey__list { grid-template-columns: 1fr; row-gap: 26px; }
  .journey__list::before, .journey__list::after { display: block; top: 32px; bottom: 32px; inset-inline: 31px auto; width: 2px; height: auto; }
  .journey__list::after { transform-origin: top; }
  .motion .journey__list::after { transform: scaleY(0); }
  .motion .journey__list.is-in::after { transform: scaleY(1); }
  .journey__step { grid-template-columns: 64px 1fr; justify-items: start; text-align: start; column-gap: 18px; row-gap: 2px; }
  .journey__icon { grid-row: 1 / 4; }
  .journey__num { margin-top: 4px; }
  .urgent-callout { flex-direction: column; align-items: flex-start; }
  .onmd__row { flex-direction: column; align-items: flex-start; }
  .discover { padding: 72px 0; }
}

/* =========================================================
   v3 — Animations premium (uniquement si JavaScript actif ET mouvement autorisé)
   ========================================================= */
.motion .section__head.reveal { opacity: 1; transform: none; transition: none; } /* le titre s'anime seul */
.motion .anim-title, .motion .anim-sub {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1);
}
.motion .anim-sub { transform: translateY(18px); filter: blur(5px); transition-delay: .15s; }
.motion .anim-title.is-in, .motion .anim-sub.is-in { opacity: 1; transform: none; filter: none; }
.motion .anim-img { opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.motion .anim-img.is-in { opacity: 1; transform: none; }
.motion .gallery__item:hover .anim-img.is-in, .motion .room:hover .anim-img.is-in { transform: scale(1.04); transition: transform .6s; }
.motion .reveal { transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.motion .engage__grid .reveal:nth-child(2), .motion .discover__grid .reveal:nth-child(2), .motion .journey__list .reveal:nth-child(2) { transition-delay: .08s; }
.motion .discover__grid .reveal:nth-child(3), .motion .journey__list .reveal:nth-child(3) { transition-delay: .16s; }
.motion .discover__grid .reveal:nth-child(4), .motion .journey__list .reveal:nth-child(4) { transition-delay: .24s; }

/* Titres du premier écran : glissement + flou → net, sans jamais masquer le texte
   (pur CSS : rien n'attend JavaScript, l'affichage principal n'est pas retardé) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .page-hero h1 { animation: title-in 1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__eyebrow, .hero__lead, .page-hero .eyebrow, .page-hero .page-lead { animation: title-in .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
}
@keyframes title-in { from { transform: translateY(22px); filter: blur(8px); } }

/* Micro-interactions */
.btn:active { transform: translateY(0) scale(.97); }
.logo__img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.logo:hover .logo__img { transform: rotate(-8deg) scale(1.05); }
.post-card { transition: transform .3s, box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--blue); }
.faq details > summary + * { overflow: hidden; }
@media (max-width: 1199px) {
  .nav.is-open { animation: nav-in .32s cubic-bezier(.16, 1, .3, 1); }
  .nav.is-open .nav__link { animation: nav-link-in .4s cubic-bezier(.16, 1, .3, 1) both; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: .03s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: .06s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: .09s; }
  .nav.is-open .nav__link:nth-child(5) { animation-delay: .12s; }
  .nav.is-open .nav__link:nth-child(n+6) { animation-delay: .15s; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes nav-link-in { from { opacity: 0; transform: translateY(8px); } }

/* En-tête intelligent, progression de lecture, retour en haut */
.header { transition: background .3s, box-shadow .3s, color .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.header.is-hidden { transform: translateY(-100%); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--blue); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: right; }
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top.is-visible:hover { transform: translateY(-3px); }

/* Galerie plein écran */
.is-zoomable { cursor: zoom-in; }
.zoom-btn { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: inherit; }
.zoom-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(9, 13, 43, .94); display: grid; place-items: center;
  padding: 56px 16px; opacity: 0; transition: opacity .25s; touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1200px, 100%); }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: 12px; opacity: 0; transform: scale(.98); transition: opacity .3s, transform .3s; }
.lightbox__img.is-ready { opacity: 1; transform: none; }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: .92rem; text-align: center; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lightbox__close { right: auto; left: 14px; }
[dir="rtl"] .lightbox__prev { left: auto; right: 14px; }
[dir="rtl"] .lightbox__next { right: auto; left: 14px; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; translate: none; } }

/* Bandeau de consentement (affiché seulement si GA4/Ads sont configurés) */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; font-size: .9rem;
}
.consent div { display: flex; gap: 10px; justify-content: flex-end; }
[dir="rtl"] .consent { left: auto; right: 16px; }
@media (max-width: 600px) { .consent { left: 12px; right: 12px; bottom: 90px; max-width: none; } }

/* Défilement fluide (Lenis) et transitions entre pages, sans écran blanc */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .header.is-hidden { transform: none; }
}

/* Statut ouvert/fermé : place réservée, pas de décalage quand il apparaît */
[data-open-status] { min-height: 1.45em; }
[data-open-status][hidden] { display: inline-flex; visibility: hidden; }

/* ================= v3.1 : corrections ================= */
/* En-tête : un seul nom, jamais de chevauchement */
.logo { min-width: 0; }
.logo__text { min-width: 0; }
.header__inner > .logo { flex: none; }
/* Menu complet à partir de 1200 px ; avec les icônes Instagram/Facebook (≥ 1360 px), espacements resserrés */
@media (min-width: 1360px) {
  .header__inner { gap: 16px; }
  .nav { gap: 18px; }
  .header__actions { gap: 10px; }
}
.header__actions { flex: none; }
@media (max-width: 600px) {
  .header__inner { gap: 10px; }
  .header__inner > .logo { flex: 0 1 auto; gap: 9px; }
  .header .logo__img { width: 38px; height: 38px; flex: none; }
  /* le nom passe sur deux lignes si l'écran est trop étroit, sans jamais être coupé */
  .header .logo__text { white-space: normal; font-size: .9rem; line-height: 1.15; }
  .header .logo__text small { letter-spacing: .12em; font-size: .6rem; white-space: nowrap; }
}

/* Icônes : leur taille est fixée en CSS (ci-dessus) ET dans le HTML (width/height ajoutés
   à la génération), pour qu'aucune icône ne puisse s'afficher en grand. */

/* Photos : toujours dans leur vrai ratio (--r est calculé à la génération) */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.gallery__item, .gallery__item--tall { aspect-ratio: var(--r, 4 / 3); flex: var(--r, 1) 1 0; min-width: 0; }
.gallery__item--wide { aspect-ratio: var(--r, 16 / 8); flex: 1 1 100%; }
.gallery__item img, .room img, .figure-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .gallery__item.is-land { flex-basis: 100%; }
}
.room { aspect-ratio: var(--r, 4 / 3); }
.rooms { align-items: start; grid-template-columns: 1fr; }
.figure-pair { display: flex; gap: 16px; max-width: 620px; margin-inline: auto; align-items: flex-start; }
.figure-pair figure { aspect-ratio: var(--r, 3 / 4); flex: var(--r, 1) 1 0; min-width: 0; }
@media (max-width: 920px) { .figure-pair figure { aspect-ratio: var(--r, 4 / 3); } }

/* Signature ألبطل */
.signature { line-height: 1.6; unicode-bidi: isolate; }
.signature[lang="ar"], .signature--big { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  .motion .signature.is-in, .signature--big { background: linear-gradient(100deg, var(--blue) 0%, var(--blue) 40%, #6f8fd6 50%, var(--blue) 60%, var(--blue) 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sig-shine 4.5s ease-in-out 1s infinite; }
}
@keyframes sig-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.links .signature { -webkit-text-fill-color: currentColor; background: none; animation: none; }

/* Carte : nom du cabinet + boutons */
.map-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.map-card .infos__map { display: block; border-radius: 0; box-shadow: none; height: 300px; }
.map-card__info { display: grid; gap: 4px; padding: 16px 20px 18px; }
.map-card__name { font-size: 1rem; color: var(--ink); }
.map-card__name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ea4335; box-shadow: 0 0 0 3px rgba(234, 67, 53, .18); margin-inline-end: 8px; vertical-align: 1px; }
.map-card__addr { font-size: .86rem; color: var(--muted); }
.map-card__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prose .map-card { border: 1px solid var(--line); box-shadow: none; }

/* Avis Google */
.reviews__google { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); margin-bottom: 4px; }
.reviews__google svg { width: 24px; height: 24px; }
.reviews__updated { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; width: 100%; margin-top: 18px; text-align: start; }
.reviews__list[hidden] { display: none; }
.review { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); display: grid; gap: 10px; align-content: start; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__head img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.review__who { display: grid; font-size: .88rem; font-weight: 600; min-width: 0; }
.review__who small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.review__stars { margin-inline-start: auto; color: #f4b400; letter-spacing: .06em; font-size: .9rem; white-space: nowrap; }
.review blockquote { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__src { font-size: .8rem; color: var(--blue); }

/* Actualités Instagram / Facebook */
.social__grid { columns: 3 260px; column-gap: 16px; margin-bottom: 26px; }
.social__grid[hidden] { display: none; }
.post { break-inside: avoid; display: block; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post img { display: block; width: 100%; height: auto; }   /* proportions d'origine du média */
.post__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.post__meta { font-size: .76rem; color: var(--muted); }
.post__meta b { color: var(--ink); font-weight: 600; }
.post__badge { justify-self: start; font-family: "Tajawal", "Segoe UI", sans-serif; font-weight: 700; font-size: .82rem; color: #fff; background: var(--blue); padding: 2px 12px; border-radius: 999px; }
.post__text { font-size: .9rem; line-height: 1.55; color: var(--ink); }
.post__more { font-size: .82rem; color: var(--blue); font-weight: 600; }
.social__follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social--serie .social__grid { margin-top: 12px; }
.brand-ar { font-family: "Tajawal", "Segoe UI", sans-serif; font-weight: 700; }

/* v3.1 : mosaïque radiologie (photo verticale) + accueil/attente empilés, sans recadrage notable */
.gallery__mosaic { display: flex; gap: 16px; flex: 1 1 100%; min-width: 0; align-items: stretch; }
.gallery__mosaic > .gallery__item { flex: var(--r, .47) 1 0; aspect-ratio: var(--r, .47); }
.gallery__col { display: flex; flex-direction: column; gap: 16px; flex: 1.03 1 0; min-width: 0; }
.gallery__col > .gallery__item, .gallery__col > .gallery__item.is-land { flex: 1 1 0; aspect-ratio: auto; min-height: 0; }
@media (max-width: 600px) { .gallery__mosaic, .gallery__col { gap: 10px; } }
.figure-pair--single { max-width: 280px; }
.figure-pair--single figure { flex: 1 1 100%; }
