/* ==========================================================================
   Étude de Maître Adil El Mandri — Tétouan
   Identité : l'arc andalou de Tétouan, le vert des tuiles de la médina, la chaux.
   Toutes les marges utilisent des propriétés logiques : l'arabe s'inverse seul.
   ========================================================================== */

:root {
  --chaux: #FAFAF7;       /* fond : murs blanchis à la chaux */
  --chaux-2: #EEF3F0;     /* sections secondaires */
  --white: #FFFFFF;
  --ink: #17211F;         /* texte */
  --ink-2: #3B4744;
  --muted: #5C6865;
  --vert: #0E4D45;        /* vert des tuiles de Tétouan : couleur principale */
  --vert-deep: #0A3B35;
  --nuit: #072824;        /* bandeau supérieur, pied de page */
  --celadon: #CFE2DA;     /* accents sur fond vert */
  --celadon-2: #E3EEEA;
  --line: #DCE4E0;
  --ok: #1E6B48;
  --err: #A3262A;

  --ff-display: "Marcellus", "Times New Roman", serif;
  --ff-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.65;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 78px;
}
[dir="rtl"] {
  --ff-display: "Reem Kufi", "Noto Kufi Arabic", Tahoma, sans-serif;
  --ff-body: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --fs-body: 1.125rem;
  --lh-body: 1.9;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--chaux); color: var(--ink); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--vert); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
main:focus { outline: none; }
bdi { white-space: nowrap; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 600; line-height: 1.4; }
[dir="rtl"] h3 { font-size: 1.2rem; }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.lead-sm { font-size: 1.15rem; color: var(--ink-2); }
.fine { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--vert); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 840px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--ff-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9375rem; }
.btn-primary { background: var(--vert); color: #fff; }
.btn-primary:hover { background: var(--vert-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--vert); border-color: var(--vert); }
.btn-quiet:hover { background: var(--celadon-2); color: var(--vert-deep); }
.btn-light { background: #fff; color: var(--vert-deep); }
.btn-light:hover { background: var(--celadon); color: var(--vert-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--nuit); color: var(--celadon); font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 40px; }
.topbar-link { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; }
.topbar-link:hover { color: var(--celadon); text-decoration: underline; }
.topbar-link .i { color: var(--celadon); width: 1.05em; height: 1.05em; }
.lang-switch { display: flex; gap: .25rem; margin-inline-start: auto; }
.lang-switch a { padding: .15rem .6rem; border-radius: 999px; color: var(--celadon); text-decoration: none; font-weight: 600; font-size: .8125rem; line-height: 1.6; }
.lang-switch a:hover { background: rgba(207,226,218,.15); color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--celadon); color: var(--nuit); }
.lang-switch a[lang="ar"] { font-family: "Noto Naskh Arabic", Tahoma, sans-serif; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -22px rgba(7,40,36,.6); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.emblem { width: 44px; height: 44px; flex: none; color: var(--vert); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--ff-display); font-size: 1.35rem; white-space: nowrap; }
[dir="rtl"] .brand-name { font-weight: 600; font-size: 1.3rem; }
.brand-role { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.nav-panel { display: flex; align-items: center; gap: 1.25rem; }
.nav-panel > * { flex-shrink: 0; }
.nav-list { list-style: none; display: flex; gap: .1rem; }
.nav-list a { display: block; padding: .5rem .65rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 6px; }
.nav-list a:hover { color: var(--vert); background: var(--celadon-2); }
.nav-list a[aria-current="page"] { color: var(--vert); box-shadow: inset 0 -2px 0 var(--vert); border-radius: 0; }
.nav-toggle { display: none; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .95rem var(--ff-body); cursor: pointer; }
.nav-toggle .i-shut { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-shut { display: inline; }

@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(7,40,36,.45); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav-panel { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: .8rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; }
}
@media (max-width: 640px) {
  .topbar-mail { display: none; }
  .topbar-inner { gap: 1rem; }
  .brand-role { display: none; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Héros : l'arc ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.04; margin-bottom: .5em; max-width: 12em; color: var(--vert-deep); }
[dir="rtl"] .hero-title { line-height: 1.35; font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero-note { display: flex; gap: .55rem; align-items: flex-start; margin: 2rem 0 0; color: var(--muted); font-size: .95rem; max-width: 34em; }
.hero-note .i { color: var(--vert); margin-top: .2em; }
.arch { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 430px; }
.arch-svg { display: block; width: 100%; height: auto; overflow: visible; }
.arch-fill { fill: var(--vert); }
.arch-line { stroke: var(--vert); stroke-opacity: .35; stroke-width: 1.5; }
/* L'acte posé devant l'arc : signature puis sceau */
.deed {
  position: absolute; inset-inline: 13%; bottom: 3%;
  padding: 1.3rem 1.4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 26px 44px -26px rgba(7,40,36,.6); transform: rotate(-2deg);
}
.deed::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(14,77,69,.22); pointer-events: none; }
.deed-title { font-family: var(--ff-display); font-size: 1.2rem; text-align: center; margin: 0 0 .55rem; color: var(--vert-deep); }
[dir="rtl"] .deed-title { font-weight: 600; }
.deed-rule { width: 3rem; height: 1px; background: var(--vert); margin: 0 auto 1.1rem; }
.deed-lines { display: grid; gap: .6rem; }
.deed-lines span { display: block; height: 6px; width: var(--w); border-radius: 2px; background: #E3E9E6; }
.deed-lines .gap { margin-top: .45rem; }
.deed-place { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); font-style: italic; }
[dir="rtl"] .deed-place { font-style: normal; }
.deed-sign { display: block; width: 60%; height: auto; margin-top: -.2rem; overflow: visible; }
.deed-sign path { stroke: #1F2D4A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.deed-sign .sign-b { stroke-width: 1.8; }
.seal { position: absolute; inset-inline-end: -1.4rem; bottom: -1.7rem; width: 118px; height: 118px; color: var(--vert); opacity: .9; transform: rotate(-14deg); mix-blend-mode: multiply; }

/* Le moment signature : le treillis s'éclaire, la signature se trace, le sceau est apposé (une seule fois) */
@media (prefers-reduced-motion: no-preference) {
  .arch-lattice { opacity: 0; animation: lattice-in 1.4s ease .2s forwards; }
  .arch-sweep { animation: sweep 2.2s cubic-bezier(.4,0,.2,1) .4s 1 forwards; }
  .deed-sign .sign-a { stroke-dashoffset: 1; animation: sign 1.4s cubic-bezier(.55,.1,.35,1) .9s forwards; }
  .deed-sign .sign-b { stroke-dashoffset: 1; animation: sign .45s ease-out 2.35s forwards; }
  .seal { opacity: 0; animation: stamp .5s cubic-bezier(.2,.9,.3,1.2) 2.85s forwards; }
}
.arch-sweep { transform: translateY(0); opacity: 0; }
@keyframes lattice-in { to { opacity: 1; } }
@keyframes sweep { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(800px); opacity: 1; } }
@keyframes sign { to { stroke-dashoffset: 0; } }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.35); }
  60% { opacity: .95; transform: rotate(-15deg) scale(.96); }
  100% { opacity: .9; transform: rotate(-14deg) scale(1); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-top { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.section-flush { padding-top: 0; }
.section-alt { background: var(--chaux-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 32em; }

.about-strip { padding-block: clamp(3rem, 6vw, 4.5rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem 4rem; align-items: start; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.about-grid h2 { margin: 0; color: var(--vert-deep); }
.about-grid p { max-width: 38em; }

/* Domaines : quatre portes */
.domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.domain { display: grid; align-content: start; gap: .35rem; padding: 2rem 2rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.domain:hover { border-color: var(--vert); background: #fdfefd; color: var(--ink); }
.domain h3 { margin: .9rem 0 0; color: var(--vert-deep); }
.domain p { margin: 0; color: var(--muted); }
.domain-more { margin-top: .75rem; font-weight: 600; color: var(--vert); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color .15s ease; }
.domain:hover .domain-more { text-decoration-color: currentColor; }
.arch-icon { display: grid; place-items: center; width: 52px; height: 62px; padding-top: 6px; border-radius: 999px 999px 6px 6px; background: var(--vert); color: #fff; }
.arch-icon .i { width: 24px; height: 24px; }

/* Bandeau vert */
.band { background: var(--vert); color: var(--celadon); padding-block: clamp(4rem, 8vw, 6rem); }
.band h2, .band h3 { color: #fff; }
.band .section-head p { color: var(--celadon); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.pillars > div { border-top: 1px solid rgba(207,226,218,.35); padding-top: 1.5rem; }
.pillars .i { width: 30px; height: 30px; color: var(--celadon); margin-bottom: 1rem; display: block; }
.pillars p { margin: 0; color: var(--celadon); }

/* Déroulement : vraie séquence */
.steps-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.steps-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.steps-intro p { color: var(--muted); max-width: 26em; margin-bottom: 1.5rem; }
.timeline { list-style: none; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 23px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { counter-increment: step; position: relative; padding-inline-start: 4.5rem; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: -.2rem;
  display: grid; place-items: center; width: 48px; height: 54px; padding-top: 4px;
  border-radius: 999px 999px 6px 6px; background: var(--chaux); border: 1.5px solid var(--vert); color: var(--vert);
  font-family: "Marcellus", serif; font-size: 1.25rem;
}
.timeline h3 { margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Clôture */
.closing { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.closing > * { min-width: 0; }
.abroad .i { width: 32px; height: 32px; color: var(--vert); margin-bottom: 1rem; display: block; }
.abroad p { color: var(--ink-2); max-width: 30em; }
.cta-arch { padding: clamp(3.5rem, 7vw, 5rem) clamp(1.75rem, 5vw, 3.5rem) clamp(2.25rem, 4vw, 3rem); background: var(--vert); color: var(--celadon); border-radius: 260px 260px var(--radius-lg) var(--radius-lg); text-align: center; }
.cta-arch h2 { color: #fff; }
.cta-arch p { color: var(--celadon); max-width: 30em; margin-inline: auto; }
.cta-arch .actions { justify-content: center; }

/* ---------- En-tête de page ---------- */
.page-head { background: var(--chaux-2); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin-inline: .45rem; }
.page-head h1 { margin-bottom: .35em; color: var(--vert-deep); }
.page-head .lead { margin: 0; }

/* ---------- L'étude ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 40rem; }
.prose p { color: var(--ink-2); }
.facts { display: grid; gap: 1.25rem; margin: 0; }
.facts div { display: flex; flex-direction: column-reverse; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--vert); border-radius: var(--radius); }
.facts dd { margin: 0; font-family: "Marcellus", serif; font-size: 2.6rem; line-height: 1.05; color: var(--vert); }
.facts dt { color: var(--muted); font-size: .95rem; }
.notary-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.notary-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.notary-visual { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--vert); border-radius: 999px 999px 0 0 / 60% 60% 0 0; margin: 1.25rem 1.25rem 0; }
.notary-visual .emblem { width: 34%; height: auto; color: var(--celadon); }
.notary-visual .photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.notary-card figcaption { padding: 1.5rem 1.75rem 1.75rem; }
.notary-card strong { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.45rem; color: var(--vert-deep); }
[dir="rtl"] .notary-card strong { font-weight: 600; }
.notary-card figcaption > span { display: block; color: var(--vert); margin-bottom: .8rem; font-weight: 600; }
.notary-card p { margin: 0; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 2rem 0 0; }
.values div { border-top: 2px solid var(--vert); padding-top: 1rem; }
.values dt { font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: .35rem; color: var(--vert-deep); }
[dir="rtl"] .values dt { font-weight: 600; }
.values dd { margin: 0; color: var(--muted); }

/* ---------- Domaines (page) ---------- */
.with-aside { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc ul { list-style: none; display: grid; gap: .3rem; }
.toc a { display: block; padding: .55rem .9rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.toc a:hover { background: var(--celadon-2); color: var(--vert); }
.toc a.is-active { background: var(--vert); color: #fff; }
.dom-block { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); max-width: 46rem; }
.dom-block h2 { margin: 1rem 0 .6rem; color: var(--vert-deep); }
.dom-block > p { color: var(--ink-2); }
.dom-block h3 { font-family: var(--ff-body); font-size: .95rem; font-weight: 700; color: var(--muted); margin: 1.6rem 0 .8rem; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: .62rem; height: .75rem; border-radius: 999px 999px 2px 2px; background: var(--vert); }

.note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 2.5rem; padding: 1.75rem 2rem; background: var(--celadon-2); border-radius: var(--radius-lg); }
.note p { margin: 0; max-width: 36em; }
.note h3 { margin-bottom: .35rem; }

/* ---------- Pièces à fournir ---------- */
.docs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.hint { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--muted); font-size: .95rem; }
.hint .i { color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chips a { padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.chips a:hover { border-color: var(--vert); color: var(--vert); }
.doc-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.doc-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.doc-list-wide { grid-column: 1 / -1; }
.doc-list h2 { font-size: 1.55rem; color: var(--vert-deep); }
.doc-list h3 { font-family: var(--ff-body); font-size: .95rem; font-weight: 700; color: var(--muted); margin: .5rem 0 .6rem; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.checklist { list-style: none; }
.checklist li + li { border-top: 1px solid var(--celadon-2); }
.checklist label { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; cursor: pointer; }
.checklist input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--vert); cursor: pointer; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.callout { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2rem; padding: 1.75rem 2rem; background: var(--celadon-2); border-inline-start: 4px solid var(--vert); border-radius: var(--radius); }
.callout .i { width: 28px; height: 28px; color: var(--vert); margin-top: .2rem; }
.callout h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.callout p { margin: 0; color: var(--ink-2); max-width: 46em; }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sim-form { padding: clamp(1.75rem, 4vw, 2.75rem); border-inline-end: 1px solid var(--line); }
.sim-form h2 { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--vert-deep); }
.sim-result { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--chaux-2); display: flex; flex-direction: column; }
.sim-empty { color: var(--muted); margin: 0 0 auto; padding: 2rem 0; }
.sim-lines { margin: 0 0 1.5rem; }
.sim-lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sim-lines dt { color: var(--ink-2); }
.sim-lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rate { color: var(--muted); font-size: .875rem; }
.sim-total { display: grid; gap: .1rem; margin-bottom: 1.5rem; }
.sim-total > span:first-child { color: var(--muted); }
.sim-total strong { font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--vert); line-height: 1.2; font-variant-numeric: tabular-nums; }
.sim-pct { color: var(--ink-2); font-size: .95rem; }
.sim-result .fine { margin: auto 0 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.three > div { border-top: 2px solid var(--vert); padding-top: 1rem; }
.three p { color: var(--muted); margin: 0; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .4rem; margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-label { font-weight: 600; font-size: .95rem; color: var(--ink); padding: 0; }
.req { color: var(--err); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #C9D4CF; border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(14,77,69,.18); }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(163,38,42,.12) !important; }
.affix-wrap { position: relative; display: block; }
.affix-wrap input { padding-inline-end: 4.5rem; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.affix { position: absolute; inset-inline-end: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .875rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--vert); }
.radios { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.radios legend { width: 100%; margin-bottom: .2rem; }
.radios.is-invalid legend { color: var(--err); }
.radios.is-invalid input { outline: 2px solid var(--err); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; align-items: end; }
.row2 > * { min-width: 0; }
.consent { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.5rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.spam-hint { display: block; margin-top: .75rem; padding: .8rem 1rem; border-inline-start: 3px solid var(--vert); background: var(--celadon-2); color: var(--ink-2); font-weight: 400; font-size: .95rem; line-height: 1.5; border-radius: 4px; }

/* ---------- Contact et rendez-vous ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.form-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-aside h2 { font-size: 1.5rem; color: var(--vert-deep); }
.info { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 2.25rem; }
.info li { display: flex; gap: .9rem; align-items: flex-start; }
.info .i { width: 22px; height: 22px; color: var(--vert); margin-top: .2rem; }
.info strong { display: block; font-size: .875rem; color: var(--muted); font-weight: 600; }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--chaux-2); margin-bottom: .75rem; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rdv-box { background: var(--vert); color: var(--celadon); padding: 1.6rem 1.75rem; border-radius: 120px 120px var(--radius-lg) var(--radius-lg); padding-top: 2.4rem; margin-bottom: 2.25rem; text-align: center; }
.rdv-box p { margin: 0 0 1rem; color: #fff; }
.rdv-box .btn { width: 100%; }
.phone-line { display: flex; align-items: center; gap: .65rem; padding: .45rem 0; color: #fff; text-decoration: none; text-align: start; }
.phone-line:hover { color: var(--celadon); }
.phone-line .i { color: var(--celadon); }
.phone-line span { color: var(--celadon); font-size: .875rem; flex: 1; }
.phone-line bdi { font-size: 1.05rem; }
.mini-steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; margin-bottom: 2.25rem; }
.mini-steps li { counter-increment: s; position: relative; padding-inline-start: 2.9rem; color: var(--ink-2); min-height: 2.2rem; padding-top: .2rem; }
.mini-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 2rem; height: 2.3rem; padding-top: 3px; display: grid; place-items: center; border-radius: 999px 999px 4px 4px; background: var(--vert); color: #fff; font-family: "Marcellus", serif; }
.hours-block { color: var(--ink-2); margin-bottom: 2rem; }

/* ---------- Questions ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq details[open] { border-color: var(--vert); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; cursor: pointer; list-style: none; font-family: var(--ff-display); font-size: 1.2rem; line-height: 1.35; color: var(--vert-deep); }
[dir="rtl"] .faq summary { font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--celadon-2); color: var(--vert); font-family: var(--ff-body); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.5rem 1.4rem; color: var(--ink-2); max-width: 44em; }
.faq details > div p { margin: 0; }

/* ---------- Mentions légales ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; color: var(--vert-deep); }
.legal h2:first-child { margin-top: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: var(--celadon); padding-top: clamp(3.5rem, 6vw, 4.5rem); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .emblem { color: var(--celadon); width: 52px; height: 52px; margin-bottom: 1rem; }
.footer-name { font-family: var(--ff-display); font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
[dir="rtl"] .footer-name { font-weight: 600; }
.footer-h { font-family: var(--ff-body); font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: .45rem; }
.footer-hours { line-height: 1.75; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(207,226,218,.18); font-size: .8125rem; }
.footer-bottom p { margin: 0; max-width: 60em; }
.wa-float { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #1E7B52; color: #fff; box-shadow: 0 10px 24px -10px rgba(7,40,36,.6); }
.wa-float:hover { background: #17633F; color: #fff; }
.wa-float .i { width: 26px; height: 26px; }

/* ---------- 404 et page d'accueil des langues ---------- */
.e404 { min-height: 60vh; display: grid; align-content: center; padding-block: 3rem; }
.emblem-lg { width: 84px; height: 84px; color: var(--vert); margin-bottom: 1.5rem; }
.e404-langs { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars, .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: .5rem; }
  .toc a { border: 1.5px solid var(--line); background: #fff; }
}
@media (max-width: 880px) {
  .hero-grid, .closing, .story-grid, .notary-grid, .contact-grid, .sim, .steps-grid, .about-grid, .section-head { grid-template-columns: 1fr; }
  .arch { max-width: 340px; }
  .steps-intro { position: static; }
  .domains, .doc-lists, .doc-cols, .three { grid-template-columns: 1fr; }
  .sim-form { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .callout { flex-direction: column; }
}
@media (max-width: 600px) {
  .lead { font-size: 1.1rem; }
  .btn { white-space: normal; text-align: center; }
  .actions .btn { flex: 1 1 auto; }
  .pillars, .values, .footer-grid, .row2, .ticks, .facts { grid-template-columns: 1fr; }
  .domain { padding: 1.5rem; }
  .note { padding: 1.5rem; }
  .deed { inset-inline: 6%; padding: 1.2rem 1.25rem 1rem; }
  .deed-title { font-size: 1.05rem; }
  .seal { width: 92px; height: 92px; inset-inline-end: -.6rem; }
  .cta-arch { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .topbar, .site-header, .site-footer, .wa-float, .skip, .docs-toolbar, .chips, .actions, .note, .toc, .crumbs, .sprite { display: none !important; }
  .page-head { background: none; padding: 0 0 8mm; }
  .section { padding: 0; }
  .doc-lists { display: block; }
  .doc-list { border: 1px solid #999; break-inside: avoid; margin-bottom: 6mm; padding: 5mm 6mm; }
  .doc-cols { grid-template-columns: 1fr 1fr; }
  .callout { border: 1px solid #999; background: none; }
  a { color: #000; text-decoration: none; }
}
