/* =========================================
   blog.css - Styles dédiés aux actualités,
   événements et veille politique
   ========================================= */

.blog-section {
    padding: 60px 5%;
    background-color: var(--light); /* Utilisation de la variable de fond clair définie dans index.css */
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark); /* Variable index.css */
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Grille automatique et fluide pour les cartes */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Style de la carte individuelle (la box) */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    /* L'effet de relief : une ombre douce et large */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Accentuation du relief au survol pour un effet interactif */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Métadonnées : Catégorie (Sénat/AN) et Date */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-category {
    background-color: var(--ua-blue); /* Variable index.css */
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.blog-date {
    color: #777;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Typographie interne de la carte */
.blog-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-excerpt {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Repousse le bouton vers le bas */
}

/* Pied de carte et bouton */
.blog-card-footer {
    margin-top: auto;
}

.btn-blog {
    display: inline-block;
    color: var(--ua-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-blog:hover {
    color: var(--dark);
    border-bottom: 2px solid var(--ua-yellow); /* Variable index.css */
}

/* =========================================
   Gestion des Onglets (Tabs)
   ========================================= */

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur petit écran */
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--ua-blue);
    color: var(--ua-blue);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(0, 87, 183, 0.1); /* Bleu très clair au survol */
}

.tab-btn.active {
    background-color: var(--ua-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 87, 183, 0.3);
}

/* Gestion de l'affichage des contenus */
.tab-content {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block; /* Affiché si actif */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Couleurs spécifiques pour les tags de manifestations et événements régionaux */
.cat-manif {
    background-color: #e63946; 
}

.cat-region {
    background-color: #2a9d8f; 
}

/* =========================================
   État vide (Empty State) - Recrutement
   ========================================= */

.empty-state {
    text-align: center;
    background-color: #ffffff;
    /* Une bordure en pointillés pour l'effet "emplacement à remplir" */
    border: 2px dashed #cbd5e1; 
    border-radius: 12px;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto; /* Permet de centrer le bloc si la grille est vide */
    transition: border-color 0.3s ease;
}

.empty-state:hover {
    border-color: var(--ua-blue);
}

.empty-state-icon {
    color: var(--ua-blue);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton d'action spécifique à cet encart */
.btn-empty-state {
    display: inline-block;
    background-color: var(--ua-blue);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-empty-state:hover {
    background-color: #004494; /* Bleu légèrement plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 87, 183, 0.3);
    color: #ffffff; /* S'assure que le texte reste blanc */
}