/* =========================================================
   Hafdi Law Firm — Maître Hicham Hafdi, Avocat à Casablanca
   Palette « Cèdre & Émeraude » : émeraude et taupe du logo HL,
   cèdre du moucharabieh du cabinet, ivoire, vert nuit
   ========================================================= */
:root {
  --ink: #10201c;          /* vert nuit — fonds sombres */
  --ink-2: #182b26;
  --accent: #2f7a68;       /* émeraude — le « L » du logo HL */
  --accent-l: #9fd3c3;     /* émeraude clair — sur fond sombre */
  --accent-d: #1f5a4c;     /* émeraude sombre — texte sur fond clair */
  --taupe: #6e625b;        /* taupe — le « H » du logo HL */
  --cedar: #b97a4a;        /* cèdre — moucharabieh du cabinet */
  --sheen: linear-gradient(115deg, #6e4122 0%, #b97a4a 26%, #ecc9a6 46%, #b97a4a 62%, #6e4122 100%);
  --ivory: #f9f7f2;
  --paper: #f0ede5;
  --paper-2: #e2dccf;
  --white: #fff;
  --text: #1f2724;
  --muted: #5f645f;
  --line: rgba(16, 32, 28, .12);
  --line-l: rgba(159, 211, 195, .16);
  --wa: #1fa855;
  --mono-h: var(--taupe);
  --mono-l: var(--accent);

  /* Étoile à huit branches et entrelacs — inspirés du moucharabieh en cèdre du cabinet */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232f7a68' stroke-width='1'%3E%3Cpath d='M40 18 46.4 24.6 55.6 24.4 55.4 33.6 62 40 55.4 46.4 55.6 55.6 46.4 55.4 40 62 33.6 55.4 24.4 55.6 24.6 46.4 18 40 24.6 33.6 24.4 24.4 33.6 24.6z'/%3E%3Cpath d='M40 27 49.2 30.8 53 40 49.2 49.2 40 53 30.8 49.2 27 40 30.8 30.8z'/%3E%3Cpath d='M40 0v18M40 62v18M0 40h18M62 40h18M0 0l24.4 24.4M80 0 55.6 24.4M0 80l24.4-24.4M80 80 55.6 55.6'/%3E%3C/g%3E%3C/svg%3E");

  --f-display: "Playfair Display", "Amiri", Georgia, serif;
  --f-body: "Jost", "Tajawal", system-ui, sans-serif;
  --f-ar-display: "Amiri", serif;
  --f-ar-body: "Tajawal", system-ui, sans-serif;

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}
html[lang^="ar"] { --f-display: var(--f-ar-display); --f-body: var(--f-ar-body); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--f-body); color: var(--text); background: var(--ivory);
  font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang^="ar"] body { font-size: 17.5px; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg:not([viewBox]) { width: 22px; height: 22px; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }
em { font-style: italic; color: var(--accent-d); }
html[lang^="ar"] em { font-style: normal; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
::selection { background: var(--accent-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Texte « cèdre » */
.foil, .hero__name > span, .facts__list b, .labor__n, .since b {
  background: var(--sheen); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Loader & progression ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--ivory); color: var(--ink);
  transition: clip-path 1s var(--ease-io) .1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0);
}
.loader__mark { width: 86px; height: 86px; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
.loader__line { width: 120px; height: 1px; background: rgba(47,122,104,.25); position: relative; overflow: hidden; }
.loader__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: load 1.2s var(--ease-io) infinite; }
.loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--sheen); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress { transform-origin: right; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--r); font-weight: 500; font-size: 15.5px; letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
html[lang^="ar"] .btn { font-weight: 700; letter-spacing: 0; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--gold { background: var(--sheen); background-size: 160% 100%; color: var(--ink); box-shadow: 0 14px 30px -16px rgba(110,65,34,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { color: #ecc9a6; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink::before { background: var(--accent-d); }
.btn--ghost { border: 1px solid currentColor; color: inherit; }
.btn--ghost::before { background: currentColor; opacity: .08; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa::before { background: #178a45; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; color: var(--accent-d); }
html[lang^="ar"] .link { font-weight: 700; }
.link svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Titres ---------- */
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); margin-bottom: 22px; text-wrap: balance; }
html[lang^="ar"] .h2 { font-weight: 700; line-height: 1.4; letter-spacing: 0; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 18px; max-width: 60ch; }
.label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-d); }
html[lang^="ar"] .label { letter-spacing: 0; font-size: 15.5px; font-weight: 700; }
.label__n { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: 14px; font-style: italic; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.label__n::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.label--light { color: var(--accent-l); }
.label--light .label__n { color: var(--accent-l); }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: rgba(251,248,241,.78); overflow: hidden; }
.sec--ink .h2 { color: var(--ivory); }
.sec--ink .lead { color: rgba(251,248,241,.72); }
.sec--ink em, .labor em, .footer em { color: #e3b98f; }
.sec__head { margin-bottom: clamp(44px, 6vw, 72px); position: relative; }
.sec__head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.sec__head--center { text-align: center; display: grid; justify-items: center; }
.sec__head--center .lead { margin-inline: auto; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--header-h); color: var(--ink); transition: background .4s, height .4s var(--ease), box-shadow .4s; }
.header.scrolled { --header-h: 68px; background: rgba(251,248,241,.9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; display: grid; place-items: center; background: #f4f2ee; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(16,32,28,.5); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__mark svg { width: 36px; height: 36px; }
.brand__txt { display: grid; line-height: 1.25; }
.brand__txt strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
html[lang^="ar"] .brand__txt strong { font-size: 20px; font-weight: 700; }
.brand__txt small { font-size: 12px; color: var(--accent-d); letter-spacing: .04em; }
html[lang^="ar"] .brand__txt small { font-size: 13px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a { position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; opacity: .82; transition: opacity .2s, color .2s; }
html[lang^="ar"] .nav > a { font-size: 15.5px; }
.nav > a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; background: var(--accent); transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.nav > a:hover, .nav > a.active { opacity: 1; }
.nav > a.active::after, .nav > a:hover::after { transform: rotate(45deg) scale(1); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.5); }
.lang button { width: 36px; height: 34px; font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s; }
.lang button[lang="ar"] { font-family: "Amiri", serif; font-size: 17px; line-height: 1; }
.lang button.on { background: var(--ink); color: var(--accent-l); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger.open span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 100px; color: var(--text);
  background: radial-gradient(80% 70% at 75% 40%, #fff 0%, var(--ivory) 55%, var(--paper) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__pattern { position: absolute; inset: 0; background: var(--pattern); background-size: 110px auto; opacity: .16;
  -webkit-mask-image: radial-gradient(70% 80% at 30% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(70% 80% at 30% 50%, transparent 30%, #000 100%); }
html[dir="rtl"] .hero__pattern { -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(70% 80% at 70% 50%, transparent 30%, #000 100%); }
/* Chevrons dorés des coins de la carte */
.hero__band { position: absolute; background: var(--sheen); background-size: 200% 200%; }
.hero__band--a { top: 0; inset-inline-end: 0; width: min(36vw, 480px); height: min(17vw, 230px); clip-path: polygon(100% 0, 100% 100%, 64% 46%, 0 0); }
.hero__band--b { bottom: 0; inset-inline-start: 0; width: min(28vw, 360px); height: min(13vw, 170px); clip-path: polygon(0 0, 36% 54%, 100% 100%, 0 100%); }
html[dir="rtl"] .hero__band--a { clip-path: polygon(0 0, 100% 0, 36% 46%, 0 100%); }
html[dir="rtl"] .hero__band--b { clip-path: polygon(100% 0, 100% 100%, 0 100%, 64% 54%); }
.js .hero__band { transform: scale(0); }
.hero__band--a { transform-origin: top right; } html[dir="rtl"] .hero__band--a { transform-origin: top left; }
.hero__band--b { transform-origin: bottom left; } html[dir="rtl"] .hero__band--b { transform-origin: bottom right; }
.loaded .hero__band { animation: band-in 1.3s var(--ease-io) .3s forwards; }
@keyframes band-in { to { transform: none; } }
.hero__rosette { position: absolute; width: 640px; height: 640px; top: 50%; margin-top: -320px; inset-inline-end: -120px; color: rgba(47,122,104,.18); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 26px; }
html[lang^="ar"] .kicker { letter-spacing: 0; font-size: 16px; font-weight: 700; }
.kicker svg { width: 16px; height: 16px; color: var(--accent); animation: spin 10s linear infinite; }
.hero__title { font-family: var(--f-display); font-weight: 600; color: var(--ink); line-height: .98; margin-bottom: 24px; }
.hero__pre { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--accent-d); margin-bottom: 10px; font-weight: 500; }
.hero__name { display: block; font-size: clamp(3.2rem, 7.8vw, 6.6rem); letter-spacing: -.02em; overflow: hidden; padding-bottom: .1em; }
.hero__name > span { display: inline-block; background-image: linear-gradient(100deg, var(--ink) 0 38%, #b97a4a 46%, #ecc9a6 50%, #b97a4a 54%, var(--ink) 62% 100%); background-size: 260% 100%; background-position: 100% 0; }
.loaded .hero__name > span { animation: rise-in 1.1s var(--ease) calc(var(--i) * .1s + .25s) both, sheen 7s ease-in-out 2.4s infinite; }
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
html[lang^="ar"] .hero__pre { font-style: normal; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
html[lang^="ar"] .hero__name { font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: 1.3; letter-spacing: 0; font-weight: 700; }
.hero__role { display: flex; align-items: center; gap: 14px; font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
html[lang^="ar"] .hero__role { font-weight: 700; font-size: 1.25rem; }
.hero__rule { width: 52px; height: 2px; background: var(--sheen); flex: none; }
.hero__text { font-size: 1.08rem; color: var(--muted); max-width: 54ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--ghost { color: var(--ink); border-color: rgba(16,32,28,.3); }

.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch { position: relative; aspect-ratio: 400 / 540; clip-path: url(#archClip); overflow: hidden; background: var(--paper-2); }
.hero__media::before { content: ""; position: absolute; inset: 30% 6% -4%; background: rgba(110,65,34,.3); filter: blur(40px); z-index: -1; }
.arch { background: radial-gradient(90% 70% at 50% 35%, #1d3a33 0%, var(--ink) 70%); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); will-change: transform; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(16,32,28,.45)); pointer-events: none; }
.js .arch img { opacity: 0; transform: scale(1.14); }
.loaded .arch img { animation: portrait-in 1.6s var(--ease) .45s forwards; }
@keyframes portrait-in { to { opacity: 1; transform: scale(1.04); } }
.arch__outline { position: absolute; top: -16px; left: -16px; width: calc(100% + 32px); max-width: none; height: calc(100% + 16px); fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
.arch__outline path { stroke-dasharray: 2000; stroke-dashoffset: 0; }
.js .arch__outline path { stroke-dashoffset: 2000; }
.loaded .arch__outline path { animation: draw 2.4s var(--ease-io) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.badge { position: absolute; top: 10%; inset-inline-start: -62px; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--accent), 0 22px 40px -18px rgba(0,0,0,.6); z-index: 2; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge__ring text { direction: ltr; font-family: "Jost", sans-serif; font-size: 8.4px; font-weight: 600; letter-spacing: .22em; fill: var(--accent-l); text-transform: uppercase; }
.badge__c { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #f4f2ee; box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px rgba(159,211,195,.4); }
.badge__c svg { width: 40px; height: 40px; }
.since { position: absolute; bottom: 8%; inset-inline-end: -44px; z-index: 2; display: grid; gap: 2px; padding: 18px 22px; min-width: 210px; background: rgba(251,248,241,.96); color: var(--ink); border: 1px solid var(--accent); outline: 1px solid rgba(47,122,104,.4); outline-offset: 4px; box-shadow: 0 30px 50px -24px rgba(16,32,28,.6); backdrop-filter: blur(8px); }
.since__t { font-size: 13px; font-weight: 600; color: var(--muted); }
html[lang^="ar"] .since__t { font-size: 14.5px; font-weight: 700; }
.since b { font-family: "Playfair Display", serif; font-size: 34px; line-height: 1.15; font-weight: 700; }
.since small { font-size: 12.5px; color: var(--accent-d); font-weight: 500; }
html[lang^="ar"] .since small { font-size: 13.5px; font-weight: 700; }
.js .badge, .js .since { opacity: 0; transform: translateY(20px) scale(.92); }
.loaded .badge { animation: pop .9s var(--ease) 1.3s forwards; }
.loaded .since { animation: pop .9s var(--ease) 1.5s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
html[lang^="ar"] .hero__scroll { letter-spacing: 0; font-size: 13px; }
.hero__scroll i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.js .hero-in { opacity: 0; transform: translateY(34px); }
.loaded .hero-in { animation: rise-in 1.1s var(--ease) calc(var(--i) * .1s + .25s) forwards; }
.js .hero__name > span.hero-in { transform: translateY(105%); opacity: 1; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ---------- Repères ---------- */
.facts { background: var(--ink); color: rgba(251,248,241,.72); position: relative; }
.facts::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--sheen); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 36px 28px; border-inline-end: 1px solid var(--line-l); display: grid; gap: 4px; align-content: start; }
.facts__list li:first-child { padding-inline-start: 0; }
.facts__list li:last-child { border-inline-end: 0; }
.facts__list b { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.2; font-weight: 600; justify-self: start; }
html[lang^="ar"] .facts__list b { font-weight: 700; }
.facts__list li > span { font-size: 14.5px; }

/* ---------- Profil ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(44px, 7vw, 110px); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 30px); }
.frame { position: relative; padding: 16px; border: 1px solid var(--accent); }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(47,122,104,.35); pointer-events: none; }
.frame__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; will-change: transform; transform: scale(1.12); }
.frame figcaption { position: absolute; bottom: -14px; inset-inline-start: 50%; transform: translateX(-50%); padding: 4px 16px; background: var(--ivory); font-size: 13px; color: var(--accent-d); white-space: nowrap; font-weight: 500; }
html[dir="rtl"] .frame figcaption { transform: translateX(50%); }
.about__quote { margin-top: 40px; padding: 30px 30px 28px; background: var(--ink); color: var(--ivory); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.5; position: relative; font-style: italic; }
html[lang^="ar"] .about__quote { font-size: 1.45rem; line-height: 1.75; font-style: normal; }
.about__quote::before { content: "”"; position: absolute; top: -26px; inset-inline-start: 22px; font-family: "Playfair Display", serif; font-size: 90px; line-height: 1; color: var(--accent); font-style: normal; }
html[dir="ltr"] .about__quote::before { content: "“"; }
.about__quote::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--sheen); }
.about__main > p:not(.label):not(.lead) { color: var(--muted); max-width: 62ch; margin-bottom: 18px; }

.timeline { position: relative; margin: 44px 0; display: grid; gap: 12px; }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.timeline li::before { content: ""; position: absolute; inset-block: -1px; inset-inline-start: -1px; width: 3px; background: var(--sheen); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease) .2s; }
.timeline li.in::before { transform: none; }
.timeline li:hover { border-color: rgba(47,122,104,.5); transform: translateX(6px); box-shadow: 0 20px 40px -30px rgba(16,32,28,.5); }
html[dir="rtl"] .timeline li:hover { transform: translateX(-6px); }
.timeline__y { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--accent-d); line-height: 1.3; text-align: center; padding-inline-end: 20px; border-inline-end: 1px solid var(--line); }
.timeline h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
html[lang^="ar"] .timeline h3 { font-weight: 700; }
.timeline p { font-size: 14.5px; color: var(--muted); }

/* ---------- Spécialité : droit du travail ---------- */
.labor { position: relative; overflow: hidden; background: var(--ink); color: rgba(251,248,241,.75); padding: clamp(80px, 11vw, 150px) 0; }
.labor__pattern { position: absolute; inset: 0; background: var(--pattern); background-size: 120px auto; opacity: .22; pointer-events: none; mix-blend-mode: screen; }
.labor .wrap { position: relative; }
.labor .h2 { color: var(--ivory); }
.labor .lead { color: rgba(251,248,241,.78); }
.labor__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 70px); }
.labor__note { display: flex; align-items: center; gap: 14px; color: var(--accent-l); font-weight: 500; }
html[lang^="ar"] .labor__note { font-weight: 700; }
.labor__note svg { width: 44px; height: 44px; flex: none; padding: 4px; background: #f4f2ee; border-radius: 8px; }
.labor__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-l); border-inline-start: 1px solid var(--line-l); }
.labor__list li { position: relative; padding: 34px 30px 36px; border-bottom: 1px solid var(--line-l); border-inline-end: 1px solid var(--line-l); display: grid; gap: 10px; align-content: start; transition: background .4s; }
.labor__list li::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--sheen); transform: scaleX(0); transition: transform .6s var(--ease); }
.labor__list li:hover { background: rgba(159,211,195,.05); }
.labor__list li:hover::after { transform: scaleX(1); }
.labor__n { font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 600; font-style: italic; line-height: 1; justify-self: start; }
.labor__list h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; color: var(--ivory); line-height: 1.3; }
html[lang^="ar"] .labor__list h3 { font-weight: 700; }
.labor__list p { font-size: 15px; }
.labor__cta { margin-top: 44px; display: flex; justify-content: center; }

/* ---------- Ruban ---------- */
.ribbon-wrap { overflow: hidden; padding: 30px 0; margin: -30px 0; position: relative; z-index: 2; }
.ribbon { background: var(--sheen); background-size: 200% 100%; color: var(--ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.4deg) scale(1.04); box-shadow: 0 20px 40px -24px rgba(16,32,28,.6); }
.ribbon__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
html[dir="rtl"] .ribbon__track { animation-name: marquee-rtl; }
.ribbon__track > div { display: flex; align-items: center; }
.ribbon span { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; white-space: nowrap; padding: 0 26px; }
html[lang^="ar"] .ribbon span { font-weight: 700; }
.ribbon svg { width: 20px; height: 20px; flex: none; color: var(--ink); animation: spin 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* ---------- Domaines ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 30px 30px; min-height: 280px;
  background: var(--white); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, opacity .8s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(159,211,195,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--sheen); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
html[dir="rtl"] .card::after { transform-origin: right; }
.card:hover { border-color: rgba(47,122,104,.5); box-shadow: 0 30px 60px -34px rgba(16,32,28,.45); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__n { position: absolute; top: 24px; inset-inline-end: 26px; font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; color: var(--accent); }
.card__ic { width: 58px; height: 58px; display: grid; place-items: center; color: var(--accent-d); margin-bottom: 10px; position: relative; transition: transform .6s var(--ease), color .4s; }
.card__ic::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--accent); transform: rotate(45deg); transition: background .4s, transform .6s var(--ease); }
.card__ic svg { width: 26px; height: 26px; position: relative; }
.card:hover .card__ic { color: var(--accent-l); }
.card:hover .card__ic::before { background: var(--ink); transform: rotate(135deg); }
.card h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
html[lang^="ar"] .card h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.45; }
.card p { font-size: 15px; color: var(--muted); flex: 1; }
.card .link { margin-top: 6px; }
.cards .card--cta { background: linear-gradient(rgba(16,32,28,.86), rgba(16,32,28,.86)), var(--pattern), var(--ink); background-size: auto, 80px auto, auto; border-color: var(--ink); }
.cards .card--cta .card__ic { color: var(--accent-l); }
.cards .card--cta h3 { color: var(--ivory); }
.cards .card--cta p { color: rgba(251,248,241,.7); }
.cards .card--cta .link { color: var(--accent-l); }
.cards .card--cta::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(159,211,195,.12), transparent 45%); }

/* ---------- Serment ---------- */
.oath { position: relative; overflow: hidden; background: var(--paper); padding: clamp(90px, 12vw, 170px) 0; text-align: center; }
.oath::before { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 90px auto; opacity: .1; }
.oath__rosette { position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; color: rgba(47,122,104,.16); animation: spin 160s linear infinite; }
.oath__in { position: relative; display: grid; justify-items: center; }
.oath .h2 { max-width: 22ch; }
.oath__text {
  font-family: "Aref Ruqaa", "Amiri", serif; font-size: clamp(1.7rem, 3.5vw, 2.8rem); line-height: 1.9; max-width: 32ch;
  margin: 34px auto 20px; padding: 46px clamp(20px, 5vw, 64px); position: relative; direction: rtl;
  background: rgba(251,248,241,.8); border: 1px solid var(--accent); outline: 1px solid rgba(47,122,104,.35); outline-offset: 8px;
}
.oath__text::before, .oath__text::after { content: ""; position: absolute; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: var(--sheen); transform: rotate(45deg); }
.oath__text::before { top: -8px; } .oath__text::after { bottom: -8px; }
.oath__text .w { color: rgba(16,32,28,.14); transition: color .5s; }
.oath__text .w.lit { color: var(--ink); }
html:not(.js) .oath__text .w { color: var(--ink); }
.oath__tr { max-width: 70ch; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; line-height: 1.65; color: var(--muted); }
.oath__tr[hidden] { display: none; }
.oath__note { margin-top: 18px; font-size: 13.5px; letter-spacing: .04em; color: var(--accent-d); }
.oath__values { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; border-top: 1px solid var(--line); }
.oath__values li { padding: 30px 16px 0; display: grid; gap: 4px; border-inline-end: 1px solid var(--line); }
.oath__values li:last-child { border-inline-end: 0; }
.oath__values b { font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); }
html[lang^="ar"] .oath__values b { font-weight: 700; }
.oath__values span { font-size: 14.5px; color: var(--muted); }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.steps__line { position: absolute; top: 36px; inset-inline: 36px; height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--sheen); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .steps__line i { transform-origin: right; }
.steps li { position: relative; display: grid; gap: 10px; }
.steps__n { width: 72px; height: 72px; display: grid; place-items: center; background: var(--paper); font-family: "Playfair Display", serif; font-size: 28px; font-weight: 600; color: var(--accent-d); margin-bottom: 12px; position: relative; transition: color .4s; }
.steps__n::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent); transform: rotate(45deg); background: var(--ivory); z-index: -1; transition: background .4s; }
.steps__n { isolation: isolate; background: transparent; }
.steps li:hover .steps__n { color: var(--accent-l); }
.steps li:hover .steps__n::before { background: var(--ink); }
.steps h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
html[lang^="ar"] .steps h3 { font-weight: 700; font-size: 1.45rem; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Rendez-vous ---------- */
.sec--ink .wrap { position: relative; }
.bk { position: relative; background: var(--ivory); color: var(--text); overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); max-width: 1040px; margin: 0 auto; border-top: 3px solid var(--accent); }
.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(--accent); 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(--ink); }
.bk__steps li.active span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--ink); border-color: var(--ink); color: var(--accent-l); }
.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(10px); } }
.bk__q { font-family: var(--f-body); font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
html[lang^="ar"] .bk__q { font-weight: 700; }
.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(--accent-d); }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.sel { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip.sel svg { color: var(--accent-l); }
.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); background: var(--white); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--accent-d); flex: none; }
.mode b { display: block; font-size: 15.5px; color: var(--ink); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--ink); }
.mode.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: #e9f3ef; }
.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.3rem; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.cal__nav svg { width: 18px; height: 18px; }
.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: background .2s, color .2s; }
.day:hover:not(.off) { background: var(--paper); }
.day.off { color: rgba(31,39,36,.25); cursor: default; text-decoration: line-through; text-decoration-color: rgba(31,39,36,.15); }
.day.sel { background: var(--ink); color: var(--accent-l); font-weight: 700; }
.slots__date { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); 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); font-size: 14px; font-weight: 500; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--ink); }
.slot.sel { background: var(--ink); border-color: var(--ink); color: var(--accent-l); }
.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(--ink); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,122,104,.18); }
.field input.invalid { border-color: #b3412e; }
.seg { display: flex; border: 1px solid var(--line); 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(--ink); color: var(--accent-l); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); 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(--accent-d); 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: .08em; }
html[dir="rtl"] .bk__sum small { letter-spacing: 0; font-size: 12.5px; }
.bk__sum b { font-size: 14px; font-weight: 600; color: rgba(31,39,36,.35); }
.bk__sum span.on b { color: var(--ink); }
.bk__nav { display: flex; gap: 10px; }
.bk__nav [hidden] { display: none; }
.bk__nav .btn--ghost { color: var(--ink); border-color: var(--line); }
.bk__err { grid-column: 1 / -1; order: -1; color: #b3412e; font-size: 14px; font-weight: 600; }
.bk__err:empty { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bk__done { text-align: center; padding: 30px 0; }
.bk__done.active { display: grid; justify-items: center; gap: 14px; }
.bk__doneIc { width: 72px; height: 72px; display: grid; place-items: center; background: var(--wa); color: #fff; border-radius: 50%; animation: pop .6s var(--ease); }
.bk__doneIc svg { width: 36px; height: 36px; }
.bk__done h3 { font-family: var(--f-display); font-size: 2rem; color: var(--ink); }
.bk__done p { color: var(--muted); max-width: 52ch; }
.bk__recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.bk__recap span { padding: 6px 14px; background: var(--paper); border-radius: 100px; font-size: 14px; }
.bk__doneBtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bk__doneBtns .btn--ghost { color: var(--ink); }

/* ---------- 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 { margin-top: 30px; padding: 30px; background: var(--ink); color: rgba(251,248,241,.75); display: grid; gap: 8px; position: relative; overflow: hidden; border-top: 3px solid var(--accent); }
.urgent::before { content: ""; position: absolute; width: 180px; height: 180px; top: -90px; inset-inline-end: -90px; border-radius: 50%; border: 1px solid rgba(159,211,195,.35); box-shadow: 0 0 0 26px rgba(159,211,195,.06), 0 0 0 52px rgba(159,211,195,.04); animation: ring 3s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.12); } }
.urgent strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--ivory); }
.urgent p { font-size: 15px; }
.urgent__tel { display: inline-flex; align-items: center; gap: 10px; font-family: "Playfair Display", serif; font-size: 1.8rem; font-weight: 600; color: var(--accent-l); margin-top: 6px; }
.faq__list { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-family: var(--f-body); font-size: 1.1rem; font-weight: 600; line-height: 1.45; color: var(--ink); transition: color .2s; }
html[lang^="ar"] .qa h3 { font-weight: 700; }
.qa summary:hover h3 { color: var(--accent-d); }
.qa__x { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); transform: rotate(45deg); transition: background .3s, border-color .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 9px; right: 9px; height: 1.6px; margin-top: -.8px; background: var(--ink); transition: transform .3s var(--ease); }
.qa__x::before { transform: rotate(45deg); }
.qa__x::after { transform: rotate(-45deg); }
.qa[open] .qa__x { background: var(--ink); border-color: var(--ink); }
.qa[open] .qa__x::before, .qa[open] .qa__x::after { background: var(--accent-l); }
.qa[open] .qa__x::after { transform: rotate(45deg); }
.qa p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }
.qa[open] p { animation: fade .4s var(--ease); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; margin-top: 16px; }
.infos li { display: flex; gap: 14px; padding: 22px; background: var(--ivory); transition: background .3s; }
.infos li:hover { background: var(--white); }
.infos li:first-child, .infos li:nth-child(n+4) { grid-column: 1 / -1; }
.infos .hours-l { display: block; }
.infos svg { color: var(--accent-d); margin-top: 3px; flex: none; }
.infos small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
html[lang^="ar"] .infos small { font-size: 13.5px; }
.infos a, .infos span { font-weight: 600; color: var(--ink); word-break: break-word; }
.infos a:hover { color: var(--accent-d); }
.contact__map { position: relative; min-height: 460px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--accent); outline: 1px solid rgba(47,122,104,.35); outline-offset: 6px; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--ink); color: var(--accent-l); font-size: 14px; font-weight: 600; }
.contact__dir svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(251,248,241,.7); padding: clamp(60px, 8vw, 100px) 0 30px; }
.footer .wrap { position: relative; }
.footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--sheen); z-index: 1; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line-l); }
.footer__word { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--ivory); line-height: 1.2; }
html[lang^="ar"] .footer__word { font-style: normal; font-family: "Aref Ruqaa", "Amiri", serif; }
.brand--light { color: var(--ivory); }
.brand--light .brand__mark { box-shadow: 0 0 0 1px rgba(159,211,195,.4); }
.brand--light .brand__txt small { color: var(--accent-l); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-l); margin-bottom: 18px; }
html[lang^="ar"] .footer h3 { letter-spacing: 0; font-size: 16px; font-weight: 700; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--accent-l); }
.footer__about { margin-top: 20px; font-size: 15px; max-width: 36ch; }
.hours li { display: flex; flex-direction: column; }
.hours li span:first-child { color: var(--ivory); }
.footer__disc { margin-top: 50px; font-size: 13px; color: rgba(251,248,241,.42); max-width: 90ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-l); font-size: 13px; color: rgba(251,248,241,.5); }

/* ---------- Flottants ---------- */
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; background: var(--wa); color: #fff; border-radius: 50%; box-shadow: 0 14px 30px -10px rgba(31,168,85,.7); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.mbar { display: none; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; } .js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; } .js .reveal[data-d="4"] { transition-delay: .32s; }
.js .card.reveal.in, .js .timeline li.reveal.in { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, opacity .9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-in, .js .badge, .js .since { opacity: 1 !important; transform: none !important; }
  .js .arch img { opacity: 1 !important; transform: none !important; }
  .js .hero__band { transform: none !important; }
  .js .arch__outline path { stroke-dashoffset: 0; }
  .js .loader { display: none; }
  .oath__text .w { color: var(--ink) !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav > a { padding: 8px 8px; font-size: 14px; }
  .header__cta { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .labor__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0; color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px;
    background: var(--ivory); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { font-family: var(--f-display); font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 16px; }
  .menu-open .header { background: var(--ivory); }
  .header__end { margin-inline-start: auto; gap: 8px; }

  .hero { min-height: 0; padding-bottom: 90px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { width: min(100%, 380px); order: -1; margin-top: 16px; }
  .hero__rosette { width: 460px; height: 460px; margin-top: -230px; top: 30%; }
  .badge { inset-inline-start: -24px; width: 104px; height: 104px; }
  .badge__c { width: 48px; height: 48px; }
  .badge__c svg { width: 28px; height: 28px; }
  .since { inset-inline-end: -18px; }

  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li { padding: 26px 18px; border-bottom: 1px solid var(--line-l); }
  .facts__list li:nth-child(odd) { padding-inline-start: 0; }
  .facts__list li:nth-child(even) { border-inline-end: 0; }
  .facts__list li:nth-child(n+3) { border-bottom: 0; }

  .about, .faq, .contact, .labor__head { grid-template-columns: 1fr; }
  .about__media, .faq__side { position: static; }
  .about__media { max-width: 440px; }
  .sec__head--split { grid-template-columns: 1fr; gap: 10px; }
  .oath__values { grid-template-columns: 1fr 1fr; }
  .oath__values li { padding-bottom: 26px; }
  .oath__values li:nth-child(even) { border-inline-end: 0; }

  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .steps__line { display: none; }
  .bk__date { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }

  body { padding-bottom: 72px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0 0; z-index: 45;
    background: var(--white); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -10px 30px -18px rgba(16,32,28,.4);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--paper); }
  .mbar a:nth-child(2) svg { color: var(--wa); }
  .mbar__main { background: var(--ink) !important; color: var(--accent-l) !important; }
  .wa-float { display: none; }
}

@media (max-width: 720px) {
  .header__in { gap: 10px; }
  .brand { flex: 1 1 auto; gap: 10px; min-width: 0; }
  .brand__txt { min-width: 0; }
  .brand__txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px !important; }
  .brand__txt small { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 25px; height: 25px; }
  .header__end { flex: none; gap: 4px; }
  .burger { width: 40px; }
  .lang button { width: 30px; height: 30px; font-size: 12px; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__media { width: min(76%, 320px); }
  .hero__band--a { width: 46vw; height: 26vw; }
  .hero__band--b { width: 40vw; height: 20vw; }
  .badge { width: 88px; height: 88px; inset-inline-start: -30px; top: 6%; }
  .badge__ring text { font-size: 11px; }
  .badge__c { width: 40px; height: 40px; }
  .badge__c svg { width: 24px; height: 24px; }
  .since { padding: 12px 16px; min-width: 0; inset-inline-end: -34px; }
  .since b { font-size: 25px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .hero { padding-bottom: 64px; }

  .facts__list b { font-size: 1.5rem; }
  .cards, .labor__list { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 28px 24px 26px; }
  .labor__list li { padding: 28px 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .timeline__y { text-align: start; border: 0; padding: 0; font-size: 1.15rem; }
  .oath__text { padding-inline: 14px; }
  .oath__values b { font-size: 1.45rem; }

  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 64px 1fr; column-gap: 18px; }
  .steps__n { grid-row: span 2; width: 64px; height: 64px; font-size: 24px; margin: 0; }

  .bk__steps li { padding: 14px 10px; justify-content: center; font-size: 13px; flex-direction: column; gap: 6px; text-align: center; }
  .bk__modes { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__sum { gap: 6px 16px; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 0 14px; }
  .bk__nav #bBack { flex: 0 0 auto; }

  .infos { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 380px) {
  .lang button { width: 28px; }
  .chip { font-size: 13.5px; padding: 9px 13px; }
}
