/* ═══════════════════════════════════════════════════════════════
   HERO FINAL — Fichier unique, chargé APRÈS index.css
   Override TOUTES les vieilles règles (23 media queries empilées)
   ═══════════════════════════════════════════════════════════════ */

/* ═══ MOBILE < 768px : image via ::after, hauteur 40vh ═══ */
@media (max-width: 768px) {
    body.page-index .hero-section {
        background-image: none !important;
        background-color: #f9fafb !important;
        padding-top: 40vh !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        position: relative !important;
    }
    body.page-index .hero-section::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40vh !important;
        background-image: var(--hero-bg) !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }
    body.page-index .hero-section .hero-container {
        margin: -80px 0 0 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
}

/* ═══ TABLETTE + DESKTOP ≥ 768px : image background, 100vh plein écran ═══ */
@media (min-width: 769px) {
    body.page-index .hero-section {
        background-image: var(--hero-bg) !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    body.page-index .hero-section::after {
        display: none !important;
        content: none !important;
    }
    body.page-index .hero-section .hero-container {
        margin: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
}
