/* resources.css */

.res-hero {
    background: linear-gradient(155deg, #0F2547 0%, #1B3A6B 50%, #1A6B5A 100%);
    padding: 80px 0 0; text-align: center; overflow: hidden; position: relative;
}
.res-hero-inner { max-width: 700px; margin: 0 auto; padding: 0 24px 56px; position: relative; z-index: 1; }
.res-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26,107,90,.25); border: 1px solid rgba(26,107,90,.5);
    color: #4ECDC4; padding: 6px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 800; letter-spacing: .4px; margin-bottom: 20px;
}
.res-hero-title { font-family: 'Montserrat', Georgia, serif; font-size: clamp(2rem,4vw,2.8rem); color: #ffffff; margin-bottom: 16px; line-height: 1.2; }
.res-hero-sub { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 20px; }
.res-hero-count { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.res-hero-wave { line-height: 0; }
.res-hero-wave svg { display: block; width: 100%; height: 50px; }

/* Filtres */
.res-filters-bar { background: #ffffff; border-bottom: 1px solid rgba(27,58,107,.08); padding: 14px 0; position: sticky; top: 107px; z-index: 100; box-shadow: 0 2px 12px rgba(27,58,107,.06); }
.res-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-filter-btn { display: flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #444; background: #F0F4F8; border: 1.5px solid transparent; text-decoration: none; transition: all 200ms ease; white-space: nowrap; }
.res-filter-btn:hover { border-color: #1A6B5A; color: #1A6B5A; background: #E8F5F2; }
.res-filter-btn.is-active { background: #1A6B5A; color: #ffffff; border-color: #1A6B5A; }

/* Grille documents */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.res-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(27,58,107,.08);
    display: flex; flex-direction: column; gap: 8px;
    transition: all 250ms ease;
}

.res-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(27,58,107,.1); }

.res-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
    transition: transform 250ms ease;
}
.res-card:hover .res-card-icon { transform: scale(1.1) rotate(-5deg); }

.res-card-cat { font-size: 10px; font-weight: 800; color: #1A6B5A; text-transform: uppercase; letter-spacing: .4px; background: #E8F5F2; padding: 2px 9px; border-radius: 10px; align-self: flex-start; }

.res-card-title { font-size: .95rem; font-weight: 800; color: #1B3A6B; margin: 0; line-height: 1.4; flex: 1; }

.res-card-desc { font-size: 12px; color: #111; line-height: 1.6; margin: 0; }

.res-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.res-meta-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #444; font-weight: 600; }

.res-download-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: 8px;
    background: #1A6B5A; color: #ffffff;
    font-size: 13px; font-weight: 800;
    text-decoration: none; transition: all 200ms ease;
    margin-top: auto;
}
.res-download-btn:hover { background: #155a4a; transform: translateY(-1px); color: #ffffff; }
.res-download-btn--external { background: #1B5EA7; }
.res-download-btn--external:hover { background: #1B3A6B; }

/* État vide */
.res-empty { text-align: center; padding: 80px 24px; color: #444444; }
.res-empty i { font-size: 56px; color: #D0DCEA; display: block; margin-bottom: 20px; }
.res-empty h2 { font-size: 1.4rem; color: #1B3A6B; margin-bottom: 10px; }

/* Pagination */
.res-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.res-page-btn { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #1B3A6B; background: #ffffff; border: 1.5px solid #D0DCEA; text-decoration: none; transition: all 200ms ease; }
.res-page-btn:hover { border-color: #1A6B5A; color: #1A6B5A; background: #E8F5F2; }
.res-page-btn.is-active { background: #1A6B5A; color: #ffffff; border-color: #1A6B5A; }

/* Fade-in */
.rfade { opacity: 0; transform: translateY(20px); transition: opacity 450ms ease, transform 450ms ease; }
.rfade.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) { .res-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .res-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .res-grid { grid-template-columns: 1fr; } }
