/* Ressources CFAV — supports / podcast / librairie */

.page-ressources {
    --res-ink: #0c2d4a;
    --res-blue: #1a4d7a;
    --res-gold: #c9a227;
    --res-gold-soft: #f7f0dc;
    --res-muted: #5b6b7c;
    --res-line: rgba(26, 77, 122, 0.12);
    --res-soft: #f4f7fa;
}

.res-main {
    background: var(--res-soft);
}

.res-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(212, 175, 55, 0.28), transparent 42%),
        linear-gradient(125deg, #0d3558 0%, #1a4d7a 55%, #2d5a47 100%);
    color: #fff;
    padding: 2.6rem 0 2.2rem;
}

.res-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f2d27a;
}

.res-hero h1 {
    margin: 0 0 0.55rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
}

.res-lede {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
}

.res-section {
    padding: 1.75rem 0 3rem;
}

.res-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.res-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--res-blue);
    background: #fff;
    border: 1px solid var(--res-line);
}

.res-tab:hover {
    border-color: rgba(201, 162, 39, 0.55);
    color: var(--res-ink);
}

.res-tab.is-active {
    background: linear-gradient(135deg, #0d3558, #1a4d7a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(12, 45, 74, 0.18);
}

.res-type-lead {
    margin: 0 0 1.25rem;
    color: var(--res-muted);
    max-width: 60ch;
    line-height: 1.6;
}

.res-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
    gap: 1.15rem;
    align-items: start;
}

.res-list {
    display: grid;
    gap: 0.75rem;
}

.res-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--res-line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: var(--res-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.res-card:hover {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 10px 24px rgba(12, 45, 74, 0.08);
    transform: translateY(-1px);
}

.res-card.is-active {
    border-color: #c9a227;
    box-shadow: inset 3px 0 0 #c9a227, 0 10px 24px rgba(12, 45, 74, 0.08);
}

.res-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a7b2f;
    margin-bottom: 0.35rem;
}

.res-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--res-ink);
    line-height: 1.3;
}

.res-card p {
    margin: 0;
    color: var(--res-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.res-card-meta {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--res-blue);
    background: var(--res-gold-soft);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.res-reader {
    background: #fff;
    border: 1px solid var(--res-line);
    border-radius: 16px;
    padding: 1.35rem 1.4rem 1.5rem;
    position: sticky;
    top: 1rem;
    min-height: 280px;
}

.res-reader-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a7b2f;
}

.res-reader h2 {
    margin: 0 0 0.55rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem;
    color: var(--res-ink);
    line-height: 1.25;
}

.res-reader-resume {
    margin: 0 0 1rem;
    color: var(--res-muted);
    line-height: 1.55;
}

.res-reader-body {
    color: #243447;
    line-height: 1.7;
    font-size: 0.98rem;
}

.res-reader-actions {
    margin: 1.15rem 0 0;
}

.res-audio {
    margin: 0 0 1rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, #0d3558, #1a4d7a);
    border-radius: 12px;
}

.res-audio audio {
    width: 100%;
    display: block;
}

.res-audio--soon {
    background: var(--res-gold-soft);
}

.res-audio--soon p {
    margin: 0;
    color: var(--res-ink);
    font-size: 0.92rem;
}

.res-reader-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
}

.res-reader-placeholder h2 {
    margin: 0;
}

.res-reader-placeholder p {
    margin: 0;
    color: var(--res-muted);
    line-height: 1.55;
}

.res-empty,
.res-locked {
    color: var(--res-muted);
    font-size: 0.95rem;
}

.res-locked a {
    color: var(--res-blue);
    font-weight: 600;
}

@media (max-width: 900px) {
    .res-layout {
        grid-template-columns: 1fr;
    }

    .res-reader {
        position: static;
        order: -1;
    }
}

@media (max-width: 560px) {
    .res-hero {
        padding: 2rem 0 1.6rem;
    }

    .res-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}
