/* ============================================================================
   LE MONDE ENSEMBLE — V633 HARMONIE GLOBALE :
   1. En-tête complet & Menu 3 barres horizontales (☰) 100 % fonctionnel partout
   2. Lisibilité parfaite dans « Le souvenir derrière la photo » (.photo-story)
      et sur toutes les bannières / cartes
   3. Ouverture propre en haut de page sans barres parasites
   ============================================================================ */

/* --- 1. MASQUER LES BARRES PARASITES HORS EN-TÊTE --- */
.lme-v630-tool-ribbon,
#lme-routebar,
.lme-page-nav-wrap,
.lme-v242-mobilebar {
  display: none !important;
}

/* --- 2. EN-TÊTE UNIFIÉ (NAVIGATION PRINCIPALE + BOUTON 3 BARRES ☰ FONCTIONNEL) --- */
header.lme-unified-header,
body > header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10020 !important;
  background: #fffdfa !important;
  border-bottom: 1px solid #e6ddd2 !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 18px rgba(25, 45, 47, 0.06) !important;
  /* Aucun backdrop-filter sur <header> afin que Safari iOS/macOS ne coupe jamais le menu déroulant ! */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

header .wrap.nav,
header.lme-unified-header .lme-uh-inner {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  min-height: 54px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  overflow: visible !important;
}

header .brand,
header.lme-unified-header .lme-uh-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #193c39 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
}

header .brand img.logo,
header.lme-unified-header .lme-uh-brand img.logo {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
}

header .brand b,
header .brand span,
header.lme-unified-header .lme-uh-brand b,
header.lme-unified-header .lme-uh-brand span {
  color: #193c39 !important;
  font-weight: 800 !important;
  font-size: clamp(0.96rem, 2.2vw, 1.08rem) !important;
  white-space: nowrap !important;
}

header .westfalia-nav-mark {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 26px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  margin-left: 2px !important;
}

/* Liens de navigation directe dans l'en-tête sur ordinateur (> 980px), masqués sur mobile pour éviter les écritures en blocs */
header .links.lme-uh-nav,
header.lme-unified-header .lme-uh-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
  margin-right: 8px !important;
  flex-wrap: nowrap !important;
}

header .links.lme-uh-nav a,
header.lme-unified-header .lme-uh-nav a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  color: #193c39 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}

header .links.lme-uh-nav a:hover,
header .links.lme-uh-nav a[aria-current="page"] {
  background: #eaf4f0 !important;
  color: #1f5b50 !important;
}

header .links.lme-uh-nav a.lme-primary-cta {
  background: #1f5b50 !important;
  color: #ffffff !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
}

header .links.lme-uh-nav a.lme-primary-cta:hover {
  background: #16443b !important;
  color: #ffffff !important;
}

@media (max-width: 980px) {
  header .links.lme-uh-nav,
  header.lme-unified-header .lme-uh-nav,
  header .links:not(.secondary-menu) {
    display: none !important;
  }
}

/* Bouton 3 barres horizontales (☰) identique et fonctionnel sur 100 % des pages */
header .secondary-menu-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 46px !important;
  min-width: 46px !important;
  margin-left: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10030 !important;
  overflow: visible !important;
}

@media (max-width: 980px) {
  header .secondary-menu-wrap {
    margin-left: auto !important;
  }
}

header .hamburger-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1.5px solid #1f5b50 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(25, 60, 57, 0.1) !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10035 !important;
}

header .hamburger-btn:hover {
  transform: translateY(-1px) !important;
  background: #f2f9f6 !important;
  box-shadow: 0 9px 22px rgba(25, 60, 57, 0.15) !important;
}

header .hamburger-btn span {
  display: block !important;
  width: 21px !important;
  height: 2.4px !important;
  border-radius: 99px !important;
  background: #1f5b50 !important;
  transition: transform 0.22s ease, opacity 0.18s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

header .hamburger-btn[aria-expanded="true"] {
  background: #eaf4f0 !important;
}
header .hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.4px) rotate(45deg) !important;
}
header .hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0 !important;
}
header .hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.4px) rotate(-45deg) !important;
}

/* Panneau déroulant du menu 3 barres (positionné sous le bouton ☰ sans aucun blocage Safari/iOS) */
header .secondary-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(355px, calc(100vw - 24px)) !important;
  max-height: min(80dvh, calc(100vh - 88px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 12px !important;
  background: #fffdfa !important;
  border: 1px solid #d8ccbe !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 55px rgba(22, 45, 42, 0.24) !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 12050 !important;
  text-align: left !important;
}

header .secondary-menu.open,
header .secondary-menu[data-menu-open="true"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

header .secondary-menu .lme-menu-heading {
  display: block !important;
  margin: 8px 4px 4px !important;
  padding: 9px 10px 4px !important;
  border-top: 1px solid #ece3d8 !important;
  color: #8c644b !important;
  font: 800 0.7rem/1.3 system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}

header .secondary-menu .lme-menu-heading:first-of-type {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 4px !important;
}

header .secondary-menu a {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 10px 11px !important;
  border-radius: 13px !important;
  color: #193c39 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
  font-size: 0.93rem !important;
  line-height: 1.3 !important;
  transition: background 0.16s ease !important;
}

header .secondary-menu a:hover,
header .secondary-menu a[aria-current="page"] {
  background: #eaf4f0 !important;
  color: #1f5b50 !important;
}

header .secondary-menu a b {
  display: block !important;
  color: #193c39 !important;
  font-size: 0.93rem !important;
  font-weight: 750 !important;
}

header .secondary-menu a small {
  display: block !important;
  color: #546663 !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
}

header .secondary-menu .menu-icon {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: #e8f3ef !important;
  font-size: 1rem !important;
}

/* --- 3. LISIBILITÉ & CONTRASTE PARFAITS SUR TOUTES LES SECTIONS --- */

/* 3a. Boutique & Guides (boutique-offres.html) */
.shop-hero {
  background: linear-gradient(115deg, rgba(14, 30, 33, 0.84) 0%, rgba(42, 31, 37, 0.74) 100%), url('hero-emilie-andy-plage.webp') center 45% / cover !important;
  color: #ffffff !important;
}
.shop-hero :where(h1, h2, h3, p) {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55) !important;
}
.shop-hero .eyebrow {
  color: #ffe3b3 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5) !important;
}
.shop-hero .shop-btn {
  background: #ffffff !important;
  color: #193c39 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}
.shop-cover::after {
  content: "" !important;
  position: absolute !important;
  inset: 38% 0 0 !important;
  background: linear-gradient(180deg, rgba(12, 24, 26, 0) 0%, rgba(12, 24, 26, 0.82) 100%) !important;
  pointer-events: none !important;
}
.shop-cover-label,
.shop-cover-label small {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

/* 3b. Expériences & Activités (experiences-activites.html) */
.xp-hero {
  background: linear-gradient(115deg, rgba(14, 30, 33, 0.85) 0%, rgba(24, 42, 46, 0.74) 100%), url('hero-emilie-andy-plage.webp') center 46% / cover !important;
  color: #ffffff !important;
}
.xp-hero :where(h1, h2, h3, p) {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55) !important;
}
.xp-hero .xp-kicker,
.xp-hero .eyebrow {
  color: #ffe3b3 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5) !important;
}

/* 3c. Accueil : Bannière principale */
body.v131-immersive .hero:has(.hero-story-title) {
  background-image: linear-gradient(110deg, rgba(10, 28, 34, 0.68) 0%, rgba(10, 28, 34, 0.42) 52%, rgba(10, 28, 34, 0.22) 100%), url('banner-couple-beach.webp') !important;
}
body.v131-immersive .hero .eyebrow {
  color: #ffe4b5 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65) !important;
}
body.v131-immersive .hero .hero-story-title,
body.v131-immersive .hero .hero-story-title span {
  color: #ffffff !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.62) !important;
}
body.v131-immersive .hero .hero-story-title .hero-word-facon {
  color: #ffe0a3 !important;
}

/* 3c-bis. Section « Le souvenir derrière la photo » (.photo-story sur nos-voyages.html et index.html)
   CORRECTION CRITIQUE V633 : La carte .photo-story-card a un fond beige clair (#fffaf0).
   Toute l'écriture est donc en couleur foncée haute lisibilité (#163633 et #263e3b), JAMAIS blanche sur fond beige ! */
.photo-story,
body.v131-immersive .photo-story {
  background: #f3ece1 !important;
  color: #163633 !important;
}
.photo-story .photo-story-card {
  background: #fffaf0 !important;
  border: 1px solid #dfd3c0 !important;
  color: #163633 !important;
}
.photo-story .photo-story-top span,
.photo-story .story-eyebrow {
  color: #8b5635 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}
.photo-story #photoStoryDate {
  color: #465a54 !important;
  font-weight: 700 !important;
}
.photo-story .story-copy h2,
.photo-story #photoStoryHeading {
  color: #163633 !important;
  text-shadow: none !important;
}
.photo-story .story-copy .story-intro,
.photo-story .story-copy p,
.photo-story #storyPanel,
.photo-story #storyPanel p,
.photo-story #storyText {
  color: #243d3a !important;
  text-shadow: none !important;
}
.photo-story .story-tabs button {
  color: #1b3f3a !important;
  background: #f0e6d8 !important;
  border: 1px solid #d4c5b0 !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}
.photo-story .story-tabs button[aria-selected="true"] {
  background: #1f5b50 !important;
  color: #ffffff !important;
  border-color: #1f5b50 !important;
  font-weight: 800 !important;
}
.photo-story .story-cta {
  background: #1f5b50 !important;
  color: #ffffff !important;
  border: 0 !important;
}
.photo-story .story-signature {
  color: #5c4b41 !important;
  text-shadow: none !important;
}
.photo-story .story-print figcaption,
.photo-story .story-print figcaption span {
  color: #2b2522 !important;
  text-shadow: none !important;
}
.photo-story .story-stamp {
  color: #8b5635 !important;
  border-color: #a26d42 !important;
}

/* Fenêtre modale Carnet (.modal-hero) */
.modal-hero .shade {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(10, 22, 24, 0.25) 0%, rgba(10, 22, 24, 0.84) 100%) !important;
}
.modal-hero .modal-title,
.modal-hero .modal-title :where(h2, div, span) {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65) !important;
}

/* 3d. En-têtes éditoriaux sombres (.lme-editorial-hero & .lme-v629-subhero) */
.lme-editorial-hero,
.lme-v629-subhero {
  background: linear-gradient(130deg, #183538 0%, #245052 65%, #59414c 100%) !important;
  color: #ffffff !important;
}
.lme-editorial-hero > :where(h1, h2, h3, p, .lead, .intro),
.lme-v629-subhero :where(h1, h2, h3, p) {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32) !important;
}
.lme-editorial-hero > .eyebrow,
.lme-v629-subhero .eyebrow {
  color: #ffe3b3 !important;
}
.lme-editorial-hero figure figcaption,
.lme-editorial-hero figure figcaption strong {
  color: #1e3331 !important;
  text-shadow: none !important;
}

/* 3e. Bannières sombres des guides & itinéraires (guide-*.html, itineraire-*.html, compagnon-hors-ligne.html) */
section.hero:not(:has(.hero-copy)):not(:has(.hero-story-title)):not(.esim-hero) {
  color: var(--lme-ink, #1e3331);
}
#hawaiiHero,
body:has(.route-photo) section.hero,
body:has(#companionOneClickPresetsV624) section.hero {
  background: linear-gradient(135deg, #15373d 0%, #1f5558 65%, #2a6663 100%) !important;
  color: #ffffff !important;
}
body:has(#companionOneClickPresetsV624) section.hero {
  background: linear-gradient(115deg, rgba(24, 38, 41, 0.84) 0%, rgba(56, 37, 44, 0.76) 100%), url('hero-emilie-andy-plage.webp') center / cover !important;
}
#hawaiiHero :where(h1, h2, h3, p, figcaption),
body:has(.route-photo) section.hero :where(h1, h2, h3, p),
body:has(#companionOneClickPresetsV624) section.hero :where(h1, h2, h3, p, .status) {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38) !important;
}
#hawaiiHero :where(.eyebrow, .kicker),
body:has(.route-photo) section.hero :where(.eyebrow, .kicker) {
  color: #ffe3b3 !important;
}
#hawaiiHero .chips span,
body:has(.route-photo) section.hero .pill {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* 3f. Blocs CTA et résultats à fond sombre vérifiés */
section.cta:not(#hawaiiJourney .cta),
.demo-report,
.esim-wrap .result,
.currency-row ~ .result {
  color: #ffffff !important;
}
section.cta:not(#hawaiiJourney .cta) :where(h1, h2, h3, p, .eyebrow),
.demo-report :where(h1, h2, h3, h4, p, li, span, strong, b, small),
.esim-wrap .result :where(h1, h2, h3, h4, p, li, span, strong, b, small),
.currency-row ~ .result :where(h1, h2, h3, h4, p, li, span, strong, b, small, div) {
  color: #ffffff !important;
}


/* ==========================================================================
   V638 — CARNET D'ARUBA : PHOTOS FIXES L'UNE SOUS L'AUTRE SOUS LA PHOTO DE
   COUVERTURE (SANS MENU DÉROULANT, CADRAGE INTÉGRAL SANS ROGNAGE & ZOOM HD)
   ========================================================================== */

.destination-photo-grid.lme-has-vertical-stack {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

.lme-aruba-vertical-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

.lme-aruba-stacked-photo {
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e4d9c8 !important;
  border-radius: 18px !important;
  padding: 10px !important;
  box-shadow: 0 10px 28px rgba(24, 52, 48, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  cursor: zoom-in !important;
  box-sizing: border-box !important;
}

.lme-aruba-stacked-photo.is-cover {
  border: 2px solid #1f5b50 !important;
  background: #fffdf9 !important;
}

/* Override old mobile rule that hid nth-child(n+4) */
.destination-photo-grid .lme-aruba-stacked-photo:nth-child(n+4) {
  display: flex !important;
}

.lme-aruba-stacked-frame {
  width: 100% !important;
  background: #f5efe6 !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Cadrage intégral : chaque photo s'affiche en entier (sans rien couper ni pixeliser) */
.lme-aruba-stacked-frame img {
  width: 100% !important;
  height: auto !important;
  max-height: 76dvh !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 11px !important;
}

.lme-aruba-stacked-photo figcaption {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 2px 6px !important;
}

.lme-aruba-stacked-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: #1f5b50 !important;
  color: #ffffff !important;
  font: 800 11.5px/1.2 system-ui, -apple-system, sans-serif !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
}

.lme-aruba-stacked-num {
  display: inline-flex !important;
  align-items: center !important;
  background: #eef6f4 !important;
  color: #1f5b50 !important;
  border: 1px solid #cbe2dc !important;
  font: 800 11.5px/1.2 system-ui, -apple-system, sans-serif !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
}

.lme-aruba-stacked-cap {
  font: 600 13.5px/1.35 system-ui, -apple-system, sans-serif !important;
  color: #243d3a !important;
}

@media (max-width: 640px) {
  .lme-aruba-vertical-stack {
    gap: 14px !important;
  }
  .lme-aruba-stacked-photo {
    padding: 8px !important;
    border-radius: 15px !important;
  }
  .lme-aruba-stacked-cap {
    font-size: 12.5px !important;
  }
}

/* HD Non-Pixelated Lightbox (#lmeArubaHdLightbox) */
#lmeArubaHdLightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(12, 20, 19, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

#lmeArubaHdLightbox.is-open {
  display: flex !important;
}

.lme-hd-lb-top {
  width: min(94vw, 860px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
  font: 700 14px/1.3 system-ui, -apple-system, sans-serif !important;
}

.lme-hd-lb-close {
  appearance: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font: 800 13px/1 system-ui, sans-serif !important;
  cursor: pointer !important;
}

.lme-hd-lb-stage {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: min(96vw, 920px) !important;
  max-height: 78dvh !important;
}

.lme-hd-lb-img-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: min(84vw, 768px) !important;
  max-height: 76dvh !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
  background: #101918 !important;
}

.lme-hd-lb-img {
  width: auto !important;
  height: auto !important;
  max-width: min(82vw, 768px) !important;
  max-height: 76dvh !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 14px !important;
}

.lme-hd-lb-nav {
  appearance: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.lme-hd-lb-caption {
  margin-top: 12px !important;
  color: #f3f7f6 !important;
  font: 600 14px/1.4 system-ui, -apple-system, sans-serif !important;
  text-align: center !important;
  max-width: min(90vw, 720px) !important;
}
