/* =========================================================
   Dr Brahim Menkar — Rabat
   Palette « Carte de visite » : bleu roi / blanc / argent
   ========================================================= */
:root {
  --night: #101a45;       /* fond sombre principal (bleu nuit) */
  --night-2: #17235a;
  --blue: #2b3a92;        /* bleu roi de la carte de visite */
  --accent: #c3cad8;      /* argent de la balance */
  --accent-2: #e9edf5;
  --accent-ink: #2b3a92;  /* bleu lisible sur fond clair */
  --ivory: #f5f7fb;
  --paper: #eaeef6;
  --paper-2: #dce2ee;
  --text: #141b3a;
  --muted: #586079;
  --line: rgba(16, 26, 69, .14);
  --line-2: rgba(16, 26, 69, .07);
  --line-dark: rgba(233, 237, 245, .2);
  --white: #ffffff;
  --wa: #1fa855;

  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}
html[dir="rtl"] {
  --f-display: "Reem Kufi", "Playfair Display", serif;
  --f-body: "Tajawal", "DM Sans", sans-serif;
}

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

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 2px; letter-spacing: .01em; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--night); box-shadow: 0 10px 30px -12px rgba(195, 202, 216, .7); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(195, 202, 216, .85); }
.btn--dark { background: var(--night); color: var(--ivory); }
.btn--dark:hover { background: var(--blue); }
.btn--ghost { border-color: var(--line-dark); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--line { border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--night); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f47; }
.btn[hidden] { display: none; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 16px; height: 16px; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); padding: 4px 10px; border: 1px solid rgba(43, 58, 146, .3); border-radius: 100px; }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 13px; }
.tag--light { color: var(--accent-2); border-color: var(--line-dark); }

/* ---------- Libellés de section ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec--paper { background: var(--paper); }
.sec--night { background: var(--night); color: var(--ivory); }
.sec--night em { color: var(--accent-2); }
.label { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 22px; }
html[dir="rtl"] .label { letter-spacing: 0; font-size: 14.5px; }
.label__n { font-family: var(--f-display); font-size: 15px; font-style: italic; letter-spacing: 0; padding-inline-end: 14px; border-inline-end: 1px solid currentColor; }
.label--light { color: var(--accent); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
html[dir="rtl"] .h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.sec--night .lead { color: rgba(245, 247, 251, .68); }
.sec__head { margin-bottom: clamp(44px, 6vw, 70px); max-width: 760px; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.sec__head--split .h2 { margin-bottom: 0; }
.sec__head--center { text-align: center; margin-inline: auto; }
.sec__head--center .lead { margin-inline: auto; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--ivory); transition: color .3s, height .3s; }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(16, 26, 69, 0); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; z-index: -1; }
.header.scrolled::before { background: rgba(16, 26, 69, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--accent-2); background: rgba(43, 58, 146, .6); }
.brand__logo svg { width: 30px; height: 30px; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; }
.brand__txt small { font-size: 12px; color: var(--accent-2); opacity: .9; }
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav > a { position: relative; opacity: .82; transition: opacity .2s; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover, .nav > a.active { opacity: 1; }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-dark); border-radius: 100px; padding: 3px; }
.lang button { min-width: 36px; height: 30px; border-radius: 100px; font-size: 12.5px; font-weight: 600; opacity: .7; transition: all .2s; }
.lang button.on { background: var(--accent); color: var(--night); opacity: 1; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(195, 202, 216, .2), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(43, 58, 146, .9), transparent 70%),
    var(--night);
}
html[dir="rtl"] .hero { background:
    radial-gradient(60% 70% at 15% 30%, rgba(195, 202, 216, .2), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(43, 58, 146, .9), transparent 70%),
    var(--night); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
/* Fond animé du hero : halos, trame, balayage lumineux, poussière argentée */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb--1 { width: 560px; height: 560px; background: radial-gradient(circle, #3b4fc4, transparent 65%); top: -160px; inset-inline-start: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.orb--2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(195, 202, 216, .55), transparent 65%); bottom: -180px; inset-inline-end: -80px; opacity: .35; animation: drift2 26s ease-in-out infinite alternate; }
.orb--3 { width: 380px; height: 380px; background: radial-gradient(circle, #2b3a92, transparent 65%); top: 35%; left: 40%; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-200px, -120px) scale(1.2); } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-160px, 80px) scale(1.25); } 100% { transform: translate(120px, -100px) scale(.9); } }
.hero__lines { position: absolute; inset: -60px; opacity: .5;
  background-image: linear-gradient(rgba(233, 237, 245, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 237, 245, .05) 1px, transparent 1px);
  background-size: 60px 60px; animation: pan 18s linear infinite;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%); }
@keyframes pan { to { transform: translate(60px, 60px); } }
.hero__sweep { position: absolute; top: -50%; bottom: -50%; width: 30%; left: -40%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(233, 237, 245, .06), transparent); animation: sweep 11s ease-in-out infinite; }
@keyframes sweep { 0%, 15% { left: -40%; } 60%, 100% { left: 130%; } }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__mark { position: absolute; width: min(70vw, 760px); height: auto; aspect-ratio: 1; color: var(--accent); opacity: .045; top: 50%; inset-inline-start: -12%; transform: translateY(-50%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 28px; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker__line { width: 44px; height: 1px; background: var(--accent); }
.hero__title { display: grid; margin-bottom: 22px; }
.hero__pre { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--accent); }
html[dir="rtl"] .hero__pre { font-style: normal; font-weight: 400; }
.hero__name { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, var(--accent-2) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
html[dir="rtl"] .hero__name { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1.25; letter-spacing: 0; }
.hero__role { font-size: 1.05rem; font-weight: 500; color: var(--accent-2); padding-block: 14px; border-block: 1px solid var(--line-dark); margin-bottom: 22px; }
.hero__text { font-size: 1.08rem; color: rgba(245, 247, 251, .72); max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch { position: relative; padding: 14px; border: 1px solid rgba(195, 202, 216, .5); border-radius: 240px 240px var(--r) var(--r); }
.arch::before { content: ""; position: absolute; inset: -14px 28px auto; height: 60%; border: 1px solid rgba(195, 202, 216, .22); border-bottom: 0; border-radius: 260px 260px 0 0; pointer-events: none; }
.arch__photo { border-radius: 226px 226px 2px 2px; overflow: hidden; aspect-ratio: 4 / 5.2; background: var(--blue); }
.arch__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Plaque (en attendant la photo) */
.plaque {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5.2; border-radius: 226px 226px 2px 2px;
  display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; padding: 18% 12% 12%;
  background:
    radial-gradient(80% 50% at 50% 20%, rgba(233, 237, 245, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    linear-gradient(170deg, #34459f, #16205a 75%);
  box-shadow: inset 0 0 0 1px rgba(233, 237, 245, .14), inset 0 -80px 120px -60px rgba(0, 0, 0, .6);
  color: var(--accent-2); animation: rise 1.4s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.plaque__logo { width: clamp(96px, 13vw, 140px); height: auto; aspect-ratio: 1; color: var(--accent-2); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.plaque__rule { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.plaque__ar { font-family: "Amiri", serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.4; color: #ffffff; }
.plaque__fr { font-family: "Playfair Display", serif; font-style: italic; font-size: clamp(15px, 1.6vw, 19px); color: var(--accent-2); }
.plaque__role { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(233, 237, 245, .75); }
html[dir="rtl"] .plaque__role { letter-spacing: 0; font-size: 14px; }

/* Sceau « Docteur en droit » */
.seal { position: absolute; inset-inline-start: -40px; bottom: 40px; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 55%, #8e97ab); color: var(--night);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7), inset 0 0 0 5px rgba(16, 26, 69, .12), inset 0 0 0 7px rgba(255, 255, 255, .25); }
.seal__ring { position: absolute; inset: 0; direction: ltr; unicode-bidi: isolate; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal__ring text { font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; fill: var(--night); }
.seal__ic { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line-dark); }
.facts li { display: grid; gap: 4px; padding: 26px 24px 0 0; }
html[dir="rtl"] .facts li { padding: 26px 0 0 24px; }
.facts li + li { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 24px; }
.facts b { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--accent-2); line-height: 1.1; }
.facts span { font-size: 14px; color: rgba(245, 247, 251, .6); }

/* ---------- Bandeau défilant ---------- */
.ticker { overflow: hidden; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); color: var(--night); padding: 16px 0; direction: ltr; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track > div { display: flex; align-items: center; }
.ticker span { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; padding: 0 26px; white-space: nowrap; }
html[dir="rtl"] .ticker span { font-size: 1.25rem; }
.ticker i { width: 7px; height: 7px; background: var(--night); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.profile__media { position: relative; display: grid; padding: 10px 0 30px; }
.card3d {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 4px;
  aspect-ratio: 1.75; padding: 8% 10%; border-radius: 6px; color: #ffffff;
  background: linear-gradient(155deg, #34459f, #1a2563 70%);
  box-shadow: 0 50px 80px -40px rgba(16, 26, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: rotate(-2deg); transition: transform .6s var(--ease);
}
.card3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); }
.card3d__logo { width: clamp(64px, 9vw, 96px); height: auto; aspect-ratio: 1; }
.card3d__avocat { font-family: "Manrope", sans-serif; font-size: 10px; letter-spacing: .35em; color: #c9d0de; margin-bottom: 8px; }
.card3d__ar { font-family: "Amiri", serif; font-size: clamp(15px, 1.7vw, 20px); font-weight: 700; color: var(--accent-2); line-height: 1.5; }
.card3d__fr { font-family: "Manrope", sans-serif; font-size: clamp(11.5px, 1.25vw, 14.5px); }
.card3d--back { z-index: 0; margin: -9% 10% 0 -4%; transform: rotate(3deg); aspect-ratio: auto; padding: calc(9% + 22px) 26px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; direction: ltr;
  background: linear-gradient(155deg, #1f2c72, #111a48); color: var(--accent-2); font-size: 14px; }
html[dir="rtl"] .card3d--back { margin: -9% -4% 0 10%; transform: rotate(-3deg); }
.card3d__row { font-weight: 600; }
.profile__media:hover .card3d:not(.card3d--back) { transform: rotate(0deg) translateY(-6px); }
.profile__cap { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.profile__cap svg { width: 16px; height: 16px; color: var(--accent-ink); }
.profile__main > p:not(.label) { margin-bottom: 18px; }
.profile__main > p.lead { color: var(--text); }
.ledger { margin: 30px 0 34px; border-top: 1px solid var(--line); }
.ledger div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.ledger dd { font-size: 15px; }

/* ---------- Équipe ---------- */
.sec--tight { padding-top: 0; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 26px 30px; background: var(--white); border: 1px solid var(--line-2); border-top: 3px solid var(--blue); border-radius: var(--r); transition: transform .4s var(--ease), box-shadow .4s; }
.member:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16, 26, 69, .45); }
.member__ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--accent-ink); margin-bottom: 6px; }
.member__ic svg { width: 26px; height: 26px; }
.member h3 { font-size: 1.5rem; }
html[dir="rtl"] .member h3 { font-size: 1.35rem; }
.member p { color: var(--muted); font-size: 15px; }
.member--lead { background: var(--blue); color: var(--ivory); border-color: transparent; border-top-color: var(--accent); }
.member--lead .member__ic { background: rgba(233, 237, 245, .14); color: var(--accent-2); }
.member--lead .tag { color: var(--accent-2); border-color: var(--line-dark); }
.member--lead p { color: rgba(245, 247, 251, .7); }

/* ---------- Domaines (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, color .4s;
}
.tile--wide { grid-column: span 2; grid-row: span 2; background: var(--night); color: var(--ivory); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16, 26, 69, .45); }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tile__ic { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--accent-ink); }
.tile__ic svg { width: 24px; height: 24px; }
.tile__n { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--accent-ink); }
.tile h3 { font-size: 1.55rem; }
html[dir="rtl"] .tile h3 { font-size: 1.4rem; }
.tile p { font-size: 14.5px; color: var(--muted); }
.tile ul { display: grid; gap: 6px; margin-top: 4px; font-size: 14px; }
.tile li { display: flex; gap: 10px; align-items: baseline; }
.tile li::before { content: ""; width: 5px; height: 5px; flex: none; transform: translateY(-3px) rotate(45deg); background: var(--blue); }
.tile--wide li::before { background: var(--accent); }
.tile .link { margin-top: auto; padding-top: 10px; align-self: flex-start; border: 0; }
.tile:not(.tile--wide) ul { display: none; }
.tile--wide h3 { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.tile--wide p { color: rgba(245, 247, 251, .7); font-size: 1.05rem; max-width: 44ch; }
.tile--wide ul { font-size: 15px; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.tile--wide .tile__ic { background: rgba(195, 202, 216, .14); color: var(--accent-2); width: 60px; height: 60px; }
.tile--wide .tile__n, .tile--wide .link { color: var(--accent-2); }
.tile--wide::after { content: ""; position: absolute; width: 320px; height: 320px; inset-inline-end: -110px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(195, 202, 216, .25), transparent 65%); pointer-events: none; }

/* ---------- Formation ---------- */
.path { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.path__head { position: sticky; top: calc(var(--header-h) + 30px); }
.path__seal { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 12px 22px 12px 12px; border: 1px solid var(--line-dark); border-radius: 100px; color: var(--accent-2); font-weight: 600; }
html[dir="rtl"] .path__seal { padding: 12px 12px 12px 22px; }
.path__seal svg { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: rgba(195, 202, 216, .12); }
.degrees { position: relative; display: grid; gap: 16px; }
.degrees::before { content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 31px; width: 1px; background: linear-gradient(var(--accent), rgba(195, 202, 216, .1)); }
.degrees li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: center; padding: 26px 28px 26px 0; border-radius: 6px; transition: background .3s; }
html[dir="rtl"] .degrees li { padding: 26px 0 26px 28px; }
.degrees li:hover { background: var(--night-2); }
.degrees__n { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--night); border: 1px solid var(--accent); font-family: var(--f-display); font-size: 1.35rem; font-style: italic; color: var(--accent-2); }
.degrees li:last-child .degrees__n { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--night); border-color: transparent; }
.degrees h3 { font-size: 1.6rem; margin-bottom: 4px; }
html[dir="rtl"] .degrees h3 { font-size: 1.45rem; }
.degrees p { color: rgba(245, 247, 251, .6); font-size: 15px; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--blue); }
.steps__n { display: block; font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--accent-ink); margin-bottom: 14px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

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

.bk__date { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--night); text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.cal__nav:disabled { opacity: .3; cursor: default; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.cal__wd, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd span { font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.day { aspect-ratio: 1; border-radius: 50%; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.day:hover:not(.off) { background: var(--paper); }
.day.off { opacity: .28; cursor: default; }
.day.sel { background: var(--night); color: var(--white); }
.slots__date { font-family: var(--f-display); font-size: 1.25rem; color: var(--night); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.slots__g { margin-bottom: 18px; }
.slots__g small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 500; background: var(--white); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--night); }
.slot.sel { background: var(--night); border-color: var(--night); color: var(--white); }
.slot.taken { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: transparent; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 600; color: var(--night); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); font: inherit; font-size: 15.5px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(195, 202, 216, .2); }
.field input.invalid { border-color: #b0412e; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; 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(--night); color: var(--white); }
.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-ink); flex: none; }

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

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

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.cards { display: grid; gap: 12px; }
.cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--white); border-radius: 6px; border: 1px solid var(--line-2); }
.cards svg { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 3px; }
.cards small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.cards a, .cards span { font-weight: 500; }
.cards a:hover { color: var(--accent-ink); }
.contact__map { position: relative; min-height: 440px; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 2px; background: var(--night); color: var(--ivory); font-size: 14px; font-weight: 600; }
.contact__dir svg { width: 16px; height: 16px; color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(245, 247, 251, .7); padding: clamp(60px, 8vw, 100px) 0 110px; }
.footer__top { display: flex; align-items: center; gap: 24px; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.footer__logo { width: 70px; height: 70px; color: var(--accent); }
.footer__word { flex: 1; font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--ivory); line-height: 1.2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h3 { font-family: var(--f-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 14.5px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--accent-2); }
.brand--light { color: var(--ivory); margin-bottom: 18px; }
.footer__about { font-size: 14.5px; max-width: 36ch; }
.hours li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer__disc { font-size: 13px; color: rgba(245, 247, 251, .45); max-width: 90ch; padding-top: 24px; border-top: 1px solid var(--line-dark); margin-bottom: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(245, 247, 251, .5); }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; font-size: 14px; }
  .header__cta { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-row: auto; }
  .team { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; gap: 0; padding: 20px var(--gutter) 40px;
    background: var(--night); font-size: 1.4rem; font-family: var(--f-display);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .35s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); opacity: 1; }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; font-family: var(--f-body); font-size: 15px; color: var(--accent-2); }
  .menu-open .header::before { background: var(--night); }
  .hero__grid, .profile, .path, .faq, .contact { grid-template-columns: 1fr; }
  .sec__head--split { grid-template-columns: 1fr; gap: 0; }
  .sec__head--split .h2 { margin-bottom: 22px; }
  .hero__media { order: -1; width: min(78%, 360px); }
  .seal { inset-inline-start: -20px; bottom: 24px; width: 108px; height: 108px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .path__head, .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .bk__date { grid-template-columns: 1fr; }
  .contact__map { min-height: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt small { display: none; }
  .brand__logo { width: 42px; height: 42px; }
  .lang button { min-width: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .seal { width: 92px; height: 92px; inset-inline-start: -10px; }
  .seal__ring text { font-size: 9px; }
  .seal__ic { width: 30px; height: 30px; }
  .team { grid-template-columns: 1fr; }
  .facts li { padding-inline-end: 12px; }
  .facts span { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .bk__steps li { padding: 14px 12px; font-size: 13px; gap: 8px; justify-content: center; }
  .bk__steps b { display: none; }
  .bk__steps li.active b { display: inline; }
  .bk__modes, .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 0 16px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: rgba(16, 26, 69, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; color: var(--ivory); font-size: 14px; font-weight: 600; }
  .mbar__main { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--night) !important; }
  .footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Hero clair (fond blanc) + en-tête clair
   ========================================================= */
.hero { color: var(--text); background: linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%); }
html[dir="rtl"] .hero { background: linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%); }
.hero::after { opacity: .25; }
.hero__mark { color: var(--blue); opacity: .04; }
.kicker { color: var(--blue); }
.kicker__line { background: var(--blue); }
.hero__pre { color: var(--blue); }
.hero__name { background: linear-gradient(180deg, var(--night) 35%, var(--blue) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__role { color: var(--blue); border-color: var(--line); }
.hero__text { color: var(--muted); }
.hero .btn--accent, .header .btn--accent { background: linear-gradient(135deg, #3a4cb0, var(--blue)); color: #fff; box-shadow: 0 12px 30px -12px rgba(43, 58, 146, .6); }
.hero .btn--accent:hover, .header .btn--accent:hover { box-shadow: 0 16px 34px -12px rgba(43, 58, 146, .75); }
.hero .btn--ghost { border-color: var(--line); color: var(--text); }
.hero .btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.facts { border-top-color: var(--line); }
.facts li + li { border-inline-start-color: var(--line); }
.facts b { color: var(--blue); }
.facts span { color: var(--muted); }
.arch { border-color: rgba(43, 58, 146, .28); }
.arch::before { border-color: rgba(43, 58, 146, .14); }
.plaque { box-shadow: inset 0 0 0 1px rgba(233, 237, 245, .14), 0 40px 70px -35px rgba(16, 26, 69, .55); }
.seal { box-shadow: 0 20px 40px -16px rgba(16, 26, 69, .45), inset 0 0 0 5px rgba(16, 26, 69, .1), inset 0 0 0 7px rgba(255, 255, 255, .5); }

/* Fond animé en version claire */
.orb { opacity: .7; }
.orb--1 { background: radial-gradient(circle, rgba(120, 140, 230, .45), transparent 65%); }
.orb--2 { background: radial-gradient(circle, rgba(195, 202, 216, .8), transparent 65%); opacity: .6; }
.orb--3 { background: radial-gradient(circle, rgba(43, 58, 146, .22), transparent 65%); }
.hero__lines { opacity: 1; background-image: linear-gradient(rgba(43, 58, 146, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 58, 146, .06) 1px, transparent 1px); }
.hero__sweep { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); }

/* En-tête clair */
.header { color: var(--night); }
.header.scrolled::before { background: rgba(255, 255, 255, .9); border-color: var(--line); }
.brand__logo { border-color: var(--line); color: var(--blue); background: #fff; }
.brand__txt small { color: var(--blue); }
.header .lang, .header .burger { border-color: var(--line); }
.header .lang button.on { background: var(--blue); color: #fff; }
.nav > a::after { background: var(--blue); }
@media (max-width: 960px) {
  .nav { background: var(--white); color: var(--night); }
  .nav > a { border-bottom-color: var(--line); }
  .nav__foot { color: var(--blue); }
  .menu-open .header::before { background: var(--white); }
}

/* Logo B·M : il possède déjà son propre cercle */
.brand__logo { border: 0; background: none; width: 50px; height: 50px; }
.brand__logo svg { width: 50px; height: 50px; }
.brand--light .brand__logo { color: var(--accent-2); }
.plaque__logo { width: clamp(120px, 16vw, 170px); }

/* Numéros : secrétariat / ligne directe */
.tels { line-height: 1.9; }
.tels__tag { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 1px 8px; border: 1px solid var(--line); border-radius: 100px; margin-inline-start: 4px; white-space: nowrap; }
.cards__law { border-inline-start: 3px solid var(--blue) !important; }
.bk__sec { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: 18px; color: rgba(245, 247, 251, .75); font-size: 15px; }
.bk__sec span { flex-basis: 100%; }
.bk__sec a { padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 100px; color: var(--accent-2); font-weight: 600; transition: background .2s; }
.bk__sec a:hover { background: rgba(233, 237, 245, .1); }
.footer .hours + ul, .footer ul li span[data-i18n] { opacity: .85; }
.urgent__tel--sm { font-size: 1.05rem; opacity: .85; }

/* Photo du Dr Menkar */
.arch__photo img { object-position: 62% 12%; animation: rise 1.4s var(--ease) both; }
.member__ic--photo { width: 76px; height: 76px; overflow: hidden; border: 2px solid var(--accent); background: none; }
.member__ic--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 14%; }

/* Galerie du cabinet */
.office { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); margin-bottom: 26px; }
.office figure { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.office__big { grid-row: span 2; }
.office img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.office figure:hover img { transform: scale(1.05); }
.office figcaption { position: absolute; inset: auto 0 0; padding: 40px 20px 16px; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(transparent, rgba(16, 26, 69, .85)); }
.office__note { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; padding: 4px 10px; border-radius: 100px; font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .85); }

/* Parcours : bibliothèque en fond */
#parcours { overflow: hidden; }
#parcours::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url("https://images.unsplash.com/photo-1505664063603-28e48ca204eb?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%); mask-image: linear-gradient(90deg, #000, transparent 75%); }
html[dir="rtl"] #parcours::before { -webkit-mask-image: linear-gradient(270deg, #000, transparent 75%); mask-image: linear-gradient(270deg, #000, transparent 75%); }
#parcours .wrap { position: relative; }
@media (max-width: 640px) {
  .office { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px; height: auto; }
  .office__big { grid-row: auto; grid-column: 1 / -1; }
}
