/* =========================================================
   Maître Nabil Benzekri — Avocat au Barreau de Fès
   Palette « Robe & Balance » : bleu roi de la carte de visite, nuit, or de la balance,
   gris-bleu du liseré, ivoire — motif zellige de Fès
   ========================================================= */
:root {
  --navy: #0b1838;        /* nuit — fonds sombres, titres */
  --navy-2: #13244d;
  --navy-3: #1c3264;
  --royal: #1f4cc7;       /* bleu roi de la carte */
  --royal-2: #2f62e6;
  --royal-3: #8fb0ff;     /* bleu lisible sur fond sombre */
  --mist: #b8c7dd;        /* liseré gris-bleu de la carte */
  --sky: #ebf0fa;
  --gold: #b88a2c;        /* or de la balance */
  --gold-2: #d9b562;
  --gold-3: #f1dca4;
  --bg: #fbfaf7;
  --paper: #f1f3f7;
  --paper-2: #e2e7f0;
  --text: #141b2d;
  --muted: #5a6478;
  --line: rgba(11, 24, 56, .12);
  --line-2: rgba(11, 24, 56, .07);
  --line-dark: rgba(184, 199, 221, .16);
  --white: #ffffff;
  --red: #c8343a;
  --wa: #1fa855;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
}
html[dir="rtl"] {
  --f-display: "El Messiri", "Cormorant Garamond", serif;
  --f-body: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--f-body); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[dir="rtl"] body { font-size: 16.5px; line-height: 1.9; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -.01em; color: inherit; }
html[dir="rtl"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.45; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
svg { width: 20px; height: 20px; flex: none; }
svg[width="0"] { width: 0; height: 0; }
::selection { background: var(--royal); color: var(--white); }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
em { font-style: italic; color: var(--royal); }
html[dir="rtl"] em { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.zel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .09; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
html[dir="rtl"] .btn { font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
.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--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--blue { background: var(--royal); color: var(--white); box-shadow: 0 14px 30px -14px rgba(31, 76, 199, .85); }
.btn--blue:hover { background: var(--royal-2); transform: translateY(-2px); }
.btn--gold { background: var(--gold-2); color: var(--navy); }
.btn--gold:hover { background: var(--gold-3); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-3); }
.btn--line { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--line:hover { border-color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f47; }
.btn[hidden] { display: none; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--royal); }
.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); }

/* ---------- Sections & libellés ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 136px) 0; }
.sec--paper { background: var(--paper); }
.sec--night { background: var(--navy); color: var(--white); overflow: hidden; }
.sec--night em, .sec--blue em { color: var(--gold-2); }
.sec--blue { background: radial-gradient(120% 90% at 50% 0%, var(--royal) 0%, var(--navy-2) 70%); color: var(--white); }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 15px; }
.label__n { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; color: var(--royal); display: inline-flex; align-items: center; gap: 12px; }
.label__n::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .5; }
.label--light { color: var(--gold-2); }
.label--light .label__n { color: var(--royal-3); }
.h2 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); margin-bottom: 22px; color: var(--navy); }
html[dir="rtl"] .h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.sec--night .h2, .sec--blue .h2 { color: var(--white); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.sec--night .lead, .sec--blue .lead { color: rgba(255, 255, 255, .7); }
.sec__head { margin-bottom: clamp(44px, 6vw, 64px); max-width: 760px; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.sec__head--split .h2 { margin-bottom: 0; }
.sec__head--center { text-align: center; margin-inline: auto; }
.sec__head--center .lead { margin-inline: auto; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--navy); }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(251, 250, 247, 0); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; z-index: -1; }
.header.scrolled::before { background: rgba(251, 250, 247, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2); background: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }
.brand__logo svg { width: 28px; height: 28px; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
html[dir="rtl"] .brand__txt strong { font-size: 1.15rem; }
.brand__txt small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
html[dir="rtl"] .nav { font-size: 15.5px; }
.nav > a { position: relative; opacity: .75; transition: opacity .2s; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover, .nav > a.active { opacity: 1; }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang button { min-width: 36px; height: 30px; border-radius: 999px; font-size: 12.5px; font-weight: 700; opacity: .6; transition: all .2s; }
.lang button.on { background: var(--navy); color: var(--white); opacity: 1; }
.header__cta { background: var(--navy); color: var(--white); }
.header__cta:hover { background: var(--royal); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; position: relative; background: var(--white); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.hero__band {
  position: absolute; top: var(--header-h); bottom: 120px; inset-inline-end: 0; width: 41%;
  background: linear-gradient(160deg, var(--royal) 0%, #1a3ea6 55%, var(--navy-2) 100%);
  border-end-start-radius: 0;
}
/* liseré gris-bleu de la carte de visite */
.hero__band::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -22px; width: 10px; background: var(--mist); }
.hero__band::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -34px; width: 3px; background: var(--royal); opacity: .5; }
.hero__band .zel { opacity: .12; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--sky); color: var(--royal); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 26px; }
html[dir="rtl"] .kicker { padding: 7px 12px 7px 16px; font-size: 15px; letter-spacing: 0; }
.kicker svg { width: 18px; height: 18px; color: var(--navy); }
.hero__title { font-size: clamp(2.7rem, 5.4vw, 4.3rem); color: var(--navy); margin-bottom: 26px; font-weight: 600; }
html[dir="rtl"] .hero__title { font-size: clamp(2.1rem, 4.7vw, 3.6rem); line-height: 1.35; }
.hero__title em { display: block; color: var(--royal); }
.hero__text { font-size: 1.12rem; color: var(--muted); max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.hero__badge svg { color: var(--gold); width: 22px; height: 22px; }

.hero__media { position: relative; min-height: 440px; display: grid; place-items: center; }
/* Carte de visite */
.bcard {
  position: relative; width: min(100%, 450px); border-radius: 14px; overflow: hidden;
  background: var(--white); color: var(--navy); display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 50px 80px -40px rgba(4, 12, 34, .85), 0 2px 0 rgba(255, 255, 255, .6) inset;
  transform: translateY(-40px) rotate(-4deg); transition: transform .6s var(--ease);
}
.bcard:hover { transform: translateY(-44px) rotate(-1.5deg); }
.bcard__band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 112px; padding: 0 18px; background: var(--royal); color: var(--white); direction: ltr; }
.bcard__disc { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--navy); }
.bcard__disc svg { width: 30px; height: 30px; }
.bcard__disc--gold { background: #101010; color: var(--gold-2); box-shadow: inset 0 0 0 2px var(--gold); }
.bcard__name { display: grid; text-align: center; line-height: 1.25; }
.bcard__name b { font-family: "El Messiri", serif; font-size: 1.35rem; font-weight: 700; }
.bcard__name i { font-style: normal; font-family: "Manrope", sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .06em; }
.bcard__body { position: relative; display: grid; align-content: center; justify-items: center; text-align: center; gap: 2px; padding: 16px 22px 30px; }
.bcard__body::after { content: ""; position: absolute; inset: auto 0 0; height: 12px; background: linear-gradient(var(--mist) 0 50%, var(--royal) 50%); }
.bcard__ar { font-family: "El Messiri", serif; font-size: 1.25rem; }
.bcard__fr { font-family: "Cormorant Garamond", serif; font-size: 1.05rem; font-weight: 700; color: var(--navy-3); }
.bcard__rule { width: 70%; height: 1px; background: var(--navy); opacity: .5; margin: 6px 0; }
.bcard__tel { font-family: "Manrope", sans-serif; font-weight: 800; font-size: .98rem; letter-spacing: .02em; }
.bcard__addr { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .72rem; color: var(--muted); }

/* Sceau doré */
.seal { position: absolute; bottom: -24px; inset-inline-end: 0; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); box-shadow: 0 0 0 6px var(--bg), 0 24px 40px -20px rgba(4, 12, 34, .8); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; direction: ltr; }
.seal__ring text { fill: var(--gold-2); font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
html[dir="rtl"] .seal__ring text { letter-spacing: 0; font-size: 14px; }
.seal__ic { width: 46px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 80px); }
.facts li { padding: 22px 22px 20px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -32px rgba(11, 24, 56, .5); }
.facts b { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
html[dir="rtl"] .facts b { font-size: 1.25rem; }
.facts b::before { content: ""; display: block; width: 26px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- L'avocat ---------- */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.plate {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; padding: 40px;
  background: linear-gradient(165deg, var(--royal) 0%, var(--navy-2) 75%); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  box-shadow: 0 50px 80px -50px rgba(11, 24, 56, .9);
}
.plate::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(217, 181, 98, .45); border-radius: 14px; pointer-events: none; }
.plate .zel { opacity: .1; }
.plate__mono { position: relative; display: flex; align-items: center; gap: 18px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9; color: var(--gold-2); margin-bottom: 18px; }
.plate__mono i { width: 2px; height: .8em; background: currentColor; opacity: .6; }
.plate__ar { position: relative; font-family: "El Messiri", serif; font-size: 1.9rem; font-weight: 700; }
.plate__role { position: relative; font-size: 15px; color: rgba(255, 255, 255, .72); }
.plate__ic { position: absolute; top: 40px; inset-inline-end: 40px; width: 64px; height: 64px; color: var(--gold-2); opacity: .9; }
.profile__main > p:not(.label) { margin-bottom: 18px; }
.profile__main .lead { color: var(--text); }
.profile__main > p:not(.lead):not(.label) { color: var(--muted); }
.ledger { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
html[dir="rtl"] .ledger dt { letter-spacing: 0; font-size: 14.5px; }
.ledger dd { font-weight: 600; color: var(--navy); }

/* ---------- Domaines ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line-2); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.area::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--royal), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
html[dir="rtl"] .area::before { transform-origin: right; }
.area:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(11, 24, 56, .6); }
.area:hover::before { transform: scaleX(1); }
.area__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.area__ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--royal); transition: background .3s, color .3s; }
.area:hover .area__ic { background: var(--navy); color: var(--gold-2); }
.area__ic svg { width: 26px; height: 26px; }
.area__n { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--paper-2); }
.area h3 { font-size: 1.65rem; color: var(--navy); margin-bottom: 8px; }
html[dir="rtl"] .area h3 { font-size: 1.28rem; }
.area > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.area ul { display: grid; gap: 7px; margin-bottom: 24px; font-size: 14.5px; }
.area li { position: relative; padding-inline-start: 20px; }
.area li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-2); }
.area .link { margin-top: auto; }

/* ---------- Juridictions ---------- */
.zel--night { opacity: .05; }
.courts { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.courts__list { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.courts__list li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.courts__n { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.courts__list h3 { font-size: 1.5rem; margin-bottom: 4px; }
html[dir="rtl"] .courts__list h3 { font-size: 1.2rem; }
.courts__list p { color: rgba(255, 255, 255, .62); font-size: 15px; }
.values { position: sticky; top: calc(var(--header-h) + 30px); padding: 34px 30px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(217, 181, 98, .3); }
.values__h { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; margin-bottom: 24px; color: var(--white); }
html[dir="rtl"] .values__h { font-size: 1.25rem; }
.values__h svg { width: 26px; height: 26px; color: var(--gold-2); }
.values ul { display: grid; gap: 20px; }
.values li { display: flex; gap: 16px; align-items: flex-start; }
.values__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(217, 181, 98, .14); color: var(--gold-2); }
.values__ic svg { width: 21px; height: 21px; }
.values b { display: block; font-size: 16px; margin-bottom: 2px; }
.values p { color: rgba(255, 255, 255, .62); font-size: 14.5px; }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 31px; inset-inline: 32px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-2) 0 6px, transparent 6px 12px); }
.steps li { position: relative; }
.steps__n { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold-2); color: var(--navy); font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; margin-bottom: 22px; }
.steps li:last-child .steps__n { background: var(--navy); color: var(--gold-2); border-color: var(--navy); }
.steps h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 6px; }
html[dir="rtl"] .steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* ---------- Rendez-vous ---------- */
.bk { position: relative; background: var(--bg); color: var(--text); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.bk__steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.bk__steps li { display: flex; align-items: center; gap: 12px; padding: 18px 24px; color: var(--muted); font-size: 15px; position: relative; }
.bk__steps li::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .bk__steps li::after { transform-origin: right; }
.bk__steps span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; font-size: 14px; transition: all .3s; }
.bk__steps li.active { color: var(--navy); }
.bk__steps li.active span { background: var(--royal); border-color: var(--royal); color: var(--white); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--navy); border-color: var(--navy); color: var(--gold-2); }
.bk__body { padding: clamp(24px, 4vw, 44px); min-height: 380px; }
.bk__step { display: none; }
.bk__step.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk__q { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; letter-spacing: 0; line-height: 1.5; }
html[dir="rtl"] .bk__q { font-family: var(--f-body); font-size: 16px; }
.bk__areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: var(--white); transition: all .2s; }
.chip svg { width: 18px; height: 18px; color: var(--royal); }
.chip:hover { border-color: var(--navy); }
.chip.sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.sel svg { color: var(--gold-2); }
.bk__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--royal); }
.mode b { display: block; font-size: 15.5px; color: var(--navy); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--navy); }
.mode.sel { border-color: var(--royal); box-shadow: 0 0 0 1px var(--royal) inset; background: var(--sky); }

.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-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); text-transform: capitalize; }
html[dir="rtl"] .cal__head strong { font-size: 1.15rem; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.cal__nav:disabled { opacity: .3; cursor: default; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.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: 6px 0; font-weight: 700; }
.day { aspect-ratio: 1; border-radius: 50%; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.day:hover:not(.off) { background: var(--sky); }
.day.off { opacity: .28; cursor: default; }
.day.sel { background: var(--royal); color: var(--white); }
.slots__date { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: capitalize; }
html[dir="rtl"] .slots__date { font-size: 1.1rem; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.slots__g { margin-bottom: 18px; }
.slots__g small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--navy); }
.slot.sel { background: var(--royal); border-color: var(--royal); color: var(--white); }
.slot.taken { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: transparent; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); font: inherit; font-size: 15.5px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(31, 76, 199, .18); }
.field input.invalid { border-color: var(--red); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); height: 50px; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 100%; font-weight: 600; transition: all .2s; }
.seg input:checked + span { background: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--royal); outline-offset: -2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--royal); flex: none; }

.bk__bar { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 18px clamp(24px, 4vw, 44px); border-top: 1px solid var(--line); background: var(--white); }
.bk__bar[hidden] { display: none; }
.bk__sum { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bk__sum span { display: grid; line-height: 1.3; }
.bk__sum small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bk__sum b { font-size: 14px; font-weight: 600; color: var(--muted); }
.bk__sum span.on b { color: var(--navy); }
.bk__err { grid-column: 1 / -1; grid-row: 2; color: var(--red); font-size: 14px; font-weight: 600; }
.bk__err:empty { display: none; }
.bk__err.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.bk__nav { display: flex; gap: 10px; }
.bk__done { text-align: center; padding: 30px 0; }
.bk__doneIc { width: 76px; height: 76px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(31, 168, 85, .12); color: var(--wa); }
.bk__doneIc svg { width: 36px; height: 36px; }
.bk__done h3 { font-size: 2rem; margin-bottom: 10px; color: var(--navy); }
.bk__done p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.bk__recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.bk__recap span { padding: 6px 14px; border-radius: 999px; background: var(--sky); font-size: 14px; font-weight: 600; }
.bk__doneBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 30px); }
.urgent { position: relative; overflow: hidden; margin-top: 30px; padding: 28px; border-radius: var(--r); background: var(--navy); color: var(--white); }
.urgent::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--royal) 0 60%, var(--mist) 60% 75%, var(--gold-2) 75%); }
.urgent strong { display: block; font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 6px; }
html[dir="rtl"] .urgent strong { font-size: 1.3rem; }
.urgent p { color: rgba(255, 255, 255, .66); font-size: 15px; margin-bottom: 18px; }
.urgent__tel { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--gold-2); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.4rem; color: var(--navy); }
html[dir="rtl"] .qa h3 { font-size: 1.1rem; }
.qa__x { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: all .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s; }
.qa__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__x { background: var(--navy); color: var(--gold-2); border-color: var(--navy); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: stretch; }
.cards { display: grid; gap: 10px; }
.cards li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; background: var(--white); border-radius: 14px; border: 1px solid var(--line-2); }
.cards svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.cards small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cards a, .cards span { font-weight: 600; color: var(--navy); }
.cards a:hover { color: var(--royal); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact__map { position: relative; min-height: 460px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.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(--navy); color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(11, 24, 56, .6); }
.contact__dir svg { width: 16px; height: 16px; color: var(--gold-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: clamp(60px, 8vw, 96px) 0 110px; border-top: 6px solid var(--royal); box-shadow: inset 0 6px 0 var(--mist); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line-dark); }
.footer__word { font-family: var(--f-display); font-size: clamp(1.9rem, 3.8vw, 3rem); color: var(--white); line-height: 1.2; }
html[dir="rtl"] .footer__word { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.5; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.footer h3 { font-family: var(--f-body); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; font-weight: 700; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--white); }
.brand--light { color: var(--white); margin-bottom: 18px; }
.brand--light small { color: rgba(255, 255, 255, .6); }
.footer__about { font-size: 14.5px; max-width: 36ch; }
.hours li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer__disc { font-size: 13px; color: rgba(255, 255, 255, .45); max-width: 90ch; padding-top: 24px; border-top: 1px solid var(--line-dark); margin-bottom: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Mobile bar & WhatsApp ---------- */
.mbar { display: none; }
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; 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); }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 14px; }
  .header__cta { display: none; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; gap: 0; padding: 20px var(--gutter) 40px;
    background: var(--bg); font-size: 1.4rem; font-family: var(--f-display); font-weight: 600;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .35s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; font-family: var(--f-body); font-size: 16px; font-weight: 700; color: var(--royal); }
  .menu-open .header::before { background: var(--bg); }
  .hero__grid, .profile, .courts, .faq, .contact { grid-template-columns: 1fr; }
  .hero__band { top: auto; bottom: 150px; height: 420px; width: 100%; }
  .hero__band::before, .hero__band::after { display: none; }
  .hero__media { min-height: 400px; }
  .sec__head--split { grid-template-columns: 1fr; gap: 0; }
  .sec__head--split .h2 { margin-bottom: 22px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .profile__media { max-width: 460px; }
  .values, .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .bk__date { grid-template-columns: 1fr; }
  .contact__map { min-height: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt small { display: none; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__logo svg { width: 24px; height: 24px; }
  .lang button { min-width: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__band { height: 360px; bottom: 170px; }
  .hero__media { min-height: 340px; padding-bottom: 50px; }
  .bcard { width: 100%; }
  .bcard__band { min-height: 84px; padding: 0 12px; gap: 8px; }
  .bcard__disc { width: 40px; height: 40px; }
  .bcard__disc svg { width: 22px; height: 22px; }
  .bcard__name b { font-size: 1.05rem; }
  .bcard__name i { font-size: .66rem; }
  .bcard__ar { font-size: 1.05rem; }
  .bcard__fr { font-size: .92rem; }
  .bcard__tel { font-size: .82rem; }
  .bcard__addr { font-size: .6rem; }
  .seal { width: 104px; height: 104px; bottom: -10px; inset-inline-end: 0; }
  .seal__ring text { font-size: 15px; }
  .seal__ic { width: 40px; height: 40px; }
  .facts { gap: 10px; }
  .facts li { padding: 16px; }
  .facts span { font-size: 13px; }
  .plate { padding: 28px; }
  .plate__ic { top: 28px; inset-inline-end: 28px; width: 50px; height: 50px; }
  .areas { grid-template-columns: 1fr; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .courts__list li { grid-template-columns: 46px 1fr; gap: 12px; }
  .values { padding: 26px 22px; }
  .steps { grid-template-columns: 1fr; }
  .bk__steps li { padding: 14px 12px; font-size: 13px; gap: 8px; justify-content: center; }
  .bk__steps b { display: none; }
  .bk__steps li.active b { display: inline; }
  .bk__modes, .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 0 16px; }
  .contact__btns .btn { flex: 1 1 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: rgba(11, 24, 56, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; color: var(--white); font-size: 14px; font-weight: 600; }
  .mbar__main { background: var(--royal); }
  .footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
