/* ============================================================
   HEADER GLOBAL — Voyage Majordhome
   Copie exacte du header de la page d'accueil (index.html).
   Utilisé par js/global-header.js sur toutes les pages intérieures.
   Pour modifier le menu : éditer js/global-header.js (contenu)
   et ce fichier (styles), puis reporter sur index.html si besoin.
   ============================================================ */

/* Masque le header de l'app Vue (remplacé par le header global) */
div.fixed.top-0.w-full.transition-all.duration-300.z-50 { display: none !important; }

/* custom-branding.css (chargé sur les pages Vue) force un logo rond 60/80px
   sur tout `header img[src*="PHOTO"]` : on rétablit le logo de l'accueil
   (carré arrondi 6px, hauteur fluide) grâce à la spécificité de l'id. */
#mainHeader .logo-img {
  width: auto !important;
  height: 90px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 6px !important;
  object-fit: initial !important;
}
#mainHeader.scrolled .logo-img { height: 50px !important; }
@media (max-width: 1024px) {
  #mainHeader .logo-img { height: 60px !important; }
}

/* Le header accueil (110px) est plus haut que l'ancien header Vue (~64px) :
   sur les pages sans visuel plein écran en haut, on redonne de l'air au titre.
   La classe est posée par js/global-header.js selon l'URL. */
html.gh-pad-top main { padding-top: 56px; }

/* Variables scopées au header (pas de pollution des pages Vue) */
.site-header, .mobile-overlay {
  --gold: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 100%);
  --text-dark: #1A2530;
  --white-glass: rgba(255, 255, 255, 0.95);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}
.site-header *, .mobile-overlay * { box-sizing: border-box; }

/* ========================================
           HEADER STYLES (from header_rework.html)
        ======================================== */
        .site-header { position: fixed; top: 0; left: 0; width: 100%; height: 110px; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 50px; z-index: 1000; transition: all 0.4s ease-in-out; }
.site-header.scrolled { height: 80px; background: rgba(31, 45, 58, 0.9); backdrop-filter: blur(15px); box-shadow: 0 4px 30px rgba(0,0,0,0.2); padding: 0 30px; }
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 15px; transition: all 0.4s ease; }
.logo-img { height: 90px; width: auto; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: height 0.4s ease; }
.site-header.scrolled .logo-img { height: 50px; }
.logo-text { display: flex; flex-direction: column; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.logo-title { color: var(--gold); font-size: 22px; font-weight: 600; line-height: 1; transition: font-size 0.4s; }
.logo-sub { color: rgba(255,255,255,0.9); font-size: 11px; letter-spacing: 1px; margin-top: 4px; font-weight: 300; transition: opacity 0.4s; }
.site-header.scrolled .logo-title { font-size: 18px; }
.site-header.scrolled .logo-sub { opacity: 0; height: 0; margin: 0; }
.nav-container { position: absolute; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; transition: all 0.4s; }
.nav-pill { background-color: var(--white-glass); height: 54px; border-radius: 50px; padding: 0 8px; display: flex; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: height 0.4s; }
.site-header.scrolled .nav-pill { height: 44px; background-color: rgba(255,255,255,0.9); }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-dark); font-size: 15px; font-weight: 500; padding: 0 25px; height: 40px; border-radius: 30px; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.nav-link:hover { background-color: #f0f0f0; }
.nav-link i { font-size: 10px; color: #888; transition: transform 0.3s; }
.nav-item:hover .nav-link i { transform: rotate(180deg); color: var(--gold); }
.pill-divider { width: 1px; height: 20px; background-color: #ddd; margin: 0 4px; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(31, 45, 58, 0.9); backdrop-filter: blur(20px); width: 720px; padding: 30px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); opacity: 0; visibility: hidden; transition: all 0.3s; display: flex; gap: 30px; z-index: 9999; }
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 40px; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(15px); }
.dropdown-left { flex: 0 0 170px; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 20px; }
.dropdown-title { color: var(--gold); font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.dropdown-desc { color: #ccc; font-size: 12px; line-height: 1.5; }
.dropdown-right { flex: 1; }
.destinations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 350px; overflow-y: auto; padding-right: 5px; }
.destinations-grid::-webkit-scrollbar { width: 3px; }
.destinations-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.country-link { color: #eee; text-decoration: none; font-size: 13px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; border-radius: 6px; transition: 0.2s; }
.country-link:hover { background: rgba(255,255,255,0.05); color: var(--gold); transform: translateX(5px); }
.flag { font-size: 16px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.header-right { z-index: 1001; }
.btn-contact { background: var(--gold-gradient); color: #fff; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-size: 15px; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-contact:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4); }
.mobile-toggle { display: none; color: white; font-size: 26px; cursor: pointer; text-shadow: 0 2px 4px rgba(0,0,0,0.6); z-index: 2000; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #1F2D3A; z-index: 1500; padding: 110px 25px 40px; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); overflow-y: auto; }
.mobile-overlay.active { transform: translateX(0); }
.mobile-menu-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; }
.mobile-main-link { display: flex; justify-content: space-between; align-items: center; color: white; font-size: 18px; text-decoration: none; font-weight: 500; }
.mobile-main-link i { font-size: 14px; transition: transform 0.3s; }
.mobile-main-link.active i { transform: rotate(180deg); color: var(--gold); }
.mobile-sub-menu { display: none; padding-top: 15px; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-sub-menu.show { display: grid; }
.mob-country-link { color: #ccc; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 5px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 1024px) {
  .nav-container, .header-right { display: none; }
  .mobile-toggle { display: block; }
  .site-header { padding: 0 20px; height: 90px; }
  .logo-img { height: 60px; }
  .logo-title { font-size: 16px; }
  .logo-sub { display: none; }
}

@media print {
  .site-header, .mobile-overlay, .mobile-toggle { display: none !important; }
}
