/* =========================================================
   Maître El Mustapha Lahsini — Avocat
   Palette « Noir » : noir profond, blanc cassé, filet champagne discret
   ========================================================= */
:root {
  --black: #0c0c0d;        /* fonds sombres */
  --ink: #161618;
  --char: #222225;
  --paper: #f5f3ee;        /* sections claires alternées */
  --white: #fff;
  --text: #17171a;
  --muted: #5e5e65;
  --muted-l: #a3a3aa;      /* texte secondaire sur fond noir */
  --line: rgba(12, 12, 13, .1);
  --line-l: rgba(255, 255, 255, .12);
  --accent: #bfa57c;       /* champagne — utilisé avec parcimonie */
  --wa: #1fa855;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[lang^="ar"] { --f-display: "Amiri", serif; --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif; }

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

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; transition: transform .25s 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 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.sec--paper .btn--light, .idcard .btn--light { background: var(--white); }
.btn--outline { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--char); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #1a9049; box-shadow: 0 12px 30px -12px rgba(31, 168, 85, .7); }

/* ---------- Typographie commune ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
html[lang^="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow--light { color: var(--muted-l); }
.h2 {
  font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em;
  font-size: clamp(32px, 4.4vw, 52px); color: var(--black); max-width: 20ch;
}
html[lang^="ar"] .h2 { font-weight: 700; line-height: 1.35; letter-spacing: 0; font-size: clamp(30px, 4vw, 46px); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
html[lang^="ar"] .lead { font-size: 19px; }

.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--paper { background: var(--paper); }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head .h2 { margin-bottom: 18px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white); transition: background .3s, box-shadow .3s, height .3s;
}
.header.scrolled { background: rgba(12, 12, 13, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-l); --header-h: 66px; }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-l); border-radius: 50%; color: var(--accent);
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__txt strong { font-family: var(--f-display); font-weight: 600; font-size: 19px; white-space: nowrap; }
html[lang^="ar"] .brand__txt strong { font-weight: 700; font-size: 20px; }
.brand__txt small { font-size: 12px; color: var(--muted-l); white-space: nowrap; }
html[lang^="ar"] .brand__txt small { font-size: 13px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { position: relative; font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; padding: 6px 0; }
.nav > a:hover, .nav > a.active { color: var(--white); }
.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.active::after { transform: scaleX(1); }
.nav .nav__tel { display: none; }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-l); border-radius: 999px; padding: 3px; }
.lang button { min-width: 38px; height: 32px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); transition: background .2s, color .2s; }
.lang button[lang="ar"] { font-size: 16px; }
.lang button.on { background: var(--white); color: var(--black); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-l); place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 110px);
  min-height: min(100svh, 920px); display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 30%, rgba(191, 165, 124, .12), transparent 70%),
              radial-gradient(50% 60% at 10% 100%, rgba(255, 255, 255, .05), transparent 70%);
}
html[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-l), transparent); }
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__scales {
  position: absolute; width: min(620px, 70vw); height: auto; inset-inline-end: -6%; top: 50%;
  transform: translateY(-46%); color: rgba(255, 255, 255, .035);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-l); border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .82); margin-bottom: 30px; }
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(191, 165, 124, .18); }
.hero__title { font-family: var(--f-display); font-weight: 500; line-height: 1; margin-bottom: 24px; }
.hero__pre { display: block; font-size: clamp(22px, 2.4vw, 30px); color: var(--accent); font-style: italic; margin-bottom: 10px; }
.hero__name { display: block; font-size: clamp(48px, 7.6vw, 96px); letter-spacing: -.02em; }
html[lang^="ar"] .hero__title { font-weight: 700; line-height: 1.25; }
html[lang^="ar"] .hero__pre { font-style: normal; margin-bottom: 0; }
html[lang^="ar"] .hero__name { font-size: clamp(46px, 7vw, 88px); letter-spacing: 0; }
.hero__role { font-size: clamp(17px, 1.6vw, 19px); color: var(--white); font-weight: 500; margin-bottom: 14px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); }
.hero__text { color: var(--muted-l); font-size: 17px; max-width: 54ch; margin-bottom: 36px; }
html[lang^="ar"] .hero__text { font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__chips li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); }
html[lang^="ar"] .hero__chips li { font-size: 15px; }
.hero__chips svg { width: 18px; height: 18px; color: var(--accent); }

/* Carte de visite */
.vcard {
  background: var(--white); color: var(--text); border-radius: 22px; padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
.vcard__top { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.vcard__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--accent); display: grid; place-items: center; flex: none; }
.vcard__mark svg { width: 30px; height: 30px; }
.vcard__name { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
html[lang^="ar"] .vcard__name { font-weight: 700; }
.vcard__sub { font-size: 14px; color: var(--muted); }
.vcard__t { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
html[lang^="ar"] .vcard__t { letter-spacing: 0; font-size: 14px; }
.vcard__list { margin-bottom: 24px; }
.vcard__list li { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.vcard__list li:last-child { border-bottom: 0; }
.vcard__list svg { color: var(--black); }
.vcard__list small { font-size: 14px; color: var(--muted); }
.vcard__list a, .vcard__list b { justify-self: end; font-weight: 600; font-size: 15px; text-align: end; }
.vcard__list a { font-size: 17px; letter-spacing: .02em; }
.vcard__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Animation d'entrée */
.js .rise { opacity: 0; transform: translateY(18px); }
.js.loaded .rise { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 100ms); }

/* ---------- Chiffres ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 40px 24px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.facts__list li + li { border-inline-start: 1px solid var(--line); }
.facts__list b { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; color: var(--black); }
html[lang^="ar"] .facts__list b { font-weight: 700; }
.facts__list span { font-size: 14px; color: var(--muted); max-width: 22ch; }
html[lang^="ar"] .facts__list span { font-size: 15px; }

/* ---------- Présentation ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__main .h2 { margin-bottom: 24px; }
.about__main > p { margin-bottom: 18px; max-width: 62ch; }
.about__main > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.values { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values__n { font-family: var(--f-display); font-size: 22px; color: var(--accent); line-height: 1.3; min-width: 32px; }
.values h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.values p { color: var(--muted); font-size: 15.5px; }

.idcard {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--black); color: var(--white); border-radius: 22px; padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.idcard__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line-l); }
.idcard__head svg { width: 34px; height: 34px; color: var(--accent); }
.idcard__head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; }
html[lang^="ar"] .idcard__head h3 { font-weight: 700; }
.idcard__rows { margin-bottom: 28px; }
.idcard__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-l); }
.idcard__rows dt { color: var(--muted-l); font-size: 14.5px; }
.idcard__rows dd { font-weight: 500; text-align: end; }

/* ---------- Domaines ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.area:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.area__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.area__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--black); transition: background .35s, color .35s; }
.area__ic svg { width: 26px; height: 26px; }
.area:hover .area__ic { background: rgba(255, 255, 255, .08); color: var(--accent); }
.area__n { font-family: var(--f-display); font-size: 18px; color: var(--muted); transition: color .35s; }
.area:hover .area__n { color: var(--muted-l); }
.area h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
html[lang^="ar"] .area h3 { font-size: 20px; }
.area p { font-size: 15px; color: var(--muted); margin-bottom: 22px; flex: 1; transition: color .35s; }
html[lang^="ar"] .area p { font-size: 15.5px; }
.area:hover p { color: var(--muted-l); }
.area__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; align-self: flex-start; }
.area__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.area__link .arrow { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.area:hover .area__link { color: var(--accent); }
.area:hover .area__link .arrow { transform: translateX(4px); }
html[dir="rtl"] .area:hover .area__link .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Serment ---------- */
.oath { background: var(--black); color: var(--white); padding: clamp(72px, 10vw, 120px) 0; text-align: center; position: relative; overflow: hidden; }
.oath__in { display: flex; flex-direction: column; align-items: center; }
.oath .eyebrow { margin-bottom: 26px; }
.oath__text { font-family: var(--f-display); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.45; max-width: 30ch; font-style: italic; margin-bottom: 40px; }
html[lang^="ar"] .oath__text { font-style: normal; line-height: 1.8; max-width: 34ch; }
.oath__text::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--accent); margin-bottom: 18px; font-style: normal; }
.oath__values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.oath__values li { padding: 8px 20px; border: 1px solid var(--line-l); border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .85); }
html[lang^="ar"] .oath__values li { font-size: 15px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; margin-bottom: clamp(48px, 6vw, 72px); }
.steps li { background: var(--white); border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); }
.steps__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--white); font-family: var(--f-display); font-size: 20px; margin-bottom: 20px; }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Formulaire de rendez-vous ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.book__form { background: var(--white); border-radius: 22px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.book__form .eyebrow { margin-bottom: 10px; }
.book__t { font-family: var(--f-display); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
html[lang^="ar"] .book__t { font-weight: 700; line-height: 1.4; }
.book__lead { color: var(--muted); margin-bottom: 28px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid rgba(12, 12, 13, .18); border-radius: 10px;
  background: var(--white); transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2317171a' stroke-width='1.8' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 44px; }
html[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(12, 12, 13, .08); }
.field .invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
html[dir="rtl"] input[type="tel"] { text-align: right; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__b { flex: 1 1 0; min-height: 50px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(12, 12, 13, .18); border-radius: 10px; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.seg__b svg { width: 18px; height: 18px; flex: none; }
.seg__b:hover { border-color: var(--black); }
.seg__b.sel { background: var(--black); color: var(--white); border-color: var(--black); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--black); }
.book__err { color: #c0392b; font-size: 14px; font-weight: 500; min-height: 0; margin-bottom: 12px; }
.book__err:empty, .book__ok:empty { display: none; }
.book__ok { color: #137a3c; background: #e9f7ef; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 12px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.book__side { background: var(--black); color: var(--white); border-radius: 22px; padding: clamp(26px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 24px); }
.book__side h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
html[lang^="ar"] .book__side h3 { font-weight: 700; line-height: 1.45; }
.book__side > p { color: var(--muted-l); margin-bottom: 22px; font-size: 15.5px; }
.book__line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-l); }
.book__line svg { width: 22px; height: 22px; color: var(--accent); }
.book__line span { display: flex; flex-direction: column; line-height: 1.4; }
.book__line small { color: var(--muted-l); font-size: 13px; }
.book__line b { font-weight: 600; font-size: 17px; }
a.book__line:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
html[lang^="ar"] .qa summary h3 { font-size: 19px; }
.qa__x { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, border-color .25s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.qa__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__x { background: var(--black); color: var(--white); border-color: var(--black); }
.qa[open] .qa__x::after { transform: translate(-50%, -50%) rotate(0); }
.qa p { color: var(--muted); padding: 0 0 26px; max-width: 64ch; }
.qa summary:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard { display: flex; flex-direction: column; gap: 4px; padding: 30px 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
a.ccard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45); }
.ccard__ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); margin-bottom: 18px; }
.ccard__ic svg { width: 22px; height: 22px; }
.ccard small { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang^="ar"] .ccard small { letter-spacing: 0; font-size: 14px; }
.ccard b { font-size: 20px; font-weight: 600; line-height: 1.4; }
.ccard > span:last-child { font-size: 14.5px; color: var(--muted); }
.ccard--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.ccard--dark .ccard__ic { background: rgba(255, 255, 255, .08); color: var(--accent); }
.ccard--dark small, .ccard--dark > span:last-child { color: var(--muted-l); }
.ccard--wa .ccard__ic { background: var(--wa); color: var(--white); }
.ccard b.ltr, .book__line b.ltr { align-self: flex-start; }

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--white); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 44px; border-bottom: 1px solid var(--line-l); margin-bottom: 44px; }
.footer__word { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 44px); font-style: italic; }
html[lang^="ar"] .footer__word { font-style: normal; font-weight: 700; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.4fr .9fr; gap: 48px; margin-bottom: 44px; }
.footer__about { color: var(--muted-l); font-size: 15px; margin-top: 18px; max-width: 42ch; }
.footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 18px; }
html[lang^="ar"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul li { font-size: 15px; color: rgba(255, 255, 255, .82); padding: 4px 0; }
.footer ul a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__areas { columns: 2; column-gap: 28px; }
.footer__areas li { break-inside: avoid; }
.footer__disc { font-size: 13px; color: var(--muted-l); max-width: 90ch; padding-top: 28px; border-top: 1px solid var(--line-l); margin-bottom: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-l); }

/* ---------- Mobile : barre d'actions, WhatsApp flottant ---------- */
.mbar { display: none; }
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .6);
  transform: scale(0); transition: transform .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.past-hero .wa-float { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal[data-d="1"] { --d: 1; } .js .reveal[data-d="2"] { --d: 2; } .js .reveal[data-d="3"] { --d: 3; }
.js .reveal.in { opacity: 1; transform: none; }
.area.reveal.in:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header__cta { display: none; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px; background: var(--black);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav > a { font-family: var(--f-display); font-size: 32px; color: var(--white); padding: 6px 0; }
  html[lang^="ar"] .nav > a { font-weight: 700; font-size: 30px; }
  .nav > a::after { display: none; }
  .nav .nav__tel { display: inline-block; font-family: var(--f-body); font-size: 18px; color: var(--accent); margin-top: 24px; }
  .menu-open { overflow: hidden; }
  .menu-open .header { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .vcard { max-width: 520px; }
  .about, .faq, .book { grid-template-columns: 1fr; }
  .idcard, .faq__side, .book__side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__list li:nth-child(3) { border-inline-start: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .brand__mark { width: 40px; height: 40px; }
  .brand__txt strong { font-size: 17px; }
  html[lang^="ar"] .brand__txt strong { font-size: 18px; }
  .brand__txt small { display: none; }
  .lang button { min-width: 34px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .areas, .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .seg__b { padding: 0 8px; gap: 6px; font-size: 14px; }
  .facts__list li { padding: 28px 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__areas { columns: 1; }
  .wa-float { display: none; }
  .mbar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: var(--black); border-top: 1px solid var(--line-l); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px;
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; color: var(--white); font-size: 14px; font-weight: 500; }
  .mbar a:nth-child(2) svg { color: var(--wa); }
  .mbar__main { background: var(--white); color: var(--black) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
}
