/* ==========================================
   SERVME - LAYOUT MOBILE HEADER
   Header mobile refactorisé - RESPONSIVE uniquement
   Extrait de global-header.css @media (max-width: 768px)
   Refactorisé pour résoudre : barre blanche, header fixe, burger menu
   ========================================== */

@media (max-width: 900px) {
  /* ========================================
     HEADER MOBILE - BASE STRUCTURE
     Header fixe transparent → rose au scroll
     ======================================== */
  
  .landing-header,
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    
    /* Padding mobile compact */
    padding: 12px 16px !important;
    
    /* Transparent initial - comme desktop */
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    
    /* Bordure et ombre initiales invisibles */
    border-bottom: 1px solid rgba(255, 255, 255, 0) !important;
    box-shadow: none !important;
    
    /* Transition douce */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Layout flex */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    
    /* Forcer body transparent pour éviter barre blanche */
    /* Note: Cette règle sera héritée via core/reset.css si nécessaire */
  }
  
  /* ========================================
     HEADER SCROLLED - ROSE + BLUR
     État scrollé avec fond rose visible
     ======================================== */
  
  .landing-header.scrolled,
  header.scrolled {
    /* Version moderne : glassmorphism ultra premium */
    padding: 10px 16px !important;
    background: rgba(230, 57, 92, 0.88) !important;
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    
    /* Bordure et ombre élégantes */
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    
    /* Transition smooth */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  /* ========================================
     LOGO MOBILE
     Logo blanc initial → blanc au scroll (sur fond rose)
     ======================================== */
  
  .landing-header .logo,
  header .logo,
  .landing-header .landing-logo {
    /* Flex alignment */
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    
    font-size: 1rem !important;
    font-weight: 800 !important;
    
    /* Pas d'ombre quand scroll = 0 */
    text-shadow: none !important;
    transition: all 0.3s ease !important;
  }
  
  /* Logo scrolled - Blanc sur fond rose (cohérent avec header rose) - Landing page uniquement */
  .landing-header.scrolled .logo,
  .landing-header.scrolled .landing-logo {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }
  
  /* ========================================
     MENU DESKTOP - CACHER EN MOBILE
     ======================================== */
  
  .landing-header .landing-cta.desktop,
  header .desktop {
    display: none !important;
  }
}

/* ========================================
   MODE PAYSAGE MOBILE - Forcer règles mobiles
   Même si largeur > 900px, appliquer styles mobile en paysage
   ======================================== */

@media (max-width: 900px) and (orientation: landscape) {
  /* Mêmes règles que la media query précédente */
  /* Les règles sont héritées de la media query max-width: 900px ci-dessus */
  /* Cette règle garantit que le header reste visible et fonctionnel en paysage */
  
  .landing-header,
  header {
    display: flex !important;
    position: fixed !important;
  }
}

