/* =====================================================================
   Marisar Travel — feuille de style principale
   Design system : "Atlas" — terre cuite, safran, jade, encre de nuit
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --clay-50:  #fdf3ef;
  --clay-100: #f9e2d8;
  --clay-300: #e5a184;
  --clay-500: #c2542f;
  --clay-600: #a8431f;
  --clay-700: #823013;

  --saffron-100: #fdf1d8;
  --saffron-300: #f1c775;
  --saffron-500: #dd9a22;
  --saffron-600: #b87a13;

  --jade-100: #dcefeb;
  --jade-500: #12655c;
  --jade-600: #0d4d46;

  --ink-900: #10203f;
  --ink-800: #16294b;
  --ink-700: #22355a;
  --ink-500: #4a5b70;
  --ink-400: #6b7c92;
  --ink-300: #9dabbc;

  --sand-50:  #fcfaf6;
  --sand-100: #f6f1e8;
  --sand-200: #ece4d6;
  --sand-300: #ddd1bd;

  --white: #ffffff;

  --brand:        var(--clay-500);
  --brand-dark:   var(--clay-700);
  --accent:       var(--saffron-500);
  --surface:      var(--sand-50);
  --surface-alt:  var(--sand-100);
  --text:         var(--ink-800);
  --text-muted:   var(--ink-500);
  --line:         rgba(20, 32, 46, .10);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(13,23,35,.06), 0 2px 8px rgba(13,23,35,.05);
  --shadow: 0 4px 12px rgba(13,23,35,.07), 0 14px 34px rgba(13,23,35,.08);
  --shadow-lg: 0 10px 24px rgba(13,23,35,.10), 0 30px 70px rgba(13,23,35,.14);

  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 84px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.68;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--saffron-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--ink-900); }
h1 { font-size: clamp(2.35rem, 1.5rem + 3.9vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.5vw, 3.05rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.24; }
h4 { font-size: 1.06rem; line-height: 1.35; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1rem + .38vw, 1.3rem); line-height: 1.6; color: var(--text-muted); }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .755rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: .5; }
.kicker--light { color: var(--saffron-300); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4.25rem); }
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--ink-900); color: var(--sand-100); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lead { color: rgba(246,241,232,.72); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); display: grid; gap: .85rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-self: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head--split > div { max-width: 60ch; display: grid; gap: .85rem; }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }

/* ---------- 5. Boutons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.7em; border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: .945rem; letter-spacing: .005em; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .22s, color .22s, border-color .22s;
  box-shadow: 0 2px 6px rgba(130,48,19,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(130,48,19,.26); background: var(--clay-600); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-800); --btn-bd: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--white); border-color: var(--clay-300); color: var(--brand); box-shadow: var(--shadow-sm); }
.btn--light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); box-shadow: none; backdrop-filter: blur(8px); }
.btn--light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.btn--gold { --btn-bg: var(--saffron-500); --btn-fg: var(--ink-900); box-shadow: 0 2px 6px rgba(184,122,19,.24); }
.btn--gold:hover { background: var(--saffron-300); }
.btn--sm { padding: .62em 1.15em; font-size: .855rem; }
.btn--block { width: 100%; }
.btn .i { width: 1.15em; height: 1.15em; flex: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--brand); }
.link-arrow .i { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
[dir="rtl"] .link-arrow .i { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .i { transform: scaleX(-1) translateX(4px); }

/* ---------- 6. En-tête ---------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(8,14,22,.62), rgba(8,14,22,0));
  transition: opacity .35s var(--ease);
}
.header.is-stuck { height: 70px; background: rgba(252,250,246,.92); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(13,23,35,.07); }
.header.is-stuck::before { opacity: 0; }
.header__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.logo__mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.22)); }
.header.is-stuck .logo__mark { width: 40px; height: 40px; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 650; letter-spacing: .02em; color: #fff; transition: color .3s; }
.logo__sub { font-size: .555rem; letter-spacing: .48em; font-weight: 700; color: var(--saffron-300); margin-top: .32em; }
.header.is-stuck .logo__name { color: var(--ink-900); }
.header.is-stuck .logo__sub { color: var(--brand); }
.logo__img { height: 46px; width: auto; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.35rem, 1.1vw, 1.05rem); }
.nav__link {
  position: relative; display: block; padding: .55rem .3rem; white-space: nowrap;
  font-size: clamp(.82rem, .62rem + .28vw, .935rem); font-weight: 560; color: rgba(255,255,255,.9);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: .3rem; inset-block-end: .18rem; height: 2px;
  background: var(--saffron-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: var(--o, left); transition: transform .3s var(--ease);
}
[dir="rtl"] .nav__link::after { --o: right; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.header.is-stuck .nav__link { color: var(--ink-700); }
.header.is-stuck .nav__link:hover, .header.is-stuck .nav__link.is-active { color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: .55rem; flex: none; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff;
  font-size: .87rem; font-weight: 600; backdrop-filter: blur(8px);
  transition: background .25s, color .25s, border-color .25s;
}
.lang__btn .i { width: .8em; height: .8em; transition: transform .3s var(--ease); }
.lang__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.header.is-stuck .lang__btn { background: var(--white); border-color: var(--line); color: var(--ink-800); }
.lang__btn:hover { background: #fff; color: var(--ink-900); }
.lang__menu {
  position: absolute; inset-block-start: calc(100% + .55rem); inset-inline-end: 0; z-index: 20;
  min-width: 186px; padding: .4rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__item {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem;
  border-radius: 10px; font-size: .9rem; font-weight: 550; color: var(--ink-700);
  transition: background .18s, color .18s;
}
.lang__item:hover { background: var(--sand-100); color: var(--brand); }
.lang__item[aria-current="true"] { background: var(--clay-50); color: var(--brand); font-weight: 700; }
.lang__flag { font-size: 1.12rem; line-height: 1; }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px; background: rgba(255,255,255,.14); cursor: pointer;
  align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.header.is-stuck .burger { background: var(--white); border-color: var(--line); }
.burger span { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; width: 19px; height: 2px; background: currentColor; background: inherit; border-radius: 2px; transition: transform .3s var(--ease); }
.burger span::before { inset-block-start: -6px; }
.burger span::after { inset-block-start: 6px; }
.header.is-stuck .burger span, .header.is-stuck .burger span::before, .header.is-stuck .burger span::after { background: var(--ink-800); }
body.nav-open .burger span { background: transparent !important; }
body.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Panneau mobile */
.mobile-nav {
  position: fixed; inset: 0; z-index: 89; padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--sand-50); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list { display: grid; gap: .1rem; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .2rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink-900);
}
.mobile-nav__link.is-active { color: var(--brand); }
.mobile-nav__foot { margin-top: 2rem; display: grid; gap: .8rem; }

/* ---------- 7. Héros ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero--page { min-height: min(62svh, 560px); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.15s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1.14); }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8,14,22,.90) 0%, rgba(8,14,22,.55) 38%, rgba(8,14,22,.28) 62%, rgba(8,14,22,.52) 100%),
    linear-gradient(105deg, rgba(130,48,19,.42), rgba(8,14,22,0) 62%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin-inline: auto; padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(3rem, 7vw, 5.5rem); }
.hero__content { max-width: 47rem; display: grid; gap: 1.35rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.hero__text { font-size: clamp(1.02rem, .96rem + .45vw, 1.28rem); color: rgba(255,255,255,.87); max-width: 40rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hero__panel { position: relative; z-index: 2; }

.hero__dots { display: flex; gap: .5rem; margin-top: 2rem; }
.hero__dot { width: 30px; height: 4px; border-radius: 3px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.35); transition: background .3s, width .3s var(--ease); }
.hero__dot.is-active { background: var(--saffron-500); width: 52px; }

.hero__scroll { position: absolute; inset-block-end: 1.5rem; inset-inline-end: var(--gutter); z-index: 2; display: grid; justify-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent); }

/* Fil d'ariane */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .84rem; color: rgba(255,255,255,.72); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- 8. Barre de recherche ---------- */
.searchbar {
  position: relative; z-index: 3; margin-top: -3.75rem;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: end; border: 1px solid var(--line);
}
.searchbar__field { display: grid; gap: .38rem; }
.searchbar__field label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.searchbar__field select, .searchbar__field input {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sand-50); font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.searchbar__field select:focus, .searchbar__field input:focus { outline: none; border-color: var(--clay-300); box-shadow: 0 0 0 4px var(--clay-50); }

/* ---------- 9. Cartes offres ---------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--clay-300); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,22,.55), rgba(8,14,22,0) 55%); }
.card__badge {
  position: absolute; z-index: 2; inset-block-start: .85rem; inset-inline-start: .85rem;
  padding: .32rem .72rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.94); color: var(--brand-dark); backdrop-filter: blur(6px);
}
.card__badge--hot { background: var(--saffron-500); color: var(--ink-900); }
.card__meta {
  position: absolute; z-index: 2; inset-block-end: .85rem; inset-inline-start: .95rem;
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .28rem .66rem; border-radius: 999px; font-size: .755rem; font-weight: 600;
  background: rgba(13,23,35,.55); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.chip .i { width: .95em; height: .95em; }
.card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.35rem 1.45rem; flex: 1; }
.card__title { font-size: 1.22rem; }
.card__title a { background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease), color .25s; }
.card:hover .card__title a { background-size: 100% 1.5px; color: var(--brand); }
[dir="rtl"] .card__title a { background-position: 100% 100%; }
.card__text { font-size: .935rem; color: var(--text-muted); flex: 1; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); margin-top: .35rem; }
.price { display: grid; gap: .05rem; }
.price__label { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400); }
.price__value { font-family: var(--font-display); font-size: 1.42rem; font-weight: 650; color: var(--brand); line-height: 1.05; }
.price__value small { font-size: .62em; font-weight: 600; color: var(--ink-400); font-family: var(--font-body); }
.price--quote .price__value { font-size: 1.08rem; color: var(--jade-500); }

/* ---------- 10. Univers / services ---------- */
.tile {
  position: relative; display: grid; align-content: end; gap: .55rem; min-height: 300px;
  padding: 1.6rem; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,14,22,.88), rgba(8,14,22,.30) 62%, rgba(8,14,22,.12)); }
.tile h3 { color: #fff; }
.tile p { font-size: .93rem; color: rgba(255,255,255,.82); }
.tile .link-arrow { color: var(--saffron-300); margin-top: .3rem; }

.feature {
  display: grid; gap: .9rem; padding: 1.7rem 1.55rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--clay-300); }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(140deg, var(--clay-50), var(--saffron-100)); color: var(--brand);
}
.feature__icon .i { width: 25px; height: 25px; }
.feature p { font-size: .93rem; color: var(--text-muted); }
.section--ink .feature { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.section--ink .feature:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.24); }
.section--ink .feature p { color: rgba(246,241,232,.72); }
.section--ink .feature__icon { background: rgba(221,154,34,.16); color: var(--saffron-300); }

/* ---------- 11. Split média/texte ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; inset-block-start: -18px; inset-inline-start: -18px; width: 55%; height: 55%;
  border: 1px solid var(--clay-300); border-radius: var(--radius-lg); z-index: -1;
}
.split__badge {
  position: absolute; inset-block-end: -22px; inset-inline-end: -14px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem; display: grid; gap: .1rem; text-align: center; border: 1px solid var(--line);
}
.split__badge strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--brand); line-height: 1; }
.split__badge span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.split__content { display: grid; gap: 1.1rem; align-content: start; }
.split--reverse .split__media { order: 2; }
@media (max-width: 800px) { .split--reverse .split__media { order: 0; } }

.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.ticks .i { width: 1.35em; height: 1.35em; flex: none; color: var(--jade-500); margin-top: .12em; }
.section--ink .ticks .i { color: var(--saffron-300); }

/* ---------- 12. Statistiques ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); border: 1px solid var(--line); }
.stat { background: var(--white); padding: 1.6rem 1.2rem; text-align: center; display: grid; gap: .3rem; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 650; color: var(--brand); line-height: 1; }
.stat__label { font-size: .84rem; color: var(--text-muted); }
.section--ink .stats { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.section--ink .stat { background: var(--ink-900); }
.section--ink .stat__value { color: var(--saffron-300); }
.section--ink .stat__label { color: rgba(246,241,232,.7); }

/* ---------- 13. Étapes ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.step { position: relative; padding: 1.6rem 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .55rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 650; line-height: 1;
  color: var(--clay-100);
}
.step h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; }
.step p { font-size: .92rem; color: var(--text-muted); }

/* ---------- 14. Témoignages ---------- */
.quote { display: grid; gap: 1.1rem; padding: 1.9rem 1.7rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quote__stars { display: flex; gap: .18rem; color: var(--saffron-500); }
.quote__stars .i { width: 1.05em; height: 1.05em; }
.quote__text { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.5; color: var(--ink-800); }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--clay-500), var(--saffron-500)); color: #fff; font-weight: 700; font-size: .95rem; flex: none; }
.quote__who div { display: grid; }
.quote__name { font-weight: 700; font-size: .95rem; }
.quote__city { font-size: .82rem; color: var(--ink-400); }

/* ---------- 15. Galerie ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: zoom-in; background: var(--sand-200); border: 0; padding: 0; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.09); }
.gallery__item figcaption {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.6rem .9rem .75rem;
  font-size: .84rem; font-weight: 600; color: #fff; text-align: start;
  background: linear-gradient(to top, rgba(8,14,22,.82), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 8/5; }
@media (max-width: 620px) { .gallery__item:nth-child(6n+1) { grid-column: span 1; aspect-ratio: 4/3; } }

.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 4vmin; background: rgba(8,14,22,.93); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: rgba(255,255,255,.8); text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__btn--prev { inset-inline-start: 2vmin; }
.lightbox__btn--next { inset-inline-end: 2vmin; }
.lightbox__close { position: absolute; inset-block-start: 2vmin; inset-inline-end: 2vmin; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn .i, .lightbox__close .i { width: 22px; height: 22px; }

/* ---------- 16. Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff; isolation: isolate; padding: clamp(2.4rem, 5vw, 4.25rem); display: grid; gap: 1.15rem; justify-items: center; text-align: center; }
.cta-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(130,48,19,.92), rgba(13,23,35,.86)); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 58ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .4rem; }

/* ---------- 17. Panneau d'aide ---------- */
.helpbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--clay-50), var(--saffron-100));
  border: 1px solid var(--clay-100);
}
.helpbox div { display: grid; gap: .35rem; max-width: 52ch; }
.helpbox h3 { font-family: var(--font-body); font-size: 1.18rem; font-weight: 700; }
.helpbox p { font-size: .95rem; color: var(--text-muted); }

/* ---------- 18. Formulaires ---------- */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink-700); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay-300); box-shadow: 0 0 0 4px var(--clay-50); }
.field .err { font-size: .8rem; color: #b3261e; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #b3261e; }
.field.is-invalid .err { display: block; }
.form__note { font-size: .84rem; color: var(--ink-400); }
.alert { display: none; gap: .65rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 12px; background: var(--jade-100); color: var(--jade-600); font-size: .93rem; font-weight: 600; }
.alert.is-visible { display: flex; }
.alert .i { width: 1.2em; height: 1.2em; flex: none; margin-top: .12em; }

/* ---------- 19. Contact ---------- */
.contact-grid { display: grid; gap: clamp(1.6rem, 3.5vw, 3rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.info-list { display: grid; gap: 1.25rem; }
.info-item { display: flex; gap: .95rem; align-items: flex-start; }
.info-item__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--clay-50); color: var(--brand); }
.info-item__icon .i { width: 20px; height: 20px; }
.info-item__body { display: grid; gap: .18rem; }
.info-item__label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.info-item a:hover { color: var(--brand); text-decoration: underline; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- 20. Pied de page ---------- */
.footer { background: var(--ink-900); color: rgba(246,241,232,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--saffron-300); }
.footer__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.footer__brand { display: grid; gap: 1rem; max-width: 38ch; }
.footer__brand p { font-size: .93rem; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__list { display: grid; gap: .6rem; font-size: .93rem; }
.socials { display: flex; gap: .55rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); transition: background .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.socials .i { width: 19px; height: 19px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: rgba(246,241,232,.5); }
.footer__legal b { color: rgba(246,241,232,.72); font-weight: 650; }
.footer__bottom { margin-top: 1rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .84rem; }
.newsletter { display: flex; gap: .55rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 190px; padding: .78rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: .92rem; }
.newsletter input::placeholder { color: rgba(246,241,232,.45); }
.newsletter input:focus { outline: none; border-color: var(--saffron-500); }

/* ---------- 21. Flottants ---------- */
.whatsapp {
  position: fixed; z-index: 80; inset-block-end: 1.4rem; inset-inline-end: 1.4rem;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 26px rgba(37,211,102,.42);
  transition: transform .3s var(--ease);
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp .i { width: 30px; height: 30px; }
.to-top {
  position: fixed; z-index: 80; inset-block-end: 1.4rem; inset-inline-start: 1.4rem;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-700); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .i { width: 20px; height: 20px; }

/* ---------- 22. Utilitaires ---------- */
.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 1rem; z-index: 200; padding: .7rem 1.1rem; border-radius: 0 0 10px 10px; background: var(--brand); color: #fff; font-weight: 650; transition: top .2s; }
.skip-link:focus { inset-block-start: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .25s; }
.filters button:hover { border-color: var(--clay-300); color: var(--brand); }
.filters button.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.divider-pattern { height: 34px; background-repeat: repeat-x; background-size: auto 34px; opacity: .5; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 860px) {
  .header__actions > .btn { display: none; }
}
@media (max-width: 420px) {
  .lang__btn > span:not(.lang__flag) { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .hero { min-height: min(92svh, 720px); }
  .searchbar { margin-top: -1.5rem; }
  .hero__scroll { display: none; }
  .split__badge { position: static; margin-top: 1rem; justify-self: start; }
}

/* ---------- 24. Arabe / RTL ---------- */
[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Cairo", "Segoe UI", sans-serif;
  --font-body: "Cairo", "Noto Kufi Arabic", "Segoe UI", sans-serif;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
[lang="ar"] .kicker { letter-spacing: .06em; }
[lang="ar"] .logo__sub { letter-spacing: .28em; }
[lang="ar"] body { line-height: 1.85; }
[dir="rtl"] .hero__slide img,
[dir="rtl"] .card__media img { transform-origin: right center; }
[dir="rtl"] .step::before { direction: ltr; }
[dir="rtl"] .price__value, [dir="rtl"] .stat__value { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .lightbox__btn--prev .i, [dir="rtl"] .lightbox__btn--next .i { transform: scaleX(-1); }

/* ---------- 25. Impression ---------- */
@media print {
  .header, .mobile-nav, .whatsapp, .to-top, .hero__dots, .footer__bottom, .newsletter { display: none !important; }
  body { background: #fff; }
  .hero { min-height: auto; color: #000; }
  .card, .panel { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- 26. Nombres et coordonnées en contexte RTL ---------- */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .footer__legal span,
[dir="rtl"] .chip,
[dir="rtl"] .info-item__body a,
[dir="rtl"] .num {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .footer__legal span,
[dir="rtl"] .info-item__body a { display: inline-block; }
[dir="rtl"] .chip { flex-direction: row-reverse; }
