/* ==========================================================================
   Thème « glass » (style par défaut, ex-Démo 2) — hero plein écran centré,
   moteur de recherche en verre, cartes modernisées.
   Chargé après style.css sur toutes les pages (body.theme-glass). Compatible RTL.
   ========================================================================== */

/* ---------- Hero ---------- */
.theme-glass .hero__bg::after {
  background:
    linear-gradient(180deg, rgba(11,30,61,.55) 0%, rgba(11,30,61,0) 22%, rgba(11,30,61,0) 45%, rgba(11,30,61,.55) 72%, rgba(11,30,61,.92) 100%);
}
.theme-glass .hero__in {
  min-height: 100svh; justify-content: flex-end; align-items: center; gap: 22px; text-align: center;
  padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px;
}
.theme-glass .hero__copy { max-width: 900px; margin: 0 auto; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(211,179,106,.25); }
.theme-glass .hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.1rem); line-height: 1.08; margin-bottom: 0; text-wrap: balance; text-shadow: 0 2px 24px rgba(11,30,61,.55); }
[dir="rtl"].theme-glass .hero h1, [dir="rtl"] .theme-glass .hero h1 { line-height: 1.3; }
.theme-glass .hero__lead { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.86); }
.theme-glass .hero__lead--below { max-width: 720px; margin: -4px auto 0; font-size: 1rem; color: rgba(255,255,255,.82); text-shadow: 0 1px 12px rgba(11,30,61,.6); }

/* ---------- Moteur de recherche « glass » ---------- */
.gsearch {
  position: relative; z-index: 3; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center;
  border-radius: 999px; text-align: start; color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
}
.gsearch__field {
  position: relative; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: center;
  transition: background-color .25s;
}
.gsearch__field + .gsearch__field::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255,255,255,.22); }
.gsearch__field:hover { background: rgba(255,255,255,.08); }
.gsearch__field:focus-within { background: rgba(255,255,255,.14); }
.gsearch__field > .ico { width: 20px; height: 20px; color: var(--gold-2); }
.gsearch__field > label, .gsearch__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: rgba(255,255,255,.7); }
[dir="rtl"] .gsearch__field > label, [dir="rtl"] .gsearch__label { font-size: .8rem; text-transform: none; }
.gsearch select, .gsearch input[type="date"], .gsearch__pax-btn {
  display: block; width: 100%; height: 48px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff;
  font-size: 1rem; font-weight: 500; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.gsearch .select select { padding: 0; padding-inline-end: 22px; }
.gsearch .select::after {
  left: auto; right: auto; inset-inline-end: 2px; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.8px solid rgba(255,255,255,.85); border-bottom: 1.8px solid rgba(255,255,255,.85);
}
.gsearch select option { color: var(--ink); background: #fff; }
/* Champs à libellé seul : libellé atténué tant qu'aucune valeur n'est choisie */
.gsearch select.is-empty, .gsearch .is-empty { color: rgba(255,255,255,.82); font-weight: 400; }
.gsearch__value { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; font-weight: 500; line-height: 48px; }
/* Date : sélecteur natif invisible sur tout le champ, le calendrier s'ouvre au clic */
.gsearch input.gsearch__date { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; color-scheme: dark; cursor: pointer; }
.gsearch input.gsearch__date::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gsearch__field:has(.gsearch__date:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.gsearch__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: 1rem; font-weight: 700;
  box-shadow: 0 12px 28px -12px rgba(173,138,61,.9); transition: background-color .25s, transform .25s var(--ease);
}
.gsearch__btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.gsearch__btn .ico { width: 20px; height: 20px; }

/* Panneau voyageurs */
.gsearch__panel {
  position: absolute; z-index: 5; top: calc(100% + 16px); inset-inline-end: 0; width: 360px; margin: 0; padding: 18px;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.22); background: rgba(11,30,61,.8); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: pop .25s var(--ease);
}
.gsearch__panel[hidden] { display: none; }
.gsearch__panel .pax { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gsearch__panel .pax label { grid-template-rows: 1fr auto; gap: 6px; }
.gsearch__panel .pax label span { align-self: end; white-space: normal; line-height: 1.25; font-size: .8rem; color: rgba(255,255,255,.88); }
.gsearch__panel .pax small { display: block; color: rgba(255,255,255,.6); }
.gsearch__panel .step { height: 46px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.gsearch__panel .step:hover { border-color: rgba(255,255,255,.4); }
.gsearch__panel .step:focus-within { background: rgba(255,255,255,.14); border-color: var(--gold-2); box-shadow: none; }
.gsearch__panel .step input {
  flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff;
  text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.gsearch__panel .step__btn { color: #fff; }
.gsearch__panel .step__btn:hover { background: rgba(255,255,255,.12); }
.gsearch__done { width: 100%; height: 44px; margin-top: 14px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; transition: background-color .2s; }
.gsearch__done:hover { background: var(--cream-2); }

/* Repères sous la recherche */
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__trust li > a, .hero__trust li:not(:has(a)) {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.hero__trust li > a:hover { background: rgba(255,255,255,.16); }
.hero__trust .ico { width: 16px; height: 16px; color: var(--gold-2); }

/* Bouton son : icône seule en haut à droite, dorée, avec une onde tant que le son est coupé */
.theme-glass .hero__sound {
  width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%;
  border-color: var(--gold-2); background: rgba(173,138,61,.22);
}
.theme-glass .hero__sound:hover { background: rgba(173,138,61,.4); }
.theme-glass .hero__sound .ico { width: 22px; height: 22px; }
.theme-glass .hero__sound .hero__sound-txt, .theme-glass .hero__sound[aria-pressed] .hero__eq { display: none; }
.theme-glass .hero__sound[aria-pressed="false"]::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--gold-2); pointer-events: none;
  animation: sound-ring 2.2s var(--ease) infinite;
}
@keyframes sound-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .theme-glass .hero__sound::before { display: none; } }

@media (max-width: 1100px) {
  .gsearch { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 22px; }
  .gsearch__field { border-radius: 14px; background: rgba(255,255,255,.06); }
  .gsearch__field + .gsearch__field::before { display: none; }
  .gsearch__btn { grid-column: 1 / -1; height: 46px; }
}
@media (max-width: 767px) {
  .theme-glass .hero__in { min-height: 100svh; justify-content: flex-end; gap: 16px; padding-top: calc(var(--header-h) + 64px); padding-bottom: 24px; }
  .hero__chip { margin-bottom: 16px; padding: 7px 12px; font-size: .7rem; letter-spacing: .1em; }
  .theme-glass .hero h1 { font-size: clamp(1.9rem, 1.1rem + 4.2vw, 2.15rem); white-space: nowrap; margin-bottom: 0; }
  .theme-glass .hero__lead { font-size: .98rem; }
  /* 2 champs par ligne + bouton : hauteur réduite au minimum */
  .gsearch { grid-template-columns: 1fr 1fr; padding: 4px; gap: 6px; border-radius: 20px; }
  .gsearch__field { height: 46px; padding: 0 8px; column-gap: 6px; grid-template-columns: 16px minmax(0, 1fr); }
  .gsearch__field > .ico { width: 16px; height: 16px; }
  .gsearch select, .gsearch input[type="date"], .gsearch__pax-btn { height: 46px; font-size: 16px; }
  .gsearch .gsearch__value { font-size: 15px; line-height: 46px; }
  .gsearch .select select { padding-inline-end: 10px; }
  .gsearch .select::after { inset-inline-end: 0; width: 6px; height: 6px; }
  .gsearch__panel { position: static; grid-column: 1 / -1; width: auto; margin-top: 10px; padding: 14px; background: rgba(11,30,61,.45); box-shadow: none; }
  .hero__trust { gap: 8px; }
  .hero__trust li > a, .hero__trust li:not(:has(a)) { padding: 6px 12px; font-size: .78rem; }
  .theme-glass .hero__copy { position: static; }
  .theme-glass .hero__sound { top: calc(var(--header-h) + 14px); bottom: auto; inset-inline-end: var(--gutter); width: 44px; height: 44px; }
}

/* ---------- Écrans peu hauts (portables en basse résolution, zoom 125–150 %) ----------
   Le hero se cale sur la hauteur disponible pour garder le moteur de recherche visible. */
@media (min-width: 768px) and (max-height: 860px) {
  .theme-glass .hero__in { gap: clamp(14px, 3.2vh, 30px); padding-top: calc(var(--header-h) + 3vh); padding-bottom: 3vh; }
  .hero__chip { margin-bottom: 2vh; padding: 6px 14px; font-size: .72rem; }
  .theme-glass .hero h1 { font-size: max(2rem, min(1.3rem + 3vw, 4.1rem, 7.4vh)); margin-bottom: 0; }
  .theme-glass .hero__lead { font-size: clamp(.92rem, 2.3vh, 1.15rem); }
}
@media (min-width: 768px) and (max-height: 760px) {
  :root { --header-h: 68px; }
  .theme-glass .header__in .brand img { height: 58px; }
}
@media (min-width: 768px) and (max-width: 1100px) and (max-height: 760px) {
  /* recherche sur 2 lignes au lieu de 3 : 4 champs côte à côte + bouton */
  .gsearch { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 20px; }
  .gsearch__field { padding: 0 12px; column-gap: 8px; border-radius: 14px; }
  .gsearch__field > .ico { width: 18px; height: 18px; }
  .gsearch select, .gsearch input[type="date"], .gsearch__pax-btn, .gsearch .gsearch__value { font-size: .92rem; }
  .gsearch__btn { height: 44px; }
}
@media (min-width: 768px) and (max-height: 640px) {
  .hero__chip, .hero__trust { display: none; }
  .theme-glass .hero__lead { max-width: 720px; }
}

/* ---------- Sections : touches modernes ---------- */
.theme-glass .eyebrow:not(.eyebrow--light) { padding: 6px 14px; border-radius: 999px; background: rgba(173,138,61,.12); }
.theme-glass .eyebrow:not(.eyebrow--light) .eyebrow__line { display: none; }

/* Destinations : légende en verre */
.theme-glass .dest { border-radius: 28px; }
@media (min-width: 1025px) { .theme-glass .dest:last-child { grid-column: span 3; } } /* comble la dernière ligne */
.theme-glass .dest__shade { background: linear-gradient(180deg, rgba(11,30,61,0) 55%, rgba(11,30,61,.45) 100%); }
.theme-glass .dest__txt {
  left: 12px; right: 12px; bottom: 12px; padding: 14px; padding-inline-start: 18px; padding-inline-end: 64px; border-radius: 20px;
  background: rgba(11,30,61,.35); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.theme-glass .dest__go { left: auto; right: auto; inset-inline-end: 12px; top: 50%; bottom: auto; transform: translateY(-50%); background: rgba(255,255,255,.18); }
.theme-glass .dest:hover .dest__go { transform: translateY(-50%) rotate(-45deg); }
[dir="rtl"] .theme-glass .dest:hover .dest__go { transform: translateY(-50%) rotate(45deg); }

/* Offres : image en retrait, badge en verre */
.theme-glass .offer__link { border: 0; border-radius: 28px; box-shadow: 0 1px 0 rgba(11,30,61,.04), 0 18px 40px -24px rgba(11,30,61,.35); }
.theme-glass .offer__media { margin: 10px 10px 0; border-radius: 20px; }
.theme-glass .badge {
  background: rgba(11,30,61,.4); color: #fff; border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.theme-glass .badge--omra, .theme-glass .badge--hajj { background: rgba(11,30,61,.55); color: var(--gold-2); border-color: rgba(211,179,106,.4); }
.theme-glass .offer__body { padding: 18px 20px 20px; }
.theme-glass .offer__cta { background: var(--navy); color: #fff; }
.theme-glass .offer__link:hover .offer__cta { background: var(--gold); color: var(--navy); }

/* Cartes services / témoignages / FAQ : coins plus doux */
.theme-glass .service, .theme-glass .faq__item { border-radius: 20px; }
.theme-glass .testi, .theme-glass .why__item, .theme-glass .ask { border-radius: 28px; }

/* ---------- Avis Google ---------- */
.gscore {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 26px; padding: 14px 20px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(11,30,61,.08); box-shadow: 0 10px 30px -22px rgba(11,30,61,.4); color: var(--navy);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.gscore:hover { box-shadow: 0 16px 36px -20px rgba(11,30,61,.45); transform: translateY(-1px); }
.gscore__g { width: 28px; height: 28px; flex: none; }
.gscore__note { font-family: var(--ff-serif); font-size: 1.7rem; font-weight: 500; line-height: 1; }
.gscore .stars .ico { width: 18px; height: 18px; }
.gscore__count { color: var(--muted); font-size: .92rem; }
.gscore__link { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--gold); }
.reviews { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
.reviews > .testi { scroll-snap-align: start; min-width: 0; }
.reviews .testi blockquote p { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.reviews .testi figcaption small { line-height: 1.35; }
@media (max-width: 1024px) { .reviews { grid-auto-columns: calc((100% - 20px) / 2.1); } }
@media (max-width: 767px) {
  .reviews { grid-auto-columns: 86%; }
  .gscore { padding: 12px 16px; }
  .gscore__link { margin-inline-start: 0; flex-basis: 100%; }
}

/* Accueil : header plus haut tant qu'il est transparent sur la vidéo (le header sticky garde 70 px) */
body:not(.page) { --header-h: 104px; }
@media (min-width: 768px) and (max-height: 760px) {
  body:not(.page) { --header-h: 84px; }
  body:not(.page) .header:not(.is-scrolled) .header__in .brand img { height: 74px; }
}
@media (max-width: 767px) {
  body:not(.page) { --header-h: 80px; }
  body:not(.page) .header:not(.is-scrolled) .brand img { height: 66px; }
}
