/* =========================================================
   MAÎTRE ZOUHAIR EL AJRAOUI — identité « Carte de visite »
   Papier rosé grainé, encre anthracite, double filet (gras + fin).
   Arabe : Noto Kufi Arabic (titres) / Tajawal (texte)
   Français : Playfair Display (titres) / Manrope (texte)
   ========================================================= */
:root {
  --ink: #24211f;          /* encre anthracite de la carte */
  --ink-2: #2c2826;
  --ink-3: #37312e;
  --cream: #fcf7f2;
  --sand: #f3e4d9;         /* papier rosé de la carte */
  --sand-2: #e5cfc1;
  --text: #2a2523;
  --mute: #6c625d;
  --mute-l: #bcaea6;
  --gold: #dcb7a3;         /* rose poudré (accent sur fond sombre) */
  --gold-l: #f4e0d3;
  --gold-d: #8a5846;       /* brun rosé, lisible sur ivoire */
  --copper: #a8735e;
  --grad: linear-gradient(100deg, #e7c8b6 0%, #f4e0d3 50%, #e7c8b6 100%);
  --grad-soft: linear-gradient(135deg, #f6e6db, #e3c2b0);
  --line: rgba(36, 33, 31, .12);
  --line-l: rgba(220, 183, 163, .2);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --f-d: "Noto Kufi Arabic", "Playfair Display", sans-serif;
  --f-b: "Tajawal", "Manrope", system-ui, sans-serif;
  --f-ld: "Playfair Display", "Noto Kufi Arabic", serif;
  --f-lb: "Manrope", "Tajawal", system-ui, sans-serif;
  --r: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
  --gut: clamp(18px, 4vw, 40px);
  --header: 82px;
  --shadow: 0 30px 60px -28px rgba(36, 33, 31, .45);
}
html[lang^="fr"] { --f-d: var(--f-ld); --f-b: var(--f-lb); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 1.07rem/1.85 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang^="fr"] body { font-size: 1rem; line-height: 1.75; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-d); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: fixed; top: -60px; inset-inline-start: 12px; z-index: 1200; background: var(--ink); color: var(--gold-l); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.gold-text, .h2 em, .hero__title em, .rdv h2 em {
  font-style: normal; background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.7em; border-radius: 4px; border: 1.5px solid transparent;
  font: 700 .98rem/1 var(--f-b); white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--grad); background-size: 200% 100%; color: var(--ink); box-shadow: 0 12px 28px -12px rgba(138, 88, 70, .8); }
.btn--gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 18px 36px -14px rgba(138, 88, 70, .95); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--gold-l); }
.btn--ink { background: var(--ink); color: var(--gold-l); }
.btn--ink:hover { box-shadow: 0 16px 30px -14px rgba(36, 33, 31, .8); }
.btn--ink-line { border-color: var(--ink); color: var(--ink); }
.btn--ink-line:hover { background: var(--ink); color: var(--gold-l); }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: .9rem; }

/* ---------- Bandeau infos ---------- */
.topbar { background: var(--ink); color: var(--mute-l); font-size: .85rem; }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { color: var(--gold); width: 15px; height: 15px; }
.topbar__fax { margin-inline-start: auto; }
.topbar__item:last-child { color: var(--gold-l); font-weight: 700; }
a.topbar__item:hover { color: #fff; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 1000; height: var(--header); background: rgba(252, 247, 242, .9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s, height .4s var(--ease); }
.header.scrolled { --header: 70px; border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(36,33,31,.5); }
.header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .6s var(--ease); }
.header.scrolled::after { transform: scaleX(1); }
html[dir="ltr"] .header { --origin: left; }
.header__in { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__emb { width: 62px; height: 62px; color: var(--gold-d); transition: transform .6s var(--ease); }
.brand:hover .brand__emb { transform: rotate(-8deg) scale(1.05); }
.brand__txt { display: grid; line-height: 1.15; direction: ltr; text-align: start; }
html[dir="rtl"] .brand__txt { text-align: right; }
.brand__txt strong { font: 700 1.5rem/1.1 var(--f-ld); color: #000; white-space: nowrap; }
.brand__txt strong b { font-weight: 700; color: #000; letter-spacing: .02em; }
.brand__txt small { font: 700 .86rem/1.5 var(--f-b); color: #1a1a1a; direction: inherit; }
html[dir="rtl"] .brand__txt small { direction: rtl; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 4px; font-weight: 500; font-size: .96rem; color: var(--text); transition: background .3s, color .3s; }
.nav a:hover { background: var(--sand); }
.nav a.active { color: var(--gold-d); }
.nav a.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.header__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 4px; background: var(--sand); }
.lang button { min-width: 44px; height: 34px; padding: 0 10px; border-radius: 4px; font-size: .84rem; font-weight: 700; color: var(--mute); transition: background .3s, color .3s; }
.lang button.on { background: var(--ink); color: var(--gold-l); }
.lang--menu { display: none; }
.brand { min-width: 0; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; inset-inline: 14px; height: 1.6px; border-radius: 2px; background: var(--gold-l); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Animations ---------- */
.js .up { opacity: 0; transform: translateY(24px); }
.js.ready .up { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(.1s + var(--i, 0) * .12s); }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s 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; }

/* ---------- Héros ---------- */
.hero { position: relative; background:
  radial-gradient(900px 500px at 85% 10%, rgba(244, 214, 140, .28), transparent 60%),
  radial-gradient(700px 500px at 5% 80%, rgba(196, 152, 131, .12), transparent 60%), var(--cream); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: clamp(50px, 7vw, 90px) clamp(40px, 5vw, 70px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 4px; background: #fff; border: 1px solid var(--sand-2); font-weight: 700; font-size: .9rem; color: var(--gold-d); margin-bottom: 26px; box-shadow: 0 8px 20px -16px rgba(36,33,31,.5); }
html[dir="rtl"] .kicker { padding: 6px 8px 6px 16px; }
.kicker svg { width: 34px; height: 34px; }
.hero__title { font: 700 clamp(2.3rem, 4.6vw, 3.8rem)/1.25 var(--f-d); color: var(--ink); margin-bottom: 22px; letter-spacing: -.01em; }
html[lang^="fr"] .hero__title { font-weight: 600; line-height: 1.12; }
.hero__title > span { display: block; }
.hero__text { max-width: 560px; font-size: 1.12rem; color: var(--mute); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li { padding: 6px 14px; border-radius: 4px; background: var(--sand); font-size: .88rem; font-weight: 500; color: var(--text); }

/* la carte de visite en 3D */
.hero__card { perspective: 1400px; }
.bcard { --rx: 6deg; --ry: -14deg; position: relative; aspect-ratio: 1.75; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.js.ready .bcard { animation: float 7s ease-in-out 1.4s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.bcard__face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 80px -40px rgba(36,33,31,.65), 0 2px 0 rgba(255,255,255,.6) inset; direction: ltr; }
.bcard__top { position: absolute; inset: 0 0 auto; height: 52%; display: flex; align-items: flex-start; gap: 6%; padding: 6% 6% 0; }
.bcard__emb { position: relative; width: 25%; margin-top: -1%; aspect-ratio: 1; color: var(--gold-d); flex: none; }
.bcard__emb svg { width: 100%; height: 100%; }
.bcard__emb span { position: absolute; top: -4%; inset-inline: 0; text-align: center; font: italic 700 clamp(.6rem, 1.1vw, .85rem) var(--f-ld); color: var(--copper); }
.bcard__id { flex: 1; text-align: center; padding-top: 2%; font-family: var(--f-ld); color: var(--ink); line-height: 1.35; }
.bcard__id strong { display: block; font-weight: 700; font-size: clamp(1rem, 2vw, 1.55rem); color: #000; margin-bottom: 4px; }
.bcard__id span { display: block; font-size: clamp(.75rem, 1.25vw, 1rem); font-weight: 600; }
.bcard__wave { position: absolute; inset: 38% 0 auto; width: 100%; height: 34%; }
.bcard__bottom { position: absolute; inset: auto 0 0; height: 32%; background: var(--ink); color: #fff; padding: 0 6% 4%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font: 600 clamp(.55rem, .95vw, .78rem)/1.4 var(--f-lb); }
.bcard__bottom p { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bcard__bottom svg { color: var(--copper); width: 1.2em; height: 1.2em; }
.bcard__rdv { font: italic 700 clamp(.7rem, 1.2vw, .98rem) var(--f-ld) !important; color: var(--gold-l); margin-bottom: 4px !important; }
.bcard__sep { width: 14px; }
.bcard__shine { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.35), transparent 40%); mix-blend-mode: overlay; pointer-events: none; }

.hero__wave { position: relative; height: clamp(90px, 13vw, 190px); margin-top: -2vw; --wave-ink: var(--ink); }
.hero__wave svg { width: 100%; height: 100%; display: block; }
.facts-band { background: var(--ink); color: #fff; margin-top: -1px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 8px 46px; }
.facts li { display: grid; gap: 2px; padding: 12px 22px; text-align: center; }
.facts li + li { border-inline-start: 1px solid var(--line-l); }
.facts b { font: 700 1.6rem/1.3 var(--f-d); color: var(--gold-l); }
.facts span { font-size: .88rem; color: var(--mute-l); }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(70px, 9vw, 120px); }
.sec--dark { background: var(--ink); color: #f3ebdd; }
.sec--sand { background: var(--sand); }
.sec__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec__head--start { text-align: start; margin-inline: 0; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; text-align: start; }
.sec__head--split .sec__lead { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 .9rem var(--f-b); color: var(--gold-d); }
html[lang^="fr"] .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.sec__head--start .eyebrow::after, .sec__head--split .eyebrow::after, .about__copy .eyebrow::after { display: none; }
.sec--dark .eyebrow { color: var(--gold); }
.eyebrow--ink { color: var(--ink) !important; }
.eyebrow--ink::before, .eyebrow--ink::after { background: var(--ink); }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; color: var(--ink); }
.sec--dark .h2 { color: #fff; }
.sec__lead { color: var(--mute); font-size: 1.08rem; }
.sec--dark .sec__lead { color: var(--mute-l); }
.lead { font-size: 1.15em; color: var(--text); }

/* ---------- Spécialités ---------- */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; text-align: start;
  border-radius: var(--r); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-l);
  overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.dcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); opacity: 0; transition: opacity .45s var(--ease); }
.dcard:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 50px -30px rgba(196,152,131,.6); }
.dcard:hover::before { opacity: 1; }
.dcard__n { position: absolute; top: 16px; inset-inline-end: 20px; font: 700 2.6rem/1 var(--f-ld); color: transparent; -webkit-text-stroke: 1px rgba(196,152,131,.4); transition: -webkit-text-stroke-color .45s; }
.dcard:hover .dcard__n { -webkit-text-stroke-color: rgba(36,33,31,.35); }
.dcard__ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: rgba(196,152,131,.12); color: var(--gold-l); transition: background .45s, color .45s; }
.dcard__ic svg { width: 30px; height: 30px; }
.dcard:hover .dcard__ic { background: var(--ink); color: var(--gold-l); }
.dcard h3 { font-size: 1.22rem; color: #fff; transition: color .45s; }
.dcard p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--mute-l); transition: color .45s; flex: 1; }
.dcard__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--gold); transition: color .45s, gap .35s; }
.dcard:hover h3, .dcard:hover p, .dcard:hover .dcard__more { color: var(--ink); }
.dcard:hover .dcard__more { gap: 14px; }
[dir="rtl"] .dcard__more svg, [dir="rtl"] .btn .arr { transform: scaleX(-1); }
.dcard--hl { grid-column: span 2; }

/* fenêtre de détail */
.dlg { width: min(860px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 22px; background: var(--cream); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); }
.dlg::backdrop { background: rgba(36, 33, 31, .72); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: var(--ink); color: #fff; }
.dlg__head .dcard__ic { flex: none; }
.dlg__head h3 { font-size: 1.45rem; color: #fff; }
.dlg__head small { display: block; color: var(--gold); font: italic 500 .95rem var(--f-ld); }
.dlg__head small[lang="ar"] { font: 500 1rem var(--f-d); font-style: normal; }
.dlg__x { margin-inline-start: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-l); color: var(--gold-l); transition: background .3s, transform .4s var(--ease); }
.dlg__x:hover { background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.dlg__x svg { width: 20px; height: 20px; }
.dlg__wave { display: block; width: 100%; height: 34px; margin-top: -1px; transform: scaleY(-1); --wave-ink: var(--ink); }
.dlg__body { padding: 10px 30px 30px; }
.dlg__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 18px 0 22px; }
.dlg__list li { display: flex; gap: 10px; font-size: .96rem; line-height: 1.6; }
.dlg__list svg { width: 20px; height: 20px; margin-top: .2em; padding: 3px; border-radius: 50%; background: var(--grad-soft); color: var(--ink); }
.dlg__approach { padding: 20px 22px; border-radius: 14px; background: var(--sand); border-inline-start: 4px solid var(--gold); margin-bottom: 22px; }
.dlg__approach b { display: block; font-family: var(--f-d); font-size: 1.15rem; margin-bottom: 4px; color: var(--gold-d); }
.dlg__approach p { margin: 0; }

/* vagues de transition */
.wave-flip { height: clamp(70px, 10vw, 150px); background: var(--cream); --wave-ink: var(--ink); }
.wave-flip svg { width: 100%; height: 100%; display: block; transform: scale(-1, -1); }
.wave-top { height: clamp(70px, 10vw, 150px); background: var(--cream); --wave-ink: var(--ink); margin-bottom: -1px; }
.wave-top svg { width: 100%; height: 100%; display: block; transform: scaleX(-1); }

/* ---------- L'avocat ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.arch { position: relative; }
.arch__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 4px 999px 22px 22px; overflow: hidden; padding: 10px; background: var(--grad-soft); box-shadow: var(--shadow); }
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 4px 999px 14px 14px; }
.arch::before { content: ""; position: absolute; inset: -18px -18px 30px; border: 1.5px solid var(--gold); border-radius: 4px 999px 30px 30px; opacity: .45; z-index: -1; }
.arch__badge { position: absolute; bottom: 26px; inset-inline-start: -22px; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.arch__badge svg { width: 30px; height: 30px; color: var(--gold); }
.arch__badge b { display: block; font: 700 1.2rem/1.2 var(--f-lb); color: var(--gold-l); direction: ltr; }
.arch__badge small { font-size: .84rem; color: var(--mute-l); }
.about__name { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--ink); line-height: 1.2; }
.about__alt { font: italic 500 1.35rem var(--f-ld); color: var(--gold-d); margin: 4px 0 18px; }
html[lang^="fr"] .about__alt { font: 600 1.4rem var(--f-d); font-family: "El Messiri", serif; font-style: normal; }
.about__role { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 8px; border-radius: 4px; background: var(--sand); font-weight: 700; color: var(--ink); margin-bottom: 24px; }
html[dir="rtl"] .about__role { padding: 6px 8px 6px 18px; }
.about__role svg { width: 34px; height: 34px; color: var(--gold-d); }
.about__copy > p:not(.eyebrow):not(.about__alt):not(.about__role):not(.lead) { color: var(--mute); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 26px; }
.values li { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--sand-2); transition: transform .35s var(--ease), border-color .35s; }
.values li:hover { transform: translateY(-4px); border-color: var(--gold); }
.values b { display: flex; align-items: center; gap: 8px; font-family: var(--f-d); font-size: 1.08rem; color: var(--ink); }
.values b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-soft); }
.values span { display: block; margin-top: 4px; font-size: .84rem; line-height: 1.55; color: var(--mute); }
.quote { margin: clamp(60px, 8vw, 100px) auto 0; max-width: 900px; padding: clamp(30px, 5vw, 50px); text-align: center; border-radius: 24px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--grad); }
.quote__m { display: block; font: 400 3.6rem/1 var(--f-ld); color: var(--gold); margin-bottom: 6px; }
.quote p { font: 500 clamp(1.25rem, 2.3vw, 1.75rem)/1.6 var(--f-d); margin: 0; }
html[lang^="fr"] .quote p { font-style: italic; }

/* ---------- Services ---------- */
.svcs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.svc { position: relative; padding: 30px 24px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--sand-2); transition: transform .45s var(--ease), box-shadow .45s, background .45s, color .45s; }
.svc:hover { transform: translateY(-8px); background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.svc__n { font: 700 .95rem var(--f-lb); color: var(--gold-d); }
.svc__ic { width: 64px; height: 64px; margin: 18px 0 20px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-soft); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(138,88,70,.9); transition: transform .5s var(--ease); }
.svc__ic svg { width: 30px; height: 30px; }
.svc:hover .svc__ic { transform: rotate(-10deg) scale(1.06); }
.svc h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); transition: color .45s; }
.svc p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--mute); transition: color .45s; }
.svc:hover h3 { color: var(--gold-l); }
.svc:hover p { color: var(--mute-l); }
.svc:hover .svc__n { color: var(--gold); }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: st; }
.steps::before { content: ""; position: absolute; top: 36px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .6; }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps__n { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); font: 700 1.5rem var(--f-ld); color: var(--gold-d); transition: background .4s, color .4s, transform .5s var(--ease); }
.steps li:hover .steps__n { background: var(--ink); color: var(--gold-l); border-color: var(--ink); transform: scale(1.08); }
.steps li:first-child .steps__n { background: var(--grad-soft); color: var(--ink); border-color: transparent; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.steps p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--mute); }

/* ---------- Bandeau rendez-vous ---------- */
.rdv { position: relative; padding-block: clamp(60px, 7vw, 90px); background: var(--grad); background-size: 200% 100%; color: var(--ink); overflow: hidden; }
.rdv::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' viewBox='0 0 600 120'%3E%3Cpath d='M0 70C120 20 260 20 380 60s170 40 220 0' fill='none' stroke='%2324211f' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 600px 120px; }
.rdv__in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.rdv__clock { display: grid; justify-items: center; gap: 6px; padding: 30px 36px; border-radius: 24px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.rdv__clock small { font-weight: 700; color: var(--mute-l); font-size: .9rem; }
.rdv__clock p { margin: 0; display: flex; align-items: center; gap: 14px; }
.rdv__clock b { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--f-lb); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rdv__clock i { width: 26px; height: 2px; background: var(--gold); }
.rdv h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.rdv h2 em { background: none; -webkit-text-fill-color: currentColor; color: #fff; text-shadow: 0 2px 14px rgba(36,33,31,.25); }
.rdv__copy > p:not(.eyebrow) { max-width: 600px; font-size: 1.08rem; color: #3d322d; }
.rdv__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Galerie ---------- */
.gal { columns: 3; column-gap: 14px; }
.gal__item { position: relative; display: block; width: 100%; margin-bottom: 14px; border-radius: 16px; overflow: hidden; break-inside: avoid; background: var(--ink); box-shadow: 0 20px 40px -30px rgba(36,33,31,.7); }
.gal__item img { width: 100%; transition: transform .8s var(--ease), opacity .5s; }
.gal__item span { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; text-align: start; font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(transparent, rgba(36,33,31,.85)); transform: translateY(6px); opacity: .92; transition: transform .5s var(--ease), opacity .5s; }
.gal__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold); opacity: 0; transition: opacity .4s; }
.gal__item:hover img { transform: scale(1.05); }
.gal__item:hover span { transform: none; opacity: 1; }
.gal__item:hover::after { opacity: 1; }
.lbox { max-width: min(960px, calc(100% - 24px)); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--ink); overflow: hidden; }
.lbox::backdrop { background: rgba(36, 33, 31, .85); backdrop-filter: blur(4px); }
.lbox[open] { animation: dlgIn .45s var(--ease); }
.lbox img { display: block; max-width: 100%; max-height: calc(92vh - 56px); margin: 0 auto; }
.lbox p { margin: 0; padding: 14px 20px; color: var(--gold-l); font-weight: 700; text-align: center; }
.lbox__x { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(36,33,31,.7); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq .sec__head { position: sticky; top: calc(var(--header) + 30px); }
.qa { border-radius: 16px; background: #fff; border: 1px solid var(--sand-2); margin-bottom: 12px; transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: var(--gold); box-shadow: 0 20px 40px -30px rgba(138,88,70,.7); }
.qa summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { flex: 1; font-size: 1.12rem; color: var(--ink); }
.qa__x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--gold-d); transition: transform .45s var(--ease), background .3s; }
.qa__x svg { width: 18px; height: 18px; }
.qa[open] .qa__x { transform: rotate(45deg); background: var(--grad-soft); color: var(--ink); }
.qa__a { padding: 0 22px 20px; color: var(--mute); }
.qa[open] .qa__a { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }
.qa__a p { margin: 0; }

/* ---------- Contact ---------- */
.contact-sec { background: var(--ink); }
.contact-sec .sec { padding-top: clamp(30px, 4vw, 50px); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.cinfo { display: grid; gap: 10px; margin-bottom: 16px; }
.cinfo li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-l); }
.cinfo__ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); color: var(--ink); }
.cinfo__ic svg { width: 22px; height: 22px; }
.cinfo small { display: block; font-size: .8rem; color: var(--gold); font-weight: 700; }
.cinfo p { margin: 0; color: #f3ebdd; line-height: 1.5; }
.cinfo a:hover { color: var(--gold-l); }
.cinfo__mail { word-break: break-all; }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-l); }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.9) contrast(1.02); }
.map__go { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; background: var(--ink); color: var(--gold-l); font-weight: 700; font-size: .86rem; transition: background .3s, color .3s; }
.map__go:hover { background: var(--gold); color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--cream); color: var(--text); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad); }
.form__t { grid-column: 1 / -1; font-size: 1.6rem; color: var(--ink); }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
.field--half { grid-column: span 1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: #fff; outline: 0; transition: border-color .3s, box-shadow .3s; }
.field input::placeholder, .field textarea::placeholder { color: #b3a690; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196,152,131,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238a5846' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field .invalid { border-color: #c0532d; }
.form__err { grid-column: 1 / -1; min-height: 1.4em; margin: 0; font-size: .92rem; font-weight: 700; color: #b0451f; }
.form__err.ok { padding: 12px 16px; border-radius: 12px; background: var(--sand); color: var(--gold-d); }
.form__err.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form__btn { grid-column: 1 / -1; width: 100%; }
.form__note { grid-column: 1 / -1; margin: 0; font-size: .82rem; line-height: 1.6; color: var(--mute); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--mute-l); padding: 10px 0 30px; border-top: 1px solid var(--line-l); }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 40px 0 34px; border-bottom: 1px solid var(--line-l); }
.brand--foot .brand__emb { color: var(--gold); width: 70px; height: 70px; --robe: #1a1817; }
.brand--foot strong, .brand--foot strong b { color: #fff; }
.brand--foot strong b { color: var(--gold-l); }
.brand--foot small { color: var(--mute-l); font-weight: 500; }
.footer__motto { margin: 0; font: 600 1.25rem var(--f-d); font-family: "El Messiri", serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 36px; padding: 40px 0; }
.footer h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; font-size: .94rem; }
.footer li a:hover { color: var(--gold-l); }
#footDomains { columns: 2; column-gap: 20px; }
.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: .84rem; }

/* ---------- Mobile / WhatsApp ---------- */
.mbar { display: none; }
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 950; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .35s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* =========================================================
   Identité « carte » : double filet, papier grainé, monogramme
   ========================================================= */
body { background: var(--cream) var(--paper); }
.sec--sand, .hero { background-image: var(--paper); }
.sec--sand { background-color: var(--sand); }
.hero { background: var(--paper), radial-gradient(900px 500px at 85% 10%, rgba(229, 196, 178, .45), transparent 60%), var(--cream); }

/* double filet de la carte : trait gras + trait fin */
.rule { --c: var(--ink); height: 26px; background:
  linear-gradient(var(--c) 0 0) 0 8px / 100% 4px no-repeat,
  linear-gradient(var(--c) 0 0) 0 16px / 100% 1.5px no-repeat; }
.hero__wave { height: 30px; margin: 0; background-color: transparent; }
.wave-flip, .wave-top { height: 44px; background-color: var(--cream); background-position: 0 18px, 0 26px; }
.wave-top { background-color: var(--cream); }
.rule--dlg { --c: var(--ink); height: 14px; background-position: 0 0, 0 8px; margin-bottom: 6px; }

/* titres : accent rosé à plat, sans dégradé doré */
.h2 em, .hero__title em { background: none; -webkit-text-fill-color: currentColor; color: var(--gold-d); }
.sec--dark .h2 em { color: var(--gold); }
.rdv h2 em { color: var(--ink); text-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.eyebrow::before, .eyebrow::after { width: 30px; height: 5px; border-radius: 0; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 4px / 100% 1px no-repeat; }
h1, h2, h3, .hero__title { letter-spacing: 0; }
html[lang^="ar"] .hero__title { font-weight: 800; line-height: 1.45; font-size: clamp(2rem, 4vw, 3.3rem); }
html[lang^="ar"] .h2 { font-weight: 700; line-height: 1.5; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }

/* boutons : anthracite plein, comme l'encre de la carte */
.btn--gold { background: var(--ink); color: var(--gold-l); box-shadow: 0 12px 28px -14px rgba(36,33,31,.7); }
.btn--gold:hover { box-shadow: 0 18px 36px -14px rgba(36,33,31,.8); }
.btn--gold::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); }
.sec--dark .btn--gold, .contact .btn--gold, .dlg .btn--gold { background: var(--gold-l); color: var(--ink); }
.dlg .btn--gold { background: var(--ink); color: var(--gold-l); }
.header::after { background: var(--ink); height: 1px; }

/* en-tête : monogramme encadré d'un double filet */
.brand__mono { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; font: 800 1.6rem/1 "Noto Kufi Arabic", sans-serif; color: var(--ink); background: var(--sand); transition: transform .5s var(--ease); }
.brand:hover .brand__mono { transform: rotate(-4deg); }
.brand__txt { direction: rtl; text-align: start; }
.brand__txt strong { font: 800 1.35rem/1.3 "Noto Kufi Arabic", sans-serif; color: var(--ink); }
.brand__txt small { font: 600 .8rem/1.5 var(--f-b); color: var(--mute); }
html[dir="ltr"] .brand__txt small { direction: ltr; }
.brand--foot .brand__mono { color: var(--gold-l); border-color: var(--gold); outline-color: var(--gold); background: transparent; }
.brand--foot .brand__txt strong { color: #fff; }
.footer__motto { background: none; -webkit-text-fill-color: currentColor; color: var(--gold); font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.05rem; }

.kicker svg, .about__role svg { width: 22px; height: 22px; color: var(--gold-d); margin-inline: 6px 0; }
.kicker { border-radius: 4px; border-color: var(--sand-2); }

/* ---------- la carte de visite (recréée) ---------- */
.bcard { aspect-ratio: 1.6; }
.bcard__face {
  direction: rtl; background-color: #f4e2d6; background-image: var(--paper), radial-gradient(120% 90% at 30% 20%, #f9ece3, #efd8ca 70%);
  border-radius: 4px; box-shadow: 0 50px 80px -40px rgba(36,33,31,.6), 0 1px 0 rgba(255,255,255,.7) inset;
  color: #2f2c2b; font-family: "Noto Kufi Arabic", sans-serif; text-align: center;
}
.bcard__id { position: absolute; inset: 9% 6% auto; display: grid; justify-items: center; gap: .3em; }
.bcard__id strong { font-weight: 800; font-size: clamp(1.3rem, 2.7vw, 2.1rem); line-height: 1.3; letter-spacing: .04em; }
.bcard__job { font-weight: 800; font-size: clamp(1rem, 1.9vw, 1.45rem); }
.bcard__cass { font-weight: 800; font-size: clamp(1rem, 2.1vw, 1.6rem); }
.bcard__rule { position: absolute; inset: 64% 0 auto; height: 14px; background:
  linear-gradient(#2f2c2b 0 0) 0 0 / 100% 4px no-repeat, linear-gradient(#2f2c2b 0 0) 0 8px / 100% 1.6px no-repeat; }
.bcard__bottom { position: absolute; inset: 72% 4% 0; height: auto; padding: 0; background: none; color: inherit; display: grid; justify-content: stretch; flex-direction: unset; align-content: start; gap: .5em; font: 700 clamp(.62rem, 1.15vw, .92rem)/1.5 "Noto Kufi Arabic", sans-serif; }
.bcard__bottom p { margin: 0; }
.bcard__bottom .ltr { font-family: var(--f-lb); font-weight: 800; letter-spacing: .02em; }
.bcard__shine { background: radial-gradient(500px circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.4), transparent 40%); }

/* bandeau chiffres */
.facts b { color: var(--gold-l); font-family: var(--f-d); font-size: 1.35rem; }
.facts li:last-child b { direction: ltr; font-family: var(--f-lb); }

/* spécialités */
.dcard { border-radius: var(--r); background: var(--ink-2); }
.dcard::before { background: var(--sand) var(--paper); }
.dcard:hover { box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.dcard__ic { border-radius: 4px; }
.dcard:first-child { border-color: var(--gold); }

/* l'avocat : cadre rectangulaire à double filet */
.arch__frame { border-radius: 4px; padding: 0; border: 5px solid var(--ink); box-shadow: 0 0 0 4px var(--cream), 0 0 0 5.5px var(--ink), var(--shadow); }
.arch__frame img { border-radius: 0; filter: grayscale(1) contrast(1.05); }
.arch::before { display: none; }
.arch__badge { border-radius: 4px; }
.arch__badge b { direction: inherit; font-family: var(--f-d); }
.values li, .qa, .svc, .form, .cinfo li, .map, .quote, .rdv__clock, .dlg, .lbox { border-radius: var(--r); }
.values b::before { border-radius: 0; background: var(--gold-d); width: 8px; height: 8px; }
.quote::after { height: 10px; background: linear-gradient(var(--gold) 0 0) 0 0 / 100% 4px no-repeat, linear-gradient(var(--gold) 0 0) 0 7px / 100% 1.5px no-repeat; inset: auto 0 14px; }
.svc__ic { border-radius: 4px; background: var(--sand); box-shadow: none; border: 1px solid var(--sand-2); }
.steps__n { border-radius: 4px; }
.steps li:first-child .steps__n { background: var(--ink); color: var(--gold-l); }
.steps::before { background: repeating-linear-gradient(90deg, var(--gold-d) 0 8px, transparent 8px 16px); opacity: .4; }
.qa[open] .qa__x { background: var(--ink); color: var(--gold-l); }
.qa__x { border-radius: 4px; }
.dlg__list svg { border-radius: 2px; background: var(--sand); color: var(--gold-d); }
.dlg__approach { border-radius: 4px; border-inline-start-color: var(--ink); }

/* bandeau rendez-vous : papier rosé */
.rdv { background: var(--sand) var(--paper); }
.rdv::before { display: none; }
.rdv__in { border-block: 4px solid var(--ink); padding-block: 34px; position: relative; }
.rdv__in::after { content: ""; position: absolute; inset: auto 0 -10px; height: 1.5px; background: var(--ink); }
.rdv__clock { gap: 16px; justify-items: start; min-width: 260px; }
.rdv__clock div { display: grid; gap: 2px; }
.rdv__clock small { color: var(--gold); }
.rdv__clock a, .rdv__clock span { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--f-lb); color: #fff; letter-spacing: .02em; }
.rdv__clock a:hover { color: var(--gold-l); }

/* contact */
.cinfo__ic { border-radius: 4px; background: var(--gold-l); }
.cinfo p.ltr { display: block; text-align: start; }
.contact__main { display: grid; gap: 16px; }
.contact--noform .map { aspect-ratio: auto; height: 100%; min-height: 380px; }
.contact--noform .contact__main { align-self: stretch; }
.visit { padding: 22px; border: 1px solid var(--line-l); border-radius: var(--r); }
.visit h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.visit p { color: var(--mute-l); font-size: .95rem; }
.map iframe { filter: grayscale(.5) sepia(.15) contrast(1.02); }
.map__go { border-radius: 4px; }
.form::before { height: 10px; background: linear-gradient(var(--ink) 0 0) 0 0 / 100% 4px no-repeat, linear-gradient(var(--ink) 0 0) 0 7px / 100% 1.5px no-repeat; inset: 14px 0 auto; }
.mbar__call { background: var(--gold-l) !important; color: var(--ink) !important; }

/* =========================================================
   Photos libres (Unsplash) — héros plein écran Full HD
   ========================================================= */
.hero { background: linear-gradient(100deg, rgba(28,25,24,.92) 0%, rgba(28,25,24,.78) 45%, rgba(28,25,24,.55) 100%), url("../img/hero.jpg") center 30% / cover no-repeat, var(--ink); color: #fff; }
html[dir="ltr"] .hero { background: linear-gradient(260deg, rgba(28,25,24,.92) 0%, rgba(28,25,24,.78) 45%, rgba(28,25,24,.55) 100%), url("../img/hero.jpg") center 30% / cover no-repeat, var(--ink); }
.hero__in { min-height: min(78vh, 760px); }
.hero__title { color: #fff; }
.hero__title em { color: var(--gold); }
.hero__text { color: #d8ccc5; }
.kicker { background: rgba(255,255,255,.08); border-color: rgba(220,183,163,.35); color: var(--gold-l); box-shadow: none; backdrop-filter: blur(6px); }
.kicker svg { color: var(--gold); }
.hero__chips li { background: rgba(255,255,255,.08); color: #eee3dc; border: 1px solid rgba(220,183,163,.25); }
.hero .btn--gold { background: var(--gold-l); color: var(--ink); }
.hero .btn--line { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn--line:hover { background: #fff; color: var(--ink); }
.hero__wave { --c: var(--gold); }
.facts-band { border-top: 0; }

/* spécialités : statue de la Justice en filigrane */
#domaines { background: linear-gradient(rgba(36,33,31,.9), rgba(36,33,31,.94)), url("../img/justice-wide.jpg") center / cover fixed, var(--ink); }

/* citation sur fond bibliothèque */
.quote { background: linear-gradient(rgba(28,25,24,.82), rgba(28,25,24,.88)), url("../img/books.jpg") center / cover, var(--ink); }

/* services : photo de signature */
.svc-photo { position: relative; margin: 0 0 clamp(30px, 4vw, 46px); height: clamp(200px, 26vw, 340px); border: 5px solid var(--ink); box-shadow: 0 0 0 4px var(--sand), 0 0 0 5.5px var(--ink), var(--shadow); overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

@media (max-width: 900px) {
  .hero, html[dir="ltr"] .hero { background: linear-gradient(rgba(28,25,24,.86), rgba(28,25,24,.8)), url("../img/hero-m.jpg") center / cover no-repeat, var(--ink); }
  .hero__in { min-height: 0; }
  #domaines { background-attachment: scroll; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header) + 40px) 0 0; z-index: -1; flex-direction: column; gap: 2px; padding: 24px var(--gut);
    background: var(--cream); border-top: 2px solid var(--gold); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .4s, transform .5s var(--ease), visibility .4s;
  }
  .header.scrolled .nav { top: var(--header); }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font: 600 1.5rem/1.4 var(--f-d); padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; color: var(--gold-d); }
  .nav a.active::after { display: none; }
  .dgrid { grid-template-columns: repeat(2, 1fr); }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .svc:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 640px; margin-inline: auto; }
  .steps::before { top: 30px; bottom: 30px; inset-inline-start: 35px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); }
  .steps li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: start; padding: 0 0 26px; }
  .steps__n { grid-row: span 2; margin: 0; }
}
@media (max-width: 900px) {
  .topbar__addr { display: none; }
  .hero__in, .about, .faq, .contact, .sec__head--split { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; width: 100%; margin-inline: auto; }
  .faq .sec__head { position: static; }
  .arch { max-width: 420px; margin-inline: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .rdv__in { grid-template-columns: 1fr; text-align: center; }
  .rdv__clock { justify-self: center; }
  .rdv__copy > p { margin-inline: auto; }
  .rdv__actions { justify-content: center; }
  .rdv .eyebrow::after { display: inline-block; }
  .gal { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 640px) {
  :root { --header: 70px; }
  body { font-size: 1rem; }
  .topbar { font-size: .8rem; }
  .topbar__in { gap: 14px; }
  .brand__emb { width: 50px; height: 50px; }
  .brand__txt strong { font-size: 1.18rem; }
  .brand__txt small { font-size: .74rem; }
  .header__in { gap: 10px; }
  .header__end { gap: 8px; margin-inline-start: auto; }
  .lang button { min-width: 38px; padding: 0 8px; height: 32px; }
  .hero__in { padding-top: 34px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .bcard { --rx: 4deg; --ry: -6deg; }
  .dgrid, .svcs { grid-template-columns: 1fr; }
  .dlg__list { grid-template-columns: 1fr; }
  .gal { column-gap: 10px; }
  .gal__item { margin-bottom: 10px; border-radius: 12px; }
  .gal__item span { font-size: .8rem; padding: 30px 10px 10px; }
  .dlg__head { padding: 18px; }
  .dlg__head h3 { font-size: 1.15rem; }
  .dlg__body { padding: 6px 18px 22px; }
  .values { grid-template-columns: 1fr 1fr; }
  .arch__badge { inset-inline-start: 6px; bottom: 14px; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
  #footDomains { columns: 1; }
  .footer { padding-bottom: 84px; }
  .wa-float { display: none; }
  .mbar { position: fixed; inset: auto 0 0; z-index: 960; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(36,33,31,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-l); }
  .mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 12px; background: var(--ink-3); color: var(--gold-l); font-weight: 700; font-size: .88rem; }
  .mbar svg { width: 18px; height: 18px; }
  .mbar__wa { background: var(--grad) !important; color: var(--ink) !important; }
}
@media (max-width: 520px) {
  .header__end > .lang { display: none; }
  .lang--menu { display: flex; align-self: flex-start; margin-top: 18px; }
  .lang--menu button { font: 700 1rem var(--f-b); min-width: 90px; height: 42px; }
}
@media (max-width: 360px) { .brand__txt small { display: none; } .brand__txt strong { font-size: 1.05rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .up, .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .header, .mbar, .wa-float, .map, .form, .hero__card, .wave-flip, .wave-top, .hero__wave { display: none !important; }
  .sec--dark, .facts-band, .rdv, .footer, .quote { background: #fff !important; color: #000 !important; }
}
.brand__mono svg { width: 26px; height: 26px; }
.nav a { white-space: nowrap; padding: 8px 11px; font-size: .92rem; }
@media (max-width: 1280px) and (min-width: 1141px) { .nav a { padding: 8px 8px; font-size: .86rem; } .header__in { gap: 16px; } }
