/**
 * Styles pour la page Ressources
 * 
 * @package Evofia
 * @since 1.0.0
 */

/* ==========================================
   HERO SECTION / BANNIÈRE
   ========================================== */

.hero-ressources {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--evofia-blue, #004052) 0%, var(--evofia-green, #46B370) 100%);
}

.hero-ressources.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 64, 82, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-ressources .page-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-ressources .page-subtitle {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   PRÉSENTATION (CONTENU GUTENBERG)
   ========================================== */

.presentation-ressources {
    padding: 60px 0;
    background: #fff;
}

.presentation-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.presentation-content p {
    margin-bottom: 1.5rem;
}

.presentation-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--evofia-blue, #004052);
}

/* ==========================================
   LISTE DES RESSOURCES
   ========================================== */

.liste-ressources {
    padding: 0px 0 80px;
    margin-bottom:100px;
}

.section-header {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--evofia-blue, #004052);
    margin-bottom: 10px;
}

/* ==========================================
   FILTRES
   ========================================== */

.filtres-ressources {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filtres-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.btn-filter {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-filter:hover {
    border-color: var(--evofia-green, #46B370);
    color: var(--evofia-green, #46B370);
    background: rgba(70, 179, 112, 0.05);
}

.btn-filter.active {
    background: var(--evofia-green, #46B370);
    color: #fff;
    border-color: var(--evofia-green, #46B370);
}

/* ==========================================
   COMPTEUR DE RÉSULTATS
   ========================================== */

.results-count-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--evofia-orange, #D98622);
}

.count-label {
    font-size: 14px;
    color: #666;
}

.count-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--evofia-blue, #004052);
}

/* ==========================================
   GRILLE DES RESSOURCES
   ========================================== */

.ressources-grid {
    margin-top: 30px;
}

.ressource-item {
    display: flex;
}

.ressource-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ressource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image */
.ressource-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.ressource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 10px 10px 0px 0px;
}

.ressource-card:hover .ressource-image img {
    transform: scale(1.05);
}

.ressource-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--evofia-orange, #D98622);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contenu */
.ressource-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ressource-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.ressource-meta i {
    margin-right: 5px;
}

.ressource-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ressource-title a {
    color: var(--evofia-blue, #004052);
    text-decoration: none;
    transition: color 0.2s;
}

.ressource-title a:hover {
    color: var(--evofia-green, #46B370);
}

.ressource-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ressource-footer {
    margin-top: auto;
}

.ressource-footer .btn {
    width: auto;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.ressource-footer .btn i {
    transition: transform 0.3s;
}

.ressource-footer .btn:hover i {
    transform: translateX(5px);
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination-wrapper .page-numbers li {
    list-style: none;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 10px 15px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--evofia-green, #46B370);
    color: #fff;
    border-color: var(--evofia-green, #46B370);
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers .current {
    background: var(--evofia-blue, #004052);
    color: #fff;
    border-color: var(--evofia-blue, #004052);
}

.pagination-wrapper .page-numbers .dots {
    border: none;
    background: transparent;
}

/* ==========================================
   AUCUNE RESSOURCE
   ========================================== */

.no-ressources {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-ressources h3 {
    font-size: 1.8rem;
    color: var(--evofia-blue, #004052);
    margin-bottom: 15px;
}

.no-ressources p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

/* ==========================================
   WIDGET RESSOURCES (pour le shortcode)
   ========================================== */

.ressources-widget {
    padding: 40px 0;
}

.ressources-widget .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.ressources-widget .section-title {
    font-size: 2rem;
}

.ressources-widget .ressource-card {
    height: 100%;
}

.ressources-widget-footer {
    text-align: center;
    margin-top: 40px;
}

.ressources-widget-footer .btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {
    .hero-ressources .page-title {
        font-size: 2.5rem;
    }
    
    .filtres-buttons {
        justify-content: flex-start;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .hero-ressources {
        min-height: 250px;
        padding: 60px 20px;
    }
    
    .hero-ressources .page-title {
        font-size: 2rem;
    }
    
    .hero-ressources .page-subtitle {
        font-size: 1rem;
    }
    
    .presentation-ressources {
        padding: 40px 0;
    }
    
    .liste-ressources {
        padding: 0px 0 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filtres-ressources {
        padding: 20px;
    }
    
    .filtres-ressources .row {
        flex-direction: column;
    }
    
    .filtres-buttons {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .ressource-content {
        padding: 20px;
    }
    
    .ressource-title {
        font-size: 1.1rem;
    }
    
    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .results-count-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .btn-filter {
        font-size: 12px;
        padding: 6px 15px;
    }
}




