/**
 * Bloc Affichage des Actualités - Styles
 * Basé sur la maquette Figma
 */

.bloc-affichage-actualites {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filtres par catégorie */
.filtres-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filtre-btn {
    background: rgba(190, 190, 190, 0.03);
    border: 0.5px solid rgba(100, 100, 100, 0.23);
    border-radius: 12px;
    padding: 14px 22px;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(29, 29, 27, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.filtre-btn:hover {
    background: rgba(190, 190, 190, 0.1);
    transform: translateY(-2px);
}

.filtre-btn.active {
    background: #FFE04B;
    border-color: rgba(100, 100, 100, 0.23);
    color: rgba(29, 29, 27, 0.8);
}

/* Grille des actualités */
.grille-actualites {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Élément d'actualité */
.actualite-item {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0px 17px 27.1px 0px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-width: 0;
}

.actualite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 25px 40px 0px rgba(0, 0, 0, 0.08);
}

.actualite-content {
    padding: 25px 25px 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    height: 100%;


}

/* En-tête de l'actualité */
.actualite-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.actualite-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}



/* Wrapper cliquable pour l'article entier */
.actualite-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;

}

.actualite-link-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #FFE04B;
}

/* Titre de l'actualité */
.actualite-titre {
    font-family: 'Figtree', sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    transition: color 0.3s ease;
}

/* .actualite-link-wrapper:hover .actualite-titre {
    color: #FFE04B;
} */

/* Ajustement du padding pour les articles sans étiquette */
.actualite-item.no-etiquette .actualite-titre {
    padding-top: 37px;
}

/* Extrait de l'actualité */
.actualite-excerpt {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
    margin: 0;
}

/* Lien "Lire la suite" */
.actualite-lien {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 25px;
    margin-top: auto;
}

.lire-suite {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1d1d1b;
    text-decoration: underline;
    text-underline-offset: 19.5%;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.actualite-link-wrapper:hover .etiquette-badge {
    border: 1px solid #1d1d1b;
    background-color: transparent;
    transition: all 0.3s ease;
}

.fleche-container {
    position: relative;
    width: 21px;
    height: 9px;
    display: inline-block;
}

.fleche-icone {
    width: 21px;
    height: 9px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
}

.actualite-item:hover .fleche-1,
.actualite-item:hover .fleche-2 {
    left: 23px;
    transition: all 0.4s ease;
}


.fleche-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fleche-1 {
    opacity: 1;
    transform: translateX(0);
}

.fleche-2 {
    opacity: 1;
    transform: translateX(-25px);
}

.lire-suite {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lire-suite:hover .fleche-1 {
    transform: translateX(25px);
    opacity: 0;
}

.lire-suite:hover .fleche-2 {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Message d'erreur */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 100px;
}

.no-posts p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

.no-posts p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #adb5bd;
}

.no-posts strong {
    color: #495057;
}



/* Indicateur de chargement */
.chargement-indicateur {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFE04B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chargement-indicateur p {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    color: #1d1d1b;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .grille-actualites {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .bloc-affichage-actualites {
        padding: 0 15px;
    }
    
    .filtres-categories {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filtre-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .grille-actualites {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .actualite-content {
        padding: 20px 20px 25px 20px;
        gap: 15px;
    }
    
    .actualite-titre {
        font-size: 28px;
    }
    
    .actualite-excerpt {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .filtres-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .filtre-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .actualite-titre {
        font-size: 24px;
    }
    
    .actualite-content {
        padding: 15px 15px 20px 15px;
    }
}
