/* Mobile Header Styles */
@media (max-width: 768px) {
    /* Empêcher le scroll horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Header toujours visible sur mobile */
    .header {
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.98) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Container flex pour mobile */
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0rem 1rem 0rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Cacher le menu desktop */
    .nav-menu {
        display: none !important;
    }
    
    /* Cacher les boutons desktop */
    .header-buttons {
        display: none !important;
    }
    
    /* Logo plus grand au centre */
    .header .logo {
        height: 80px !important;
        order: 2;
        margin: 0 auto;
        max-width: 180px;
        object-fit: contain;
    }
    
    /* Hamburger Menu */
    .hamburger-menu {
        display: block !important;
        order: 1;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }
    
    .hamburger-menu span {
        display: block;
        position: absolute;
        width: 25px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu span:nth-child(1) {
        top: 6px;
    }
    
    .hamburger-menu span:nth-child(2) {
        top: 13px;
    }
    
    .hamburger-menu span:nth-child(3) {
        top: 20px;
    }
    
    /* Hamburger actif */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 13px;
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 13px;
    }
    
    /* Icône favori */
    .favorite-icon {
        display: block !important;
        order: 3;
        width: 30px;
        height: 30px;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    .favorite-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: #333;
        stroke-width: 2;
    }
    
    /* Menu Mobile Overlay */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block !important;
    }
    
    .mobile-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .mobile-menu a.btn-primary {
        margin-top: 1rem;
        background: linear-gradient(135deg, #6B46C1 0%, #4A90E2 100%);
        color: white;
        padding: 1rem 2rem;
        border-radius: 8px;
        text-align: center;
        border: none;
    }
    
    /* Hero Section Mobile */
    .hero {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-content {
        padding: 80px 20px 20px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
    }
    
    .hero-image {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .hero-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Texte hero mobile */
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    /* Toutes les sections */
    section {
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Container global */
    .container, .features-container, .about-container {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* Desktop - cacher les éléments mobiles */
@media (min-width: 769px) {
    .hamburger-menu,
    .favorite-icon,
    .mobile-menu {
        display: none !important;
    }
}

/* Par défaut, cacher les éléments mobiles */
.hamburger-menu,
.favorite-icon,
.mobile-menu {
    display: none;
}

/* Ajustement header mobile ultra compact */
@media (max-width: 768px) {
    .header {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .header-container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
        margin: 0 !important;
    }
}
