/* ==========================================================
   OAC CONGO — PAGE RESSOURCES
   Fichier à utiliser : /css/ressources.css
   Charger avec le CSS global : /css/oac-style.css
   ========================================================== */

/* ---------- Base isolée à la page Ressources ---------- */
.resources-page {
    --resources-ink: #172b3a;
    --resources-muted: #647482;
    --resources-blue: #087cf0;
    --resources-gold: #ffc515;
    --resources-line: #e3e9ee;
    --resources-surface: #f5f8fb;
    width: 100%;
    color: var(--resources-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
    isolation: isolate;
}
.resources-page,
.resources-page *,
.resources-page *::before,
.resources-page *::after { box-sizing: border-box; }
.resources-page img { display: block; max-width: 100%; height: auto; }
.resources-page h1,
.resources-page h2,
.resources-page h3,
.resources-page p { overflow-wrap: anywhere; }
.resources-page h1,
.resources-page h2,
.resources-page h3 { margin-top: 0; }
.resources-page a { text-decoration: none; }
.resources-page button,
.resources-page input { font: inherit; }
.resources-page button { cursor: pointer; }
.resources-page [hidden] { display: none !important; }

.resources-page .resources-container {
    width: min(1160px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

/* ---------- Bannière d’accueil ---------- */
.resources-page .resources-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 76px;
    background:
        radial-gradient(circle at 83% 20%, rgba(255,197,21,.16), transparent 25%),
        linear-gradient(120deg, #f5f9fc 0%, #edf4fa 58%, #f8fafc 100%);
}
.resources-page .resources-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    align-items: center;
    gap: clamp(34px, 6vw, 76px);
}
.resources-page .resources-eyebrow,
.resources-page .resources-kicker {
    display: inline-block;
    margin: 0;
    color: #547083;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.5;
}
.resources-page .resources-hero h1 {
    max-width: 610px;
    margin: 17px 0 20px;
    color: var(--resources-ink);
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.resources-page .resources-hero h1 span { color: var(--resources-blue); }
.resources-page .resources-hero-copy > p {
    max-width: 590px;
    margin: 0 0 28px;
    color: #586b79;
    font-size: 16px;
    line-height: 1.8;
}
.resources-page .resources-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 48px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.resources-page .resources-button:hover { transform: translateY(-2px); }
.resources-page .resources-button-primary {
    color: #fff;
    background: var(--resources-blue);
    box-shadow: 0 9px 20px rgba(8,124,240,.18);
}
.resources-page .resources-button-primary:hover {
    color: #fff;
    background: #0669cd;
}
.resources-page .resources-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 340px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.65);
    box-shadow: 0 24px 65px rgba(28,54,73,.13);
}
.resources-page .resources-hero-visual > img {
    width: 100%;
    height: 340px;
    border-radius: 13px;
    object-fit: cover;
    object-position: center;
}
.resources-page .resources-hero-note {
    position: absolute;
    right: -18px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 28px);
    padding: 15px 18px;
    border: 1px solid rgba(226,233,239,.9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(25,48,65,.13);
}
.resources-page .resources-note-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 10px;
    color: #0a6fcf;
    background: #eaf4ff;
    font-size: 23px;
}
.resources-page .resources-hero-note strong,
.resources-page .resources-hero-note small { display: block; }
.resources-page .resources-hero-note strong {
    color: var(--resources-ink);
    font-size: 14px;
    line-height: 1.4;
}
.resources-page .resources-hero-note small {
    margin-top: 3px;
    color: var(--resources-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* ---------- Texte d’introduction ---------- */
.resources-page .resources-intro { padding: 43px 0 35px; background: #fff; }
.resources-page .resources-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    align-items: end;
    gap: 35px;
}
.resources-page .resources-intro h2,
.resources-page .resources-section-heading h2,
.resources-page .resources-help h2 {
    margin: 9px 0 0;
    color: var(--resources-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
}
.resources-page .resources-intro-inner > p {
    margin: 0 0 2px;
    color: var(--resources-muted);
    font-size: 15px;
    line-height: 1.75;
}

/* ---------- Bibliothèque et recherche ---------- */
.resources-page .resources-library { padding: 39px 0 72px; background: var(--resources-surface); }
.resources-page .resources-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}
.resources-page .resources-section-heading p {
    margin: 9px 0 0;
    color: var(--resources-muted);
    font-size: 14px;
    line-height: 1.6;
}
.resources-page .resources-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(340px, 100%);
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #dbe4eb;
    border-radius: 8px;
    background: #fff;
    color: #667988;
}
.resources-page .resources-search-wrap > span { font-size: 25px; line-height: 1; }
.resources-page .resources-search-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 0;
    border: 0;
    outline: 0;
    color: var(--resources-ink);
    background: transparent;
    box-shadow: none;
    font-size: 14px;
}
.resources-page .resources-search-wrap input:focus { outline: 0; box-shadow: none; }
.resources-page .resources-search-wrap:focus-within {
    border-color: #7bb8f4;
    box-shadow: 0 0 0 3px rgba(8,124,240,.09);
}
.resources-page .resources-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 27px 0 24px;
}
.resources-page .resources-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #dce5ec;
    border-radius: 999px;
    color: #506474;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    transition: .18s ease;
}
.resources-page .resources-filter:hover {
    border-color: #9dcaf4;
    color: var(--resources-blue);
    background: #fff;
}
.resources-page .resources-filter.is-active,
.resources-page .resources-filter.is-active:hover {
    border-color: var(--resources-blue);
    color: #fff;
    background: var(--resources-blue);
}
.resources-page .resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

/* ---------- Cartes documentaires ---------- */
.resources-page .resource-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--resources-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(22,47,65,.035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.resources-page .resource-card:hover {
    transform: translateY(-4px);
    border-color: #d2e2ef;
    box-shadow: 0 16px 34px rgba(22,47,65,.09);
}
.resources-page .resource-card[hidden] { display: none !important; }
.resources-page .resource-card-top {
    position: relative;
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 17px;
}
.resources-page .resource-card-top::after {
    position: absolute;
    right: -35px;
    bottom: -85px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.resources-page .resource-cover-blue { background: linear-gradient(135deg, #0b568b, #1689d8); }
.resources-page .resource-cover-sand { background: linear-gradient(135deg, #ad8352, #e4cba0); }
.resources-page .resource-cover-green { background: linear-gradient(135deg, #246b58, #63a88b); }
.resources-page .resource-cover-violet { background: linear-gradient(135deg, #534b8d, #9992d0); }
.resources-page .resource-cover-clay { background: linear-gradient(135deg, #9c5741, #d49a7e); }
.resources-page .resource-cover-charcoal { background: linear-gradient(135deg, #293d4c, #687986); }
.resources-page .resource-type {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 5px;
    color: #fff;
    background: rgba(13,28,40,.15);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
}
.resources-page .resource-document-icon {
    position: absolute;
    top: 48px;
    left: 50%;
    display: flex;
    width: 65px;
    height: 77px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 11px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 5px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 22px rgba(14,31,43,.12);
    transform: translateX(-50%) rotate(-4deg);
}
.resources-page .resource-document-icon span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: #b5c5d0;
}
.resources-page .resource-document-icon span:first-child { width: 70%; background: #1683d5; }
.resources-page .resource-document-icon span:last-child { width: 55%; }
.resources-page .resource-cover-caption {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.5;
}
.resources-page .resource-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 19px 20px;
}
.resources-page .resource-meta {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #758592;
    font-size: 12px;
    line-height: 1.4;
}
.resources-page .resource-format {
    padding: 4px 7px;
    border-radius: 4px;
    color: #647482;
    background: #f0f4f7;
    font-size: 11px;
    line-height: 1.4;
}
.resources-page .resource-card h3 {
    margin: 14px 0 9px;
    color: var(--resources-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}
.resources-page .resource-card-body > p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--resources-muted);
    font-size: 13px;
    line-height: 1.7;
}
.resources-page .resource-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #0874d9;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}
.resources-page .resource-link span { font-size: 18px; transition: transform .2s ease; }
.resources-page .resource-link:hover { color: #0559a8; }
.resources-page .resource-link:hover span { transform: translateX(4px); }

/* ---------- Aucun résultat ---------- */
.resources-page .resources-empty {
    margin: 20px 0 0;
    padding: 40px 20px;
    border: 1px dashed #ccd8e1;
    border-radius: 12px;
    text-align: center;
    background: #fff;
}
.resources-page .resources-empty[hidden] { display: none !important; }
.resources-page .resources-empty > span { color: #7d93a3; font-size: 30px; }
.resources-page .resources-empty h3 { margin: 8px 0; color: var(--resources-ink); font-size: 18px; }
.resources-page .resources-empty p { margin: 0; color: var(--resources-muted); font-size: 14px; line-height: 1.6; }
.resources-page .resources-disclaimer {
    margin: 21px 0 0;
    color: #71818e;
    font-size: 12px;
    line-height: 1.65;
}

/* ---------- Bloc de contact ---------- */
.resources-page .resources-help { padding: 0 0 76px; background: var(--resources-surface); }
.resources-page .resources-help-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 31px 34px;
    border-radius: 14px;
    color: #fff;
    background: #12344b;
}
.resources-page .resources-help-symbol {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 50%;
    color: #17384f;
    background: var(--resources-gold);
    font-size: 26px;
    font-weight: 800;
}
.resources-page .resources-help-copy { flex: 1; min-width: 0; }
.resources-page .resources-help .resources-kicker { color: #a8c5d8; }
.resources-page .resources-help h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(22px, 2.5vw, 29px);
}
.resources-page .resources-help-copy p {
    margin: 9px 0 0;
    color: #d3e0e8;
    font-size: 14px;
    line-height: 1.7;
}
.resources-page .resources-button-light {
    flex: 0 0 auto;
    color: #17384f;
    background: #fff;
}
.resources-page .resources-button-light:hover { color: #17384f; background: #f0f5f8; }

.resources-page .resources-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Tablette ---------- */
@media (max-width: 900px) {
    .resources-page .resources-hero { padding: 56px 0 60px; }
    .resources-page .resources-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr);
        gap: 28px;
    }
    .resources-page .resources-hero-visual,
    .resources-page .resources-hero-visual > img { min-height: 290px; height: 290px; }
    .resources-page .resources-hero-note { right: -8px; bottom: 22px; }
    .resources-page .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resources-page .resources-help-panel { padding: 27px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .resources-page { font-size: 14px; }
    .resources-page .resources-container { width: calc(100% - 32px); }
    .resources-page .resources-hero { padding: 42px 0 45px; }
    .resources-page .resources-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .resources-page .resources-eyebrow,
    .resources-page .resources-kicker { font-size: 11px; }
    .resources-page .resources-hero h1 { margin: 13px 0 15px; font-size: clamp(33px, 9vw, 43px); }
    .resources-page .resources-hero-copy > p { margin-bottom: 22px; font-size: 14px; line-height: 1.75; }
    .resources-page .resources-button { min-height: 45px; padding: 11px 14px; font-size: 13px; }
    .resources-page .resources-hero-visual { min-height: 235px; padding: 9px; border-radius: 15px; }
    .resources-page .resources-hero-visual > img { height: 235px; min-height: 235px; border-radius: 10px; }
    .resources-page .resources-hero-note { right: 5px; bottom: 18px; gap: 9px; padding: 11px 12px; }
    .resources-page .resources-note-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 20px; }
    .resources-page .resources-hero-note strong { font-size: 13px; }
    .resources-page .resources-hero-note small { font-size: 11px; }
    .resources-page .resources-intro { padding: 34px 0 26px; }
    .resources-page .resources-intro-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .resources-page .resources-intro h2,
    .resources-page .resources-section-heading h2 { font-size: 26px; }
    .resources-page .resources-intro-inner > p { font-size: 14px; }
    .resources-page .resources-library { padding: 31px 0 48px; }
    .resources-page .resources-section-heading { align-items: stretch; flex-direction: column; gap: 18px; }
    .resources-page .resources-section-heading p { font-size: 13px; }
    .resources-page .resources-search-wrap { width: 100%; }
    .resources-page .resources-filters { gap: 7px; margin: 21px 0 18px; }
    .resources-page .resources-filter { min-height: 35px; padding: 7px 11px; font-size: 12px; }
    .resources-page .resources-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .resources-page .resource-card-top { min-height: 155px; }
    .resources-page .resource-document-icon { top: 42px; }
    .resources-page .resource-card-body { padding: 17px; }
    .resources-page .resource-card h3 { font-size: 17px; }
    .resources-page .resource-card-body > p { margin-bottom: 15px; font-size: 13px; }
    .resources-page .resources-disclaimer { font-size: 12px; }
    .resources-page .resources-help { padding-bottom: 48px; }
    .resources-page .resources-help-panel { align-items: flex-start; flex-wrap: wrap; gap: 15px; padding: 22px 19px; }
    .resources-page .resources-help-symbol { width: 42px; height: 42px; flex-basis: 42px; font-size: 22px; }
    .resources-page .resources-help-copy { flex: 1 1 calc(100% - 58px); }
    .resources-page .resources-help h2 { font-size: 23px; }
    .resources-page .resources-help-copy p { font-size: 13px; }
    .resources-page .resources-button-light { width: 100%; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    .resources-page *,
    .resources-page *::before,
    .resources-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
