/* assets/css/slider-styles.css */

/* Container principal du slider */
.home-slider-section {
    width: 100vw;
    margin: 0 calc(-50vw + 50%) 60px;
    position: relative;
    overflow: hidden;
}

.swiper-container {
    height: 600px;
    overflow: hidden;
}

/* Slides */
.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Contenu des slides */
.slide-content {
    position: relative;
    z-index: 10;
    max-width: min(800px, 90%);
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    color: var(--base-3);
}

.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 1rem;
    font-family: 'DM Serif Display', serif;
    line-height: 1.2;
    color: var(--base-3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
    line-height: 1.6;
    color: var(--base-3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Overlay sombre */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--base-3);
    transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.8;
}

/* Pagination */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--base-3);
}

.swiper-pagination-bullet .progress {
    height: 100%;
    width: 0;
    background: var(--base-3);
    transition: width linear;
}

/* Responsive */
@media (max-width: 768px) {
    .swiper-container {
        height: 450px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .slide-content {
        padding: 1.5rem;
    }
}
/* Ajout aux styles existants dans slider-styles.css */

/* Liens des titres */
.slide-content h2 a {
    color: var(--base-3);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.slide-content h2 a:hover {
    opacity: 0.9;
}

/* Méta-informations */
.slide-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.slide-date {
    margin-right: 1rem;
}

.slide-category {
    background: var(--accent);
    padding: 0.2rem 0.8rem;
    border-radius: 3px;
}

/* Message d'absence d'articles */
.no-posts-found {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--base);
    color: var(--contrast);
}

/* Animation de transition */
.swiper-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swiper-slide-active {
    opacity: 1;
}
/* Container des bullets */
.swiper-pagination {
    bottom: 30px !important;
}

/* Style de base des bullets */
.swiper-pagination-bullet {
    position: relative;
    width: 60px;
    height: 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    overflow: hidden; /* Important pour contenir la barre de progression */
    margin: 0 4px !important;
}

/* Bullet active */
.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.3); /* Gardons le fond semi-transparent */
}

/* Barre de progression */
.swiper-pagination-bullet .progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--base-3); /* Utilisation de la couleur du thème */
    transform-origin: left;
    transition: none; /* La transition sera définie en JS */
}

/* Style au survol */
.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .swiper-pagination-bullet {
        width: 30px;
        height: 3px;
        margin: 0 3px !important;
    }
}