/* ============================================
   IMAGES DU MENU DANS LES CARDS
 ============================================ */

.ms-card-menu-li.ms-card-saumur {
  background-image: url("/wp-content/uploads/2024/02/saumur-et-son-chateau.webp");
}
.ms-card-menu-li.ms-card-chinon {
  background-image: url("/wp-content/uploads/2024/03/Chinon-8.webp");
}
.ms-card-menu-li.ms-card-chenonceaux {
  background-image: url("/wp-content/uploads/2024/12/WhatsApp-Image-2024-12-05-at-12.09.04.jpeg");
}
.ms-card-menu-li.ms-card-amboise {
  background-image: url("/wp-content/uploads/2026/03/Touraine_amboise.webp");
}

/* ------------------ */
.ms-card-menu-li.ms-card-haut-poitou {
  background-image: url("/wp-content/uploads/2024/03/haut-poitou-5.webp");
}
.ms-card-menu-li.ms-card-charentes-maritimes {
  background-image: url("/wp-content/uploads/2024/02/FOURAS-3-600x800.jpeg");
}
.ms-card-menu-li.ms-card-marais-poitevin {
  background-image: url("/wp-content/uploads/2025/04/47e4be72-d291-4a22-9d4a-efbcffceb4f0-600x800.jpg");
}

/* ------------------ */
.ms-card-menu-li.ms-card-fontainebleau {
  background-image: url("/wp-content/uploads/2024/10/Fontainebleau-1.jpg");
}

/* ------------------ */
.ms-card-menu-li.ms-card-forcalquier {
  background-image: url("/wp-content/uploads/2024/12/Capture-decran-2024-12-05-a-12.10.39.png");
}

/* ------------------ */
.ms-card-menu-li.ms-card-marrakech {
  background-image: url("/wp-content/uploads/2024/02/Maroc-1.jpg");
}

/* ------------------ */
.ms-card-menu-li.ms-card-vol-decouverte {
  background-image: url("/wp-content/uploads/2019/11/Forteresse-de-Polignac-1-1.jpg");
}

/* ------------------ */
.ms-card-menu-li.ms-card-deroulement-vol {
  background-image: url("/wp-content/uploads/2024/02/454374979_1151277726998413_7889972374059853001_n.jpg");
}

/* ------------------ */
.ms-card-menu-li.ms-card-sites-decollage {
  background-image: url("/wp-content/uploads/2026/05/Accueil-2-scaled.webp");
}

/* ------------------ */
.ms-card-menu-li.ms-card-faq {
  background-image: url("/wp-content/uploads/2025/01/WhatsApp-Image-2024-06-24-at-09.39.23.jpeg");
}

/* ============================================
   RESET HEADER - Neutralise les styles du thème parent
   ============================================ */

.ms-mobile-header,
.ms-desktop-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 1000 !important;
}

.ms-topbar,
.ms-topbar-desktop {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
}


/* ============================================
   MENU CUSTOM MONTGOLFIERE SENSATION
   Préfixe : ms-
   ============================================ */

.ms-mobile-header *,
.ms-desktop-header * {
  font-family: "Poppins", sans-serif;
}

/* ============================================
   MOBILE HEADER
   ============================================ */

.ms-mobile-header {
  position: relative;
}

.ms-topbar {
  display: flex;
	flex-wrap: wrap;
	row-gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  background: #ff6a1a;
  padding: 0.25rem 1rem;
  height: 70px;
}

.ms-logo {
  height: 50px;
}

.ms-icon-btn,
#ms-burger,
.ms-closeMenu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

#ms-burger {
  width: 40px;
  height: 40px;
}

/* Menu */
.ms-menu {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
}

.ms-menu[hidden] {
  display: none;
}

.ms-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ff6a1a;
  padding: 0.75rem 1rem;
}

.ms-menu-level,
.ms-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-menu-level li,
.ms-submenu ul li {
  margin: 0;
  border-bottom: 1px solid #ccc;
  list-style-type: none;
}

.ms-menu-level a,
.ms-submenu a,
.ms-submenu-btn {
  display: block;
  padding: 1rem 1rem 1rem 2rem;
  text-decoration: none;
  color: #000;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 1rem;
}

.ms-mobile-header .ms-submenu a {
	position: absolute;
	inset: 0;
}

.ms-topbar .ms-contact-links + a {
  padding: 0;
  text-align: center;
  width: max-content;
  height: 50px;
}

.ms-submenu {
  position: absolute;
  inset: 0;
  background: #f3f3f3;
  padding: 0;
  z-index: 1100;
}

.ms-submenu[hidden] {
  display: none;
}

.ms-back-btn {
  background: none;
  border: none;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  color: #ff6a1a;
  width: 100%;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: black;
  font-weight: 500;
  letter-spacing: 0.1rem;
}

.ms-back-btn::before {
  content: "\2190"; /* ← */
  font-weight: bold;
  position: absolute;
  left: 1rem;
	font-size: 1.6rem;
    top: .55rem;
}

/* Promo + Account */
.ms-btn-promo {
  display: block;
  background: #ff6a1a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  margin: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.ms-account-cart {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 1rem 2rem;
}

.ms-account-cart a {
  border: 2px solid #ff6a1a;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  text-decoration: none;
  color: #000;
  background-size: 2rem 1.6rem;
  background-repeat: no-repeat;
  background-position-x: 0.3rem;
  background-position-y: center;
  font-weight: 600;
  width: 100%;
  text-align: center;
}
@media (min-width: 600px) { .ms-account-cart a { width: 200px; } }
@media (min-width: 1024px) { .ms-account-cart a { width: 300px; } }

.ms-account-cart a.ms-btn-account {
  background-image: var(--ms-icon-person);
}

.ms-account-cart a.ms-btn-cart {
  background-image: var(--ms-icon-cart);
}

/* Cards */
div .ms-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
}

.ms-cards .ms-card-menu-li {
  text-align: center;
  padding: 10rem 1rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
    overflow: hidden;
}

.ms-card-menu-li {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  width: 100%;
  max-width: 360px;
}

.ms-cards .ms-card-menu-li span {
	    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.3rem;
    background-color: white;
    color: black;
    font-weight: 500;
    font-size: 1rem;
	text-align: center;
}

.ms-card-menu-li {
position: relative;
background-repeat: no-repeat;
background-size: cover;
}


.ms-card-menu-li .ms-card-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: flex-end;
  display: flex;
  justify-content: center;
  background-color: transparent;
  width: 100%;
  max-width: 400px;
  opacity: 1;
  text-align: center;
  font-size: 1rem;
  border-bottom-left-radius: 0.4rem;
  border-bottom-right-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ms-card-menu-li .ms-card-menu::before {
	content: "";
	display: flex;
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);

}

/* Contact Links */
.ms-contact-links {
  width: 80px;
  display: flex;
}

.ms-contact-links + a {
  margin-left: 40px;
}

.ms-contact-links .ms-phone-link,
.ms-contact-links .ms-contact-link {
  width: 40px;
  height: 40px;
  background-image: var(--ms-icon-phone);
  background-size: 1.6rem;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

.ms-contact-links .ms-contact-link {
  background-image: var(--ms-icon-email);
}

.ms-burger-container {
  width: 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ms-submenu-btn {
  font-weight: 500;
}

.ms-submenu-btn::after {
  content: "";
  float: right;
  width: 1.2rem;
  height: 1.2rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='currentColor' d='M5.5 3.5L10 8l-4.5 4.5-.7-.7L8.6 8 4.8 4.2z'/></svg>") no-repeat center;
  background-size: contain;
}


/* ============================================
   SOUS-MENU MOBILE « POUR LES PROS » (issue #242)
   ============================================ */
.ms-submenu ul.ms-pro-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2rem;
  background: #fff;
  min-height: 100%;
}

.ms-submenu ul.ms-pro-cards li.ms-pro-card {
  border-bottom: none;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.ms-pro-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 0.5rem;
}

.ms-pro-card .ms-pro-card-title {
  margin: 0.75rem 0 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000;
}

.ms-pro-card .ms-pro-card-text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

/* Annule le lien « pleine carte » (position absolue) des autres sous-menus */
.ms-mobile-header .ms-submenu a.ms-pro-card-link {
  position: static;
  display: inline-block;
  padding: 0;
  width: auto;
  color: #d9530b;
  font-weight: 700;
  font-size: 0.9rem;
}


/* ============================================
   MENU DESKTOP
   ============================================ */

/* Masquer desktop sur mobile */
.ms-desktop-header {
  display: none;
}

@media (min-width: 1024px) {
  /* Masquer mobile sur desktop */
  .ms-mobile-header {
    display: none;
  }

  /* Afficher desktop */
  .ms-desktop-header {
    display: block;
    position: relative;
    font-family: "Poppins", sans-serif;
  }

  /* ===== PREMIER BANDEAU ===== */
  .ms-topbar-desktop {
    background: #3d4e6e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    font-size: 1rem;
  }

  .ms-topbar-left,
  .ms-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .ms-topbar-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
  }

  /* « Programmer mon vol » : bouton encadré (issue #242) */
  .ms-topbar-desktop a.ms-topbar-cta {
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 0.35rem 0.9rem;
  }

  /* Pastille du panier (plugin WooCommerce) décalée à droite du texte */
  /* Place réservée à la pastille pour ne pas toucher le lien suivant */
  .ms-topbar-desktop a.ms-cart-text {
    margin-right: 0.75rem;
  }

  .ms-topbar-desktop .ms-cart-text .pastille {
    top: -0.6rem;
    right: -1.1rem;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.7rem;
  }

  /* ===== MENU DÉROULANT « POUR LES PROS » ===== */
  .ms-topbar-dropdown {
    position: relative;
  }

  .ms-topbar-dropdown-btn {
    background: none;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
  }

  .ms-topbar-dropdown-btn::after,
  .ms-nav-btn::after {
    content: "";
    display: inline-block;
    margin-left: 0.4rem;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s;
  }

  .ms-topbar-dropdown-btn:hover,
  .ms-topbar-dropdown-btn[aria-expanded="true"] {
    background: #fff;
    color: #3d4e6e;
  }

  .ms-topbar-dropdown-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .ms-topbar-dropdown-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1100;
    min-width: 280px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .ms-topbar-dropdown-list[hidden] {
    display: none;
  }

  .ms-topbar-dropdown-list li {
    margin: 0;
    list-style: none;
  }

  .ms-topbar-desktop .ms-topbar-dropdown-list a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: #1b1b1b;
    font-weight: 500;
  }

  .ms-topbar-desktop .ms-topbar-dropdown-list a:hover,
  .ms-topbar-desktop .ms-topbar-dropdown-list a:focus-visible {
    background: #eeeff4;
    opacity: 1;
  }

  .ms-topbar-desktop a:hover {
    opacity: 0.8;
  }
	
  .ms-topbar-desktop a.ms-topbar-timer {
	padding: .2rem 1rem;
	 gap: 0;
  }

  .ms-icon-link {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .ms-icon-account {
    background-image: var(--ms-icon-person-white);
  }

  .ms-icon-cart {
    background-image: var(--ms-icon-cart-white);
  }

  .ms-icon-ticket {
    background-image: var(--ms-icon-ticket-white);
    padding-left: 2rem;
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: 8px center;
    border: 1px solid white;
    padding: 0.2rem 0.8rem 0.2rem 2.5rem;
    border-radius: 4px;
  }

  .ms-phone-desktop {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .ms-phone-desktop::before {
    display: none !important; /* capture #242 : numéro sans pictogramme */
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: var(--ms-icon-phone);
    background-size: contain;
    background-repeat: no-repeat;
  }

  /* ===== DEUXIÈME BANDEAU ===== */
  .ms-main-header-desktop {
    background: #1b1b1b;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 2rem;
    height: 90px;
  }

  .ms-logo-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
  }

  .ms-logo-desktop img {
    height: 80px;
  }

  /* !important + sélecteur 0-2-0 : bat la typo du thème parent ET les règles
     .ms-logo-baseline !important résiduelles du CSS additionnel WP (chargé après le thème) */
  .ms-desktop-header .ms-logo-baseline {
    font-family: 'Dancing Script', cursive !important;
    font-style: normal !important;
    font-size: 20px !important;
    color: #fff !important;
    margin: 0;
  }

  .ms-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  .ms-nav-btn,
  .ms-nav-link {
    background: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: background 0.2s;
  }

  .ms-nav-btn {
    border: none;
    cursor: pointer;
    position: relative;
  }

  .ms-nav-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .ms-nav-btn:hover,
  .ms-nav-btn[aria-expanded="true"],
  .ms-nav-link:hover {
    background: white;
    color: #ff6a1a;
    border-color: transparent;
  }

  /* Lien N1 simple (sans panneau) : ex. « Offrir un vol » — hérite des props communes de .ms-nav-btn */
  .ms-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .ms-btn-promo-desktop {
    margin: auto 1rem auto 0;
    background: #ff6a1a;
    color: #fff;
    font-size: 1.05rem;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
  }
	
  .ms-topbar-timer {
	background: #ff6a1a;
	box-shadow: none !important;
  }

  .ms-btn-promo-desktop:hover {
    transform: translateY(-2px);
  }

  /* ===== MEGA PANEL ===== */
  .ms-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-height: 300px;
  }

  .ms-mega-panel[hidden] {
    display: none;
  }

  .ms-close-panel {
    position: absolute;
    top: 10.5px;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
  }

  .ms-close-panel:hover {
    color: #ff6a1a;
  }

  /* ===== TABS (Niveau 2) ===== */
  .ms-tabs-container {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 3rem 0 0;
  }

  .ms-tab-btn {
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
  }

  .ms-tab-btn:hover {
    color: #333;
  }

  .ms-tab-btn.active {
    color: #ff6a1a;
  }

  .ms-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6a1a;
	transform: none;
  }

  /* ===== CONTENU DES TABS (Niveau 3) ===== */
  .ms-tab-content {
    display: none;
    padding: 2rem;
  }

  .ms-tab-content.active {
    display: block;
  }

  /* Séparateur vertical avant « Toutes destinations » (desktop uniquement) */
  .ms-tab-btn.ms-tab-sep {
    position: relative;
  }

  .ms-tab-btn.ms-tab-sep::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    border-left: 2px solid #e0dfdf;
  }

  /* ===== CARDS ===== */
  .ms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
  }

  .ms-card-desktop {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 250px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .ms-card-desktop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .ms-card-desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  }

  .ms-card-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.5rem;
    width: 100%;
    text-align: center;
  }
}

/* ===== ÉCRANS DESKTOP ÉTROITS (1024 à 1279 px) : en-tête #242 sans débordement ===== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .ms-topbar-desktop {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .ms-topbar-left,
  .ms-topbar-right {
    gap: 0.6rem;
  }

  .ms-topbar-desktop a,
  .ms-topbar-dropdown-btn {
    font-size: 0.8125rem;
  }

  .ms-topbar-dropdown-btn {
    padding: 0.3rem 0.6rem;
  }

  .ms-topbar-desktop a.ms-topbar-cta {
    padding: 0.3rem 0.6rem;
  }

  .ms-main-header-desktop {
    padding: 0 1rem;
  }

  /* La baseline revient à partir de 1280 px */
  .ms-desktop-header .ms-logo-baseline {
    display: none;
  }

  .ms-nav-btn,
  .ms-nav-link {
    padding: 0.6rem 0.6rem;
  }

  .ms-btn-promo-desktop {
    padding: 0.6rem 1rem;
    margin-right: 0.5rem;
  }
}

/* ===== COMPTE À REBOURS PROMO DANS LA BARRE BLEUE (issue #242) =====
   Avec « Pour les pros » et les liens texte, la barre n'a plus la place pour le
   compte à rebours complet : libellé masqué jusqu'à 1799 px, compte à rebours
   masqué sous 1366 px (le bouton « Promotions » reste visible).
   Sélecteurs préfixés pour passer devant le <style> du gabarit header-desktop.php. */
@media (min-width: 1024px) and (max-width: 1365px) {
  .ms-topbar-desktop a.ms-topbar-timer {
    display: none;
  }
}

@media (min-width: 1366px) and (max-width: 1799px) {
  .ms-topbar-desktop .ms-topbar-timer .ms-timer-label {
    display: none;
  }

  .ms-topbar-desktop:has(.ms-topbar-timer) {
    gap: 0.75rem;
  }

  .ms-topbar-desktop:has(.ms-topbar-timer) .ms-topbar-left,
  .ms-topbar-desktop:has(.ms-topbar-timer) .ms-topbar-right {
    gap: 1rem;
  }
}

/* ===== CHATBOT MASQUÉ MENU MOBILE OUVERT (issue #241) =====
   Le bouton du chatbot (extension Ocade, z-index maximal) recouvrait le bas
   du menu mobile (« Mon panier »). Classe posée par ms-menu.js. */
html.ms-menu-ouvert #ofac-root {
  display: none !important;
}
