/* ==========================================================================
   Mondo Zen Travel by Mihana Go — Refonte page d'accueil
   Identité conservée : navy #0B1E3D · or #AD8A3D · crème #F6F4EE
   Typo : Fraunces (titres) + Inter (texte)
   ========================================================================== */

/* ---------- Fonts (auto-hébergées) ---------- */
@font-face {
  font-family: "Fraunces Local";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Local";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("../fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --navy: #0B1E3D;
  --navy-2: #12305A;
  --navy-3: #2C3D5E;
  --ink: #1B2333;
  --muted: #5E6574;
  --gold: #AD8A3D;
  --gold-2: #D3B36A;
  --gold-dark: #7A5F22;
  --cream: #F6F4EE;
  --cream-2: #EFEBE0;
  --cream-3: #E4DECD;
  --line: rgba(11, 30, 61, .1);
  --white: #fff;
  --wa: #25D366;

  --ff-serif: "Fraunces", "Fraunces Local", Georgia, "Times New Roman", serif;
  --ff-sans: "Inter", "Inter Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 2vw, 3rem);
  --fs-h3: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 30, 61, .06), 0 2px 8px rgba(11, 30, 61, .05);
  --shadow: 0 10px 30px -10px rgba(11, 30, 61, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 30, 61, .35);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(64px, 5rem + 2vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--ff-sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--navy); letter-spacing: normal; }
h2 { font-size: var(--fs-h2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-2); color: var(--navy); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ico.flip { transform: scaleX(-1); }
.ico.flip-up { transform: rotate(-90deg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark);
}
.eyebrow__line { width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); }
.btn--gold:hover { --bg: var(--gold-2); }
.btn--navy:hover { --bg: var(--navy-2); }
.btn--ghost { --bg: rgba(255,255,255,.06); --fg: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--navy); transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(11,30,61,.07); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn--line { border: 1px solid var(--cream-3); background: #fff; }
.icon-btn--line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.icon-btn--line:disabled { opacity: .35; pointer-events: none; }
.icon-btn--gold { background: var(--gold); color: var(--navy); }
.icon-btn--gold:hover { background: var(--gold-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: gap .25s var(--ease), color .2s; }
.link-arrow:hover { gap: 12px; color: var(--gold-dark); }

/* ---------- Header ---------- */
/* Header transparent superposé au hero, opaque (crème) après défilement.
   Le flou est porté par ::before pour ne pas créer de containing block
   qui casserait le tiroir mobile en position: fixed. */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: transparent; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: box-shadow .35s, border-color .35s, height .35s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(246, 244, 238, .94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header::after { /* voile discret pour la lisibilité sur la vidéo */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -2; pointer-events: none; transition: opacity .35s;
  background: linear-gradient(180deg, rgba(11,30,61,.55), rgba(11,30,61,0));
}
.header.is-scrolled { height: 70px; border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11,30,61,.35); }
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled::after { opacity: 0; }
.header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
/* Logo original sur un fond clair léger (sans ombre) tant que le header est transparent */
.brand { flex: none; display: block; padding: 4px 12px; border-radius: 12px;
  background: rgba(246, 244, 238, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .35s, padding .35s; }
.brand img { height: calc(var(--header-h) - 8px); width: auto; transition: height .35s; }
.header.is-scrolled .brand { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.header.is-scrolled .brand img { height: 66px; }
/* Logo clair (blanc/or) sur le header transparent, logo d'origine une fois le menu sticky */
.brand__dark { display: none; }
.header.is-scrolled .brand__light { display: none; }
.header.is-scrolled .brand__dark { display: block; }
.header:not(.is-scrolled) .brand { padding: 4px 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Effet de brillance : un reflet balaie le logo, découpé à sa forme (masque = le logo lui-même) */
.brand__logo { position: relative; display: block; line-height: 0; }
.brand__shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 0 42%, rgba(226, 172, 52, .9) 46.5%, #fff8e1 50%, rgba(226, 172, 52, .9) 53.5%, transparent 58% 100%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: var(--logo-l) center / 100% 100% no-repeat; mask: var(--logo-l) center / 100% 100% no-repeat;
  animation: brand-shine 5s ease-in-out 1s infinite; }
.header.is-scrolled .brand__shine { -webkit-mask-image: var(--logo-d); mask-image: var(--logo-d); }
.brand__logo img { animation: brand-glow 5s ease-in-out 1s infinite; }
@keyframes brand-shine { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
@keyframes brand-glow { 0%, 100% { filter: none; } 15% { filter: drop-shadow(0 0 7px rgba(232, 182, 60, .55)); } 30% { filter: none; } }
/* Même reflet sur le titre du hero (calque .shine-fx ajouté par main.js) */
[data-shine] { position: relative; }
.shine-fx { position: absolute; inset: 0; pointer-events: none; text-shadow: none;
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(110deg, transparent 0 45.5%, rgba(226, 172, 52, .9) 48.2%, #fff8e1 50%, rgba(226, 172, 52, .9) 51.8%, transparent 54.5% 100%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: brand-shine 5s ease-in-out 1.6s infinite; }
.shine-fx em { color: transparent; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: reduce) { .brand__shine, .brand__logo img, .shine-fx { animation: none; background: none; } }

/* États « transparent » (desktop) */
.header:not(.is-scrolled) .nav__list a { color: rgba(255,255,255,.86); }
.header:not(.is-scrolled) .nav__list a:hover,
.header:not(.is-scrolled) .nav__list a[aria-current="page"] { color: #fff; }
.header:not(.is-scrolled) .nav__list a::after { background: var(--gold-2); }
.header:not(.is-scrolled) .header__tel { color: #fff; }
.header:not(.is-scrolled) .header__tel .ico { color: var(--gold-2); }
.header:not(.is-scrolled) .header__cta { --bg: var(--gold); --fg: var(--navy); }
.header:not(.is-scrolled) .header__cta:hover { --bg: var(--gold-2); }
.header:not(.is-scrolled) .burger { color: #fff; }
.header:not(.is-scrolled) .burger:hover { background: rgba(255,255,255,.14); }

.nav { margin-inline-start: auto; }
.nav__head, .nav__extra { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 11px; font-size: .94rem; white-space: nowrap; font-weight: 500; color: var(--navy-3); border-radius: 8px; transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--navy); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__tel { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.header__tel .ico { color: var(--gold); }
.burger { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(11,30,61,.5); opacity: 0; transition: opacity .3s; }
.nav-backdrop.is-open { opacity: 1; }

@media (max-width: 1599px) { .header__tel span { display: none; } .header__tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--cream-3); border-radius: 50%; } .header:not(.is-scrolled) .header__tel { border-color: rgba(255,255,255,.35); } }

@media (max-width: 1100px) {
  .header__tel, .header__cta { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-inline-start: auto; }
  .nav {
    position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); margin: 0;
    display: flex; flex-direction: column; background: var(--cream); padding: 18px 22px 28px;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .nav__title { font-family: var(--ff-serif); font-size: 1.4rem; color: var(--navy); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a, .header:not(.is-scrolled) .nav__list a { padding: 16px 4px; font-size: 1.08rem; color: var(--navy-3); }
  .header:not(.is-scrolled) .nav__list a[aria-current="page"] { color: var(--navy); }
  .header:not(.is-scrolled) .nav__list a::after { background: var(--gold); }
  .nav__list a::after { left: 4px; right: auto; width: 24px; bottom: 10px; }
  .nav__extra { display: grid; gap: 16px; margin-top: auto; padding-top: 28px; }
  .nav__tel { display: inline-flex; gap: 10px; align-items: center; justify-content: center; font-weight: 600; color: var(--navy); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* scale : masque les fines bandes noires latérales (10 px) présentes dans la vidéo */
.hero__bg img, .hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,30,61,.94) 0%, rgba(11,30,61,.78) 40%, rgba(11,30,61,.35) 75%, rgba(11,30,61,.55) 100%),
    linear-gradient(0deg, rgba(11,30,61,.9) 0%, rgba(11,30,61,0) 45%);
}
.hero__in {
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(36px, 6vh, 72px);
  padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px)); padding-bottom: clamp(28px, 5vh, 56px);
}
.hero__copy { max-width: 720px; }
.hero h1 { color: #fff; font-size: var(--fs-h1); font-weight: 500; line-height: 1.12; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 400; }
.hero__lead { font-size: var(--fs-lead); color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__places { display: flex; gap: 22px; margin-top: 30px; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero__places li { display: inline-flex; gap: 8px; align-items: center; }
.hero__places .ico { color: var(--gold-2); }

/* Bouton son de la vidéo (créé par main.js) */
.hero__sound {
  position: absolute; z-index: 2; top: calc(var(--header-h) + 24px); inset-inline-end: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  color: #fff; font-size: .85rem; font-weight: 600; background: rgba(11,30,61,.35); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s, border-color .25s, color .25s;
}
.hero__sound:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.hero__sound[aria-pressed="true"] { border-color: var(--gold-2); }
.hero__sound .ico { width: 20px; height: 20px; color: var(--gold-2); }
.hero__sound-on { display: none; }
.hero__sound[aria-pressed="true"] .hero__sound-on { display: inline; }
.hero__sound[aria-pressed="true"] .hero__sound-off { display: none; }
.hero__eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.hero__sound[aria-pressed="true"] .hero__eq { display: inline-flex; }
.hero__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold-2); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.hero__eq i:nth-child(2) { animation-delay: -.3s; } .hero__eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero__eq i { animation: none; transform: scaleY(.7); } }

/* Search */
.search {
  background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--r-lg);
  padding: 22px 24px 24px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
}
.search__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--ff-serif); font-size: 1.2rem; color: var(--navy); }
.search__title .ico { color: var(--gold); }
.search__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1.9fr auto; gap: 14px; align-items: end; }
.field { min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-3);
}
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--cream-3); border-radius: 12px;
  background: var(--cream); font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover, .field select:hover { border-color: var(--gold-2); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(173,138,61,.18); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; text-overflow: ellipsis; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.8px solid var(--navy); border-bottom: 1.8px solid var(--navy); transform: rotate(45deg); pointer-events: none;
}
.pax { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pax label { display: grid; gap: 2px; min-width: 0; }
.pax label span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pax small { font-size: .7rem; }
.pax input { text-align: center; padding: 0 6px; }
.search__btn { height: 50px; border-radius: 12px; padding: 0 26px; }

@media (max-width: 1240px) {
  .search__grid { grid-template-columns: repeat(3, 1fr); }
  .field--pax { grid-column: span 2; }
}
@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .hero__in { justify-content: flex-start; padding-top: calc(var(--header-h) + 40px); }
  .hero__btns .btn { flex: 1 1 200px; }
  .search { padding: 20px 16px; }
  .search__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search__grid > .field:nth-child(1), .search__grid > .field:nth-child(2) { grid-column: span 2; }
  .search__grid > .field:nth-child(3) { grid-column: span 2; }
  .field--pax { grid-column: span 2; }
  .search__btn { grid-column: span 2; }
}

/* ---------- Sections ---------- */
.section { padding: var(--sec-y) 0; }
.section--tight { padding: calc(var(--sec-y) * .7) 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #EDE8DA; position: relative; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(173,138,61,.22), transparent); pointer-events: none;
}
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { max-width: 640px; }
.sec-head__side { display: flex; align-items: center; gap: 24px; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--mini { margin: clamp(48px, 6vw, 80px) 0 24px; align-items: center; }
.h-mini { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.rail-ctrl { display: flex; gap: 10px; }
.lead { font-size: var(--fs-lead); color: var(--ink); }

/* Horizontal rails (mobile + desktop when overflow) */
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 19vw, 300px); gap: 18px; }
.dest--wide { grid-column: span 2; }
.dest { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); isolation: isolate; box-shadow: var(--shadow-sm); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.dest__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,61,0) 35%, rgba(11,30,61,.88) 100%); transition: background .4s; }
.dest__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 4px; color: #fff; padding-right: 72px; }
.dest__country { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.dest__name { color: #fff; font-size: clamp(1.1rem, 1rem + .4vw, 1.45rem); line-height: 1.2; }
.dest__go {
  position: absolute; right: 20px; bottom: 22px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.dest:hover img { transform: scale(1.07); }
.dest:hover .dest__go { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .dest--wide { grid-column: auto; }
  .dest:first-child, .dest:last-child { grid-column: span 2; }
}

/* ---------- Offer cards ---------- */
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; margin: -6px -2px 0; }
.offer { scroll-snap-align: start; min-width: 0; }
.offer__link {
  height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(11,30,61,.06); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.offer__link:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--cream-2); }
.offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.offer__link:hover .offer__media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.95); color: var(--navy);
}
.badge--omra, .badge--hajj { background: var(--navy); color: var(--gold-2); }
.offer__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.offer__dest { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.offer__dest .ico { width: 14px; height: 14px; }
.offer__title { font-size: var(--fs-h3); line-height: 1.25; }
.offer__hotel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: .88rem; color: var(--ink); }
.offer__hotel > .ico { color: var(--muted); }
.stars { display: inline-flex; gap: 1px; }
.ico--star { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold); stroke-width: 1; }
.ico--star.is-off { fill: transparent; stroke: var(--cream-3); }
.offer__meta { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.offer__meta li { display: flex; gap: 8px; align-items: center; }
.offer__meta .ico { width: 15px; height: 15px; color: var(--gold); }
.offer__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--cream-3); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { margin: 0; display: grid; line-height: 1.15; }
.price strong { font-family: var(--ff-serif); font-size: 1.45rem; font-weight: 500; color: var(--navy); }
.price span { font-size: .78rem; color: var(--muted); }
.offer__cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: .86rem; font-weight: 600; transition: background .25s, color .25s; }
.offer__link:hover .offer__cta { background: var(--navy); color: #fff; }

@media (max-width: 1024px) { .offers { grid-auto-columns: calc((100% - 20px) / 2.15); gap: 20px; } }
@media (max-width: 767px) {
  .offers { grid-auto-columns: 84%; gap: 16px; margin-inline-end: calc(var(--gutter) * -1); padding-inline-end: var(--gutter); scroll-padding-inline-start: 2px; }
  .rail-ctrl { display: none; }
  .sec-head__side { width: 100%; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--gold); border-radius: var(--r-lg); z-index: -1; }
.about__media { isolation: isolate; }
.about__badge {
  position: absolute; left: -20px; bottom: 32px; background: var(--navy); color: #fff; padding: 18px 22px; border-radius: var(--r);
  box-shadow: var(--shadow-lg); border-left: 3px solid var(--gold);
}
.about__badge p { margin: 0; display: grid; font-size: .85rem; color: rgba(255,255,255,.75); }
.about__badge strong { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 500; color: #fff; }
.about__copy h2 { margin-bottom: 20px; }
.about__copy > p { color: var(--muted); }
.about__copy > .lead { color: var(--ink); }
.about__sub { font-family: var(--ff-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); margin: 28px 0 14px; }
.services { display: grid; gap: 12px; margin-bottom: 32px; }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; background: #fff; border-radius: var(--r); border: 1px solid rgba(11,30,61,.06); transition: box-shadow .3s, transform .3s var(--ease); }
.service:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.service__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cream-2); color: var(--gold-dark); }
.service__ico .ico { width: 22px; height: 22px; }
.service h4 { font-size: 1.08rem; margin-bottom: 4px; }
.service p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin: 0 auto 24px; width: calc(100% - 24px); }
  .about__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .dest-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; grid-auto-rows: 260px; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline-end: calc(var(--gutter) * -1); padding-inline-end: var(--gutter); }
  .dest, .dest:first-child, .dest:last-child { grid-column: auto; scroll-snap-align: start; }
}
@media (max-width: 480px) { .dest__txt { padding: 16px 56px 16px 16px; } .dest__go { right: 14px; bottom: 16px; width: 36px; height: 36px; } }
@media (max-width: 767px) { .about__badge { left: 12px; bottom: 12px; padding: 14px 16px; } .service { grid-template-columns: 1fr; } }

/* ---------- References marquee ---------- */
.refs .sec-head { margin-bottom: 36px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: grid; place-items: center; width: 190px; height: 104px; padding: 18px 24px; background: #fff; border-radius: var(--r); border: 1px solid rgba(11,30,61,.06); }
.marquee__track img { max-height: 64px; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.marquee__track li:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Why ---------- */
.why { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: why; }
.why__item {
  position: relative; padding: 32px 26px 30px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.why__item:hover { transform: translateY(-6px); border-color: rgba(211,179,106,.55); background: rgba(255,255,255,.07); }
.why__n { position: absolute; top: 22px; right: 24px; font-family: var(--ff-serif); font-size: 2.6rem; line-height: 1; color: rgba(211,179,106,.28); }
.why__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(173,138,61,.16); color: var(--gold-2); margin-bottom: 22px; }
.why__ico .ico { width: 26px; height: 26px; }
.why__item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why__item p { margin: 0; color: #C9CFDE; font-size: .95rem; }
@media (max-width: 1024px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- Omra ---------- */
.omra { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.omra__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; box-shadow: var(--shadow); }
.omra__copy h2 { margin-bottom: 20px; }
.checks { display: grid; gap: 14px; margin: 8px 0 32px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); }
.checks .ico { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
@media (max-width: 1024px) { .omra { grid-template-columns: 1fr; } .omra__media img { aspect-ratio: 16 / 9; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 80px; } }

/* ---------- Testimonials ---------- */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px 28px; background: #fff;
  border-radius: var(--r-lg); border: 1px solid rgba(11,30,61,.06); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi__q { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; color: var(--cream-3); fill: var(--cream-2); }
.testi .ico--star { width: 17px; height: 17px; }
.testi blockquote p { margin: 0; font-family: var(--ff-serif); font-size: 1.22rem; line-height: 1.45; color: var(--navy); }
.testi figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--cream-2); font-weight: 600; }
.testi figcaption small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-family: var(--ff-serif); font-size: 1rem; letter-spacing: .04em; }
@media (max-width: 1024px) { .testis { grid-template-columns: 1fr 1fr; } .testis .testi:last-child { grid-column: span 2; } }
@media (max-width: 767px) { .testis { grid-template-columns: 1fr; } .testis .testi:last-child { grid-column: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__intro h2 { margin-bottom: 28px; }
.ask { padding: 28px; border-radius: var(--r-lg); background: var(--cream-2); border-left: 3px solid var(--gold); }
.ask h3 { font-size: 1.35rem; margin-bottom: 8px; }
.ask p { color: var(--muted); }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: var(--r); border: 1px solid rgba(11,30,61,.08); transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: rgba(173,138,61,.4); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-family: var(--ff-sans); font-size: 1.04rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.faq__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--navy); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq__ico .ico { width: 18px; height: 18px; }
.faq__item[open] .faq__ico { transform: rotate(45deg); background: var(--gold); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
@media (max-width: 1024px) {
  .faq { grid-template-columns: 1fr; row-gap: 24px; }
  .faq__intro { display: contents; }
  .faq__intro > .eyebrow { order: 1; margin-bottom: -14px; }
  .faq__intro > h2 { order: 2; margin-bottom: 0; }
  .faq__list { order: 3; }
  .ask { order: 4; }
}

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--sec-y); }
.cta__box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 72px); border-radius: calc(var(--r-lg) + 6px); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(173,138,61,.35), transparent 50%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.cta__box h2 { color: #fff; margin-bottom: 10px; }
.cta__box p:not(.eyebrow) { color: rgba(255,255,255,.78); margin: 0; font-size: var(--fs-lead); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__btns .ico { width: 20px; height: 20px; }
@media (max-width: 767px) { .cta__btns, .cta__btns .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C9CFDE; padding-top: clamp(56px, 6vw, 88px); font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__logo { display: inline-block; background: var(--cream); border-radius: var(--r); padding: 10px 14px; margin-bottom: 18px; }
.footer__logo img { height: 72px; width: auto; }
.footer__brand p { max-width: 320px; }
.footer__wa { display: flex; gap: 10px; }
.footer__wa a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); transition: background .25s, color .25s, border-color .25s; }
.footer__wa a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer__wa .ico { width: 20px; height: 20px; }
.footer__h { font-family: var(--ff-sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a, .agency a, .agency__mail a { transition: color .2s; }
.footer ul a:hover, .agency a:hover, .agency__mail a:hover { color: #fff; }
.agency { margin-bottom: 16px; }
.agency p, .agency__mail { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0 0 6px; }
.agency .ico, .agency__mail .ico { color: var(--gold-2); margin-top: 3px; }
.agency__city { display: block !important; font-weight: 700; color: #fff; margin-bottom: 6px !important; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8894AC; }
.footer__bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #C9CFDE; }
.to-top:hover { color: var(--gold-2); }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Floating buttons : localisation (début) + discussion (fin), chacun ouvre un menu ---------- */
.fab-pop { position: fixed; bottom: 20px; z-index: 90; }
.fab-pop--start { inset-inline-start: 20px; }
.fab-pop--end { inset-inline-end: 20px; }
.fab {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab .ico { width: 28px; height: 28px; }
.fab__tip {
  position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--navy); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.fab-pop--start .fab__tip { inset-inline-start: calc(100% + 10px); }
.fab-pop--end .fab__tip { inset-inline-end: calc(100% + 10px); }
.fab:hover .fab__tip, .fab:focus-visible .fab__tip { opacity: 1; }
.fab[aria-expanded="true"] .fab__tip { display: none; }

/* Discussion : WhatsApp Casablanca / Marrakech + assistant */
.fab--chat { background: var(--navy); color: var(--gold-2); border: 2px solid var(--gold); }
.fab--chat[aria-expanded="true"] { background: var(--gold); color: var(--navy); }
.fab--chat::after { /* pastille « en ligne » */
  content: ""; position: absolute; top: 1px; inset-inline-end: 1px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--wa); border: 2px solid #fff;
  animation: chat-dot 2s ease-out infinite;
}
/* Animation : la bulle s'agite régulièrement, la pastille pulse (arrêtées quand le menu est ouvert) */
.fab--chat .ico { transform-origin: 50% 90%; animation: chat-wiggle 3.2s var(--ease) infinite; }
.fab--chat[aria-expanded="true"] .ico, .fab--chat[aria-expanded="true"]::after { animation: none; }
@keyframes chat-wiggle {
  0%, 62%, 100% { transform: none; }
  66% { transform: rotate(-14deg) scale(1.08); }
  72% { transform: rotate(11deg) scale(1.08); }
  78% { transform: rotate(-7deg); }
  84% { transform: rotate(4deg); }
  90% { transform: none; }
}
@keyframes chat-dot { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.65); } 70%, 100% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .fab--chat .ico, .fab--chat::after { animation: none; } }

/* Localisation des agences */
.fab--loc { background: #fff; color: var(--navy); border: 2px solid var(--gold); }
.fab--loc[aria-expanded="true"] { background: var(--navy); color: var(--gold-2); }
/* Animation : onde dorée + petit rebond du repère (arrêtée quand le menu est ouvert) */
.fab--loc::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); pointer-events: none;
  animation: loc-ring 2.4s var(--ease) infinite;
}
.fab--loc .ico { transform-origin: 50% 100%; animation: loc-bounce 2.4s var(--ease) infinite; }
.fab--loc[aria-expanded="true"]::before, .fab--loc[aria-expanded="true"] .ico { animation: none; }
.fab--loc[aria-expanded="true"]::before { opacity: 0; }
@keyframes loc-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes loc-bounce {
  0%, 50%, 100% { transform: none; }
  15% { transform: translateY(-6px); }
  28% { transform: translateY(0) scale(1.08, .9); }
  38% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .fab--loc::before { display: none; } .fab--loc .ico { animation: none; } }

/* Menu commun */
.fab-pop__menu {
  position: absolute; bottom: calc(100% + 12px); width: min(330px, calc(100vw - 28px)); padding: 10px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(11,30,61,.08);
  animation: pop .25s var(--ease);
}
.fab-pop--start .fab-pop__menu { inset-inline-start: 0; }
.fab-pop--end .fab-pop__menu { inset-inline-end: 0; }
.fab-pop__menu[hidden] { display: none; }
.fab-pop__title { margin: 4px 8px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); }
.fab-pop__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border-radius: 12px; color: var(--navy); text-align: start; transition: background-color .2s; }
.fab-pop__item:hover, .fab-pop__item:focus-visible { background: var(--cream); }
.fab-pop__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); color: var(--gold-dark); }
.fab-pop__ico--wa { background: var(--wa); color: #fff; }
.fab-pop__ico--bot { background: var(--navy); color: var(--gold-2); }
.fab-pop__ico .ico { width: 20px; height: 20px; }
.fab-pop__item strong { display: block; font-weight: 600; line-height: 1.3; }
.fab-pop__item small { display: block; font-size: .78rem; color: var(--muted); }
.fab-pop__go { margin-inline-start: auto; width: 18px; height: 18px; color: var(--gold); }
@media (max-width: 767px) {
  .fab-pop { bottom: 14px; }
  .fab-pop--start { inset-inline-start: 14px; }
  .fab-pop--end { inset-inline-end: 14px; }
  .fab { width: 50px; height: 50px; }
  .fab .ico { width: 24px; height: 24px; }
}

/* ---------- Chatbot ---------- */
.bot {
  position: fixed; right: 90px; bottom: 20px; z-index: 95; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px));
  display: flex; flex-direction: column; background: var(--cream); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(11,30,61,.1); transform-origin: bottom right; animation: pop .3s var(--ease);
}
.bot[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.bot__head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--navy); color: #fff; }
.bot__head .icon-btn { margin-inline-start: auto; color: #fff; }
.bot__head .icon-btn:hover { background: rgba(255,255,255,.12); }
.bot__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.bot__title { margin: 0; font-weight: 600; }
.bot__status { margin: 0; font-size: .78rem; color: #C9CFDE; display: flex; align-items: center; gap: 6px; }
.bot__status i { width: 8px; height: 8px; border-radius: 50%; background: #8FE3A6; }
.bot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; }
.msg__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__links a { text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--cream-2); font-size: .8rem; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.bot__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.bot__quick:empty { display: none; }
.bot__quick button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--navy); font-size: .82rem; background: #fff; }
.bot__quick button:hover { background: var(--gold); }
.bot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; margin-top: 10px; }
.bot__form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cream-3); background: var(--cream); }
.bot__form input:focus { outline: 0; border-color: var(--gold); }
.bot__form .ico { width: 18px; height: 18px; }
@media (max-width: 767px) { .bot { right: 16px; left: 16px; width: auto; bottom: 80px; height: min(520px, calc(100svh - 110px)); } }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Large desktops ---------- */
@media (min-width: 1680px) {
  :root { --container: 1440px; }
  body { font-size: 1.04rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print { .header, .fab-pop, .bot, .hero__bg, .marquee { display: none !important; } .hero { color: var(--ink); background: none; } .hero h1 { color: var(--navy); } }


/* ==========================================================================
   Sélecteur de langue (drapeaux)
   ========================================================================== */
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,30,61,.12); overflow: hidden; display: block; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--cream-3); background: rgba(255,255,255,.6); color: var(--navy); font-size: .85rem; font-weight: 600;
  transition: background-color .25s, border-color .25s, color .25s;
}
.lang__btn:hover { background: #fff; }
.lang__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.header:not(.is-scrolled) .lang__btn { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.header:not(.is-scrolled) .lang__btn:hover { background: rgba(255,255,255,.18); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 130; min-width: 200px; padding: 8px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); border: 1px solid rgba(11,30,61,.08);
  animation: pop .2s var(--ease);
}
.lang__menu[hidden] { display: none; }
.lang__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--navy); font-size: .92rem; font-weight: 500; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--cream); }
.lang__menu a[aria-current="true"] { background: var(--cream-2); font-weight: 700; }
.lang__menu a[aria-current="true"]::after { content: ""; margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.nav__langs-title { display: none; }
.nav__langs { display: none; }
@media (max-width: 1100px) {
  .nav__langs-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); }
  .nav__langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .nav__langs a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--cream-3); background: #fff; font-size: .78rem; font-weight: 600; color: var(--navy); }
  .nav__langs a[aria-current="true"] { border-color: var(--gold); background: var(--cream-2); }
  .nav__langs .flag { width: 28px; height: 19px; }
}
@media (max-width: 767px) { .lang__btn { padding: 0 10px; } .lang__code { display: none; } }
@media (max-width: 380px) { .lang__chev { display: none; } .header__actions { gap: 8px; } }

.footer__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__langs a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #C9CFDE; font-size: .78rem; transition: background-color .2s, color .2s; }
.footer__langs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer__langs a[aria-current="true"] { border-color: var(--gold-2); color: #fff; }
.footer__langs .flag { width: 18px; height: 12px; box-shadow: none; }

/* ==========================================================================
   Arabe — RTL
   ========================================================================== */
[dir="rtl"] {
  --ff-serif: "Noto Kufi Arabic", "Fraunces", "Fraunces Local", Georgia, serif;
  --ff-sans: "Noto Sans Arabic", "Inter", "Inter Local", -apple-system, "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.4; font-weight: 600; }
[dir="rtl"] .hero h1 { line-height: 1.3; font-weight: 700; }
[dir="rtl"] .hero h1 em { font-style: normal; font-weight: 700; }
[dir="rtl"] .eyebrow, [dir="rtl"] .field > label, [dir="rtl"] .field > legend, [dir="rtl"] .about__sub, [dir="rtl"] .footer__h, [dir="rtl"] .dest__country, [dir="rtl"] .badge { text-transform: none; font-size: .88rem; }
[dir="rtl"] .testi blockquote p { font-family: "Fraunces", "Fraunces Local", Georgia, serif; }
[dir="rtl"] .price strong { font-family: var(--ff-sans); font-weight: 700; }

/* Icônes directionnelles */
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
[dir="rtl"] .ico--dir.flip { transform: none; }
[dir="rtl"] .btn:hover .ico--dir { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .ico--send { transform: scaleX(-1); }

/* Header & navigation */
[dir="rtl"] .nav__list a::after { transform-origin: right; }
[dir="rtl"] .hero__bg::after {
  background:
    linear-gradient(260deg, rgba(11,30,61,.94) 0%, rgba(11,30,61,.78) 40%, rgba(11,30,61,.35) 75%, rgba(11,30,61,.55) 100%),
    linear-gradient(0deg, rgba(11,30,61,.9) 0%, rgba(11,30,61,0) 45%);
}
@media (max-width: 1100px) {
  [dir="rtl"] .nav { right: auto; left: 0; transform: translateX(-100%); }
  [dir="rtl"] .nav.is-open { transform: none; }
  [dir="rtl"] .nav__list a::after { left: auto; right: 4px; }
}

/* Formulaire */
[dir="rtl"] .select select { padding-right: 14px; padding-left: 38px; }
[dir="rtl"] .select::after { right: auto; left: 16px; }

/* Cartes */
[dir="rtl"] .badge { left: auto; right: 14px; }
[dir="rtl"] .dest__txt { padding-right: 22px; padding-left: 72px; }
[dir="rtl"] .dest__go { right: auto; left: 20px; }
[dir="rtl"] .dest:hover .dest__go { transform: rotate(45deg); }
@media (max-width: 480px) {
  [dir="rtl"] .dest__txt { padding: 16px 16px 16px 56px; }
  [dir="rtl"] .dest__go { left: 14px; }
}

/* À propos / Omra */
[dir="rtl"] .about__media::before { inset: 24px 24px -24px -24px; }
[dir="rtl"] .about__badge { left: auto; right: -20px; border-left: 0; border-right: 3px solid var(--gold); }
@media (max-width: 767px) { [dir="rtl"] .about__badge { right: 12px; } }
[dir="rtl"] .service:hover { transform: translateX(-4px); }
[dir="rtl"] .omra__media img { border-radius: var(--r-lg) var(--r-lg) 120px var(--r-lg); }
@media (max-width: 1024px) { [dir="rtl"] .omra__media img { border-radius: var(--r-lg) var(--r-lg) 80px var(--r-lg); } }

/* Références (défilement inversé) */
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 10px)); } }

/* Divers */
[dir="rtl"] .why__n { right: auto; left: 24px; }
[dir="rtl"] .testi__q { right: auto; left: 24px; transform: scaleX(-1); }
[dir="rtl"] .ask { border-left: 0; border-right: 3px solid var(--gold); }
[dir="rtl"] .bot { right: auto; left: 90px; transform-origin: bottom left; }
[dir="rtl"] .msg--bot { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .msg--me { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
@media (max-width: 767px) {
  [dir="rtl"] .bot { left: 16px; right: 16px; }
}

@media (max-width: 1279px) and (min-width: 1101px) { .header__cta { display: none; } .nav__list a { padding: 10px 9px; font-size: .9rem; } }

/* ==========================================================================
   Mobile friendly
   ========================================================================== */
html { -webkit-tap-highlight-color: rgba(173,138,61,.18); }
img, video { max-width: 100%; }
@media (max-width: 767px) {
  /* champs à 16px : évite le zoom automatique sur iPhone */
  .field input, .field select, .bot__form input { font-size: 16px; }
  .pax label span { font-size: .78rem; }
  .pax small { font-size: .72rem; }
  .badge, .dest__country, .offer__dest, .field > label, .field > legend { font-size: .75rem; }
  .footer ul a, .footer__langs a, .agency a, .agency__mail a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer ul { gap: 0; }
  .footer__langs { gap: 8px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .to-top { min-height: 44px; }
  .hero h1 { margin-bottom: 16px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .why__item { padding: 26px 22px; }
  .testi { padding: 26px 22px 22px; }
  .cta__box { padding: 32px 22px; }
  .faq__item summary { padding: 16px 18px; min-height: 56px; }
}
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .pax { gap: 6px; }
  .pax label span { font-size: .72rem; }
  .btn--lg { padding: 12px 20px; font-size: .95rem; }
}
@media (hover: none) {
  .offer__link:hover, .why__item:hover, .testi:hover, .service:hover { transform: none; }
}
@media (max-width: 1024px) {
  .field input, .field select, .bot__form input { font-size: 16px; }
  .badge { font-size: .75rem; }
  .pax small { font-size: .72rem; }
}
.price strong { white-space: nowrap; }
/* Mobile, tablette et écrans peu hauts : boutons flottants affichés après le hero pour ne pas masquer le formulaire */
@media (max-width: 1100px), (max-height: 760px) {
  .fab-pop { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .show-fab .fab-pop { opacity: 1; transform: none; pointer-events: auto; }
}

/* ==========================================================================
   Voyageurs : sélecteurs − / + (créés par main.js)
   ========================================================================== */
.step {
  display: flex; align-items: center; height: 50px; border: 1px solid var(--cream-3); border-radius: 12px;
  background: var(--cream); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.step:hover { border-color: var(--gold-2); }
.step:focus-within { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(173,138,61,.18); }
.field .step input, .field .step input:hover, .field .step input:focus {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none;
  font-weight: 600; color: var(--navy); -moz-appearance: textfield; appearance: textfield;
}
.step input::-webkit-inner-spin-button, .step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step__btn { flex: none; display: grid; place-items: center; width: 34px; height: 100%; color: var(--navy); border-radius: 11px; transition: background-color .2s, opacity .2s; }
.step__btn:hover { background: var(--cream-2); }
.step__btn:disabled { opacity: .3; cursor: default; background: none; }
.step__btn .ico { width: 16px; height: 16px; stroke-width: 2.2; }

/* Carrousels : barre de progression (créée par main.js) */
.rail-progress { display: none; }

/* ==========================================================================
   Mobile UX — header, hero, recherche, cartes
   ========================================================================== */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header.is-scrolled { height: 60px; }
  .brand { padding: 3px 10px; border-radius: 10px; }
  .brand img, .header.is-scrolled .brand img { height: 54px; }

  /* Hero compact : le formulaire remonte dans le premier écran */
  .hero__bg::after, [dir="rtl"] .hero__bg::after {
    background: linear-gradient(180deg, rgba(11,30,61,.82) 0%, rgba(11,30,61,.6) 30%, rgba(11,30,61,.78) 60%, rgba(11,30,61,.97) 100%);
  }
  .hero__in { min-height: 0; gap: 26px; padding-top: calc(var(--header-h) + 30px); padding-bottom: 28px; }
  .hero .eyebrow { gap: 10px; margin-bottom: 12px; font-size: .75rem; letter-spacing: .12em; }
  .hero .eyebrow__line { width: 20px; }
  .hero h1 { font-size: clamp(2.15rem, 1.25rem + 4.4vw, 2.75rem); line-height: 1.08; margin-bottom: 12px; }
  .hero__lead { font-size: 1rem; line-height: 1.55; margin-bottom: 22px; color: rgba(255,255,255,.86); }
  .hero__btns { display: none; }
  .hero__lead { margin-bottom: 0; }
  .hero__places { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .hero__places li {
    gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: .8rem; color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  }
  .hero__places .ico { width: 14px; height: 14px; }
  /* Bouton son : icône seule, alignée sur la ligne Casablanca / Marrakech */
  .hero__copy { position: relative; }
  .hero__sound { top: auto; bottom: -5px; inset-inline-end: 0; width: 44px; padding: 0; justify-content: center; }
  .hero__sound .hero__sound-txt, .hero__sound[aria-pressed] .hero__eq { display: none; }

  /* Moteur de recherche : destination d'abord, type + date côte à côte */
  .search { padding: 18px 16px 16px; border-radius: 20px; }
  .search__title { margin-bottom: 12px; font-size: 1.1rem; }
  .search__grid { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .search__grid > .field:nth-child(1), .search__grid > .field:nth-child(3) { grid-column: auto; }
  .search__grid > .field:nth-child(2) { order: -1; grid-column: 1 / -1; }
  .field--pax, .search__btn { grid-column: 1 / -1; }
  .field > label, .field > legend { margin-bottom: 5px; letter-spacing: .08em; }
  .field input, .field select { height: 48px; padding: 0 12px; }
  .select select { padding-right: 32px; }
  .select::after { right: 14px; }
  [dir="rtl"] .select select { padding-right: 12px; padding-left: 32px; }
  [dir="rtl"] .select::after { left: 14px; }
  .pax { gap: 6px; }
  .pax label { grid-template-rows: 1fr auto; gap: 4px; }
  .pax label span { align-self: end; white-space: normal; line-height: 1.25; }
  .pax small { display: block; color: var(--muted); }
  .step { height: 48px; }
  .search__btn { height: 52px; margin-top: 4px; font-size: 1rem; }

  /* Carrousels */
  .rail-progress { display: block; position: relative; width: 88px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: rgba(11,30,61,.12); overflow: hidden; }
  .rail-progress[hidden] { display: none; }
  .rail-progress span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; border-radius: inherit; background: var(--gold); }
  .sec-head { gap: 14px; }
  .sec-head .link-arrow { font-size: .95rem; }

  /* Cartes offres : plus compactes, hauteurs homogènes, CTA visible au toucher */
  .offers { grid-auto-columns: 82%; gap: 14px; padding-bottom: 10px; align-items: start; }
  .offer__media { aspect-ratio: 16 / 10; }
  .badge { top: 12px; left: 12px; padding: 5px 10px; }
  .offer__body { gap: 8px; padding: 16px 18px 18px; }
  .offer__dest { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .offer__dest .ico { margin-inline-end: 6px; vertical-align: -2px; }
  .offer__title { font-size: 1.12rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .offer__hotel { flex-wrap: nowrap; font-size: .85rem; }
  .offer__hotel > span[dir] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .offer__hotel .stars { flex: none; }
  .offer__meta { font-size: .84rem; }
  .offer__foot { padding-top: 12px; align-items: center; }
  .price strong { font-size: 1.3rem; }
  .offer__cta { padding: 10px 14px; background: var(--navy); color: #fff; }
}
@media (max-width: 560px) {
  .dest-grid { grid-auto-columns: 80%; grid-auto-rows: 300px; }
  .dest__name { font-size: 1.2rem; }
}
@media (max-width: 360px) {
  .step__btn { width: 28px; }
}

/* ---------- Bannière cookies ---------- */
.cookies { position: fixed; z-index: 105; left: 50%; bottom: 20px; width: min(980px, calc(100% - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px;
  border-radius: 20px; background: rgba(11, 30, 61, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #DCE1EC; border: 1px solid rgba(211, 179, 106, .35); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate(-50%, 24px); transition: opacity .3s, transform .3s var(--ease); }
.cookies.is-in { opacity: 1; transform: translate(-50%, 0); }
.cookies[hidden] { display: none; }
.cookies__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(211, 179, 106, .16); color: var(--gold-2); }
.cookies__ico svg { width: 26px; height: 26px; }
.cookies__title { margin: 0 0 4px; color: #fff; font-weight: 700; font-size: 1rem; }
.cookies__txt p { margin: 0; font-size: .9rem; line-height: 1.55; }
.cookies__txt a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookies__btns { display: flex; gap: 10px; }
@media (max-width: 760px) {
  .cookies { bottom: 12px; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .cookies__ico { width: 38px; height: 38px; }
  .cookies__btns { grid-column: 1 / -1; }
  .cookies__btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookies { transition: none; } }

/* Liens légaux du bas de page */
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__legal a, .footer__legal button { padding: 0; border: 0; background: none; font: inherit; color: #C9CFDE; cursor: pointer; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--gold-2); }
@media (max-width: 760px) { .footer__legal a, .footer__legal button { min-height: 44px; display: inline-flex; align-items: center; } }

/* Hero : vidéo YouTube / Vimeo en fond (back-office > Apparence), recadrée en 16:9 « cover » */
.hero__bg { container-type: size; }
.hero__embed { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.02); opacity: 0; transition: opacity .9s ease; }
.hero__embed.is-on { opacity: 1; }

/* ---------- Popup promo (page d'accueil, back-office > Promo) : une ou plusieurs promos, chacune refermable ---------- */
html.promo-lock { overflow: hidden; }
.promo { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.promo[hidden] { display: none; }
.promo__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 42, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.promo__panel { position: relative; display: flex; flex-direction: column; width: min(500px, 100%); max-height: calc(100svh - 40px);
  opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .85, .25, 1), width .35s ease; }
.promo.is-open .promo__backdrop { opacity: 1; }
.promo.is-open .promo__panel { opacity: 1; transform: none; }
.promo__panel:has(.promo__card--pdf) { width: min(780px, 100%); }
.promo__list { display: grid; gap: 16px; min-height: 0; }

/* Carte d'une promo */
.promo__card { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden auto; border-radius: 24px; background: #fff;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(211, 179, 106, .25); transition: opacity .3s ease, transform .35s ease; }
.promo__card.is-leaving { opacity: 0; transform: scale(.94); }
.promo__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(11, 30, 61, .55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s, background-color .2s; }
.promo__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.promo__close:hover { transform: rotate(90deg); background: var(--navy); }
.promo__close:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.promo__preview { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; }
.promo__media { display: block; flex: none; overflow: hidden; background: var(--navy); }
.promo__media img { display: block; width: 100%; height: auto; max-height: calc(100svh - 230px); object-fit: contain; background: var(--navy); transition: transform .6s cubic-bezier(.2, .85, .25, 1); }
.promo__card--bare .promo__media img { max-height: calc(100svh - 140px); }
a.promo__media:hover img { transform: scale(1.025); }
.promo__pdf iframe { display: block; width: 100%; height: min(62svh, 640px); border: 0; background: #525659; }
.promo__pdfcard { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; }
.promo__pdfcard svg { width: 54px; height: 54px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; }
.promo__pdfcard strong { max-width: 100%; overflow-wrap: anywhere; }
.promo__pdfcard small { color: rgba(255, 255, 255, .75); }
.promo__pdf--embed .promo__pdfcard { display: none; }
.promo__body { display: grid; gap: 10px; padding: 22px 26px 26px; text-align: center; }
.promo__title { margin: 0; font-family: var(--ff-serif); font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.8rem); font-weight: 500; line-height: 1.2; color: var(--navy); }
.promo__text { margin: 0; color: var(--muted); line-height: 1.6; }
.promo__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 6px; }
.promo .btn--line { --bg: #fff; --fg: var(--navy); border-color: var(--navy); }
.promo .btn--line:hover { --bg: var(--navy); --fg: #fff; }
.promo__dl { font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.promo__dl:hover { color: var(--gold-dark, var(--gold)); }

/* Plusieurs promos : en-tête + liste (grille sur ordinateur) */
.promo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; }
.promo__head[hidden] { display: none; }
.promo__head h2 { margin: 0; font-family: var(--ff-serif); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 500; color: var(--navy); }
.promo__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: var(--navy);
  font: 700 .85rem/1 var(--ff-sans); vertical-align: middle; }
.promo__close--all { position: static; flex: none; background: var(--navy); border-color: transparent; }
.promo__panel--multi { width: min(1060px, 100%); overflow: hidden; border-radius: 26px; background: var(--cream, #F6F4EE);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(211, 179, 106, .3); }
.promo__panel--multi:has(.promo__card:nth-child(2):last-child) { width: min(800px, 100%); }
.promo__panel--multi .promo__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: max-content; align-content: start; align-items: start; padding: 2px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.promo__panel--multi .promo__card { overflow: hidden; border-radius: 18px; box-shadow: 0 14px 34px -20px rgba(11, 30, 61, .5), 0 0 0 1px rgba(11, 30, 61, .06); }
.promo__panel--multi .promo__close { top: 10px; width: 34px; height: 34px; }
.promo__panel--multi .promo__close svg { width: 16px; height: 16px; }
.promo__panel--multi .promo__close--all { width: 42px; height: 42px; }
.promo__panel--multi .promo__close--all svg { width: 20px; height: 20px; }
.promo__panel--multi .promo__media img { max-height: 340px; }
.promo__panel--multi .promo__body { padding: 16px 18px 20px; gap: 8px; }
.promo__panel--multi .promo__title { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
.promo__panel--multi .promo__text { font-size: .92rem; }
.promo__panel--multi .promo__actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.promo__panel--multi .promo__pdfcard { padding: 28px 16px; }

/* Mobile : panneau qui monte du bas de l'écran ; le PDF s'ouvre via une carte (pas d'aperçu intégré) */
@media (max-width: 600px) {
  .promo { place-items: end center; padding: 0; }
  .promo__panel, .promo__panel:has(.promo__card--pdf) { width: 100%; max-height: 92svh; transform: translateY(100%); }
  .promo__panel:not(.promo__panel--multi) .promo__card { max-height: 92svh; border-radius: 24px 24px 0 0; }
  .promo__panel--multi, .promo__panel--multi:has(.promo__card:nth-child(2):last-child) { width: 100%; border-radius: 24px 24px 0 0; }
  .promo__panel--multi .promo__list { grid-template-columns: 1fr; padding: 2px 14px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
  .promo__head { padding: 16px 16px 12px; }
  .promo__media img { max-height: 58svh; }
  .promo__card--bare .promo__media img { max-height: 76svh; }
  .promo__panel--multi .promo__media img { max-height: 46svh; }
  .promo__body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
  .promo__panel--multi .promo__body { padding: 14px 16px 18px; }
  .promo__actions .btn { flex: 1 1 100%; }
  .promo__pdf iframe { display: none; }
  .promo__pdf--embed .promo__pdfcard { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .promo__panel, .promo__backdrop, .promo__card { transition: none; transform: none; }
}
