/* Mobile Premium Design - Conservation de l'impact visuel desktop sur mobile */
/* Appliqué uniquement sur mobile (max-width: 991px) */

@media (max-width: 991px) {
  /* ========================================
     1. VARIABLES ET FONDATIONS
     ======================================== */
  :root {
    --bloomcap-blue: #1e40af;
    --bloomcap-gold: #fbbf24;
    --bloomcap-orange: #FF5722;
    --text-dark: #0e103d;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 8px 32px rgba(251, 191, 36, 0.3);
  }

  /* ========================================
     2. HEADER MOBILE PREMIUM
     ======================================== */
  #simple-mobile-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }

  /* Logo avec effet premium */
  #simple-mobile-header .logo {
    font-size: 22px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--bloomcap-blue), #2563eb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  /* CTA avec design cohérent */
  #simple-mobile-header .cta {
    background: var(--bloomcap-orange) !important;
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.25) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
  }

  /* Hamburger avec style glassmorphism */
  #simple-mobile-header .hamburger {
    background: rgba(30, 64, 175, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(30, 64, 175, 0.2) !important;
  }

  #simple-mobile-header .hamburger span {
    background: var(--bloomcap-blue) !important;
  }

  /* ========================================
     3. HERO SECTION MOBILE PREMIUM
     ======================================== */
  .welcome-area-6 {
    padding: 80px 0 60px !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Container avec padding optimisé */
  .welcome-area-6 .container {
    padding: 0 20px !important;
  }

  /* Badge premium mobile */
  .welcome-content .d-inline-flex {
    font-size: 0.75rem !important;
    padding: 8px 16px !important;
    margin-bottom: 20px !important;
  }

  /* Titre hero optimisé mobile */
  .welcome-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
  }

  /* Sous-titre ajusté */
  .welcome-content p {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  /* Texte secondaire */
  .welcome-content p[style*="font-style: italic"] {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }

  /* ========================================
     4. IMAGE HERO ET STATS MOBILE
     ======================================== */
  /* Image container repositionné */
  .welcome-area-6 .col-lg-5 {
    margin-top: 40px !important;
    position: relative !important;
  }

  /* Container glassmorphism pour l'image */
  .welcome-area-6 .position-relative > .p-4 {
    padding: 12px !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* Image responsive */
  .welcome-area-6 img {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  }

  /* Stats badges repositionnés pour mobile */
  .welcome-area-6 .position-absolute[style*="top: 10%"] {
    top: -15px !important;
    right: 10px !important;
    transform: scale(0.85) !important;
    padding: 12px 16px !important;
    box-shadow: var(--shadow-md) !important;
  }

  .welcome-area-6 .position-absolute[style*="bottom: 15%"] {
    bottom: -15px !important;
    left: 10px !important;
    transform: scale(0.85) !important;
    padding: 12px 16px !important;
    box-shadow: var(--shadow-md) !important;
  }

  /* Stats badges style amélioré */
  .position-absolute[style*="background: white"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
  }

  /* ========================================
     5. BOUTONS CTA MOBILE
     ======================================== */
  .welcome-content .d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 30px !important;
  }

  .welcome-content .btn {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Bouton vidéo glassmorphism */
  .welcome-content a[href*="youtube"] {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  }

  /* Bouton CTA principal */
  .welcome-content a[href="#formulaire"] {
    background: linear-gradient(135deg, var(--bloomcap-gold), #f59e0b) !important;
    box-shadow: var(--shadow-gold) !important;
    color: var(--bloomcap-blue) !important;
    font-weight: 700 !important;
  }

  /* ========================================
     6. SECTIONS AVEC EFFETS VISUELS
     ======================================== */
  /* Cards avec glassmorphism */
  .widgets.widgets__services-single {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 24px !important;
    border-radius: 20px !important;
    margin-bottom: 20px !important;
  }

  /* Icônes avec gradient moderne */
  .widgets .d-flex[style*="background: linear-gradient"] {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 20px !important;
  }

  /* ========================================
     7. ESPACEMENT ET HIÉRARCHIE
     ======================================== */
  /* Sections padding optimisé */
  section {
    padding: 60px 0 !important;
  }

  .section-padding {
    padding: 50px 0 !important;
  }

  /* Titres de section */
  h2, .h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  h3, .h3 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
  }

  /* Paragraphes optimisés */
  p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--text-light) !important;
  }

  /* ========================================
     8. ÉLÉMENTS DÉCORATIFS
     ======================================== */
  /* Dividers avec gradient */
  .mx-auto[style*="width: 80px"][style*="height: 3px"] {
    width: 60px !important;
    height: 4px !important;
    border-radius: 2px !important;
    margin: 20px auto !important;
  }

  /* Background patterns */
  .welcome-area-6::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }

  /* ========================================
     9. MENU MOBILE PREMIUM
     ======================================== */
  .mobile-menu-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
  }

  .mobile-menu-header {
    background: linear-gradient(135deg, var(--bloomcap-blue), #2563eb) !important;
    color: white !important;
    padding: 20px !important;
    margin-bottom: 0 !important;
  }

  .mobile-menu-title {
    color: white !important;
    font-weight: 700 !important;
    font-size: 18px !important;
  }

  .mobile-menu-close {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }

  /* ========================================
     10. RESPONSIVE IMAGES
     ======================================== */
  img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* ========================================
     11. TOUCH OPTIMIZATIONS
     ======================================== */
  /* Tous les éléments cliquables */
  a, button, .btn, [role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* Zone de tap étendue */
  .mobile-menu-link::before {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
  }

  /* ========================================
     12. PERFORMANCE
     ======================================== */
  /* Hardware acceleration */
  .welcome-area-6,
  .widgets,
  .btn {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
}

/* ========================================
   13. CORRECTIONS SPÉCIFIQUES BLOOMCAP
   ======================================== */
@media (max-width: 991px) {
  /* Fix pour le menu dropdown existant */
  #mobile-menu-dropdown {
    z-index: 99999 !important;
  }
  
  /* Alignement du contenu hero */
  .welcome-content {
    text-align: center !important;
  }
  
  /* Stats badges toujours visibles */
  .position-absolute {
    z-index: 10 !important;
  }
  
  /* Amélioration de la lisibilité */
  .text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }
}