.hero-archive {
    display: flex;
    color: white;
    padding-top: 100px;
}

.hero-local {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/hero-bg.jpg') no-repeat center/cover;
    padding: 15px;
    border-radius: 10px;
}

.teaser-content {
    display: flex;
    align-items: flex-start; /* ou center si tu veux centrer verticalement */
    gap: 20px; /* espace entre image et texte */
}

.teaser-image img {
    max-width: 100px; /* adapte la largeur de l'image */
    height: auto;
    display: block;
    border-radius: 8px; /* optionnel pour un look plus doux */
}

.teaser-text {
    flex: 1;
}

.teaser-date {
    font-size: 12px; /* Taille plus petite pour le texte */
    color: #666; /* Couleur grise pour un style discret */
    position: absolute; /* Positionnement absolu pour placement précis */
    bottom: 10px; /* Marges internes en bas */
    left: 10px; /* Marges internes à gauche */
    font-style: italic; /* Style italique pour différencier le texte */
}

/* --- Responsive : bascule en colonne sous 768px --- */
@media (max-width: 768px) {
    .teaser-content {
        flex-direction: column;
        align-items: center; /* centre l’image et le texte */
    }
    .teaser-image img {
        max-width: 100%;
        height: auto;
    }
    .teaser-text {
        width: 100%;
        text-align: center; /* optionnel pour centrer le texte */
    }
}

/* Style général du fil d'Ariane */
.breadcrumb {
    display: flex;
    gap: 0.25rem; /* Espacement entre les éléments */
    font-size: 0.9rem;
    color: #6c757d; /* Couleur grise subtile */
    margin-bottom: 1.5rem; /* Espace sous le fil d'Ariane */
    align-items: center;
}

/* Lien actif et liens classiques */
.breadcrumb a {
    color: #007bff; /* Bleu pour les liens */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-weight: bold;
}

.breadcrumb a:hover {
    color: #0056b3; /* Couleur plus foncée au survol */
}

/* Élément courant, non cliquable */
.breadcrumb .current {
    color: #6c757d; /* Gris plus subtil */
    font-weight: normal;
}

.archive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
    list-style: none;
    display: flex;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.breadcrumb li + li:before {
    content: ">";
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb a {
    text-decoration: none;
    color: #007BFF;
}

/* Zone filtres */
.archive-filters {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    gap: 1rem;
}

/* Formulaire de recherche */
.search-form {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    background: #f9f9f9;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 0.5rem 1rem;
    border: none;
    background: #007BFF;
    color: #fff;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #0056b3;
}

/* Filtre de catégories */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-link {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    border: 2px solid #fff;
}

/* Catégorie active */
.category-link.active {
    height:35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid #000; /* #f03749 */
    opacity: 1;
}

.category-link:hover {
    opacity: 1;
    border: 2px solid #f03749;
}

/* "Tout voir" bouton - Style par défaut */
.category-filter .category-link:first-child {
    border: 2px solid #888;
    background: #fff; /* Couleur gris neutre */
    color: #000;
}

/* "Tout voir" bouton - Style par défaut */
.category-filter .category-link:first-child:hover {
    border: 2px solid #f03749;
}

/* "Tout voir" bouton - Si actif */
.category-filter .category-link:first-child.active {
    background: #fff; /* Couleur légèrement plus sombre */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transform: scale(1.05);
    border: 2px solid #f03749;
}

/* Adaptabilité pour écrans moyens et petits */
@media (max-width: 768px) {
    .archive-filters {
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-form {
        width: 100%;
    }

    .category-filter {
        justify-content: center;
    }
}

/* Pagination globale */
.pagination {
    display: flex;
    justify-content: center; /* Centre la pagination */
    align-items: center;
    gap: 0.5rem; /* Ajoute de l'espace entre les boutons */
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Liens de pagination */
.pagination-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #f9f9f9;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Lien actif */
.pagination-link.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Précedent et Suivant */
.pagination-link.prev,
.pagination-link.next {
    font-weight: bold;
}

/* Hover */
.pagination-link:hover {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

/* Responsive (pour que la pagination ait plus d'espace sur écran étroit) */
@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap; /* Organiser les boutons sur plusieurs lignes si nécessaire */
    }

    .pagination-link {
        padding: 0.5rem;
        margin: 0.25rem; /* Un peu d'espace supplémentaire sur mobile */
        font-size: 0.875rem; /* Légèrement plus petit */
    }
}