/* =====================================================================
   Dr Soumia Marhraoui, dermatologie & vénérologie, Essaouira
   Layout system shared with the Dr Filali cardiology site, re-skinned:
   logo red + ink instead of navy, skin/hair motifs instead of ECG.
   ===================================================================== */
:root {
  --red: #D7262E;
  --red-deep: #A8161D;
  --red-tint: #FDECEC;
  --red-soft: #F4C6C8;
  --ink: #141414;        /* headings, strong text (the logo's black) */
  --text: #2B2727;
  --muted: #5E5757;
  --tint: #F7F4F4;       /* light panels */
  --band: #F4F1F1;
  --line: #E8E1E1;
  --hair: #EAE4E4;
  --on-red: #FFE3E4;     /* body text on red */
  --white: #fff;

  --font: "Nunito", "Segoe UI", system-ui, sans-serif;

  --fs-body: 1.125rem;
  --fs-small: 0.95rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.4rem);

  --wrap: 1560px;
  --gutter: clamp(16px, 2.5vw, 28px);
  --section-y: clamp(32px, 3.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--ink); }
h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 800 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(215,38,46,.6); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn-ghost:hover { background: #fff; color: var(--red-deep); }
.btn-wa { background: #0E7A3E; color: #fff; }
.btn-wa:hover { background: #0A5F30; transform: translateY(-1px); }
.btn-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
/* the logo mark inside the cardiology emblem's double ring */
.brand-emblem {
  width: 54px; height: 54px; flex: none; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 6px #fff, inset 0 0 0 7.5px var(--ink);
}
.brand-emblem svg { width: 34px; height: 23px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-n { font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.brand-r { font-weight: 700; font-size: .85rem; color: var(--red); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--red); }
.header-wa { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #0E7A3E; color: #fff; transition: background .2s, transform .2s; }
.header-wa svg { width: 24px; height: 24px; }
.header-wa:hover { background: #0A5F30; transform: translateY(-1px); }
.lang-switch { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.lang {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); font: 800 .92rem/1 var(--font);
}
.lang[lang="ar"] { font-family: "Tajawal", var(--font); font-size: 1rem; }
.lang[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang:not([aria-pressed="true"]):hover { background: var(--tint); }
@media (max-width: 1240px) { .nav { gap: 16px; } .nav a { font-size: .92rem; } }
@media (max-width: 1140px) { .nav { display: none; } .header-wa { margin-inline-start: auto; } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 3.5vw, 48px);
  background: radial-gradient(760px 420px at 88% 0%, var(--red-tint), transparent 65%), linear-gradient(var(--tint), #fff 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 3vw, 40px); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-weight: 800; font-size: var(--fs-small); color: var(--red-deep);
}
.hero-kicker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.hero h1 { max-width: 15ch; }
.lede { margin-top: 24px; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: var(--fs-small); color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); }
.hero-facts dd a { text-decoration: none; }
.hero-facts dd a:hover { color: var(--red); }

.open-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: var(--fs-small);
  background: var(--red-tint); color: var(--red-deep);
}
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.open-status.is-open { background: #E7F6EC; color: #14683A; }
.open-status[hidden] { display: none; }
.open-status + .hero-facts { margin-top: 18px; }

/* The dermatoscope lens: living skin inside the logo's double ring */
.hero-emblem { margin: 0; justify-self: center; width: min(100%, 460px); position: relative; }
.hero-emblem::before, .hero-emblem::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-emblem::before { inset: -9%; border: 10px solid var(--red-tint); }
.hero-emblem::after { inset: -15%; border: 2px solid #EEDFDF; }
.lens {
  position: relative; z-index: 1; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #222;
  box-shadow: 0 0 0 10px #fff, 0 0 0 16px var(--red), 0 0 0 20px #fff, 0 0 0 22px var(--ink), 0 34px 60px -14px rgba(20,20,20,.35);
}
.lens-video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.reticle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reticle * { fill: none; stroke: rgba(255,255,255,.75); }
.ret-ring { stroke-width: 1.5; }
.ret-ticks { stroke-width: 12; stroke-dasharray: 1.5 13.2; stroke: rgba(255,255,255,.55); }
.ret-cross { stroke-width: 1.5; stroke-linecap: round; }
.ret-center { stroke: var(--red); stroke-width: 2.5; }
.illus {
  position: absolute; z-index: 2; inset-inline-start: 50%; bottom: 7%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px; background: rgba(20,20,20,.62); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
[dir="rtl"] .illus { transform: translateX(50%); }
/* the logo's red dot, sitting on the lens rim */
.lens-dot {
  position: absolute; z-index: 2; width: 17%; aspect-ratio: 1; border-radius: 50%;
  right: 4%; bottom: 6%; background: var(--red); box-shadow: 0 0 0 8px #fff, 0 14px 26px -6px rgba(215,38,46,.6);
}
.lens-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--red); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ret-ticks { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
  .lens-dot::after { animation: ping 2.6s ease-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 2. Story: the visit as a skin surface ---------- */
.story { background: var(--red); color: #fff; }
.story-pin { padding: var(--section-y) 0; }
.story-title { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 22ch; }
.story-sub { margin-top: 18px; color: var(--on-red); max-width: 36em; }
.story-trace-wrap { margin: clamp(16px, 2.5vw, 24px) 0 8px; }
.story-trace-svg { width: 100%; height: auto; overflow: visible; }
.story-trace-ghost, .story-trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.story-trace-ghost { stroke: rgba(255,255,255,.22); stroke-width: 3; }
.story-trace { stroke: #fff; stroke-width: 4.5; filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
[dir="rtl"] .story-trace-svg { transform: scaleX(-1); }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.story-step { counter-increment: step; text-align: center; padding: 0 6px; transition: opacity .4s ease, transform .4s ease; }
.story-step::before {
  content: counter(step); display: grid; place-items: center; margin: 0 auto 18px;
  width: 44px; height: 44px; border-radius: 50%; font-weight: 900; font-size: 1.1rem;
  color: var(--red); background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.25);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.story-step h3 { color: #fff; font-size: 1.15rem; }
.story-step p { margin-top: 8px; color: var(--on-red); font-size: .98rem; }
.motion .story-step { opacity: .8; transform: translateY(8px); }
.motion .story-step.is-on { opacity: 1; transform: none; }
.motion .story-step:not(.is-on)::before { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }

/* ---------- 3. Feature blocks ---------- */
.features { padding: var(--section-y) 0 0; }
.feature + .feature { margin-top: clamp(16px, 2vw, 24px); }
.feature-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3.5vw, 48px); align-items: center;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: clamp(20px, 3vw, 40px); border-radius: 36px; background: var(--tint);
}
.feature-flip .feature-visual { order: 2; }
.feature-copy h2 { max-width: 14ch; }
.feature-copy > p { margin-top: 18px; color: var(--muted); max-width: 34em; }
.feature-cred { padding-inline-start: 16px; border-inline-start: 4px solid var(--red); color: var(--ink) !important; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 34px; font-weight: 700; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--red-tint); box-shadow: inset 0 0 0 2px var(--red); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 7px; top: calc(.3em + 5px); width: 5px; height: 9px; border: solid var(--red); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks-cols { grid-template-columns: 1fr 1fr; gap: 12px 28px; }

.feature-visual { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 11; background: #222; }
.feature-visual video { width: 100%; height: 100%; object-fit: cover; }
/* the emblem's ring, drawn over the footage */
.feature-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 9px #fff, inset 0 0 0 11px var(--ink); }
.laser-frame::after { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--red-deep), inset 0 0 0 11px rgba(255,255,255,.6); }
.visual-note {
  position: absolute; z-index: 1; inset-inline-start: 26px; bottom: 22px;
  padding: 4px 12px; border-radius: 999px; background: rgba(20,20,20,.62); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.laser-rings { position: absolute; inset-inline-end: 12%; top: 18%; width: 22%; aspect-ratio: 1; pointer-events: none; }
.laser-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); opacity: 0; }
.laser-rings::before { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px 4px rgba(215,38,46,.7); }
@media (prefers-reduced-motion: no-preference) {
  .laser-rings i { animation: ping 2.4s ease-out infinite; }
  .laser-rings i:nth-child(2) { animation-delay: .8s; }
  .laser-rings i:nth-child(3) { animation-delay: 1.6s; }
}
@media (prefers-reduced-motion: reduce) { .laser-rings i { opacity: .4; } .laser-rings i:nth-child(2) { inset: -25%; } .laser-rings i:nth-child(3) { display: none; } }

.feature-flip .feature-grid { background: linear-gradient(150deg, var(--red-deep), #8E1218); }
.feature-flip h2 { color: #fff; }
.feature-flip .feature-copy > p { color: var(--on-red); }
.feature-flip .feature-cred { color: #fff !important; border-inline-start-color: #fff; }
.feature-flip .ticks li { color: #fff; }
.feature-flip .ticks li::before { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px #fff; }
.feature-flip .ticks li::after { border-color: #fff; }

/* ---------- 4. Gallery band ---------- */
.gallery { padding: var(--section-y) 0 clamp(12px, 1.5vw, 20px); overflow: hidden; background: #fff; }
.gallery-title { margin-bottom: 8px; }
.gallery-note { margin-bottom: 20px; color: var(--muted); font-size: var(--fs-small); max-width: 60em; }
.gallery-viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); scrollbar-width: thin; padding-bottom: 12px;
}
@media (min-width: 900px) { .motion .gallery-viewport { overflow: hidden; scroll-snap-type: none; padding-bottom: 0; } }
.gallery-track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 20px; width: max-content; }
.photo { width: clamp(240px, 26vw, 360px); flex: none; scroll-snap-align: start; }
.photo:nth-child(even) { margin-top: 16px; }
.photo-frame { position: relative; border-radius: 28px; overflow: hidden; background: var(--tint); }
.photo-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame .illus { bottom: 16px; }
.photo p { margin-top: 12px; font-weight: 800; color: var(--ink); }

/* ---------- 5. Dossier chapters ---------- */
.dossier { padding: var(--section-y) 0; background: radial-gradient(900px 420px at 0% 0%, #fff 0%, rgba(255,255,255,0) 70%), var(--band); }
.dossier-stack { display: grid; gap: 16px; }
.chap {
  position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 96px;
  border-radius: 32px; padding: clamp(24px, 3.4vw, 48px); background: #fff;
  box-shadow: 0 1px 0 rgba(20,20,20,.04), 0 28px 56px -40px rgba(20,20,20,.38);
}
.chap-no { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .22em; color: var(--red); font-variant-numeric: tabular-nums; }
.chap-no::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.chap h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.08; }
.chap-lede { margin-top: 16px; max-width: 34em; color: var(--muted); line-height: 1.7; }

/* 01 Aussi pris en charge */
.chap-follow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.chap-follow .chap-head { display: flex; flex-direction: column; align-items: flex-start; }
.chap-trace { width: 100%; max-width: 420px; height: auto; margin-top: auto; padding-top: 32px; overflow: visible; }
.chap-trace path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .chap-trace { transform: scaleX(-1); }
.conditions {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: 24px; overflow: hidden;
}
.conditions li {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 28px 16px;
  min-height: 196px; padding: 26px 28px 28px; background: #fff; transition: background-color .3s ease;
}
.cond-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--ink); transition: background-color .3s ease, color .3s ease; }
.cond-no { justify-self: end; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: #BDB2B2; }
.cond-name { grid-column: 1 / -1; align-self: end; max-width: 24ch; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.cond-name small { display: block; margin-top: 6px; font-size: .95rem; font-weight: 600; line-height: 1.5; color: var(--muted); }
.cond-dot { position: absolute; inset-inline-end: 28px; bottom: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .35s cubic-bezier(.2,.7,.2,1.4); }
.conditions li:hover { background: #FFFBFB; }
.conditions li:hover .cond-ico { background: var(--red); color: #fff; }
.conditions li:hover .cond-dot { transform: scale(1); }
.conditions .cond-cta { padding: 0; background: var(--red); }
.cond-cta a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 28px 16px; padding: 26px 28px 28px; height: 100%; text-decoration: none; }
.cond-cta .cond-ico { background: rgba(255,255,255,.16); color: #fff; }
.cond-cta .cond-name, .cond-cta .cond-name small { color: #fff; }
.conditions .cond-cta:hover { background: var(--red-deep); }
.conditions .cond-cta:hover .cond-ico { background: #fff; color: var(--red); }

/* 02 Le docteur: red panel, the domains linked by skin-and-hair wires */
.chap-doctor { background: linear-gradient(150deg, #D7262E 0%, #BE1C24 50%, #A8161D 100%); color: #fff; }
.chap-doctor::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.doc-rings { position: absolute; z-index: -1; pointer-events: none; width: 540px; aspect-ratio: 1; inset-inline-end: -170px; top: -250px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.doc-rings::before, .doc-rings::after { content: ""; position: absolute; border-radius: 50%; }
.doc-rings::before { inset: 38px; border: 6px solid rgba(255,255,255,.14); }
.doc-rings::after { inset: 54px; border: 1.5px solid rgba(20,20,20,.18); }
.chap-doctor h2 { color: #fff; }
.chap-doctor .chap-no { color: #fff; }
.doc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(28px, 4vw, 64px); align-items: end; }
.doc-head .chap-lede { margin-top: 0; max-width: 40em; color: var(--on-red); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.timeline {
  --node: 60px; list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: clamp(28px, 3vw, 40px) 0 0;
  border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.timeline li { position: relative; }
.tl-node { position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; color: var(--red); background: #fff; }
.tl-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.tl-wire { position: absolute; top: calc(var(--node) / 2 - 12px); height: 24px; inset-inline-start: calc(var(--node) + 16px); width: calc(100% - var(--node) - 32px + 24px); display: flex; align-items: center; }
.tl-wire::before, .tl-wire::after { content: ""; flex: 1; height: 1.5px; background: rgba(255,255,255,.32); }
.tl-wire svg { flex: none; width: 64px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .tl-wire svg { transform: scaleX(-1); }
.tl-text { margin-top: 24px; }
.timeline h3 { font-size: 1.15rem; line-height: 1.32; color: #fff; }
.timeline p { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--on-red); }

/* 03 Motifs + confidentiality band */
.chap-when { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 64px); }
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
.symptoms li { position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 700; line-height: 1.4; color: var(--ink); }
.symptoms li:nth-child(-n+2) { border-top: 1px solid var(--hair); }
.symptoms li::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red-tint); transition: background-color .25s ease; }
.symptoms li::after { content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--red); transition: background-color .25s ease; }
.symptoms li:hover::before { background: var(--red); }
.symptoms li:hover::after { background: #fff; }
.alert {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px;
  padding: 26px 32px; padding-inline-start: 36px; border-radius: 24px;
  background: linear-gradient(90deg, #FDF0F0 0%, #FFF8F8 45%, #fff 100%); border: 1px solid var(--red-soft);
}
[dir="rtl"] .alert { background: linear-gradient(270deg, #FDF0F0 0%, #FFF8F8 45%, #fff 100%); }
.alert::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--red); }
.alert-mark { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.alert-mark .ico { width: 28px; height: 28px; stroke-width: 2; }
.alert h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.3; color: var(--red-deep); }
.alert-copy p { margin-top: 6px; max-width: 54em; font-size: 1rem; line-height: 1.6; color: var(--text); }
.alert-call { display: flex; flex-wrap: wrap; gap: 10px; }
.call-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--red-deep); background: #fff; box-shadow: inset 0 0 0 2px var(--red);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.call-pill::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.570a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.570a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.call-main { background: var(--red); color: #fff; box-shadow: none; }
.call-pill:hover { background: var(--red-tint); transform: translateY(-1px); }
.call-main:hover { background: var(--red-deep); color: #fff; }

/* in-view motion */
@media (prefers-reduced-motion: no-preference) {
  .js-io .chap-trace path { stroke-dasharray: 620; stroke-dashoffset: 620; }
  .js-io .chap-trace.is-in path { animation: trace-draw 2.4s cubic-bezier(.4,0,.2,1) forwards; }
  .js-io .conditions li { opacity: 0; transform: translateY(14px); }
  .js-io .conditions.is-in li { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
  .js-io .conditions.is-in li:nth-child(2) { transition-delay: .08s, .08s, 0s; }
  .js-io .conditions.is-in li:nth-child(3) { transition-delay: .16s, .16s, 0s; }
  .js-io .conditions.is-in li:nth-child(4) { transition-delay: .24s, .24s, 0s; }
  .js-io .timeline .tl-node, .js-io .timeline .tl-text { opacity: 0; transform: translateY(12px); }
  .js-io .timeline .tl-wire { transform: scaleX(0); transform-origin: left center; }
  [dir="rtl"].js-io .timeline .tl-wire { transform-origin: right center; }
  .js-io .timeline.is-in .tl-node, .js-io .timeline.is-in .tl-text { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js-io .timeline.is-in .tl-wire { transform: none; transition: transform .7s cubic-bezier(.4,0,.2,1); }
  .js-io .timeline.is-in li:nth-child(1) .tl-wire { transition-delay: .3s; }
  .js-io .timeline.is-in li:nth-child(2) > * { transition-delay: .45s; }
  .js-io .timeline.is-in li:nth-child(2) .tl-wire { transition-delay: .75s; }
  .js-io .timeline.is-in li:nth-child(3) > * { transition-delay: .9s; }
  .js-io .timeline.is-in li:nth-child(3) .tl-wire { transition-delay: 1.2s; }
  .js-io .timeline.is-in li:nth-child(4) > * { transition-delay: 1.35s; }
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }

/* ---------- Reviews ---------- */
.reviews { padding: var(--section-y) 0; }
.reviews-grid { display: grid; grid-template-columns: minmax(260px, .7fr) 2fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.rating { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.rating[hidden] { display: none; }
.rating b { font-size: clamp(3.2rem, 2.4rem + 3vw, 4.6rem); line-height: 1; font-weight: 900; color: var(--ink); }
.rating-n { margin: 12px 0 20px; color: var(--muted); font-weight: 700; }
.stars {
  --r: 5; display: inline-block; width: 112px; height: 20px; flex: none;
  background: linear-gradient(90deg, #F5A524 calc(var(--r) * 20%), #DDD5D5 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 20'%3E%3Cg id='s'%3E%3Cpath d='M10 0l2.9 6.3 6.9.7-5.1 4.7 1.4 6.8L10 15.1 3.9 18.5l1.4-6.8L.2 7l6.9-.7z'/%3E%3C/g%3E%3Cuse href='%23s' x='23'/%3E%3Cuse href='%23s' x='46'/%3E%3Cuse href='%23s' x='69'/%3E%3Cuse href='%23s' x='92'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 20'%3E%3Cg id='s'%3E%3Cpath d='M10 0l2.9 6.3 6.9.7-5.1 4.7 1.4 6.8L10 15.1 3.9 18.5l1.4-6.8L.2 7l6.9-.7z'/%3E%3C/g%3E%3Cuse href='%23s' x='23'/%3E%3Cuse href='%23s' x='46'/%3E%3Cuse href='%23s' x='69'/%3E%3Cuse href='%23s' x='92'/%3E%3C/svg%3E") center/contain no-repeat;
}
[dir="rtl"] .stars { transform: scaleX(-1); }
.slider { min-width: 0; }
.review-list { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-list::-webkit-scrollbar { display: none; }
.review { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; min-height: 220px; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; border-radius: 24px; background: var(--tint); border: 1px solid var(--line); }
.review-top { display: flex; align-items: center; gap: 10px; }
.lang-tag { padding: 2px 10px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 800; color: var(--muted); }
.review blockquote { margin: 0; font-weight: 600; color: var(--ink); }
.review blockquote[lang="ar"] { font-family: "Tajawal", var(--font); font-size: 1.15rem; line-height: 1.8; }
.review-by { margin-top: auto; font-weight: 800; color: var(--ink); font-size: var(--fs-small); }
.review-by small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
.review.is-empty { background: #fff; border: 2px dashed var(--line); }
.review.is-empty blockquote { color: var(--muted); font-weight: 700; }
.slider-nav { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--ink); color: #fff; transition: background-color .15s ease, opacity .15s ease; }
.slider-btn:hover:not(:disabled) { background: var(--red); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.slider-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .slider-btn svg { transform: scaleX(-1); }

/* ---------- 6. CTA ---------- */
.cta { background: var(--red); color: #fff; padding: var(--section-y) 0; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.cta-lede { margin-top: 14px; color: var(--on-red); }
.cta-phones { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 22px; }
.cta-phones a { color: #fff; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); text-decoration: none; border-bottom: 3px solid #fff; line-height: 1.3; }
.cta-phones a:hover { color: var(--on-red); }
.cta-phones small { display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-red); }
.hours { width: 100%; margin-top: 24px; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.1); border-radius: 20px; padding: 4px 22px; }
.hours th, .hours td { text-align: start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.22); vertical-align: top; color: #fff; }
.hours th { font-weight: 700; }
.hours td { text-align: end; font-weight: 800; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 900; }
.hours tr.is-today th::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 10px; border-radius: 50%; background: #fff; }
.cta-address { margin-top: 24px; color: var(--on-red); }
.cta-address strong { color: #fff; }
.access-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta .btn-wa { box-shadow: 0 0 0 2px #fff; }
.cta :focus-visible { outline-color: #fff; }
.map { border-radius: 32px; overflow: hidden; min-height: 420px; border: 3px solid #fff; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-deep); color: var(--on-red); padding: 32px 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand-r { color: var(--on-red); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px 48px; align-items: start; }
.footer-address { font-style: normal; font-size: var(--fs-small); line-height: 1.8; margin-top: 16px; }
.footer-address a, .footer-col a { color: var(--on-red); text-decoration: none; }
.footer-col { font-size: var(--fs-small); line-height: 1.9; }
.footer-col h3 { color: #fff; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a:hover, .footer-col a:focus-visible, .footer-address a:hover { color: #fff; text-decoration: underline; }
.foot-social a { display: inline-flex; align-items: center; gap: 10px; }
.foot-social .ico { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: var(--fs-small); }
.footer-note { flex: 1 1 280px; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Floating: back to top, phone call bar ---------- */
.to-top {
  position: fixed; z-index: 15; bottom: 20px; inset-inline-end: 20px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red), 0 10px 24px rgba(20,20,20,.25);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .15s ease;
}
.to-top { position: fixed; }
.to-top-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; pointer-events: none; }
.to-top-ring circle { stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.to-top:hover { background: var(--red); }
.js-totop .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.call-bar { display: none; }

/* ---------- Arabic ---------- */
html[lang="ar"] { --font: "Tajawal", "Nunito", system-ui, sans-serif; }
html[lang="ar"] body { font-size: 1.2rem; line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] h1 { font-weight: 800; max-width: 18ch; }
html[lang="ar"] h2 { font-weight: 800; }
html[lang="ar"] .btn { font-weight: 700; font-size: 1.05rem; }
html[lang="ar"] .brand-n { font-weight: 800; font-size: 1.2rem; }
html[lang="ar"] .brand-r { font-size: .9rem; font-weight: 500; }
html[lang="ar"] .hero-facts dd, html[lang="ar"] .hours td { font-weight: 700; }
html[lang="ar"] .chap-no, html[lang="ar"] .cta-phones small, html[lang="ar"] .footer-col h3, html[lang="ar"] .illus, html[lang="ar"] .visual-note { letter-spacing: 0; }
.lang[lang="fr"] { font-family: "Nunito", sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .alert { grid-template-columns: auto minmax(0, 1fr); }
  .alert-call { grid-column: 2; }
}
@media (max-width: 980px) {
  .hero-grid, .feature-grid, .cta-grid, .reviews-grid { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: min(70vw, 320px); margin: 24px 0 16px; }
  .feature-flip .feature-visual { order: 0; }
  .story-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .story-step { text-align: start; }
  .story-step::before { margin-inline: 0; }
  .chap-follow, .chap-when, .doc-head { grid-template-columns: 1fr; }
  .chap-trace { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .review { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); gap: 22px; padding-bottom: 30px; }
  .timeline li:last-child { padding-bottom: 0; }
  .tl-text { margin-top: 4px; }
  .tl-wire { top: calc(var(--node) + 12px); bottom: 6px; height: auto; width: 2px; inset-inline-start: calc(var(--node) / 2 - 1px); flex-direction: column; }
  .tl-wire::before { width: 1.5px; height: auto; }
  .tl-wire::after, .tl-wire svg { display: none; }
  .js-io .timeline .tl-wire { transform: scaleY(0); transform-origin: center top; }
  [dir="rtl"].js-io .timeline .tl-wire { transform-origin: center top; }
}
@media (max-width: 640px) {
  .brand-r { display: none; }
  .brand-emblem { width: 46px; height: 46px; }
  .brand-emblem svg { width: 28px; height: 19px; }
  .header-inner { gap: 10px; }
  .header-wa { display: none; }
  .lang-switch { margin-inline-start: auto; }
  .lang { padding: 0 10px; }
  .brand-n { font-size: 1rem; }
  .hero { padding-top: 20px; }
  .hero-emblem { order: 0; width: min(62vw, 230px); margin: 28px auto 12px; }
  .hero-grid { gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 14px 32px; }
  .hero-facts a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .story-steps { grid-template-columns: 1fr; row-gap: 24px; }
  .story-step { padding: 0; }
  .ticks-cols { grid-template-columns: 1fr; }
  .feature-grid { border-radius: 28px; }
  .photo:nth-child(even) { margin-top: 24px; }
  .chap { border-radius: 24px; padding: 24px 20px; }
  .conditions { grid-template-columns: 1fr; border-radius: 20px; }
  .conditions li, .cond-cta a { min-height: 0; grid-template-rows: auto auto; gap: 18px 16px; padding: 20px; }
  .conditions .cond-cta { padding: 0; }
  .symptoms { grid-template-columns: 1fr; }
  .symptoms li:nth-child(2) { border-top: 0; }
  .doc-rings { width: 380px; top: -220px; inset-inline-end: -200px; }
  .timeline { --node: 52px; }
  .alert { grid-template-columns: 1fr; padding: 22px 20px; padding-inline-start: 24px; gap: 14px; }
  .alert-mark { width: 48px; height: 48px; }
  .alert-call { grid-column: auto; }
  .review { flex-basis: 86%; }
  .cta-phones { flex-direction: column; gap: 12px; }
  .cta-phones a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 76px; line-height: 1.15; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); font-size: 1.5rem; }
  .access-actions { flex-direction: column; }
  .access-actions .btn { width: 100%; }
  .map, .map iframe { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding-bottom: 88px; }
  /* sticky call bar: the main action stays one tap away */
  .call-bar {
    position: fixed; z-index: 14; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 60px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 -6px 20px rgba(20,20,20,.22);
  }
  .call-bar:active { background: var(--red-deep); }
  .call-bar b { font-weight: 900; }
  .to-top { bottom: 76px; inset-inline-end: 16px; width: 44px; height: 44px; }
}
@media (max-width: 380px) { .call-bar span { display: none; } .header-wa { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .to-top { transition: none; } }
