:root {
    --resources-cream: #fbf4ee;
    --resources-cream-2: #fff9f5;
    --resources-white: #ffffff;
    --resources-ink: #172b50;
    --resources-text: #203967;
    --resources-muted: #5f6e87;
    --resources-blue: #4454e8;
    --resources-blue-dark: #3344c8;
    --resources-blue-soft: #eef0ff;
    --resources-teal: #41997f;
    --resources-teal-dark: #327b67;
    --resources-teal-soft: #eaf6f1;
    --resources-line: rgba(32, 57, 103, 0.12);
    --resources-shadow: 0 18px 45px rgba(32, 57, 103, 0.09);
    --resources-shell: min(1240px, calc(100% - 48px));
}

body {
    color: var(--resources-ink);
    background: var(--resources-cream);
    font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

body .shell,
body .hero-content {
    width: var(--resources-shell);
    max-width: none;
}

.blog-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    padding: 78px 0 86px;
    color: var(--resources-ink);
    background:
        radial-gradient(circle at 88% 18%, rgba(68, 84, 232, 0.13), transparent 25%),
        radial-gradient(circle at 74% 82%, rgba(65, 153, 127, 0.12), transparent 24%),
        linear-gradient(125deg, #fffaf6 0%, #fbf4ee 55%, #f1f1ff 100%);
}

.blog-hero::before {
    display: block;
    inset: 42px max(24px, calc((100vw - 1240px) / 2)) auto auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(68, 84, 232, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.blog-hero::after {
    display: block;
    inset: auto auto -120px -90px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(65, 153, 127, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: block;
    margin-inline: auto;
    text-align: left;
}

.kicker {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 5px 11px;
    border: 1px solid rgba(68, 84, 232, 0.16);
    border-radius: 999px;
    background: var(--resources-blue-soft);
    color: var(--resources-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.kicker::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--resources-blue);
    box-shadow: 0 0 0 4px rgba(68, 84, 232, 0.1);
}

.blog-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--resources-ink);
    font-family: "Manrope", Inter, sans-serif;
    font-size: clamp(44px, 5.4vw, 72px);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.blog-hero h1 em {
    color: var(--resources-blue);
    font-style: normal;
}

.hero-desc {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--resources-muted);
    font-size: 18px;
    line-height: 1.62;
}

.resource-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.resource-topics li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--resources-text);
    font-size: 13px;
    font-weight: 750;
}

.resource-topics li::before {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--resources-teal);
    content: "✓";
    font-size: 11px;
    font-weight: 900;
}

.blog-main,
.content-band {
    background: var(--resources-cream);
}

.content-band {
    padding: 68px 0 100px;
}

.resources-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
    align-items: end;
    gap: 48px;
    margin-bottom: 34px;
}

.resources-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--resources-teal-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.resources-heading h2 {
    margin: 0;
    color: var(--resources-ink);
    font-family: "Manrope", Inter, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.resources-heading p {
    margin: 0;
    color: var(--resources-muted);
    font-size: 15px;
    line-height: 1.65;
}

.toolbar {
    align-items: center;
    gap: 18px;
    margin: 0 0 34px;
    padding: 14px;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(32, 57, 103, 0.05);
}

.filters-pills {
    gap: 7px;
}

.filter-pill {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--resources-line);
    border-radius: 999px;
    color: var(--resources-text);
    background: var(--resources-white);
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.filter-pill:hover,
.filter-pill.is-active {
    border-color: var(--resources-blue);
    color: #fff;
    background: var(--resources-blue);
    box-shadow: 0 8px 18px rgba(68, 84, 232, 0.16);
    transform: none;
}

.search-wrapper {
    width: min(100%, 300px);
    max-width: none;
    border: 1px solid var(--resources-line);
    border-radius: 7px;
    background: var(--resources-white);
}

.search-wrapper:focus-within {
    border-color: rgba(68, 84, 232, 0.48);
    box-shadow: 0 0 0 4px rgba(68, 84, 232, 0.09);
}

.search-input {
    height: 44px;
    border: 0;
    border-radius: inherit;
    color: var(--resources-ink);
    background: transparent;
    box-shadow: none;
}

.search-wrapper svg {
    color: var(--resources-blue);
}

.grid-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.blog-card {
    min-height: 500px;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    color: var(--resources-ink);
    background: var(--resources-white);
    box-shadow: 0 12px 30px rgba(32, 57, 103, 0.06);
}

.blog-card::before {
    display: none;
}

.blog-card:hover {
    border-color: rgba(68, 84, 232, 0.22);
    box-shadow: var(--resources-shadow);
    transform: translateY(-4px);
}

.card-img-wrapper {
    height: 224px;
    aspect-ratio: auto;
    background: var(--resources-blue-soft);
}

.card-body {
    min-height: 276px;
    padding: 24px;
    background: var(--resources-white);
}

.card-meta {
    margin-bottom: 16px;
}

.card-tag,
.reader-meta .card-tag {
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(68, 84, 232, 0.13);
    border-radius: 999px;
    color: var(--resources-blue-dark);
    background: var(--resources-blue-soft);
    font-size: 10px;
    font-weight: 850;
}

.card-tag.tag-financement {
    border-color: rgba(65, 153, 127, 0.14);
    color: var(--resources-teal-dark);
    background: var(--resources-teal-soft);
}

.card-tag.tag-pedagogie {
    border-color: rgba(255, 174, 115, 0.22);
    color: #a6572a;
    background: #fff0e7;
}

.card-time {
    color: var(--resources-muted);
    font-size: 11px;
    font-weight: 700;
}

.card-title {
    margin: 0;
    color: var(--resources-ink);
    font-family: "Manrope", Inter, sans-serif;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.card-desc {
    margin: 14px 0 22px;
    color: var(--resources-muted);
    font-size: 14px;
    line-height: 1.55;
}

.card-footer {
    color: var(--resources-muted);
    border-top: 1px solid var(--resources-line);
}

.card-author {
    color: var(--resources-text);
    font-weight: 800;
}

.reader-layout {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    background: var(--resources-white);
    box-shadow: var(--resources-shadow);
}

.reader-header,
.reader-content {
    padding-right: clamp(24px, 7vw, 76px);
    padding-left: clamp(24px, 7vw, 76px);
}

.reader-header {
    padding-top: 48px;
}

.reader-title,
.reader-content h2,
.reader-content h3 {
    color: var(--resources-ink);
    font-family: "Manrope", Inter, sans-serif;
}

.reader-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.04;
}

.reader-back {
    border: 1px solid var(--resources-line);
    border-radius: 7px;
    color: var(--resources-blue-dark);
    background: var(--resources-blue-soft);
}

.reader-cover {
    width: calc(100% - clamp(48px, 14vw, 152px));
    border-radius: 7px;
}

.reader-content {
    color: #40516d;
}

.no-results {
    color: var(--resources-muted);
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resources-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    body .shell,
    body .hero-content {
        width: calc(100% - 32px);
    }

    .blog-hero {
        min-height: 0;
        padding: 54px 0 58px;
        background:
            radial-gradient(circle at 95% 12%, rgba(68, 84, 232, 0.13), transparent 28%),
            linear-gradient(145deg, #fffaf6 0%, #fbf4ee 62%, #f1f1ff 100%);
    }

    .blog-hero::before {
        top: 22px;
        right: -120px;
        width: 230px;
        height: 230px;
    }

    .blog-hero::after {
        display: none;
    }

    .kicker {
        margin-bottom: 18px;
    }

    .blog-hero h1 {
        font-size: clamp(38px, 11vw, 48px);
        line-height: 1.02;
        letter-spacing: -0.05em;
    }

    .hero-desc {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.58;
    }

    .resource-topics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        margin-top: 24px;
    }

    .content-band {
        padding: 48px 0 72px;
    }

    .resources-heading {
        margin-bottom: 26px;
    }

    .resources-heading h2 {
        font-size: 34px;
    }

    .toolbar {
        align-items: stretch;
        margin-bottom: 26px;
        padding: 12px;
    }

    .filters-pills {
        flex-wrap: nowrap;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filters-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        flex: 0 0 auto;
    }

    .search-wrapper {
        width: 100%;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card {
        min-height: 0;
    }

    .card-img-wrapper {
        height: 205px;
    }

    .card-body {
        min-height: 270px;
        padding: 22px;
    }

    .card-title {
        font-size: 24px;
    }

    .reader-header {
        padding-top: 30px;
    }

    .reader-title {
        font-size: 34px;
    }
}

/* Hero aligned exactly with the shared inner-page introduction. */
.blog-hero {
    min-height: 0;
    padding: clamp(52px, 7vw, 86px) 0 42px;
    text-align: center;
    background: transparent;
}

.blog-hero::before {
    top: -110px;
    right: -70px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(68, 84, 232, 0.12);
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 54px rgba(68, 84, 232, 0.025);
}

.blog-hero::after {
    right: auto;
    bottom: -120px;
    left: -95px;
    width: 250px;
    height: 250px;
    border: 0;
    border-radius: 50%;
    background: rgba(65, 153, 127, 0.06);
}

.blog-hero .hero-content,
body .blog-hero .hero-content {
    width: min(850px, calc(100% - 48px));
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.kicker {
    min-height: 29px;
    margin: 0 0 14px;
    padding: 4px 11px;
    border-color: rgba(65, 153, 127, 0.18);
    background: rgba(255, 255, 255, 0.76);
    color: var(--resources-teal-dark);
    font-size: 10px;
    letter-spacing: 0.07em;
}

.kicker::before {
    background: var(--resources-teal);
    box-shadow: 0 0 0 4px rgba(65, 153, 127, 0.11);
}

.blog-hero h1 {
    max-width: 820px;
    margin: 0 auto;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-desc {
    max-width: 720px;
    margin: 19px auto 0;
    font-size: 17px;
    line-height: 1.6;
    text-wrap: balance;
}

.resource-topics {
    width: max-content;
    max-width: 100%;
    justify-content: center;
    gap: 24px;
    margin: 24px auto 0;
}

.resource-topics li {
    font-size: 12px;
    font-weight: 740;
}

.resource-topics li::before {
    width: 21px;
    height: 21px;
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 43px 0 38px;
        background: transparent;
    }

    .blog-hero .hero-content,
    body .blog-hero .hero-content {
        width: calc(100% - 32px);
    }

    .blog-hero::before {
        top: -150px;
        right: -150px;
        width: 300px;
        height: 300px;
    }

    .blog-hero::after {
        display: block;
        bottom: -165px;
        left: -145px;
    }

    .blog-hero h1 {
        font-size: clamp(39px, 11vw, 48px);
    }

    .hero-desc {
        font-size: 16px;
    }

    .resource-topics {
        display: flex;
        justify-content: center;
        gap: 10px 18px;
    }
}
