/* ==========================================================================
   Cabinet El Yakout — Dr. Atoui Nassima
   Design system & global styles
   Palette, typography and style per Cahier de Charge §8
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --c-primary: #0967D8;
  --c-primary-light: #3B82E8;
  --c-accent: #45B8A4;
  --c-sand: #F5F0E8;
  --c-ink: #102A43;
  --c-bg: #F9FBFF;
  --c-line: #DCE7F3;

  --c-ink-soft: #40556B;
  --c-ink-mute: #687D92;
  --c-surface: #FFFFFF;
  --c-primary-tint: #EAF2FF;
  --c-accent-tint: #E9F8F5;

  /* Typography */
  --f-head: "Manrope", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Manrope", "IBM Plex Sans Arabic", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.15rem, 0.95rem + .8vw, 1.4rem);
  --fs-h3: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 2vw, 2.7rem);
  --fs-h1: clamp(2.35rem, 1.55rem + 3.8vw, 4.25rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .025), 0 6px 18px rgba(23, 73, 123, .045);
  --shadow-md: 0 2px 8px rgba(16, 42, 67, .045), 0 18px 40px rgba(23, 73, 123, .08);
  --shadow-lg: 0 8px 22px rgba(16, 42, 67, .07), 0 32px 72px rgba(23, 73, 123, .12);

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--c-ink);
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: -0.035em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--c-primary-light); }

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

ul, ol { padding-inline-start: 1.15rem; }
li { margin-block: 0.35rem; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(9, 103, 216, .45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
@media (max-width: 420px) {
  .wrap { padding-inline: var(--sp-4); }
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: 4.5rem;
}
@media (min-width: 768px) {
  .section { padding-block: 7rem; }
}

.section--tint { background: var(--c-primary-tint); }
.section--sand { background: var(--c-sand); }
.section--surface { background: var(--c-surface); }

.section-head {
  max-width: 700px;
  margin-bottom: 2.25rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.section-head p {
  margin-top: var(--sp-3);
  font-size: clamp(1rem, .96rem + .25vw, 1.13rem);
  color: var(--c-ink-mute);
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--f-body);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(9, 103, 216, .2);
}
.btn--primary:hover { background: #075BBD; color: #fff; box-shadow: 0 12px 28px rgba(9, 103, 216, .26); }

.btn--accent {
  background: var(--c-accent);
  color: #08322c;
}
.btn--accent:hover { background: #4fa88f; color: #08322c; }

.btn--ghost {
  background: rgba(255, 255, 255, .75);
  border-color: var(--c-line);
  color: var(--c-primary);
}
.btn--ghost:hover { border-color: #B4D0F2; background: var(--c-surface); }

.btn--light {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--white { background: #fff; color: var(--c-primary); }
.btn--white:hover { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-md); }

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 30px rgba(23, 73, 123, .07);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-ink);
  margin-inline-end: auto;
  min-width: 0;
}
.brand:hover { color: var(--c-ink); }

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(145deg, #0B75E9, #0758B9);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 22px; height: 22px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--f-head);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  white-space: nowrap;
}
/* The tagline is what pushes the header past narrow viewports — drop it there,
   the footer keeps it because the column is wide enough. */
@media (max-width: 599px) {
  .header .brand__sub { display: none; }
}

/* Desktop nav */
.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-ink-soft);
}
.nav__link:hover { color: var(--c-primary); background: var(--c-primary-tint); }
.nav__link.is-active { color: var(--c-primary); font-weight: 750; }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Language toggle */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #D8E4F0;
  border-radius: var(--r-pill);
  background: var(--c-surface);
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  min-height: 34px;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang__btn[aria-pressed="true"] {
  background: var(--c-primary);
  color: #fff;
}

.header__cta { display: none; }

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 13px;
  background: var(--c-surface);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  position: relative;
  transition: background-color .2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1140px) {
  .nav { display: block; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: absolute;
  inset: 100% 0 auto;
  height: calc(100dvh - var(--header-h));
  z-index: 99;
  background:
    radial-gradient(30rem 22rem at 90% 0%, rgba(9, 103, 216, .08), transparent 64%),
    #fff;
  padding: var(--sp-5) var(--sp-5) var(--sp-9);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  border-top: 1px solid var(--c-line);
}
.drawer__list li { margin: 0; }
.drawer__link {
  display: block;
  padding: var(--sp-4) var(--sp-1);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-lg);
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-ink);
}
.drawer__link.is-active { color: var(--c-primary); }
body.is-locked { overflow: hidden; }

@media (min-width: 1140px) {
  .drawer { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 32rem at 88% 8%, rgba(9, 103, 216, .14), transparent 66%),
    radial-gradient(42rem 30rem at -8% 30%, rgba(69, 184, 164, .10), transparent 65%),
    linear-gradient(180deg, #F2F7FF 0%, #F9FBFF 72%, #FFFFFF 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 10px;
  height: 10px;
  top: 12%;
  left: 5%;
  border: 2px solid rgba(9, 103, 216, .2);
}
.hero::after {
  width: 8px;
  height: 8px;
  right: 4%;
  bottom: 18%;
  background: var(--c-primary);
}
.hero__inner {
  display: grid;
  gap: var(--sp-7);
  padding-block: 3.25rem 4rem;
  align-items: center;
}
@media (min-width: 780px) {
  .hero__inner {
    min-height: 660px;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(3rem, 7vw, 6rem);
    padding-block: 5rem;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  background: var(--c-surface);
  border: 1px solid rgba(9, 103, 216, .12);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-primary);
  box-shadow: 0 10px 30px rgba(23, 73, 123, .08);
  margin-bottom: var(--sp-5);
}
.hero__tag i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-accent-tint);
  display: grid; place-items: center;
  flex: none;
}
.hero__tag svg { width: 13px; height: 13px; }

.hero h1 { margin-bottom: var(--sp-3); max-width: 10ch; }
.hero__role {
  font-size: var(--fs-xl);
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.hero__lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: var(--sp-6);
}
.hero .btn-row { margin-bottom: var(--sp-5); }

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
}
.hero__note svg { width: 16px; height: 16px; flex: none; color: var(--c-accent); }

/* Hero visual — abstract placeholder, replace with real photo (Cahier §8.5 / §11) */
.hero__visual {
  position: relative;
  border-radius: 40% 40% 26% 26% / 34% 34% 20% 20%;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  max-height: 520px;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.95) 0 2%, transparent 2.4%),
    linear-gradient(155deg, #E9F3FF 0%, #D9EAFE 50%, #EAF8F5 100%);
}
@media (min-width: 780px) {
  .hero__visual { aspect-ratio: 4 / 5; }
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(28rem 28rem at 20% 18%, rgba(255, 255, 255, .52), transparent 60%),
    radial-gradient(20rem 20rem at 82% 78%, rgba(69, 184, 164, .18), transparent 62%);
}
.hero__visual > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}
.hero__visual > svg * { stroke: rgba(9, 103, 216, .2) !important; }
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  inset-block-end: 1.1rem;
  inset-inline-start: 1.1rem;
  inset-inline-end: 1.1rem;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(9, 103, 216, .1);
  border-radius: 18px;
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__badge svg { width: 26px; height: 26px; flex: none; color: var(--c-primary); }
.hero__badge strong { display: block; color: var(--c-ink); font-size: var(--fs-sm); }
.hero__badge span { font-size: var(--fs-xs); color: var(--c-ink-mute); }

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  background: var(--c-surface);
  border-block: 1px solid var(--c-line);
  box-shadow: 0 12px 36px rgba(23, 73, 123, .035);
}
.trust__list {
  list-style: none;
  margin: 0;
  padding: var(--sp-5) 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); padding-block: var(--sp-5); }
}
.trust__list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.trust__list svg {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--c-primary);
  padding: 9px;
  border-radius: 12px;
  background: var(--c-primary-tint);
}
.trust__list strong { display: block; color: var(--c-ink); font-weight: 750; }
.trust__list span { color: var(--c-ink-mute); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.card { color: inherit; }
a.card:hover,
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #BFD6EF;
}

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--c-primary-tint);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }

.card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); letter-spacing: -.025em; }
.card p { font-size: var(--fs-sm); }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-primary);
}
.card__more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
a.card:hover .card__more svg { transform: translateX(3px); }
[dir="rtl"] .card__more svg { transform: scaleX(-1); }
[dir="rtl"] a.card:hover .card__more svg { transform: scaleX(-1) translateX(3px); }

/* --------------------------------------------------------------------------
   9. Media / about block
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: .86fr 1.14fr; gap: clamp(4rem, 8vw, 7rem); }
  .split--reverse > *:first-child { order: 2; }
}

.portrait {
  position: relative;
  border-radius: 36% 36% 24% 24% / 28% 28% 18% 18%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.92), transparent 30%),
    repeating-radial-gradient(circle at 50% 35%, rgba(9,103,216,.1) 0 1px, transparent 1px 34px),
    linear-gradient(155deg, #EAF3FF, #D7E9FE 58%, #E8F8F4);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.portrait svg { width: 38%; height: auto; color: var(--c-primary); opacity: .62; }
.portrait__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: var(--sp-4);
  background: linear-gradient(transparent, rgba(16, 42, 67, .68));
  color: #fff;
  font-size: var(--fs-xs);
}

.facts {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  gap: var(--sp-3);
}
.facts li {
  margin: 0;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  padding: .75rem .85rem;
  border: 1px solid var(--c-line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.facts svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--c-primary);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   10. Steps (patient journey)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  margin: 0;
  position: relative;
  min-height: 190px;
  padding: 4.5rem 1.25rem 1.35rem;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.2rem;
  inset-inline-start: 1.2rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--c-primary-tint);
  border-radius: 12px;
  font-family: var(--f-head);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-primary);
}
.section--tint .steps li::before { background: var(--c-primary-tint); }
.steps h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   11. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc__item + .acc__item { border-top: 1px solid var(--c-line); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: transparent;
  border: 0;
  text-align: start;
  font-family: var(--f-body);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
  transition: background-color .2s var(--ease);
}
.acc__btn:hover { background: var(--c-primary-tint); }

.acc__icon {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--c-primary-tint);
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color .2s var(--ease);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.acc__icon::before { width: 12px; height: 2px; }
.acc__icon::after { width: 2px; height: 12px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(90deg); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc__panel.is-open { grid-template-rows: 1fr; }
/* visibility (not just clipping) keeps collapsed answers out of the a11y tree */
.acc__panel > div { overflow: hidden; visibility: hidden; transition: visibility .3s var(--ease); }
.acc__panel.is-open > div { visibility: visible; }
.acc__panel p {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   12. Info / contact blocks
   -------------------------------------------------------------------------- */
.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.info-card h3 svg { width: 20px; height: 20px; color: var(--c-primary); flex: none; }

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
}
.hours li {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 0.55rem;
  border-bottom: 1px dashed var(--c-line);
}
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--c-ink); font-weight: 500; }
.hours span:last-child { color: var(--c-ink-mute); }

/* Pending-data chip — flags every fact the Cahier de Charge lists as "Not found" */
.pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  background: #FFF8E8;
  border: 1px dashed #DFC58F;
  color: #80622B;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .02em;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  vertical-align: middle;
}

.map {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--c-line);
  background:
    linear-gradient(rgba(9, 103, 216, .035), rgba(9, 103, 216, .035)),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(9, 103, 216, .07) 32px 33px),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(9, 103, 216, .07) 32px 33px),
    var(--c-primary-tint);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-6);
}
.map__pin {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-3);
  box-shadow: 0 0 0 8px rgba(9, 103, 216, .12);
}
.map__pin svg { width: 24px; height: 24px; }
.map strong { display: block; color: var(--c-ink); }
.map p { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}
.contact-list li { margin: 0; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--c-ink);
}
.contact-list i {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--c-primary-tint);
  color: var(--c-primary);
  display: grid;
  place-items: center;
}
.contact-list svg { width: 20px; height: 20px; }
.contact-list small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  font-weight: 400;
}
.contact-list strong { font-weight: 600; font-size: var(--fs-base); }
.contact-list a:hover strong { color: var(--c-primary); }

/* --------------------------------------------------------------------------
   13. Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  min-height: 48px;
  padding: 0.82rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #FBFDFF;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary-light);
  box-shadow: 0 0 0 4px rgba(9, 103, 216, .12);
}
.field__hint { font-size: var(--fs-xs); color: var(--c-ink-mute); }
.field.is-invalid input,
.field.is-invalid select { border-color: #c0553f; }
.field__error {
  display: none;
  font-size: var(--fs-xs);
  color: #c0553f;
  font-weight: 500;
}
.field.is-invalid .field__error { display: block; }

.form__note {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
}

.form__status {
  display: none;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-accent-tint);
  border: 1px solid #bfe3d6;
  font-size: var(--fs-sm);
  color: #1d5c4c;
}
.form__status.is-visible { display: flex; }
.form__status svg { width: 20px; height: 20px; flex: none; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #075ABF 0%, #0967D8 54%, #2383E8 100%);
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36rem 24rem at 85% 10%, rgba(134, 215, 255, .26), transparent 62%),
    radial-gradient(30rem 22rem at 8% 92%, rgba(69, 184, 164, .2), transparent 60%);
}
.cta .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p {
  color: rgba(255, 255, 255, .85);
  font-size: var(--fs-lg);
  max-width: 52ch;
  margin-block: var(--sp-3) var(--sp-6);
}
.cta--center { text-align: center; }
.cta--center p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   15. Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 26rem at 82% -22%, rgba(9, 103, 216, .18), transparent 62%),
    radial-gradient(30rem 20rem at 5% 100%, rgba(69, 184, 164, .1), transparent 62%),
    linear-gradient(180deg, #EFF6FF, #F7FAFF);
  padding-block: 2.8rem 3.2rem;
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 768px) {
  .page-head { padding-block: 4.5rem; }
}
.page-head h1 { margin-bottom: var(--sp-3); }
.page-head p { font-size: var(--fs-lg); max-width: 60ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
}
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-inline-end: 0.4rem; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }

/* Anchor chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li { margin: 0; }
.chips a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-ink-soft);
}
.chips a:hover { border-color: var(--c-primary-light); color: var(--c-primary); }

/* --------------------------------------------------------------------------
   16. Service detail blocks
   -------------------------------------------------------------------------- */
.service {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .service { padding: 2rem; } }
.service + .service { margin-top: var(--sp-5); }

.service__head {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-4);
}
.service__head .card__icon { margin-bottom: 0; }
.service__head h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-1); }
.service__head p { font-size: var(--fs-sm); }

.service__grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
@media (min-width: 760px) { .service__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .service__grid { grid-template-columns: repeat(4, 1fr); } }

.service__grid h4 {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.service__grid p,
.service__grid ul { font-size: var(--fs-sm); }
.service__grid ul { margin: 0; padding-inline-start: 1.05rem; }

.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: 16px;
  background: #FFF8E8;
  border: 1px solid #EBD9B1;
  color: #765A28;
  font-size: var(--fs-sm);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice strong { display: block; color: #5C441D; margin-bottom: var(--sp-1); }

/* --------------------------------------------------------------------------
   17. Prose (legal / patient info)
   -------------------------------------------------------------------------- */
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); font-size: var(--fs-h3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-4); }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.checklist li {
  margin: 0;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
}
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--c-primary); margin-top: 3px; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background:
    radial-gradient(32rem 24rem at 85% 15%, rgba(76, 160, 255, .22), transparent 64%),
    #0756B5;
  color: rgba(255, 255, 255, .68);
  padding-block: 4rem var(--sp-5);
  font-size: var(--fs-sm);
}
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer .brand__name,
.footer h4 { color: #fff; }
.footer .brand__sub { color: rgba(255, 255, 255, .55); }
.footer h4 {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--sp-4);
}
.footer__about { margin-top: var(--sp-4); max-width: 40ch; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-block: 0.5rem; }

.footer__bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   19. Sticky mobile action bar (Cahier §7.2)
   -------------------------------------------------------------------------- */
.actionbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 98;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 30px rgba(23, 73, 123, .1);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.6rem 0.25rem;
  font-size: 0.72rem;
  min-height: 62px;
  font-weight: 700;
  color: var(--c-ink-soft);
}
.actionbar a + a { border-inline-start: 1px solid var(--c-line); }
.actionbar a:active { background: var(--c-primary-tint); }
.actionbar svg { width: 21px; height: 21px; color: var(--c-primary); }
.actionbar a:nth-child(2) svg { color: #25a35a; }

@media (max-width: 1139px) {
  body { padding-bottom: 66px; }
}
@media (min-width: 1140px) {
  .actionbar { display: none; }
}

/* --------------------------------------------------------------------------
   20. Mobile polish
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
  .hero__visual { aspect-ratio: 1 / 1; }
  .hero .btn-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
    width: 100%;
  }
  .hero .btn { width: 100%; padding-inline: .75rem; }
  .hero__note { align-items: flex-start; }
  .trust__list { gap: 1rem .75rem; }
  .trust__list li { align-items: flex-start; }
  .trust__list svg { width: 34px; height: 34px; padding: 8px; }
  .card,
  .info-card,
  .service { padding: 1.25rem; }
  .service__head { gap: .85rem; }
  .service__head .card__icon { width: 44px; height: 44px; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 359px) {
  .hero .btn-row { grid-template-columns: 1fr; }
  .lang__btn { padding-inline: .55rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: .96rem; }
}

/* --------------------------------------------------------------------------
   21. Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   21. Arabic / RTL
   -------------------------------------------------------------------------- */
[lang="ar"] {
  --f-head: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  line-height: 1.85;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 {
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 700;
}
[lang="ar"] .eyebrow,
[lang="ar"] .footer h4,
[lang="ar"] .service__grid h4 { letter-spacing: 0; }

[dir="rtl"] .hero__note svg,
[dir="rtl"] .btn svg { transform: none; }
