/* =========================================================
   Maître Mohamed Akaaboune — Fès
   Palette « Fès » : vert zellige profond / laiton / parchemin
   ========================================================= */
:root {
  --ink: #0d2922;         /* vert nuit (fonds sombres) */
  --green: #154236;
  --green-2: #1e5a49;
  --brass: #c49a4e;       /* laiton */
  --brass-2: #e3c887;
  --brass-ink: #8a6524;   /* laiton lisible sur fond clair */
  --parchment: #f4eddd;
  --parchment-2: #e9dfc8;
  --paper: #fbf8f0;
  --text: #1a2420;
  --muted: #56615b;
  --line: rgba(13, 41, 34, .14);
  --line-2: rgba(13, 41, 34, .07);
  --line-dark: rgba(227, 200, 135, .2);
  --white: #fffdf7;
  --wa: #1fa855;
  --err: #a33a24;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;

  /* Motif zellige : étoiles à huit branches */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23e3c887' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h8M64 36h8M36 0v8M36 64v8'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Ccircle cx='72' cy='0' r='8'/%3E%3Ccircle cx='0' cy='72' r='8'/%3E%3Ccircle cx='72' cy='72' r='8'/%3E%3C/g%3E%3C/svg%3E");
}
html[dir="rtl"] {
  --f-display: "Reem Kufi", "Fraunces", 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(--paper);
  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, input, select, textarea { font: inherit; color: inherit; }
button { 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.12; letter-spacing: -.015em; }
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, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 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(--brass-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); 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(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
em { font-style: italic; color: var(--brass-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); }

/* ---------- Typo commune ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); flex: none; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow--light { color: var(--brass-2); }
.h2 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 18px; }
html[dir="rtl"] .h2 { font-size: clamp(28px, 3.8vw, 44px); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
html[dir="rtl"] .lead { font-size: 19px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  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--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-2); transform: translateY(-2px); }
.btn--outline { border-color: var(--line-dark); color: var(--parchment); }
.btn--outline:hover { border-color: var(--brass-2); color: var(--brass-2); }
.btn--green { background: var(--green); color: var(--parchment); }
.btn--green:hover { background: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; }

/* ---------- Barre d'infos ---------- */
.topbar { background: var(--ink); color: rgba(244, 237, 221, .78); font-size: 13.5px; border-bottom: 1px solid var(--line-dark); }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__item svg { width: 15px; height: 15px; color: var(--brass); }
.topbar a.topbar__item { margin-inline-start: auto; color: var(--brass-2); font-weight: 700; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 240, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -20px rgba(13, 41, 34, .5); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; color: var(--green); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__txt strong { white-space: nowrap; font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.brand__txt small { font-size: 12.5px; color: var(--muted); }
html[dir="rtl"] .brand__txt strong { font-size: 19px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav > a { font-size: 14.5px; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
html[dir="rtl"] .nav > a { font-size: 16px; }
.nav > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover, .nav > a.active { color: var(--ink); }
.nav > a.active::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang button { padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 38px; }
.lang button.on { background: var(--green); color: var(--parchment); }
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--parchment); overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .07; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(30, 90, 73, .6), transparent 70%); }
html[dir="rtl"] .hero::after { background: radial-gradient(ellipse 70% 60% at 25% 40%, rgba(30, 90, 73, .6), transparent 70%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { display: flex; flex-direction: column; margin-bottom: 14px; }
.hero__pre { font-size: clamp(20px, 2.4vw, 28px); color: var(--brass-2); font-weight: 500; font-style: italic; }
html[dir="rtl"] .hero__pre { font-style: normal; }
.hero__name { font-size: clamp(44px, 7vw, 88px); line-height: 1; color: var(--white); }
html[dir="rtl"] .hero__name { line-height: 1.3; }
.hero__role { font-size: 16px; color: rgba(244, 237, 221, .75); margin-bottom: 28px; }
html[dir="rtl"] .hero__role { font-size: 18px; }
.hero__motto {
  font-family: var(--f-display); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.4; color: var(--brass-2);
  padding-inline-start: 20px; border-inline-start: 3px solid var(--brass); margin-bottom: 22px; font-style: italic;
}
html[dir="rtl"] .hero__motto { font-style: normal; line-height: 1.7; }
.hero__text { max-width: 560px; color: rgba(244, 237, 221, .82); font-size: 17px; margin-bottom: 34px; }
html[dir="rtl"] .hero__text { font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Porte en arc (bab) */
.hero__gate { display: flex; justify-content: center; }
.gate {
  position: relative; width: min(100%, 360px); aspect-ratio: 3 / 4.1; padding: 26% 10% 12%;
  border: 1px solid var(--brass); border-radius: 50% 50% 0 0 / 36% 36% 0 0;
  background: linear-gradient(180deg, rgba(30, 90, 73, .55), rgba(13, 41, 34, .2));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gate::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-dark); border-radius: inherit; pointer-events: none; }
.gate__star { width: 44%; height: auto; aspect-ratio: 1; color: var(--brass-2); margin-bottom: 24px; }
.gate__ar { font-family: "Reem Kufi", serif; font-size: 25px; color: var(--white); line-height: 1.4; }
.gate__fr { font-family: "Fraunces", serif; font-style: italic; font-size: 17px; color: rgba(244, 237, 221, .75); }
.gate__rule { width: 60px; height: 1px; background: var(--brass); margin: 18px 0 14px; }
.gate__seal { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
html[dir="rtl"] .gate__seal { letter-spacing: 0; font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-dark); }
.stats li { padding: 28px 22px 32px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-inline-start: 1px solid var(--line-dark); }
.stats b { font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: var(--brass-2); line-height: 1.2; }
.stats span { font-size: 14px; color: rgba(244, 237, 221, .72); }
html[dir="rtl"] .stats span { font-size: 15.5px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec--parchment { background: var(--parchment); }
.sec--green { background: var(--green); color: var(--parchment); }
.sec--green .h2 { color: var(--white); }
.sec--green em { color: var(--brass-2); }
.sec--flush { padding: 0; }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.sec__head--center { text-align: center; margin-inline: auto; }

/* Le cabinet */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__side { position: sticky; top: calc(var(--header-h) + 32px); }
.quote { margin-top: 30px; padding: 30px 32px; background: var(--parchment); border-radius: 0 0 var(--r) var(--r); position: relative; border-top: 3px solid var(--brass); }
.quote blockquote { font-family: var(--f-display); font-size: 21px; line-height: 1.5; color: var(--ink); font-style: italic; }
html[dir="rtl"] .quote blockquote { font-style: normal; font-size: 21px; line-height: 1.8; }
.quote figcaption { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brass-ink); }
.about__main > p { margin-bottom: 20px; color: var(--muted); }
.about__main > .lead { color: var(--text); max-width: none; }
.creds { margin-top: 36px; border-top: 1px solid var(--line); }
.creds li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.creds__n { font-family: var(--f-display); font-size: 15px; color: var(--brass-ink); padding-top: 3px; min-width: 26px; }
.creds h3 { font-size: 21px; margin-bottom: 4px; color: var(--ink); }
.creds p { color: var(--muted); font-size: 15.5px; }

/* Domaines : onglets */
.practice { display: grid; grid-template-columns: 330px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.practice__tabs { display: flex; flex-direction: column; background: var(--parchment-2); border-inline-end: 1px solid var(--line); }
.practice__tabs button {
  display: flex; align-items: center; gap: 14px; padding: 17px 22px; text-align: start; font-weight: 500; font-size: 15.5px;
  color: var(--muted); border-bottom: 1px solid var(--line-2); position: relative; transition: background .2s, color .2s;
}
html[dir="rtl"] .practice__tabs button { font-size: 17px; }
.practice__tabs button:hover { color: var(--ink); background: rgba(255, 253, 247, .5); }
.practice__tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 700; }
.practice__tabs button[aria-selected="true"]::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--brass); }
.tab__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 66, 54, .08); color: var(--green); flex: none; }
.tab__ic svg { width: 19px; height: 19px; }
.practice__tabs button[aria-selected="true"] .tab__ic { background: var(--green); color: var(--brass-2); }
.panel { padding: clamp(28px, 4vw, 52px); animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.panel__n { direction: ltr; font-family: "Fraunces", serif; font-size: 14px; color: var(--brass-ink); letter-spacing: .1em; }
.panel__ic { width: 64px; height: 64px; border: 1px solid var(--brass); display: grid; place-items: center; color: var(--green); transform: rotate(45deg); }
.panel__ic svg { width: 28px; height: 28px; transform: rotate(-45deg); }
.panel h3 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); margin-bottom: 10px; }
.panel__d { font-size: 17.5px; color: var(--muted); margin-bottom: 28px; max-width: 560px; }
.panel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 34px; }
.panel__list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.panel__list svg { width: 18px; height: 18px; color: var(--brass-ink); margin-top: 4px; }
html[dir="rtl"] .panel__list svg { margin-top: 6px; }

.more { margin-top: 48px; }
.more__h { font-size: 22px; color: var(--ink); margin-bottom: 18px; }
.more__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.more__list li { background: var(--paper); border: 1px solid var(--line); padding: 20px; border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.more__list b { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.3; }
.more__list span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.more__list li.star { background: var(--green); border-color: var(--green); }
.more__list li.star b { color: var(--brass-2); }
.more__list li.star span { color: rgba(244, 237, 221, .8); }

/* Pourquoi nous */
#pourquoi::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .05; pointer-events: none; }
#pourquoi > .wrap { position: relative; }
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.why li { background: var(--green); padding: 32px 24px 36px; }
.why__ic { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--brass); color: var(--brass-2); transform: rotate(45deg); margin: 6px 6px 26px; }
.why__ic svg { transform: rotate(-45deg); }
.why h3 { font-size: 20px; color: var(--white); margin-bottom: 8px; }
.why p { font-size: 15px; color: rgba(244, 237, 221, .75); }

/* Approche */
.approach { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); }
.road { position: relative; counter-reset: s; }
.road::before { content: ""; position: absolute; inset-block: 24px; inset-inline-start: 23px; width: 1px; background: linear-gradient(var(--brass), var(--line)); }
.road li { position: relative; padding-inline-start: 76px; padding-bottom: 34px; }
.road li:last-child { padding-bottom: 0; }
.road__n {
  position: absolute; inset-inline-start: 0; top: 0; width: 47px; height: 47px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--brass); color: var(--brass-ink);
  font-family: "Fraunces", serif; font-size: 19px; font-weight: 600;
}
.road h3 { font-size: 22px; color: var(--ink); margin: 8px 0 6px; }
.road p { color: var(--muted); }

/* Rendez-vous */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.lines { margin: 32px 0 20px; display: grid; gap: 10px; }
.lines a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s var(--ease); }
.lines a:hover { border-color: var(--brass); transform: translateX(4px); }
html[dir="rtl"] .lines a:hover { transform: translateX(-4px); }
.lines svg { width: 22px; height: 22px; color: var(--green); }
.lines span { display: flex; flex-direction: column; line-height: 1.35; }
.lines small { font-size: 13px; color: var(--muted); }
.lines b { font-family: "Fraunces", serif; font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.hours { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.hours svg { color: var(--brass-ink); margin-top: 3px; }
.hours > span { display: flex; flex-direction: column; }
.hours b { color: var(--ink); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--paper); padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--r); box-shadow: 0 30px 60px -40px rgba(13, 41, 34, .45);
}
.form__h { grid-column: 1 / -1; font-size: 24px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label { margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21, 66, 54, .12); }
.field .invalid { border-color: var(--err); }
html[dir="rtl"] #b-phone { text-align: right; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; background: var(--white); transition: all .2s; }
html[dir="rtl"] .pill { font-size: 15px; }
.pill:hover { border-color: var(--green); }
.pill.sel { background: var(--green); border-color: var(--green); color: var(--parchment); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.form__err { color: var(--err); font-size: 14px; font-weight: 700; min-height: 0; }
.form__err:empty, .form__ok:empty { display: none; }
.form__ok { color: var(--green); font-size: 14.5px; font-weight: 700; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); }
.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: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 19px; color: var(--ink); }
html[dir="rtl"] .qa h3 { font-size: 19px; font-family: var(--f-body); font-weight: 700; }
.qa__x { width: 28px; height: 28px; position: relative; flex: none; border: 1px solid var(--line); border-radius: 50%; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: var(--brass-ink); transform: translate(-50%, -50%); transition: transform .3s; }
.qa__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%) rotate(0); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; }
.contact__map { position: relative; background: var(--parchment-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(1.05); }
.contact__card { padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); position: relative; }
.contact__card::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .05; pointer-events: none; }
.contact__list { display: grid; gap: 22px; margin: 28px 0 34px; position: relative; }
.contact__list dt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--brass-2); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
html[dir="rtl"] .contact__list dt { letter-spacing: 0; font-size: 15px; }
.contact__list dt svg { width: 17px; height: 17px; }
.contact__list dd { color: rgba(244, 237, 221, .88); }
.contact__list a:hover { color: var(--brass-2); }
.contact__btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.social { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: var(--r); color: var(--brass-2); }
.social:hover { border-color: var(--brass-2); }
.social[hidden] { display: none; }

/* Pied de page */
.footer { background: var(--ink); color: rgba(244, 237, 221, .72); padding: 64px 0 28px; font-size: 15px; }
.footer__top { display: flex; align-items: center; gap: 22px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__star { width: 60px; height: 60px; color: var(--brass); }
.footer__motto { font-family: var(--f-display); font-size: clamp(20px, 2.5vw, 28px); color: var(--parchment); font-style: italic; }
html[dir="rtl"] .footer__motto { font-style: normal; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr; gap: 40px; padding: 44px 0; }
.footer__name { font-family: var(--f-display); font-size: 20px; color: var(--white); margin-bottom: 10px; }
.footer h3 { font-family: var(--f-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brass-2); margin-bottom: 16px; }
html[dir="rtl"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul { display: grid; gap: 9px; }
.footer a:hover { color: var(--brass-2); }
.fhours li { display: flex; justify-content: space-between; gap: 12px; }
.footer__disc { font-size: 13px; color: rgba(244, 237, 221, .5); padding: 22px 0; border-top: 1px solid var(--line-dark); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(244, 237, 221, .5); }

/* Barre mobile */
.mbar { display: none; }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s 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; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav { gap: 18px; }
  .header__cta { display: none; }
  .more__list { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .topbar__hours { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); padding: 16px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .header.scrolled .nav, body.past-hero .nav { top: var(--header-h); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { font-family: var(--f-display); font-size: 24px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  html[dir="rtl"] .nav > a { font-size: 22px; }
  .nav > a::after { display: none; }
  .header__end { margin-inline-start: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .gate { width: min(78%, 300px); padding: 22% 8% 10%; }
  .gate__star { margin-bottom: 14px; }
  .gate__ar { font-size: 19px; }
  .gate__fr { font-size: 14px; }
  .gate__rule { margin: 12px 0 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .about, .approach, .booking, .faq { grid-template-columns: 1fr; }
  .about__side { position: static; }
  .practice { grid-template-columns: 1fr; }
  .practice__tabs { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .practice__tabs::-webkit-scrollbar { display: none; }
  .practice__tabs button { flex: none; border-bottom: 0; border-inline-end: 1px solid var(--line-2); padding: 14px 16px; }
  .practice__tabs button[aria-selected="true"]::before { inset-block: auto 0; inset-inline: 0; width: auto; height: 3px; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0; z-index: 40;
    background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .35s var(--ease);
  }
  body.past-hero .mbar { transform: none; }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0; font-size: 12.5px; color: var(--parchment); }
  .mbar svg { width: 20px; height: 20px; color: var(--brass-2); }
  .mbar__main { background: var(--brass); color: var(--ink) !important; font-weight: 700; }
  .mbar__main svg { color: var(--ink) !important; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .topbar__item:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__item:first-child { min-width: 0; }
  .topbar__in { gap: 14px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__txt small { display: none; }
  .brand__txt strong { font-size: 16px; }
  .header__in { gap: 12px; }
  .lang button { min-width: 32px; padding: 6px 8px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats li { padding: 22px 14px 24px; }
  .panel__list { grid-template-columns: 1fr; }
  .panel .btn { width: 100%; white-space: normal; text-align: center; }
  .more__list { grid-template-columns: 1fr 1fr; }
  .more__list li.star { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr; }
  .why li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 24px 20px; }
  .why__ic { grid-row: span 2; margin: 6px; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Photographies (Unsplash)
   ========================================================= */
/* Accueil : médina de Fès en fond */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.7); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 41, 34, .55) 0%, rgba(13, 41, 34, .85) 70%, var(--ink) 100%); }
.hero::before, .hero::after { z-index: 0; }

/* Porte en arc : photo + légende */
.gate { overflow: hidden; justify-content: flex-end; padding: 0 10% 11%; background: var(--ink); }
.gate__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(13, 41, 34, 0) 20%, rgba(13, 41, 34, .35) 42%, rgba(13, 41, 34, .85) 64%, rgba(13, 41, 34, .97) 100%); }
.gate::before { z-index: 2; }
.gate > :not(.gate__img) { position: relative; z-index: 1; }
.gate__star { width: 30%; margin-bottom: 14px; }

/* Le cabinet : bibliothèque */
.about__img { margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 160px 160px 0 0 / 120px 120px 0 0; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img + .quote { margin-top: 0; }

/* Pourquoi nous : zellige */
#pourquoi { background: var(--green) url("../img/zellige.jpg") center / cover; }
#pourquoi::before { background: rgba(21, 66, 54, .93); opacity: 1; }

/* Approche : porte sculptée */
.approach__img { margin-top: 32px; max-width: 380px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 50% 50% 0 0 / 34% 34% 0 0; border: 1px solid var(--brass); padding: 8px; }
.approach__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Bandeau Fès */
.band { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; color: var(--parchment); text-align: center; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.2); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 41, 34, .62), rgba(13, 41, 34, .82)); }
.band__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 80px; }
.band__logo { width: 70px; height: 70px; color: var(--brass-2); }
.band__motto { font-family: var(--f-display); font-size: clamp(26px, 4vw, 46px); line-height: 1.3; color: var(--white); font-style: italic; max-width: 900px; }
html[dir="rtl"] .band__motto { font-style: normal; line-height: 1.6; }

@media (max-width: 960px) {
  .gate { padding: 0 8% 9%; aspect-ratio: 3 / 3.7; }
  .approach__img { max-width: 300px; }
  .band { min-height: 380px; }
}
.road { align-self: start; }

/* Emplacements photo de Maître Akaaboune (maitre-1/2/3.jpg) — vides tant que le fichier n'existe pas */
.photo-slot { position: relative; background: var(--parchment-2); display: grid; place-items: center; }
.photo-slot__logo { width: 34%; height: auto; aspect-ratio: 1; color: var(--brass); opacity: .35; }
.photo-slot img { position: absolute; inset: 0; }
.photo-slot img, .gate__img { opacity: 0; color: transparent; transition: opacity .5s; }
.photo-slot img.ok, .gate__img.ok { opacity: 1; }
.approach__img.photo-slot img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }

/* Photos réelles du cabinet */
.gate__img { object-position: 50% 22%; }
.gate__img.ok ~ .gate__star { display: none; }
.gate:has(.gate__img.ok)::after { background: linear-gradient(180deg, rgba(13, 41, 34, 0) 45%, rgba(13, 41, 34, .7) 70%, rgba(13, 41, 34, .96) 100%); }
.about__img img { object-position: 50% 58%; }
.approach__img img { object-position: 50% 60%; }

/* Galerie */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-dark); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot:nth-child(1) img { object-position: 50% 20%; }
.shot:nth-child(2) img { object-position: 50% 25%; }
.shot figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; font-size: 14.5px; font-weight: 500; color: var(--parchment);
  background: linear-gradient(180deg, transparent, rgba(13, 41, 34, .92));
}
@media (max-width: 960px) { .shots { grid-template-columns: 1fr 1fr; } }
.gate__img.ok { transform: scale(1.65); transform-origin: 55% 36%; }

/* Localisation sous la photo (accueil) */
.hero__gate { flex-direction: column; align-items: center; gap: 18px; }
.spot {
  width: min(100%, 360px); padding: 18px 20px; display: grid; gap: 14px;
  background: rgba(13, 41, 34, .72); border: 1px solid var(--line-dark); border-radius: var(--r); backdrop-filter: blur(6px);
}
.spot__row { display: flex; gap: 12px; align-items: flex-start; color: rgba(244, 237, 221, .9); font-size: 14.5px; line-height: 1.5; }
html[dir="rtl"] .spot__row { font-size: 15.5px; }
.spot__row svg { width: 19px; height: 19px; color: var(--brass-2); margin-top: 2px; }
.spot__row > span { display: flex; flex-direction: column; gap: 2px; }
.spot__row small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-2); }
html[dir="rtl"] .spot__row small { letter-spacing: 0; font-size: 13.5px; }
.spot__row b { font-weight: 500; }
a.spot__row:hover b { color: var(--brass-2); }
.spot__btn { width: 100%; }
@media (max-width: 960px) { .spot { width: min(100%, 420px); } .hero__gate { margin-top: 8px; } }
