/* =========================================================
   Maître Abdelhay Ouerdi — Avocat à Taza
   Palette « Bronze & Ardoise » : bronze et ardoise de la carte de visite,
   papier blanc cassé. Arche marocaine + sceau tournant dans le héros.
   ========================================================= */
:root {
  --slate: #24232a;        /* médaillon de la carte */
  --slate-2: #2f2e36;
  --ink: #1d1c20;
  --bronze: #9a6a3f;       /* bronze du nom sur la carte */
  --bronze-2: #c08d5a;
  --bronze-3: #e3c6a3;
  --bronze-soft: #f3e9dc;
  --paper: #fbf9f6;
  --sand: #f4efe8;
  --white: #fff;
  --text: #22201d;
  --muted: #6a645b;
  --line: rgba(36, 35, 42, .12);
  --line-l: rgba(255, 255, 255, .13);
  --wa: #1fa855;

  --f-display: "Fraunces", "Reem Kufi", Georgia, serif;
  --f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[lang^="ar"] { --f-display: "Reem Kufi", "IBM Plex Sans Arabic", serif; --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
body { font-family: var(--f-body); color: var(--text); background: var(--paper); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang^="ar"] body { font-size: 17px; line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
svg:not([viewBox]) { width: 20px; height: 20px; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--bronze); }
html[lang^="ar"] em { font-style: normal; }
.sec--dark em, .footer em { color: var(--bronze-2); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
::selection { background: var(--bronze-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--slate); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--bronze), var(--bronze-2)); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress { transform-origin: right; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--primary { background: var(--slate); color: var(--white); }
.btn--primary:hover { background: var(--bronze); box-shadow: 0 10px 24px -10px rgba(154, 106, 63, .7); }
.btn--line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--line:hover { border-color: var(--bronze); color: var(--bronze); }
.btn--bronze { background: var(--bronze-2); color: var(--slate); }
.btn--bronze:hover { background: var(--bronze-3); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #178a45; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.btn[hidden] { display: none; }

/* ---------- Bandeau ---------- */
.topbar { background: var(--slate); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--bronze-2); }
.topbar__end { display: flex; gap: 22px; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(36, 35, 42, .35); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { width: 48px; height: 48px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__txt strong { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--light strong { color: var(--white); }
.brand--light small { color: rgba(255, 255, 255, .6); }

.nav { display: flex; gap: 4px; }
.nav > a { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav > a:hover { color: var(--ink); background: var(--sand); }
.nav > a.active { color: var(--bronze); }
.nav > a.active::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--bronze); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang button { min-width: 34px; height: 32px; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lang button.on { background: var(--slate); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 0; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(192, 141, 90, .14), transparent 70%),
    linear-gradient(var(--paper), var(--paper));
}
html[dir="rtl"] .hero { background: radial-gradient(60% 50% at 15% 10%, rgba(192, 141, 90, .14), transparent 70%), var(--paper); }
.hero::before { /* trame de fines lignes verticales, comme les piliers de l'emblème */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, rgba(36, 35, 42, .05) 119px 120px);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
html[lang^="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker__line { width: 36px; height: 1px; background: currentColor; }
.hero__title { margin: 22px 0 18px; font-family: var(--f-display); font-weight: 600; line-height: 1.02; color: var(--ink); }
.hero__pre { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.hero__name { display: block; font-size: clamp(44px, 6.6vw, 86px); letter-spacing: -.02em; }
html[lang^="ar"] .hero__name { letter-spacing: 0; line-height: 1.2; font-size: clamp(46px, 7vw, 92px); }
.hero__role { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--bronze-soft); color: var(--bronze); font-weight: 600; font-size: 15px; }
html[dir="rtl"] .hero__role { padding: 8px 12px 8px 16px; }
.hero__role svg { width: 20px; height: 20px; flex: none; }
.hero__text { max-width: 54ch; margin: 22px 0 32px; font-size: 17.5px; color: var(--muted); }
html[lang^="ar"] .hero__text { font-size: 18.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; padding-bottom: 70px; }
.arch {
  position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: linear-gradient(170deg, var(--slate-2), var(--slate) 70%);
  box-shadow: 0 40px 80px -40px rgba(36, 35, 42, .6);
  display: grid; place-items: center;
}
.arch::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(192, 141, 90, .45); border-radius: 999px 999px 10px 10px; pointer-events: none; }
.arch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 38%, rgba(192, 141, 90, .22), transparent 70%); }
.seal { position: relative; z-index: 1; width: 86%; aspect-ratio: 1; margin-top: -14%; color: var(--bronze-2); }
.seal__ring { direction: ltr; unicode-bidi: isolate; position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.seal__ring text { font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; font-size: 14px; font-weight: 600; fill: var(--bronze-3); }
.seal__mark { position: absolute; inset: 22%; width: 56%; height: 56%; --mk-bg: #1b1a20; --mk-ring: #6f6a63; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carte de visite reprise en HTML */
.vcard {
  --rx: 0deg; --ry: 0deg; --lift: 0;
  position: absolute; bottom: 0; inset-inline-start: 0; z-index: 2;
  width: min(92%, 400px); padding: 20px 22px 18px; border-radius: 12px;
  background: linear-gradient(160deg, #fff, #f7f4ef); color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(36, 35, 42, .45), 0 0 0 1px rgba(36, 35, 42, .06);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(calc(-3deg * (1 - var(--lift))));
  transition: transform .4s var(--ease);
}
html[dir="rtl"] .vcard { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(calc(3deg * (1 - var(--lift)))); }
.vcard__top { display: flex; gap: 14px; align-items: center; }
.vcard__mark { width: 66px; height: 66px; flex: none; }
.vcard__mark svg { width: 100%; height: 100%; }
.vcard__id { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 1; min-width: 0; line-height: 1.3; }
.vcard__id b { font-family: "Reem Kufi", sans-serif; font-size: 19px; font-weight: 700; color: var(--bronze); }
.vcard__id small { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 12px; color: var(--muted); font-weight: 600; }
.vcard__id i { display: block; align-self: stretch; height: 1.5px; background: var(--bronze); margin: 7px 0 5px; opacity: .8; }
.vcard__id strong { font-family: "IBM Plex Sans", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: var(--bronze); }
.vcard__id span { font-family: "IBM Plex Sans", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.vcard__rows { margin-top: 14px; display: grid; gap: 7px; font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; font-size: 13px; font-weight: 600; }
.vcard__rows li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vcard__rows li > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard__tag { display: grid; place-items: center; width: 30px; height: 22px; flex: none; background: var(--bronze); color: #fff; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.vcard__tag--dark { background: var(--slate); }
.vcard__tag svg { width: 13px; height: 13px; }

/* Repères */
.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 22px 30px; border-inline-start: 1px solid var(--line); }
.facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { display: block; font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--ink); line-height: 1.25; }
.facts span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec--sand { background: var(--sand); }
.sec--dark { background: var(--slate); color: rgba(255, 255, 255, .78); }
.head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head--center { display: block; text-align: center; max-width: 720px; margin-inline: auto; }
.head--center .label { justify-content: center; }
.head--center .lead { margin: 18px auto 0; }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
html[lang^="ar"] .label { letter-spacing: 0; font-size: 15px; }
.label__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; font-family: "IBM Plex Sans", sans-serif; font-size: 12px; letter-spacing: 0; }
.label--light { color: var(--bronze-2); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
html[lang^="ar"] .h2 { letter-spacing: 0; line-height: 1.35; }
.sec--dark .h2 { color: var(--white); }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.sec--dark .lead { color: rgba(255, 255, 255, .85); }

/* ---------- Domaines ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.area { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; background: var(--white); transition: background .35s; }
.area::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
html[dir="rtl"] .area::before { transform-origin: right; }
.area:hover { background: #fffdfa; }
.area:hover::before { transform: scaleX(1); }
.area__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.area__n { font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; color: var(--bronze-2); }
.area__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bronze-soft); color: var(--bronze); transition: background .3s, color .3s; }
.area__ic svg { width: 26px; height: 26px; }
.area:hover .area__ic { background: var(--slate); color: var(--bronze-2); }
.area h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.area p { font-size: 15px; color: var(--muted); flex: 1; }
html[lang^="ar"] .area p { font-size: 15.5px; }
.area__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.area__tags li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--bronze); }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Le Maître ---------- */
.sec--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 90% 20%, rgba(192, 141, 90, .14), transparent 70%); }
.about { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__main > p + p { margin-top: 16px; }
.about__main .lead { margin-bottom: 0; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 30px 0 34px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .9); }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--bronze-2); }
.dossier { border-radius: var(--r); background: linear-gradient(160deg, #fff, #f6f1ea); color: var(--text); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.dossier__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); overflow: hidden; }
.dossier__mark { width: 54px; height: 54px; flex: none; }
.dossier__mark svg { width: 100%; height: 100%; }
.dossier__head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
html[lang^="ar"] .dossier__head small { letter-spacing: 0; font-size: 13px; }
.dossier__head strong { font-family: var(--f-display); font-size: 21px; font-weight: 600; color: var(--ink); }
.dossier__dr { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-family: "Fraunces", serif; font-style: italic; font-size: 64px; font-weight: 600; color: var(--bronze); opacity: .14; line-height: 1; }
.dossier__list { padding: 6px 24px 10px; }
.dossier__list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.dossier__list div:last-child { border-bottom: 0; }
.dossier__list dt { font-size: 13px; color: var(--muted); }
.dossier__list dd { font-weight: 600; color: var(--ink); font-size: 15px; }
.about__quote { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px 22px; border: 1px solid var(--line-l); border-radius: var(--r); font-family: var(--f-display); font-size: 20px; color: var(--white); }
.about__quote svg { width: 28px; height: 28px; flex: none; color: var(--bronze-2); }

.oath { position: relative; margin-top: clamp(64px, 8vw, 100px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-l); text-align: center; max-width: 920px; margin-inline: auto; }
.oath__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 24px; }
html[lang^="ar"] .oath__label { letter-spacing: 0; font-size: 15px; }
.oath__text { font-family: "Reem Kufi", serif; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.75; color: rgba(255, 255, 255, .9); }
.oath__text .w { transition: color .5s, opacity .5s; }
.js .oath__text .w { opacity: .28; }
.js .oath__text .w.lit { opacity: 1; color: var(--white); }
.oath__tr { margin: 22px auto 0; max-width: 70ch; font-size: 15px; font-style: italic; color: rgba(255, 255, 255, .6); }
.oath__note { margin-top: 18px; font-size: 13px; color: var(--bronze-2); }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps__line { position: absolute; top: 27px; inset-inline: 12.5%; height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--bronze); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .steps__line i { transform-origin: right; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--bronze); color: var(--bronze); font-family: "Fraunces", serif; font-size: 20px; font-weight: 600; transition: background .3s, color .3s; }
.steps li:hover .steps__n { background: var(--slate); border-color: var(--slate); color: var(--bronze-2); }
.steps h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* ---------- Rendez-vous ---------- */
.bk { max-width: 980px; margin: 0 auto; background: var(--white); border-radius: 22px; box-shadow: 0 40px 80px -50px rgba(36, 35, 42, .5), 0 0 0 1px var(--line); overflow: hidden; }
.bk__steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.bk__steps li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; font-size: 14px; color: var(--muted); position: relative; }
.bk__steps li::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: var(--bronze); transform: scaleX(0); transition: transform .4s var(--ease); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done::after { background: var(--bronze-3); }
.bk__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.bk__steps li.active { color: var(--ink); }
.bk__steps li.active span { background: var(--slate); border-color: var(--slate); color: var(--white); }
.bk__steps li.done span { background: var(--bronze-soft); border-color: var(--bronze-3); color: var(--bronze); }
.bk__body { padding: clamp(22px, 4vw, 40px); }
.bk__step { display: none; }
.bk__step.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.bk__q { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.bk__q:not(:first-child) { margin-top: 30px; }
.bk__areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; font-weight: 500; text-align: start; line-height: 1.35; transition: border-color .2s, background .2s, color .2s; }
.chip svg { width: 22px; height: 22px; flex: none; color: var(--bronze); }
.chip:hover { border-color: var(--bronze-3); }
.chip.sel { border-color: var(--bronze); background: var(--bronze-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--bronze); }
.bk__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-align: start; transition: border-color .2s, background .2s; }
.mode svg { width: 26px; height: 26px; flex: none; color: var(--bronze); }
.mode b { display: block; font-size: 15px; }
.mode small { display: block; font-size: 13px; color: var(--muted); }
.mode:hover { border-color: var(--bronze-3); }
.mode.sel { border-color: var(--bronze); background: var(--bronze-soft); box-shadow: inset 0 0 0 1px var(--bronze); }
.bk__date { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-weight: 600; text-transform: capitalize; }
.cal__nav { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.cal__nav svg { width: 18px; height: 18px; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__wd, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd span { font-size: 12px; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; border-radius: 10px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.day:hover:not(.off) { background: var(--bronze-soft); }
.day.off { color: rgba(36, 35, 42, .25); cursor: default; }
.day.sel { background: var(--slate); color: var(--white); }
.slots__date { font-weight: 600; margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px 20px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); font-size: 15px; }
.slots__g + .slots__g { margin-top: 16px; }
.slots__g small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.slots__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; direction: ltr; transition: border-color .2s, background .2s; }
.slot:hover:not(.taken) { border-color: var(--bronze); }
.slot.sel { background: var(--slate); border-color: var(--slate); color: var(--white); }
.slot.taken { color: rgba(36, 35, 42, .25); text-decoration: line-through; cursor: default; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); background: var(--white); }
.field input.invalid { border-color: #c0392b; }
html[dir="rtl"] #b-phone { text-align: right; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 15px; cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--bronze); }
.bk__done { text-align: center; padding: 20px 0; }
.bk__doneIc { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: rgba(31, 168, 85, .12); color: var(--wa); }
.bk__doneIc svg { width: 34px; height: 34px; }
.bk__done h3 { font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.bk__done > p { max-width: 50ch; margin: 10px auto 0; color: var(--muted); }
.bk__recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0; }
.bk__recap span { padding: 6px 14px; border-radius: 999px; background: var(--bronze-soft); color: var(--bronze); font-size: 14px; font-weight: 500; }
.bk__doneBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bk__bar { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 18px clamp(22px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--paper); }
.bk__bar[hidden] { display: none; }
.bk__sum { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bk__sum span { display: flex; flex-direction: column; line-height: 1.3; opacity: .45; }
.bk__sum span.on { opacity: 1; }
.bk__sum small { font-size: 11.5px; color: var(--muted); }
.bk__sum b { font-size: 14px; font-weight: 600; }
.bk__err { grid-column: 1 / -1; grid-row: 2; color: #b23a2c; font-size: 14px; min-height: 0; }
.bk__err:empty { display: none; }
.bk__err.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.bk__nav { display: flex; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 30px); }
.urgent { margin-top: 32px; padding: 26px; border-radius: var(--r); background: var(--slate); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.urgent::after { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -60px; top: -60px; border-radius: 50%; border: 1px solid rgba(192, 141, 90, .35); box-shadow: 0 0 0 22px rgba(192, 141, 90, .06); }
.urgent strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--white); margin-bottom: 6px; }
.urgent p { font-size: 15px; }
.urgent__tel { display: inline-flex !important; align-items: center; gap: 10px; margin-top: 16px; font-size: 20px; font-weight: 600; color: var(--bronze-2); }
.urgent__tel svg { width: 22px; height: 22px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.qa__x { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease); }
.qa__x::after { transform: rotate(90deg); }
.qa[open] .qa__x { background: var(--slate); border-color: var(--slate); }
.qa[open] .qa__x::before, .qa[open] .qa__x::after { background: var(--bronze-2); }
.qa[open] .qa__x::after { transform: rotate(0); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }
.qa summary:hover h3 { color: var(--bronze); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
address { font-style: normal; }
.infos { margin-top: 34px; display: grid; gap: 4px; }
.infos li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.infos li:last-child { border-bottom: 0; }
.infos > li > svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 50%; background: var(--white); color: var(--bronze); box-shadow: 0 0 0 1px var(--line); }
.infos small { display: block; font-size: 13px; color: var(--muted); }
.infos span, .infos a { display: block; font-weight: 500; color: var(--ink); }
.infos a:hover { color: var(--bronze); }
.infos .ltr { display: inline-block; }
.infos__note { font-size: 14px; font-weight: 400 !important; color: var(--muted) !important; }
.hours-l { display: block; }
.hours-l > span { display: inline !important; }
.contact__map { position: relative; min-height: 440px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(36, 35, 42, .6); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: background .2s; }
.contact__dir:hover { background: var(--bronze); }
.contact__dir svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: clamp(56px, 7vw, 90px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 44px; border-bottom: 1px solid var(--line-l); }
.footer__word { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; color: var(--white); line-height: 1.25; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 16px; }
html[lang^="ar"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--white); }
.footer__about { margin-top: 18px; max-width: 36ch; }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer__disc { padding: 22px 0; border-top: 1px solid var(--line-l); font-size: 13px; color: rgba(255, 255, 255, .45); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-l); font-size: 13px; }

/* ---------- Mobile : barre d'actions + WhatsApp ---------- */
.mbar { display: none; }
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .7); transform: scale(0); transition: transform .4s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.past-hero .wa-float { transform: scale(1); }

/* ---------- Animations d'entrée ---------- */
.js .rise { opacity: 0; transform: translateY(22px); }
.js.loaded .rise { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .reveal { opacity: 1; transform: none; transition: none; }
  .seal__ring { animation: none; }
  .js .oath__text .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav > a { padding: 8px 10px; font-size: 14px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .bk__areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .header__cta { display: none; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; flex-direction: column; gap: 0; padding: 18px var(--gutter) 40px; background: var(--paper); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav > a { padding: 16px 4px; font-family: var(--f-display); font-size: 24px; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a:hover { background: none; }
  .nav > a.active::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: 28px; color: var(--bronze); font-weight: 600; }
  .menu-open { overflow: hidden; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; width: 100%; margin-inline: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head { grid-template-columns: 1fr; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .steps__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 249, 246, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .mbar a svg { width: 18px; height: 18px; color: var(--bronze); }
  .mbar__main { background: var(--slate) !important; color: var(--white); box-shadow: none !important; }
  .mbar__main svg { color: var(--bronze-2) !important; }
  .wa-float { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .brand__mark { width: 42px; height: 42px; }
  .header__in { gap: 10px; }
  .brand { gap: 9px; }
  .brand__txt strong { font-size: 15px; white-space: normal; line-height: 1.15; }
  .brand__txt small { display: none; }
  html[lang^="ar"] .brand__txt strong { white-space: nowrap; font-size: 16px; }
  .hero__role { border-radius: 16px; }
  .lang button { min-width: 30px; padding: 0 6px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { padding-bottom: 96px; }
  .arch { width: 84%; }
  .vcard { width: 100%; padding: 16px 16px 14px; }
  .vcard__mark { width: 54px; height: 54px; }
  .vcard__id b { font-size: 17px; }
  .vcard__id strong { font-size: 16px; }
  .vcard__id span { font-size: 8.5px; }
  .vcard__rows { font-size: 12px; }
  .facts li { padding: 20px 14px 22px; }
  .areas { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .dossier__list div { grid-template-columns: 1fr; gap: 2px; }
  .bk__areas, .bk__modes { grid-template-columns: 1fr; }
  .bk__date { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__err { grid-row: auto; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 12px 16px; }
  .bk__steps b { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__map { min-height: 340px; }
}
