/* ========================================
   CORRECTIONS RESPONSIVE HERO SECTION
   ======================================== */

/* Reset et base pour mobile */
@media screen and (max-width: 992px) {
    .hero {
        min-height: 70vh !important;
        padding: 2rem 1rem !important;
        background-attachment: scroll !important;
    }
    
    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-content {
        text-align: center !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }
}

/* Tablettes (768px - 992px) */
@media screen and (min-width: 768px) and (max-width: 992px) {
    .hero {
        min-height: 75vh;
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 2rem !important;
    }
    
    .floating-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }
    
    .floating-card {
        padding: 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Mobiles (576px - 768px) */
@media screen and (min-width: 576px) and (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    .btn {
        width: 200px !important;
        font-size: 1rem !important;
        padding: 12px 24px !important;
    }
    
    .floating-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .floating-card {
        padding: 1.2rem !important;
        font-size: 0.9rem !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* Petits mobiles (480px - 576px) */
@media screen and (min-width: 480px) and (max-width: 576px) {
    .hero {
        min-height: 65vh;
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.9rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .floating-card {
        padding: 1rem !important;
        font-size: 0.85rem !important;
        max-width: 260px !important;
    }
    
    .floating-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Très petits mobiles (360px - 480px) */
@media screen and (min-width: 360px) and (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 1rem 0.5rem;
    }
    
    .hero-content {
        padding: 0.5rem !important;
    }
    
    .hero-title {
        font-size: 1.7rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .btn {
        width: 180px !important;
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
    
    .floating-card {
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
        max-width: 240px !important;
    }
    
    .floating-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
    }
}

/* Écrans ultra-larges (1200px+) */
@media screen and (min-width: 1200px) {
    .hero {
        min-height: 90vh;
        padding: 4rem 2rem;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }
    
    .floating-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .floating-card {
        padding: 2rem;
        font-size: 1rem;
    }
}

/* Orientation paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh !important;
        padding: 1rem !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: 100vh !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .floating-cards {
        display: none !important;
    }
    
    .cta-buttons {
        margin-top: 1rem !important;
    }
}

/* Performance pour mobiles */
@media screen and (max-width: 768px) {
    .floating-card {
        transform: none !important;
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
    
    .floating-card:hover {
        transform: translateY(-5px) !important;
    }
    
    /* Réduction des animations pour économiser la batterie */
    *, *::before, *::after {
        animation-duration: 0.5s !important;
        animation-delay: 0s !important;
    }
}

/* Fix pour les écrans avec encoche (iPhone X+) */
@supports (padding: max(0px)) {
    @media screen and (max-width: 768px) {
        .hero {
            padding-top: max(2rem, env(safe-area-inset-top)) !important;
            padding-left: max(1rem, env(safe-area-inset-left)) !important;
            padding-right: max(1rem, env(safe-area-inset-right)) !important;
        }
    }
}
