/* =========================================================
   Maître Moad Sahli — Tétouan
   Palette « carte de visite » : blanc chaulé, indigo, bleu ciel
   Motifs andalous : arc outrepassé, étoile de zellige à 8 branches
   ========================================================= */
:root {
  --indigo: #23246b;      /* bandeau de la carte de visite */
  --indigo-2: #33359a;
  --indigo-3: #16174a;
  --sky: #2aa7e0;         /* coin bleu ciel de la carte */
  --sky-2: #8fd6f5;
  --sky-ink: #0d73a8;     /* bleu lisible sur fond clair */
  --white: #ffffff;
  --wash: #f6f7fb;        /* blanc chaulé de Tétouan */
  --mist: #eceff8;
  --mist-2: #dde2f1;
  --text: #15173a;
  --muted: #5a5e7c;
  --line: rgba(35, 36, 107, .14);
  --line-2: rgba(35, 36, 107, .07);
  --line-dark: rgba(255, 255, 255, .16);
  --wa: #1fa855;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='none' stroke='white' stroke-width='1'%3E%3Cpath d='M16 16h28v28H16zM30 10.2 49.8 30 30 49.8 10.2 30z'/%3E%3Cpath d='M0 0l10.2 10.2M60 0 49.8 10.2M0 60l10.2-10.2M60 60 49.8 49.8'/%3E%3C/svg%3E");
}
html[dir="rtl"] {
  --f-display: "El Messiri", "Fraunces", serif;
  --f-body: "IBM Plex Sans Arabic", "Instrument Sans", 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(--wash);
  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.95; }
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.1; letter-spacing: -.015em; }
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(--sky); color: var(--white); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mail { word-break: break-all; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--indigo); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
em { font-style: italic; color: var(--sky-ink); }
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); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; 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;
}
.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 18px; font-size: 14px; border-radius: 10px; }
.btn--indigo { background: var(--indigo); color: var(--white); box-shadow: 0 12px 28px -14px rgba(35, 36, 107, .8); }
.btn--indigo:hover { background: var(--indigo-2); transform: translateY(-2px); }
.btn--sky { background: var(--sky); color: var(--white); box-shadow: 0 12px 28px -14px rgba(42, 167, 224, .9); }
.btn--sky:hover { background: #1d95cc; transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--indigo); background: var(--white); }
.btn--line:hover { border-color: var(--indigo); }
.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(--sky-ink); }
.link svg { width: 16px; height: 16px; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-ink); padding: 4px 10px; background: rgba(42, 167, 224, .1); border-radius: 6px; }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 13px; }
.tag--light { color: var(--sky-2); background: rgba(143, 214, 245, .12); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec--mist { background: var(--mist); }
.sec--indigo { background: var(--indigo); color: var(--white); overflow: hidden; }
.sec--indigo::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .05; pointer-events: none; }
.sec--indigo > .wrap { position: relative; }
.sec--indigo em { color: var(--sky-2); }
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); margin-bottom: 22px; }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 14.5px; }
.label__n { display: grid; place-items: center; width: 34px; height: 34px; font-family: var(--f-display); font-size: 14px; letter-spacing: 0; border-radius: 50% 50% 4px 4px; background: var(--indigo); color: var(--white); }
.label--light { color: var(--sky-2); }
.label--light .label__n { background: var(--sky); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 22px; color: var(--indigo); }
.sec--indigo .h2 { color: var(--white); }
html[dir="rtl"] .h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.sec--indigo .lead { color: rgba(255, 255, 255, .72); }
.sec__head { margin-bottom: clamp(44px, 6vw, 70px); 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(--indigo); transition: height .3s; }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(246, 247, 251, 0); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; z-index: -1; }
.header.scrolled::before { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-2); }
.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: 50px; display: grid; place-items: center; border-radius: 23px 23px 6px 6px; color: var(--white); background: var(--indigo); }
.brand__logo svg { width: 34px; height: 34px; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.brand__txt small { font-size: 12px; color: var(--sky-ink); }
.nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav > a { position: relative; opacity: .78; transition: opacity .2s; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--sky); 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: 10px; padding: 3px; background: var(--white); }
.lang button { min-width: 36px; height: 30px; border-radius: 7px; font-size: 12.5px; font-weight: 600; opacity: .7; transition: all .2s; }
.lang button.on { background: var(--indigo); color: var(--white); opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; 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; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(42, 167, 224, .16), transparent 70%),
    radial-gradient(40% 50% at 0% 90%, rgba(35, 36, 107, .08), transparent 70%),
    var(--wash);
}
html[dir="rtl"] .hero { background:
    radial-gradient(50% 60% at 10% 10%, rgba(42, 167, 224, .16), transparent 70%),
    radial-gradient(40% 50% at 100% 90%, rgba(35, 36, 107, .08), transparent 70%),
    var(--wash); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 26px; padding: 8px 16px 8px 12px; border-radius: 100px; background: var(--white); border: 1px solid var(--line-2); box-shadow: 0 8px 20px -14px rgba(35, 36, 107, .4); }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 14.5px; padding: 8px 12px 8px 16px; }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(42, 167, 224, .2); }
.hero__title { display: grid; margin-bottom: 20px; color: var(--indigo); }
.hero__pre { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--sky-ink); }
html[dir="rtl"] .hero__pre { font-style: normal; font-weight: 500; }
.hero__name { font-size: clamp(3.3rem, 8vw, 6.4rem); line-height: .98; letter-spacing: -.03em; padding-bottom: .06em; }
html[dir="rtl"] .hero__name { font-size: clamp(3.1rem, 7.4vw, 6rem); line-height: 1.3; letter-spacing: 0; }
.hero__role { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 1.05rem; font-weight: 600; color: var(--indigo); margin-bottom: 22px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; background: var(--indigo); color: var(--white); font-size: .95rem; }
.hero__badge svg { width: 18px; height: 18px; color: var(--sky-2); }
.hero__text { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
/* Arc outrepassé andalou */
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 50% 50% 10px 10px / 42% 42% 10px 10px; padding: 12px; background: var(--white); box-shadow: 0 40px 80px -40px rgba(35, 36, 107, .55); }
.arch::before { content: ""; position: absolute; inset: -16px; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.arch__in, .arch__img { position: relative; width: 100%; height: 100%; border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px; overflow: hidden; }
.arch__in { display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 16% 12% 10%; color: var(--white);
  background: radial-gradient(80% 60% at 50% 20%, var(--indigo-2), var(--indigo) 60%, var(--indigo-3)); }
.arch__in::before { content: ""; position: absolute; inset: 0; background: var(--zellige); background-size: 44px; opacity: .09; }
.arch__in::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 38%; height: 18%; background: var(--sky); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
html[dir="rtl"] .arch__in::after { clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%); }
.arch__in > * { position: relative; z-index: 1; }
.arch__logo { width: clamp(100px, 13vw, 140px); height: auto; aspect-ratio: 1; color: var(--white); margin-bottom: 8px; }
.arch__ar { font-family: "El Messiri", serif; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.arch__fr { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--sky-2); letter-spacing: .02em; }
.arch__seal { margin-top: 14px; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 100px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.arch--photo .arch__in { display: none; }
.arch__img { object-fit: cover; animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

/* Carte de visite flottante (réplique) */
.bcard {
  position: absolute; inset-inline-start: -80px; bottom: -26px; width: 260px; overflow: hidden;
  display: grid; text-align: center; gap: 1px; direction: ltr;
  padding: 16px 16px 34px; border-radius: 10px; background: var(--white); color: var(--indigo); font-family: "Instrument Sans", sans-serif;
  box-shadow: 0 30px 60px -22px rgba(22, 23, 74, .55);
  transform: rotate(-5deg); animation: floaty 7s ease-in-out infinite;
}
html[dir="rtl"] .bcard { transform: rotate(5deg); animation-name: floaty-r; }
.bcard__rule { position: absolute; left: 14px; top: 14px; width: 4px; height: 38px; background: var(--sky); border-radius: 2px; }
.bcard strong { font-size: 14px; letter-spacing: .02em; }
.bcard em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--indigo); }
.bcard span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.bcard .bcard__band { position: absolute; inset: auto 0 0; height: 22px; background: var(--indigo); }
.bcard__band i { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; background: var(--sky); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
@keyframes floaty { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes floaty-r { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 90px); }
.facts li { display: grid; gap: 2px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line-2); border-radius: 14px; }
.facts li:first-child { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.facts b { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; color: var(--indigo); line-height: 1.15; }
.facts li:first-child b { color: var(--sky-2); }
.facts span { font-size: 14px; color: var(--muted); }
.facts li:first-child span { color: rgba(255, 255, 255, .75); }

/* ---------- Bandeau défilant ---------- */
.ticker { overflow: hidden; background: var(--indigo); color: var(--white); padding: 16px 0; direction: ltr; border-block: 4px solid var(--sky); }
.ticker__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ticker__track > div { display: flex; align-items: center; }
.ticker span { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; padding: 0 26px; white-space: nowrap; }
html[dir="rtl"] .ticker span { font-family: "El Messiri", serif; font-size: 1.25rem; }
.ticker i { width: 12px; height: 12px; flex: none; background: var(--sky); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.profile__media { position: relative; display: grid; padding: 30px 0 10px; }
.card3d {
  position: relative; z-index: 1; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 0;
  padding: 26px 26px 64px; border-radius: 14px; color: var(--indigo); background: var(--white);
  font-family: "Instrument Sans", sans-serif;
  box-shadow: 0 50px 80px -40px rgba(22, 23, 74, .55), 0 0 0 1px var(--line-2);
  transform: rotate(-2deg); transition: transform .6s var(--ease);
}
.card3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); }
.card3d__rule { position: absolute; left: 22px; top: 22px; width: 5px; height: 60px; border-radius: 3px; background: var(--sky); }
.card3d__logo { position: absolute; width: 58%; height: auto; aspect-ratio: 1; top: 8%; left: 21%; color: rgba(35, 36, 107, .05); }
.card3d > strong { position: relative; font-size: clamp(17px, 1.9vw, 22px); letter-spacing: .02em; }
.card3d > em { font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: .25em; color: var(--indigo); margin-bottom: 4px; }
.card3d > span:not([class]) { position: relative; font-size: clamp(13px, 1.3vw, 15px); color: var(--muted); line-height: 1.45; }
.card3d__rows { position: relative; display: grid; gap: 4px; margin-top: 18px; justify-self: stretch; text-align: left; font-size: clamp(13px, 1.35vw, 15.5px); font-weight: 500; }
.card3d__rows li { display: flex; align-items: center; gap: 10px; }
.card3d__rows svg { width: 22px; height: 22px; padding: 3px; border-radius: 5px; background: var(--indigo); color: var(--white); }
.card3d__rows span { word-break: break-all; }
.card3d__band { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 26% 8px 16px; background: var(--indigo); color: var(--white); font-size: 11.5px; text-align: left; line-height: 1.3; }
.card3d__band::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22%; background: var(--sky); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.card3d__band svg { width: 16px; height: 16px; flex: none; }
.card3d--back { position: absolute; z-index: 0; inset: 0 12% auto -2%; padding: 22px 22px 60px; transform: rotate(4deg) translateY(-18px); font-family: "El Messiri", serif; background: #fbfcff; }
html[dir="rtl"] .card3d--back { inset: 0 -2% auto 12%; transform: rotate(-4deg) translateY(-18px); }
.card3d--back strong { font-size: 22px; }
.card3d--back span:not([class]) { font-size: 15px; color: var(--muted); }
.card3d--back .card3d__band { padding: 0; }
.card3d--back .card3d__band::after { right: auto; left: 0; clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%); }
.profile__media:hover .card3d:not(.card3d--back) { transform: rotate(0deg) translateY(-6px); }
.profile__cap { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.profile__cap svg { width: 16px; height: 16px; color: var(--sky-ink); }
.profile__main > p:not(.label) { margin-bottom: 18px; }
.profile__main > p.lead { color: var(--text); }
.ledger { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 13.5px; font-weight: 600; color: var(--sky-ink); }
.ledger dd { font-size: 15px; font-weight: 500; }

/* ---------- Domaines (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tile--wide { grid-column: span 2; grid-row: span 2; background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.tile:nth-child(6) { grid-column: span 2; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(35, 36, 107, .45); border-color: rgba(42, 167, 224, .5); }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile__ic { width: 52px; height: 56px; display: grid; place-items: center; border-radius: 26px 26px 8px 8px; background: var(--mist); color: var(--indigo); }
.tile__ic svg { width: 24px; height: 24px; }
.tile__n { font-family: var(--f-display); font-size: 1.1rem; color: var(--sky-ink); }
.tile h3 { font-size: 1.45rem; color: var(--indigo); }
html[dir="rtl"] .tile h3 { font-size: 1.35rem; }
.tile p { font-size: 14.5px; color: var(--muted); }
.tile ul { display: grid; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 15px; }
.tile li { display: flex; gap: 10px; align-items: baseline; }
.tile li::before { content: ""; width: 9px; height: 9px; flex: none; transform: translateY(-1px); background: var(--sky); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tile .link { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.tile--wide h3 { font-size: clamp(2rem, 3.2vw, 2.7rem); color: var(--white); }
.tile--wide p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; max-width: 46ch; }
.tile--wide .tile__ic { background: var(--sky); color: var(--white); width: 62px; height: 68px; border-radius: 31px 31px 8px 8px; }
.tile--wide .tile__n, .tile--wide .link { color: var(--sky-2); }
.tile--wide::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .06; pointer-events: none; }
.tile--wide > * { position: relative; }

/* ---------- Degrés de juridiction ---------- */
.levels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.levels li { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 70px 28px 30px; border-radius: 120px 120px 16px 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); }
.levels li:nth-child(2) { padding-top: 100px; }
.levels li:nth-child(3) { padding-top: 130px; background: var(--white); color: var(--text); border-color: var(--white); }
.levels__n { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-size: 1.1rem; color: var(--sky-2); }
.levels li:nth-child(3) .levels__n { top: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--white); }
.levels h3 { font-size: 1.6rem; }
html[dir="rtl"] .levels h3 { font-size: 1.45rem; }
.levels p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.levels li:nth-child(3) h3 { color: var(--indigo); }
.levels li:nth-child(3) p { color: var(--muted); }
.levels li:nth-child(3) .tag { color: var(--sky-ink); background: rgba(42, 167, 224, .12); }
.levels__note { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px auto 0; max-width: 720px; padding: 14px 22px; border-radius: 12px; background: rgba(42, 167, 224, .14); color: var(--white); font-weight: 500; text-align: center; }
.levels__note svg { color: var(--sky-2); }

/* ---------- Le cabinet ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.gallery[hidden] { display: none; }
.gallery figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 120px 120px 14px 14px; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.place { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.place__plan { position: relative; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line-2); color: var(--indigo); direction: ltr; }
.plan { display: block; width: 100%; height: auto; }
.plan__road { fill: var(--mist); }
.plan__dash { stroke: var(--mist-2); stroke-width: 2; stroke-dasharray: 12 10; fill: none; }
.plan__court { fill: var(--mist); stroke: var(--line); }
.plan__line { fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linejoin: round; opacity: .55; }
.plan__office { fill: var(--indigo); }
.plan__arch { fill: none; stroke: var(--white); stroke-width: 2; opacity: .5; }
.plan__dot { fill: var(--sky); stroke: var(--white); stroke-width: 3; }
.plan__walk { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; animation: walk 1.4s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -18; } }
.plan__lbl { position: absolute; font-size: clamp(11px, 1.4vw, 13.5px); font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.plan__lbl--court { left: 9.5%; top: 38%; color: var(--indigo); background: var(--white); border: 1px solid var(--line); }
.plan__lbl--road { right: 4%; top: 44.5%; color: var(--muted); font-weight: 500; }
.plan__lbl--office { left: 72.6%; top: 83%; transform: translateX(-50%); color: var(--white); background: var(--sky); }
.place__list { display: grid; gap: 12px; }
.place__list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-2); border-radius: 14px; }
.place__list li:last-child { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.place__ic { width: 46px; height: 50px; display: grid; place-items: center; flex: none; border-radius: 23px 23px 6px 6px; background: var(--mist); color: var(--indigo); }
.place__list li:last-child .place__ic { background: var(--sky); color: var(--white); }
.place__ic svg { width: 22px; height: 22px; }
.place__list small { display: block; font-size: 12.5px; font-weight: 600; color: var(--sky-ink); letter-spacing: .04em; }
.place__list li:last-child small { color: var(--sky-2); }
.place__list b { font-weight: 600; font-size: 15.5px; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 30px 26px; background: var(--white); border-radius: 18px; border: 1px solid var(--line-2); }
.steps__n { display: grid; place-items: center; width: 50px; height: 56px; border-radius: 25px 25px 6px 6px; background: var(--indigo); color: var(--white); font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 18px; }
.steps li:last-child .steps__n { background: var(--sky); }
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--indigo); }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Rendez-vous ---------- */
.bk { position: relative; background: var(--wash); color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.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(--sky); 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: 600; font-size: 14px; transition: all .3s; }
.bk__steps li.active { color: var(--indigo); }
.bk__steps li.active span { background: var(--sky); border-color: var(--sky); color: var(--indigo); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.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: 600; color: var(--indigo); margin-bottom: 16px; letter-spacing: 0; line-height: 1.5; }
html[dir="rtl"] .bk__q { font-family: var(--f-body); font-weight: 600; }
.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: 100px; font-size: 14.5px; background: var(--white); transition: all .2s; }
.chip svg { width: 18px; height: 18px; color: var(--sky-ink); }
.chip:hover { border-color: var(--indigo); }
.chip.sel { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.chip.sel svg { color: var(--sky-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: 10px; background: var(--white); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--sky-ink); }
.mode b { display: block; font-size: 15.5px; color: var(--indigo); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--indigo); }
.mode.sel { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset; background: #eef8fd; }

.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.35rem; font-weight: 600; color: var(--indigo); text-transform: capitalize; }
.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: 600; }
.day { aspect-ratio: 1; border-radius: 50%; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.day:hover:not(.off) { background: var(--mist); }
.day.off { opacity: .28; cursor: default; }
.day.sel { background: var(--indigo); color: var(--white); }
.slots__date { font-family: var(--f-display); font-size: 1.25rem; color: var(--indigo); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 10px; 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: 600; 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: 8px; font-size: 14px; font-weight: 500; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--indigo); }
.slot.sel { background: var(--indigo); border-color: var(--indigo); 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: 600; color: var(--indigo); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  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(--sky); box-shadow: 0 0 0 3px rgba(42, 167, 224, .22); }
.field input.invalid { border-color: #b0412e; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; 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: 500; transition: all .2s; }
.seg input:checked + span { background: var(--indigo); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--sky); 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(--sky-ink); 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(--indigo); }
.bk__err { grid-column: 1 / -1; grid-row: 2; color: #b0412e; font-size: 14px; font-weight: 500; min-height: 0; }
.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; }
.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: 100px; background: var(--mist); font-size: 14px; font-weight: 500; }
.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: 18px; background: var(--indigo); color: var(--white); }
.urgent::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 30%; height: 10px; background: var(--sky); }
.urgent strong { display: block; font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 6px; }
.urgent p { color: rgba(255, 255, 255, .72); 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(--sky-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: 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.3rem; color: var(--indigo); }
html[dir="rtl"] .qa h3 { font-size: 1.2rem; }
.qa__x { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 10px; transition: all .3s; color: var(--indigo); }
.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(--sky); color: var(--white); border-color: var(--sky); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%); }
.qa p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); 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(--sky-ink); margin-top: 3px; }
.cards small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.cards a, .cards span { font-weight: 500; }
.cards a:hover { color: var(--sky-ink); }
.contact__map { position: relative; min-height: 460px; border-radius: 160px 160px 18px 18px; overflow: hidden; background: var(--mist-2); border: 10px solid var(--white); box-shadow: 0 40px 70px -40px rgba(35, 36, 107, .5); }
.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: 10px; background: var(--indigo); color: var(--white); font-size: 14px; font-weight: 600; }
.contact__dir svg { width: 16px; height: 16px; color: var(--sky-2); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--indigo-3); color: rgba(255, 255, 255, .72); padding: clamp(60px, 8vw, 100px) 0 110px; border-top: 6px solid var(--sky); }
.footer__top { display: flex; align-items: center; gap: 24px; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__logo { width: 76px; height: 76px; color: var(--sky-2); }
.footer__word { flex: 1; font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); line-height: 1.2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h3 { font-family: var(--f-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 16px; font-weight: 600; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 14.5px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--sky-2); }
.brand--light { color: var(--white); margin-bottom: 18px; }
.brand--light .brand__logo { background: var(--sky); }
.brand--light .brand__txt small { color: var(--sky-2); }
.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; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-row: auto; }
  .tile:nth-child(6) { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { 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(--white); font-size: 1.4rem; font-family: var(--f-display);
    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: 15px; color: var(--sky-ink); }
  .menu-open .header::before { background: var(--white); }
  .hero__grid, .profile, .faq, .contact, .place { grid-template-columns: 1fr; }
  .sec__head--split { grid-template-columns: 1fr; gap: 0; }
  .sec__head--split .h2 { margin-bottom: 22px; }
  .hero__media { width: min(80%, 360px); margin-top: 10px; }
  .bcard { inset-inline-start: -40px; bottom: 20px; width: 220px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .faq__side { position: static; }
  .levels { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .levels li, .levels li:nth-child(2), .levels li:nth-child(3) { padding-top: 70px; }
  .bk__date { grid-template-columns: 1fr; }
  .contact__map { min-height: 380px; border-radius: 120px 120px 18px 18px; }
  .profile__media { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt small { display: none; }
  .brand__logo { width: 40px; height: 44px; }
  .lang button { min-width: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { width: 78%; }
  .hero__media { margin-bottom: 36px; }
  .arch__seal { display: none; }
  .bcard { width: 190px; padding: 12px 10px 30px; inset-inline-start: -22px; bottom: -44px; }
  .bcard strong { font-size: 12px; }
  .bcard span { font-size: 9.5px; }
  .facts { gap: 10px; }
  .facts li { padding: 16px; }
  .facts span { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .card3d { padding: 20px 16px 60px; }
  .card3d__rule { left: 12px; top: 16px; height: 44px; }
  .card3d__band { font-size: 10px; }
  .steps { grid-template-columns: 1fr; }
  .plan__lbl--road { display: none; }
  .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; }
  .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(22, 23, 74, .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(--sky); }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 400px) {
  .header__in, .header__end { gap: 8px; }
  .brand { gap: 8px; }
  .brand__txt strong { font-size: 1.05rem; }
  .lang button { min-width: 28px; font-size: 12px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
  .burger.open span:first-child, .burger.open span:last-child { top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
