/* Centre d'hémodialyse Clinique Chichaoua — feuille de style */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #1b2a4a;        /* indigo des tapis de Chichaoua */
  --ink-2: #47536d;
  --paper: #ffffff;
  --band: #edf1f7;
  --rule: #d5dce8;
  --artery: #b3261e;     /* ligne artérielle */
  --vein: #1f5aa6;       /* ligne veineuse */
  --wa: #0e7c66;
  --focus: #f2b13a;
  --measure: 40rem;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[lang="ar"] {
  --font: "Noto Naskh Arabic", "Atkinson Hyperlegible", "Geeza Pro", "Segoe UI", Tahoma, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 1.25rem; line-height: 1.85; }

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

a { color: var(--vein); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }

/* En-tête : deux lignes, l'une artérielle, l'autre veineuse */
.top { border-bottom: 1px solid var(--rule); }
.top::before {
  content: ""; display: block; height: 6px;
  background: linear-gradient(to bottom, var(--artery) 0 50%, var(--vein) 50% 100%);
}
.top__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.9rem;
}
.brand { color: var(--ink); text-decoration: none; display: grid; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand__sub { color: var(--ink-2); font-size: 0.95rem; }
.lang { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.lang a {
  color: var(--ink); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: 8px;
  font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center;
}
.lang a[aria-current="page"] { background: var(--band); font-weight: 700; }
.lang a:hover { background: var(--band); }

/* Accroche */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 7.4vw, 4.1rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; max-width: 16ch; }
.lead { margin-top: 1.25rem; font-size: 1.3rem; max-width: var(--measure); }
html[lang="ar"] .lead { font-size: 1.35rem; }
.facts { margin-top: 0.9rem; color: var(--ink-2); max-width: var(--measure); }
.actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 56px; padding: 0.75rem 1.25rem; border-radius: 12px;
  font-weight: 700; font-size: 1.1rem; text-decoration: none; color: #fff;
}
.btn svg { width: 1.35rem; height: 1.35rem; flex: none; }
.btn--call { background: var(--ink); }
.btn--call:hover { background: #24375f; color: #fff; }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: #0a6352; color: #fff; }
.btn--plain { background: transparent; color: var(--vein); border: 2px solid var(--rule); }
.btn--plain:hover { border-color: var(--vein); color: var(--vein); }

/* Plan schématique de la route */
.route { margin: 0; }
.route svg { width: 100%; height: auto; }
.route figcaption { margin-top: 0.75rem; color: var(--ink-2); font-size: 1rem; max-width: 34rem; }
.route .lbl { font-family: var(--font); fill: var(--ink); }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--band { background: var(--band); }
.section > .wrap > h2 { max-width: 24ch; }
.intro { margin-top: 0.75rem; max-width: var(--measure); color: var(--ink-2); }

.split { display: grid; gap: 2.5rem; margin-top: 2rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; align-items: start;
  max-width: 34rem;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--artery); color: var(--artery);
  font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.steps li > span { padding-top: 0.45rem; }

.docs { background: var(--paper); border-radius: 14px; padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--rule); }
.docs ul { margin: 1rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: 0.55rem; }
.docs li::marker { color: var(--vein); }
.note { margin-top: 1rem; color: var(--ink-2); font-size: 1rem; }

.hours { margin: 0.75rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.addr { margin-top: 0.75rem; font-style: normal; }
.block + .block { margin-top: 2rem; }
.access { margin-top: 0.75rem; max-width: 34rem; }
.place-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.map {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: 14px; background: var(--band);
}

/* Questions fréquentes */
.faq { margin-top: 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 700;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--vein); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; max-width: var(--measure); }

/* Pied de page */
.foot { background: var(--ink); color: #e8ecf4; padding-block: 2.5rem 6.5rem; font-size: 1rem; }
.foot a { color: #ffffff; }
.foot__grid { display: grid; gap: 1.5rem; }
.foot strong { color: #fff; font-size: 1.1rem; }
.foot p + p { margin-top: 0.35rem; }
.foot .muted { color: #b9c3d6; }

/* Barre d'action fixe sur mobile */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--rule);
}
.dock .btn { justify-content: center; min-height: 52px; font-size: 1.05rem; }

@media (min-width: 760px) {
  .dock { display: none; }
  .foot { padding-bottom: 2.5rem; }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot__grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .split--place { grid-template-columns: 0.9fr 1.1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .dock, .lang, .skip, .map { display: none !important; }
  .foot { background: none; color: #000; padding: 1rem 0; }
  .foot a { color: #000; }
}

.foot .others { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
