/* ===== HERO SLIDER ===== */
.eco-hero {
    position: relative;
    height: 520px;
    max-height: 80vh;
    min-height: 380px;
    overflow: hidden;
    background: #1d2327;
}

/* Slides superposées, fondu au changement */
.eco-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}
.eco-hero-slide.eco-active { opacity: 1; visibility: visible; }
.eco-hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Voile pour la lisibilité du texte */
.eco-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,18,21,.60) 0%, rgba(15,18,21,.30) 55%, rgba(15,18,21,0) 100%);
}

/* Contenu */
.eco-hero-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    color: #fff;
}
.eco-hero-tag {
    background: var(--eco-accent, #2b6cb0); color: #fff;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    padding: 6px 14px; border-radius: 4px; margin-bottom: 16px;
}
.eco-hero-title {
    font-size: 44px; line-height: 1.15; font-weight: 800;
    margin: 0 0 12px; max-width: 620px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.eco-hero-subtitle {
    font-size: 18px; margin: 0 0 26px; max-width: 480px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.eco-hero-btn {
    display: inline-block;
    background: var(--eco-accent, #2b6cb0); color: #fff;
    text-decoration: none; font-weight: 700; font-size: 16px;
    padding: 14px 32px; border-radius: 6px;
    transition: background .2s ease, transform .2s ease;
}
.eco-hero-btn:hover { background: #1e4e8a; transform: translateY(-2px); color: #fff; }

/* Flèches (apparaissent au survol) */
.eco-hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.9); color: #1d2327;
    border: 0; border-radius: 50%; cursor: pointer;
    opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.eco-hero:hover .eco-hero-arrow { opacity: 1; }
.eco-hero-arrow:hover { background: #fff; }
.eco-hero-arrow svg { width: 22px; height: 22px; }
.eco-hero-arrow--prev { left: 20px; }
.eco-hero-arrow--next { right: 20px; }

/* Dots */
.eco-hero-dots {
    position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5;
    display: flex; justify-content: center; gap: 10px;
}
.eco-hero-dot {
    width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.5); cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.eco-hero-dot.eco-active { background: #fff; transform: scale(1.15); }

/* Mobile */
@media (max-width: 782px) {
    .eco-hero { height: 420px; min-height: 340px; }
    .eco-hero-title { font-size: 28px; }
    .eco-hero-subtitle { font-size: 15px; margin-bottom: 20px; }
    .eco-hero-btn { padding: 12px 26px; }
    .eco-hero-arrow { display: none; } /* navigation par swipe */
    .eco-hero-overlay {
        background: linear-gradient(180deg, rgba(15,18,21,.15) 0%, rgba(15,18,21,.55) 100%);
    }
}