/**
 * Header Redesign — Desktop (section 3.4)
 * Overrides styles from custom.css for the new Figma-based header.
 * Loaded AFTER custom.css to take precedence.
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --header-bg: #0A2542;
  --header-pink: #DE1B73;
  --header-white: #FFFFFF;
  --header-font: 'Plus Jakarta', sans-serif;
  --mega-shadow: 0px 4px 19px 0px rgba(10, 37, 66, 0.2);
  --header-height: 64px;
  --menu-gradient: linear-gradient(75.18deg, #DE1B73 67.93%, #F85A16 92.49%, #F4E23E 100%);
}

/* ============================================
   Header Bar
   ============================================ */
#header {
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#header > .header-inner {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: relative;
}

/* ============================================
   Left: Nav Pills (desktop only)
   ============================================ */
/* Override old #header nav styles that would affect .header-nav */
#header .header-nav {
  display: none;
  align-items: center;
  gap: 8px;
  position: static !important;
  background: none !important;
  height: auto !important;
  overflow: visible !important;
  transform: none !important;
  bottom: auto !important;
  left: auto !important;
  transition: none !important;
  width: auto !important;
  padding: 0 !important;
}

.nav-pill {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 12px 12px 12px 16px;
  border-radius: 1440px;
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--header-white);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.nav-pill:hover,
.nav-pill.active,
.nav-pill[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--header-white);
}

.nav-pill .chevron-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.nav-pill .chevron-icon svg {
  width: 8px;
  height: 5px;
}

.nav-pill[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

/* chevron uses stroke="currentColor" so it inherits the pill text color automatically */

/* ── "Nos voyages" pill: distinct normal + active states ── */
.nav-pill--voyages {
  background-color: var(--header-white);
  color: var(--header-bg);
}

.nav-pill--voyages:hover,
.nav-pill--voyages.active,
.nav-pill--voyages[aria-expanded="true"] {
  background: var(--menu-gradient);
  color: var(--header-white);
  opacity: 1;
}

/* ============================================
   Center: Logo (absolute centered)
   ============================================ */
#header .header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

#header .header-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#header .header-logo img {
  width: 212px;
  height: 52px;
  object-fit: contain;
  max-width: none;
}

/* ============================================
   Right: Search + CTA (desktop only)
   ============================================ */
#header .header-right {
  display: none;
  align-items: center;
  gap: 12px;
}

/* Search pill */
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  width: 240px;
  padding: 12px 16px;
  border: 1px solid var(--header-white);
  border-radius: 40px;
  color: var(--header-white);
  text-decoration: none;
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.search-pill:not(.search-pill--active):hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--header-white);
}

.search-pill svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-pill {
  cursor: pointer;
  position: relative;
}

/* Search pill — active state */
.search-pill--active {
  background-color: #fff;
  border-color: #fff;
  color: #0A2542;
  padding-left: 16px;
  padding-right: 8px;
}

.search-pill--active svg {
  color: #0A2542;
}

.search-pill__input {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  color: #0A2542;
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 400;
  flex: 1;
  min-width: 0;
}

.search-pill__input::placeholder {
  color: #999;
}

.search-pill--active .search-pill__input {
  display: block;
}

.search-pill--active .search-pill__label {
  display: none;
}

.search-pill__close {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #0A2542;
  flex-shrink: 0;
}

.search-pill__close svg {
  width: 20px;
  height: 20px;
}

.search-pill--active .search-pill__close {
  display: flex;
  align-items: center;
}

/* Search dropdown */
.search-pill__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 400px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.search-pill__dropdown.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar — search dropdowns */
.search-pill__dropdown,
.mobile-search__dropdown {
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 37, 66, 0.2) transparent;
}

.search-pill__dropdown::-webkit-scrollbar,
.mobile-search__dropdown::-webkit-scrollbar {
  width: 14px;
}

.search-pill__dropdown::-webkit-scrollbar-track,
.mobile-search__dropdown::-webkit-scrollbar-track {
  background: #E9F2FC;
  border-radius: 40px;
  border: 4px solid #fff;
  margin: 12px 0;
}

.search-pill__dropdown::-webkit-scrollbar-thumb,
.mobile-search__dropdown::-webkit-scrollbar-thumb {
  background: rgba(10, 37, 66, 0.2);
  border-radius: 56px;
  border: 4px solid transparent;
  background-clip: padding-box;
}

/* Search result item */
.search-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-decoration: none;
  color: #0A2542;
  border-bottom: 1px solid #E5E5E5;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result.is-active {
  background-color: #F5F5F5;
}

.search-result img {
  width: 120px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-result__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}

.search-result__type {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 2px solid;
  border-radius: 32px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.search-result__type.journee {
  background: linear-gradient(to left, #d6d4a1, #a28e50, #ecdd9b);
  border-color: #FFDF64;
  color: #0A2542;
}

.search-result__type.week-end {
  background: linear-gradient(to right, #76c3d0, #368184, #3a8ba0);
  border-color: #07A0C3;
}

.search-result__type.long {
  background: linear-gradient(to left, #d58ab3, #c5697f, #be637d);
  border-color: #DE1B73;
}

.search-result__title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0A2542;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.search-result__date {
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 16px;
  color: #0A2542;
}

.search-result__excerpt {
  font-size: 12px;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result__badge-complet {
  font-size: 10px;
  font-weight: 700;
  color: #dc3545;
  text-transform: uppercase;
}

.search-no-results,
.search-loading {
  padding: 24px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Mobile search overlay — true fullscreen (header hidden via JS) */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 110;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-search-overlay[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
}

.mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  height: var(--header-height);
  box-sizing: border-box;
  border-bottom: 1px solid #E5E5E5;
}

.mobile-search-bar > svg {
  width: 32px;
  height: 32px;
  color: #0A2542;
  flex-shrink: 0;
}

.mobile-search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--header-font);
  color: #0A2542;
  min-width: 0;
}

.mobile-search-bar__input::placeholder {
  color: #999;
}

.mobile-search-bar__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #0A2542;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-search-bar__close svg {
  width: 32px;
  height: 32px;
}

.mobile-search__dropdown {
  flex: 1;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-search__dropdown.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   No results — thematiques search
   ============================================ */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  gap: 8px;
}

.no-results__icon {
  color: #CBD5E1;
  margin-bottom: 16px;
}

.no-results__title {
  font-family: var(--header-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--header-bg);
  margin: 0;
}

.no-results__text {
  font-family: var(--header-font);
  font-size: 16px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.no-results__text strong {
  color: var(--header-bg);
}

.no-results__hint {
  font-family: var(--header-font);
  font-size: 14px;
  color: #94A3B8;
  margin: 0;
}

.no-results__reset {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 12px 24px;
  background-color: var(--header-bg);
  color: var(--header-white);
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 1440px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.no-results__reset:hover {
  background-color: var(--header-pink);
  color: var(--header-white);
}

/* Search active tag on thematiques page */
.search-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  color: white;
}

.search-active-tag__remove {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.search-active-tag__remove:hover {
  opacity: 1;
  color: white;
}

/* CTA button */
.cta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 12px 16px;
  background-color: var(--header-bg);
  background-image: none;
  background-origin: border-box;
  background-clip: border-box;
  border: 2px solid var(--header-pink);
  border-radius: 1440px;
  color: var(--header-white);
  text-decoration: none;
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.cta-pill:hover {
  background-color: transparent;
  background-image: var(--menu-gradient);
  border-color: transparent;
  color: var(--header-white);
}

.cta-pill .icon-car {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  overflow: hidden;
}

.cta-pill .icon-car svg {
  transform: translateX(0);
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.cta-pill:hover .icon-car svg path {
  fill: var(--header-white);
}

.cta-pill:hover .icon-car svg {
  animation: cta-bus-drive 1.1s ease-in-out 1;
  transition: none;
}

@keyframes cta-bus-drive {
  0%   { transform: translateX(0); }
  48%  { transform: translateX(44px); animation-timing-function: steps(1, end); }
  50%  { transform: translateX(-44px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-pill .icon-car svg {
    transition: none;
  }
  .cta-pill:hover .icon-car svg {
    animation: none;
  }
}

/* ============================================
   Mega Menu Dropdown
   ============================================ */
.mega-menu-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 37, 66, 0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mega-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu-wrapper {
  position: fixed;
  top: calc(var(--header-height) - 16px);
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: flex-start;
  padding: 8px 0 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.mega-menu-wrapper.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-panel {
  display: none;
  gap: 32px;
  align-items: flex-start;
  background: var(--header-white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--mega-shadow);
  overflow: hidden;
  width: auto;
}

/* Voyages mega menu (3 columns with image grid) keeps a fixed wide layout */
.mega-menu-panel:has(.mega-col--types) {
  max-width: 1200px;
  width: 100%;
}

.mega-menu-panel.active {
  display: flex;
}

/* Columns */
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.mega-col--types {
  width: 528px;
  flex-shrink: 0;
}

.mega-col--links {
  width: 180px;
  flex-shrink: 0;
}

.mega-col--months {
  width: 140px;
  flex-shrink: 0;
}

/* Column title */
.mega-col-title {
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--header-bg);
  line-height: 22px;
  margin: 0;
}

/* Vertical divider */
.mega-divider {
  width: 1px;
  align-self: stretch;
  background-color: #E5E7EB;
  flex-shrink: 0;
}

/* Horizontal separator within a column */
.mega-separator {
  width: 100%;
  height: 1px;
  background-color: #E5E7EB;
  margin: 16px 0;
}

/* ============================================
   Type de voyage: Image grid
   ============================================ */
.mega-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.mega-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 120px;
}

.mega-type-item:hover .mega-type-label {
  color: var(--header-pink);
}

.mega-type-img {
  width: 120px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.mega-type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mega-type-item:hover .mega-type-img img {
  transform: scale(1.05);
}

.mega-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--header-pink);
  color: white;
  font-family: var(--header-font);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.mega-type-label {
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--header-bg);
  text-align: center;
  line-height: 16px;
  transition: color 0.2s;
}

/* ============================================
   Menu links (Durée, Destination, Mois)
   ============================================ */
.mega-link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-link-list a {
  display: block;
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--header-bg);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
  line-height: 22px;
}

.mega-link-list a:hover {
  color: var(--header-pink);
}

/* Month — disabled state (no trips available) */
.mega-month--disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  line-height: 16px;
  cursor: default;
}

.mega-month-label {
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 400;
  color: #838F9A;
}

.mega-month-tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 32px;
  background: rgba(10, 37, 66, 0.1);
  font-family: var(--header-font);
  font-size: 11px;
  font-weight: 500;
  color: var(--header-bg);
  white-space: nowrap;
  line-height: 10px;
}

/* Mobile month — disabled state */
.mobile-month--disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.mobile-month-label {
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.mobile-month-tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 32px;
  background: #E9F2FC;
  font-family: var(--header-font);
  font-size: 11px;
  font-weight: 500;
  color: var(--header-bg);
  white-space: nowrap;
  line-height: 10px;
}

/* "Voir tout" link */
.mega-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--header-bg);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}

.mega-see-all:hover {
  color: var(--header-pink);
}

.mega-see-all svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   2-column dropdown (Nos services, Notre entreprise)
   ============================================ */
.mega-col--half {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: max-content;
  min-width: 180px;
  flex-shrink: 0;
}

.mega-col--half a,
.mega-col--half .mega-item-title,
.mega-col--half .mega-item-standalone {
  white-space: nowrap;
}

/* Uniform 16px spacing inside groups (title → items, items → items) — matches Figma */
.mega-col--half .mega-item-group {
  gap: 16px;
}

.mega-col--half .mega-link-list {
  gap: 16px;
}

.mega-col--half .mega-link-list a {
  padding: 0;
  line-height: 16px;
}

/* Spacer between top-level items in a column */
.mega-item-spacer {
  height: 24px;
}

/* Group: title + sub-links */
.mega-item-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Bold title link (both standalone and group header) */
.mega-item-title {
  display: block;
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--header-bg);
  text-decoration: none;
  line-height: 22px;
  transition: color 0.2s;
}

.mega-item-title:hover {
  color: var(--header-pink);
}

/* Standalone bold link (no children) — same style, just clickable */
.mega-item-standalone {
  padding: 2px 0;
}

/* ============================================
   Desktop breakpoint (≥1400px)
   ============================================ */
@media (min-width: 1400px) {
  :root {
    --header-height: 80px;
  }

  #header .header-nav {
    display: flex;
  }

  #header .header-right {
    display: flex;
  }

  /* Hide burger on desktop */
  #header .burger_container {
    display: none !important;
  }

  /* Hide mobile offcanvas nav on desktop */
  #header .mobile-nav {
    display: none !important;
  }

  /* Override old header nav grid styling */
  #header nav ul:not(.about_links):not(.dropdown-menu-list) {
    display: none;
  }
}

/* ============================================
   Mobile: Search icon (left side)
   ============================================ */
.mobile-search {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--header-white);
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.mobile-search svg {
  width: 32px;
  height: 32px;
}

/* ============================================
   Mobile nav offcanvas (fullscreen below header)
   ============================================ */
#header .mobile-nav {
  background-color: var(--header-bg);
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  z-index: 98;
  display: flex;
  flex-direction: column;
}

#header .burger_container:has(.burger_btn.active) ~ .mobile-nav {
  transform: translateX(0);
}

/* ── Views wrapper (holds main + sub-menu views) ── */
.mobile-views-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mobile-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-view--main {
  transform: translateX(0);
  opacity: 1;
}

.mobile-view--main.is-pushed {
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

.mobile-view--sub {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-view--sub.is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Scrollable content area within each view */
.mobile-view-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 20px;
}

.mobile-view--sub .mobile-view-scroll {
  padding-top: 24px;
  gap: 24px;
}

/* ── Main menu items ── */
.mobile-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-heading {
  font-family: var(--header-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--header-white);
  line-height: 22px;
}

.mobile-nav-link {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--header-white);
  line-height: 16px;
  text-decoration: none;
  box-sizing: border-box;
}

.mobile-nav-link--heading {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.mobile-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--header-white);
}

.mobile-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* ── Sub-menu views ── */
.mobile-back {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--header-white);
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

.mobile-back svg {
  width: 20px;
  height: 20px;
}

.mobile-sub-title {
  font-family: var(--header-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--header-white);
  line-height: 22px;
  margin: 0;
}

.mobile-sub-link {
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--header-white);
  text-decoration: none;
  line-height: 16px;
  transition: color 0.2s;
}

.mobile-sub-link--bold {
  font-weight: 700;
}

.mobile-sub-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 24px;
  width: 100%;
}

.mobile-sub-link:hover {
  color: var(--header-pink);
}

.mobile-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--header-white);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-see-all:hover {
  color: var(--header-pink);
}

.mobile-see-all svg {
  width: 24px;
  height: 24px;
}

/* ── Mobile "Type de voyage" image grid ── */
.mobile-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 16px;
  width: 100%;
  padding: 8px 0;
}

.mobile-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  text-decoration: none;
}

.mobile-type-img {
  width: 100%;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mobile-type-item:hover .mobile-type-img img {
  transform: scale(1.05);
}

.mobile-type-label {
  font-size: 14px;
  line-height: 16px;
  color: #fff;
  text-align: center;
}

/* ── CTA button (bottom of mobile nav) ── */
.mobile-menu-footer {
  flex-shrink: 0;
  padding: 24px;
}

.mobile-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--header-bg);
  background-image: none;
  background-origin: border-box;
  background-clip: border-box;
  border: 2px solid var(--header-pink);
  border-radius: 1440px;
  color: var(--header-white);
  text-decoration: none;
  font-family: var(--header-font);
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s;
}

.mobile-cta:hover {
  background-color: transparent;
  background-image: var(--menu-gradient);
  border-color: transparent;
  color: var(--header-white);
}

.mobile-cta .icon-car {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
}

.mobile-cta:hover .icon-car svg path {
  fill: var(--header-white);
}

/* ============================================
   Mobile breakpoint (< 1400px)
   ============================================ */
@media (max-width: 1399.98px) {
  #header > .header-inner {
    padding: 8px 20px;
  }

  #header .header-logo img {
    width: 163px;
    height: 40px;
  }

  /* Mega menu hidden on mobile */
  .mega-menu-wrapper,
  .mega-menu-overlay {
    display: none;
  }

  /* Hide mobile search on desktop (handled by display:none on ≥1400) */
  .mobile-search {
    display: flex;
  }
}

/* ============================================
   Desktop: hide mobile-only elements
   ============================================ */
@media (min-width: 1400px) {
  .mobile-search {
    display: none !important;
  }
}
