/* =========================================================
   Maître Mohamed El Massaoudi — Avocat à Demnate
   Palette « Bleu Demnate » : bleu roi de la carte de visite / marine / papier blanc / ambre
   ========================================================= */
:root {
  --blue: #1f3fbf;         /* bleu de la carte de visite */
  --blue-2: #3557d9;
  --navy: #0f1f5c;
  --ink: #0a1235;
  --amber: #e3a73f;
  --amber-2: #f3cf86;
  --paper: #fbfaf6;
  --mist: #eef1f8;
  --white: #fff;
  --text: #1b2340;
  --muted: #5d6585;
  --line: rgba(15, 31, 92, .13);
  --line-l: rgba(255, 255, 255, .16);
  --wa: #1fa855;

  --f-display: "Fraunces", "El Messiri", Georgia, serif;
  --f-body: "Instrument Sans", "Tajawal", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[lang^="ar"] { --f-display: "El Messiri", serif; --f-body: "Tajawal", 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) + 10px); }
body { 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[lang^="ar"] body { font-size: 17.5px; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
svg:not([viewBox]) { width: 20px; height: 20px; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--blue); }
html[lang^="ar"] em { font-style: normal; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--amber); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress { transform-origin: right; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 3px; font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
html[lang^="ar"] .btn { font-size: 16px; font-weight: 700; }
.btn svg { width: 19px; height: 19px; flex: none; }
.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:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 14px 28px -16px rgba(31, 63, 191, .9); }
.btn--blue:hover { background: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--amber-2); }
.btn--line { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--line:hover { border-color: var(--navy); }
.btn--line svg { color: var(--wa); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--blue); }
.link svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Titres & sections ---------- */
.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin-bottom: 20px; text-wrap: balance; }
html[lang^="ar"] .h2 { font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin-bottom: 16px; }
.label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
html[lang^="ar"] .label { letter-spacing: 0; font-size: 15px; }
.label__n { display: grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; background: var(--blue); color: var(--white); font-size: 12px; letter-spacing: 0; border-radius: 2px; }
.label--light { color: var(--amber-2); }
.label--light .label__n { background: var(--amber); color: var(--ink); }
.sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.sec--mist { background: var(--mist); }
.sec--blue { background: var(--navy); color: rgba(255, 255, 255, .78); overflow: hidden; }
.sec--blue .h2 { color: var(--white); }
.sec--blue em { color: var(--amber-2); }
.sec--blue .lead { color: rgba(255, 255, 255, .86); }
.head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 60px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.head .lead { margin-bottom: 22px; }
.head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.head--center .lead { margin-inline: auto; }

/* ---------- Bandeau & en-tête ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.topbar__end { display: flex; gap: 22px; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 31, 92, .5); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--blue); color: var(--white); border-radius: 3px; }
.brand__mark svg { width: 30px; height: 30px; }
.brand__txt { display: grid; line-height: 1.25; }
.brand__txt strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
html[lang^="ar"] .brand__txt strong { font-size: 20px; font-weight: 700; }
.brand__txt small { font-size: 12.5px; color: var(--muted); }
.brand--light, .brand--light small { color: rgba(255, 255, 255, .7); }
.brand--light strong { color: var(--white); }
.brand--light .brand__mark { background: var(--white); color: var(--blue); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s; }
.nav > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:hover, .nav > a.active { color: var(--blue); }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.nav__foot { display: none; }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang button { width: 36px; height: 34px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.lang button.on { background: var(--navy); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Héros ---------- */
.hero { position: relative; padding: clamp(50px, 7vw, 96px) 0 0; overflow: hidden;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--paper);
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 30% 40%, rgba(251, 250, 246, .2), var(--paper) 75%); pointer-events: none; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__word { position: absolute; bottom: -.28em; inset-inline-end: -.05em; font-family: "El Messiri", serif; font-weight: 700; font-size: clamp(130px, 22vw, 330px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(31, 63, 191, .1); white-space: nowrap; direction: rtl; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 26px; }
html[lang^="ar"] .kicker { font-size: 15px; }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(31, 168, 85, .18); }
.hero__title { font-family: var(--f-display); color: var(--navy); line-height: 1; margin-bottom: 22px; }
.hero__pre { display: block; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; font-style: italic; color: var(--blue); margin-bottom: 8px; }
html[lang^="ar"] .hero__pre { font-style: normal; font-weight: 600; }
.hero__name { display: block; font-size: clamp(2.9rem, 6.6vw, 5.4rem); font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
html[lang^="ar"] .hero__name { font-weight: 700; letter-spacing: 0; line-height: 1.2; font-size: clamp(3rem, 7vw, 5.6rem); }
.hero__role { display: inline-flex; align-items: center; gap: 12px; padding-block: 10px; margin-bottom: 18px; border-block: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.hero__role svg { width: 24px; height: 24px; color: var(--amber); }
.hero__text { font-size: 1.12rem; color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Carte de visite */
.hero__media { position: relative; perspective: 1400px; padding: 30px 0 50px; }
.vcard {
  --rx: 0deg; --ry: 0deg; --lift: 0;
  position: relative; z-index: 2; background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(15, 31, 92, .05), 0 40px 70px -30px rgba(15, 31, 92, .55);
  transform: rotate(calc(-4deg * (1 - var(--lift)))) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
}
html[dir="rtl"] .vcard { transform: rotate(calc(4deg * (1 - var(--lift)))) rotateX(var(--rx)) rotateY(var(--ry)); }
.vcard__top { display: flex; align-items: center; gap: 20px; padding: 30px 30px 24px; }
.vcard__mark { flex: none; width: 74px; height: 92px; color: var(--blue); }
.vcard__mark svg { width: 100%; height: 100%; }
.vcard__id { display: grid; gap: 2px; flex: 1; color: var(--blue); }
.vcard__id b { font-family: "El Messiri", serif; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.3; }
.vcard__id span { font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.vcard__id small { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.vcard__id small[lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 15.5px; margin-top: 8px; }
.vcard__band { margin: 0 14px 14px; padding: 18px 20px; background: var(--blue); color: var(--white); border-radius: 8px; display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; }
.vcard__band p { display: flex; align-items: flex-start; gap: 10px; }
.vcard__band svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--amber-2); }
.vcard__band a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.vcard__band a:hover { text-decoration: underline; }
.vcard__tels { flex-wrap: wrap; gap: 6px 22px !important; font-size: 17px; letter-spacing: .02em; }
.vcard__shadow { position: absolute; z-index: 1; inset: 60px 10% 20px; background: var(--amber); border-radius: 10px; transform: rotate(3deg) translate(14px, 18px); opacity: .9; }
html[dir="rtl"] .vcard__shadow { transform: rotate(-3deg) translate(-14px, 18px); }

/* Repères */
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 70px); background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; }
.facts li { display: grid; gap: 2px; padding: 24px 26px; border-inline-end: 1px solid var(--line); }
.facts li:last-child { border-inline-end: 0; }
.facts b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }

.js .rise { opacity: 0; transform: translateY(26px); }
.loaded .rise { animation: rise .9s var(--ease) calc(var(--i, 0) * .08s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Domaines ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.area { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 46px); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; isolation: isolate; }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.area:hover::before { transform: scaleY(1); }
.area__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.area__n { font-family: "Fraunces", serif; font-size: 3rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--blue); transition: -webkit-text-stroke-color .4s; }
.area__ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--blue); transition: background .4s, color .4s; }
.area__ic svg { width: 28px; height: 28px; }
.area h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; color: var(--navy); line-height: 1.2; transition: color .4s; }
html[lang^="ar"] .area h3 { font-weight: 700; }
.area p { color: var(--muted); transition: color .4s; }
.area__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.area__tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--navy); transition: border-color .4s, color .4s; }
.area .link { margin-top: auto; padding-top: 14px; transition: color .4s; }
.area:hover h3, .area:hover .link { color: var(--white); }
.area:hover p { color: rgba(255, 255, 255, .82); }
.area:hover .area__n { -webkit-text-stroke-color: var(--amber-2); }
.area:hover .area__ic { background: var(--white); color: var(--blue); }
.area:hover .area__tags li { border-color: var(--line-l); color: var(--white); }

/* ---------- Cabinet + serment ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__main p:not(.label):not(.lead) { margin-bottom: 30px; max-width: 58ch; }
.ticks { display: grid; gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); border-radius: 6px; overflow: hidden; }
.ticks li { display: flex; gap: 14px; align-items: center; padding: 18px 22px; background: var(--navy); font-weight: 600; color: var(--white); }
.ticks svg { width: 26px; height: 26px; flex: none; color: var(--ink); background: var(--amber); border-radius: 50%; padding: 5px; }
.about__quote { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-style: italic; color: var(--amber-2); line-height: 1.3; }
html[lang^="ar"] .about__quote { font-style: normal; font-weight: 700; }
.about__quote svg { width: 42px; height: 42px; flex: none; color: var(--amber); }
.oath { margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line-l); text-align: center; }
.oath__label { display: inline-block; margin-bottom: 22px; padding: 5px 14px; border: 1px solid var(--line-l); border-radius: 100px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
html[lang^="ar"] .oath__label { letter-spacing: 0; font-size: 15px; }
.oath__text { font-family: "El Messiri", serif; font-size: clamp(1.35rem, 2.6vw, 2.05rem); font-weight: 600; line-height: 1.85; max-width: 900px; margin: 0 auto; color: rgba(255, 255, 255, .22); }
.oath__text .w { transition: color .5s; }
.oath__text .w.lit { color: var(--white); }
html:not(.js) .oath__text .w { color: var(--white); }
.oath__tr { max-width: 760px; margin: 22px auto 0; font-style: italic; color: rgba(255, 255, 255, .7); }
.oath__note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps__line { position: absolute; top: 28px; inset-inline: 28px; height: 2px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .steps__line i { transform-origin: right; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; }
.steps__n { width: 56px; height: 56px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--blue); border-radius: 3px; font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; color: var(--blue); margin-bottom: 14px; transition: background .3s, color .3s; }
.steps li:hover .steps__n { background: var(--blue); color: var(--white); }
.steps h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Rendez-vous ---------- */
.bk { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(15, 31, 92, .55); max-width: 1040px; margin: 0 auto; }
.bk__steps { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: rgba(255, 255, 255, .6); }
.bk__steps li { display: flex; align-items: center; gap: 12px; padding: 18px 24px; font-size: 15px; position: relative; }
.bk__steps li::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .bk__steps li::after { transform-origin: right; }
.bk__steps span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-l); border-radius: 50%; font-weight: 700; font-size: 14px; transition: all .3s; }
.bk__steps li.active { color: var(--white); }
.bk__steps li.active span { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.bk__steps li.active::after, .bk__steps li.done::after { transform: scaleX(1); }
.bk__steps li.done span { background: var(--white); border-color: var(--white); color: var(--navy); }
.bk__body { padding: clamp(22px, 4vw, 44px); min-height: 380px; }
.bk__step { display: none; }
.bk__step.active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.bk__q { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.bk__areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; font-size: 14.5px; font-weight: 500; background: var(--paper); transition: all .2s; }
.chip svg { width: 18px; height: 18px; color: var(--blue); }
.chip:hover { border-color: var(--blue); }
.chip.sel { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip.sel svg { color: var(--amber-2); }
.bk__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); text-align: start; transition: all .2s; }
.mode svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.mode b { display: block; font-size: 15.5px; color: var(--navy); }
.mode small { color: var(--muted); font-size: 13px; }
.mode:hover { border-color: var(--blue); }
.mode.sel { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; background: var(--mist); }
.bk__date { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--navy); text-transform: capitalize; }
.cal__nav { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav:disabled { opacity: .3; cursor: default; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.cal__wd, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd span { font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 700; }
.day { aspect-ratio: 1; border-radius: 3px; font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.day:hover:not(.off) { background: var(--mist); }
.day.off { color: rgba(27, 35, 64, .25); cursor: default; }
.day.sel { background: var(--blue); color: var(--white); font-weight: 700; }
.slots__date { font-family: var(--f-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 14px; text-transform: capitalize; }
.slots__empty { padding: 30px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); text-align: center; }
.slots__g { margin-bottom: 18px; }
.slots__g small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; font-weight: 600; background: var(--paper); direction: ltr; transition: all .2s; }
.slot:hover:not(.taken) { border-color: var(--blue); }
.slot.sel { background: var(--blue); border-color: var(--blue); color: var(--white); }
.slot.taken { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__l { font-size: 14px; font-weight: 700; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 63, 191, .14); }
.field input.invalid { border-color: #c0392b; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--paper); height: 50px; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 100%; font-weight: 600; transition: all .2s; }
.seg input:checked + span { background: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); flex: none; }
.bk__bar { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 18px clamp(22px, 4vw, 44px); border-top: 1px solid var(--line); background: var(--mist); }
.bk__bar[hidden] { display: none; }
.bk__sum { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bk__sum span { display: grid; line-height: 1.3; }
.bk__sum small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .bk__sum small { letter-spacing: 0; font-size: 12.5px; }
.bk__sum b { font-size: 14px; font-weight: 600; color: rgba(27, 35, 64, .35); }
.bk__sum span.on b { color: var(--navy); }
.bk__nav { display: flex; gap: 10px; }
.bk__nav [hidden] { display: none; }
.bk__err { grid-column: 1 / -1; order: -1; color: #c0392b; font-size: 14px; font-weight: 700; }
.bk__err:empty { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bk__done { text-align: center; padding: 30px 0; }
.bk__done.active { display: grid; justify-items: center; gap: 14px; }
.bk__doneIc { width: 72px; height: 72px; display: grid; place-items: center; background: var(--wa); color: #fff; border-radius: 50%; }
.bk__doneIc svg { width: 36px; height: 36px; }
.bk__done h3 { font-family: var(--f-display); font-size: 2rem; color: var(--navy); }
.bk__done p { color: var(--muted); max-width: 52ch; }
.bk__recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.bk__recap span { padding: 6px 14px; background: var(--mist); border-radius: 3px; font-size: 14px; font-weight: 600; }
.bk__doneBtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 30px); }
.urgent { margin-top: 28px; padding: 28px; background: var(--blue); color: rgba(255, 255, 255, .85); border-radius: 6px; display: grid; gap: 8px; }
.urgent strong { font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; color: var(--white); }
.urgent p { font-size: 15px; }
.urgent__tel { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px; background: var(--white); color: var(--navy); border-radius: 3px; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; justify-self: start; }
.urgent__tel svg { color: var(--blue); }
.faq__list { border-top: 2px solid var(--navy); counter-reset: q; }
.qa { border-bottom: 1px solid var(--line); counter-increment: q; }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 0; }
.qa summary::before { content: counter(q, decimal-leading-zero); font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; color: var(--blue); }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; color: var(--navy); transition: color .2s; }
.qa summary:hover h3 { color: var(--blue); }
.qa__x { position: relative; width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 3px; transition: background .3s, border-color .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; top: 50%; left: 9px; right: 9px; height: 1.6px; margin-top: -.8px; background: var(--navy); transition: transform .3s var(--ease), background .3s; }
.qa__x::after { transform: rotate(90deg); }
.qa[open] .qa__x { background: var(--blue); border-color: var(--blue); }
.qa[open] .qa__x::before, .qa[open] .qa__x::after { background: var(--white); }
.qa[open] .qa__x::after { transform: rotate(0); }
.qa p { padding: 0 0 24px; padding-inline-start: 38px; color: var(--muted); max-width: 66ch; }
.qa[open] p { animation: fade .4s var(--ease); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 14px; }
.infos li { display: flex; gap: 14px; padding: 20px 22px; background: var(--white); }
.infos li:first-child, .infos li:nth-child(4), .infos li:nth-child(5) { grid-column: 1 / -1; }
.infos .hours-l { display: block; }
.infos svg { color: var(--blue); margin-top: 3px; flex: none; }
.infos small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
html[lang^="ar"] .infos small { font-size: 14px; }
.infos a, .infos span { font-weight: 700; color: var(--navy); word-break: break-word; }
.infos a:hover { color: var(--blue); }
.contact__map { position: relative; min-height: 460px; border-radius: 6px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__dir { position: absolute; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 700; border-radius: 3px; box-shadow: 0 10px 24px -12px rgba(15, 31, 92, .8); }
.contact__dir svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(60px, 8vw, 96px) 0 30px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line-l); }
.footer__word { font-family: var(--f-display); font-size: clamp(1.9rem, 4.2vw, 3.2rem); color: var(--white); line-height: 1.2; }
html[lang^="ar"] .footer__word { font-weight: 700; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
html[lang^="ar"] .footer h3 { letter-spacing: 0; font-size: 15px; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--white); }
.footer__about { margin-top: 18px; font-size: 15px; max-width: 36ch; }
.hours li { display: flex; flex-direction: column; }
.hours li span:first-child { color: var(--white); }
.footer__disc { margin-top: 46px; font-size: 13px; color: rgba(255, 255, 255, .42); max-width: 90ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-l); font-size: 13px; color: rgba(255, 255, 255, .5); }

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

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .1s; } .js .reveal[data-d="2"] { transition-delay: .2s; } .js .reveal[data-d="3"] { transition-delay: .3s; }
.js .area.reveal.in { transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise { opacity: 1 !important; transform: none !important; }
  .oath__text .w { color: var(--white) !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav > a { padding: 8px 9px; font-size: 14.5px; }
  .header__cta { display: none; }
  .topbar__item:first-child span { max-width: 52ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px;
    background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { font-family: var(--f-display); font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
  .nav > a::after { display: none; }
  .nav__foot { display: grid; gap: 8px; margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 16px; }
  .header__end { margin-inline-start: auto; gap: 8px; }
  .hero__grid, .about, .faq, .contact, .head { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; justify-self: center; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { border-inline-end: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .head { gap: 0; }
  .faq__side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .steps__line { display: none; }
  .bk__date { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 72px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0 0; z-index: 45;
    background: var(--white); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -10px 30px -18px rgba(15, 31, 92, .4);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 3px; font-size: 14.5px; font-weight: 700; color: var(--navy); background: var(--mist); }
  .mbar a:nth-child(2) svg { color: var(--wa); }
  .mbar__main { background: var(--blue) !important; color: var(--white) !important; }
  .wa-float { display: none; }
}
@media (max-width: 720px) {
  .header__in { gap: 10px; }
  .brand { flex: 1 1 auto; gap: 10px; min-width: 0; }
  .brand__txt { min-width: 0; }
  .brand__txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px !important; }
  .brand__txt small { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 26px; height: 26px; }
  .header__end { flex: none; gap: 4px; }
  .burger { width: 40px; }
  .lang button { width: 30px; height: 30px; font-size: 12px; }
  .hero { padding-top: 34px; background-size: 56px 56px, 56px 56px, auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .vcard__top { padding: 22px 20px 18px; gap: 14px; }
  .vcard__mark { width: 52px; height: 68px; }
  .vcard__band { margin: 0 10px 10px; padding: 16px; font-size: 13.5px; }
  .vcard__tels { font-size: 15.5px; }
  .facts b { font-size: 1.3rem; }
  .facts li { padding: 18px 16px; }
  .areas { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .steps__n { grid-row: span 2; margin: 0; }
  .bk__steps li { padding: 14px 10px; justify-content: center; font-size: 13px; flex-direction: column; gap: 6px; text-align: center; }
  .bk__modes { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .bk__bar { grid-template-columns: 1fr; }
  .bk__sum { gap: 6px 16px; }
  .bk__nav { justify-content: space-between; }
  .bk__nav .btn { flex: 1; padding: 0 14px; }
  .bk__nav #bBack { flex: 0 0 auto; }
  .qa p { padding-inline-start: 0; }
  .infos { grid-template-columns: 1fr; }
  .contact__map { min-height: 340px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 380px) {
  .lang button { width: 28px; }
  .chip { font-size: 13.5px; padding: 9px 13px; }
}
