@import url('../css/variables.css');

/* =========================
   CONTAINER DU SLIDER
========================= */

.hero-slider {
    width: calc(100% - 40px);
    margin: 16px auto 32px;
    overflow: hidden; /* ← ajouté */
}

/* =========================
   SLIDE
========================= */

.hero-slide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hero-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.5) 0%,
        rgba(0,0,0,.15) 50%,
        transparent 100%
    );
}

/* =========================
   CONTENU
========================= */

.hero-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255,255,255,.95);
    border-radius: 999px;
    font-size: 11px;
    color: #333;
}

.hero-content h2 {
    margin: 10px 0 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-title);
    line-height: 1.15;
    font-weight: 400;
    color: #fff;
}

/* =========================
   PAGINATION
========================= */

.swiper-pagination {
    bottom: 16px !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: .5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}
@media (max-width: 767px) {

    .swiper-pagination {
        display: none;
    }
}

/* =========================
   TABLETTE
========================= */

@media (min-width: 768px) {

    .hero-slider {
        width: calc(100% - 40px);
        margin: 24px auto 40px;
    }

    .hero-slide {
        border-radius: 20px;
    }

    .hero-slide img {
        height: 420px;
    }

    .hero-content {
        left: 32px;
        right: 32px;
        bottom: 32px;
    }

    .hero-content h2 {
        font-size: var(--font-size-title)
    }
    .swiper-pagination {
        display: none;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1200px) {

    .hero-slider {
        width: 100%;
        max-width: 1140px;
        margin: 32px auto 48px;
        padding: 0 20px;
    }

    .hero-slide {
        border-radius: 24px;
    }

    .hero-slide img {
        height: 500px;
    }

    .hero-content {
        left: 40px;
        right: auto;
        bottom: 40px;
        max-width: 700px;
    }

    .hero-content h2 {
        font-size: var(--font-size-title);
    }
}