/* Bright, spacious editorial layout inspired by Propbinder's News page. */
:root {
    --news-bg: #f6f7f8;
    --news-ink: #221a4c;
    --news-muted: #64677a;
    --news-line: #e3e6eb;
    --news-violet: #c6cbff;
    --news-mint: #d9fab1;
    --news-blue: #dfe4ff;
    --news-lilac: #d7d9ff;
}

body { background: var(--news-bg); }

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 58px;
    color: var(--news-ink);
    background: radial-gradient(circle at 92% 22%, rgba(107, 95, 245, 0.12), transparent 24%), var(--news-bg);
}

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

.hero-content {
    width: min(100% - 48px, 1180px);
    display: block;
    margin: 0 auto;
    text-align: left;
}

.kicker {
    min-height: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6b5ff5;
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.09em;
}

.kicker::before { width: 8px; height: 8px; background: #6b5ff5; }

.blog-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--news-ink);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 650;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-desc {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--news-muted);
    font-size: 17px;
    line-height: 1.55;
}

.blog-main,
.content-band { background: var(--news-bg); }

.content-band { padding: 16px 0 96px; }

.toolbar {
    align-items: center;
    margin: 0 0 40px;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--news-line);
    border-bottom: 1px solid var(--news-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.filters-pills { gap: 8px; }

.filter-pill {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #d5d9df;
    border-radius: 999px;
    background: transparent;
    color: var(--news-ink);
    font-size: 12px;
    font-weight: 700;
}

.filter-pill.is-active,
.filter-pill:hover {
    border-color: var(--news-ink);
    background: var(--news-ink);
    color: #ffffff;
    box-shadow: none;
}

.search-wrapper {
    min-width: min(100%, 260px);
    border: 0;
    border-bottom: 1px solid #bfc5cf;
    border-radius: 0;
    background: transparent;
}

.search-wrapper:focus-within { border-color: var(--news-ink); box-shadow: none; }
.search-wrapper svg { color: var(--news-ink); }
.search-input { color: var(--news-ink); }
.search-input::placeholder { color: #858b98; }

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

.blog-card {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(34, 26, 76, 0.14);
    transform: translateY(-4px);
}

.card-img-wrapper {
    position: relative;
    display: block;
    height: 224px;
    overflow: hidden;
    background: var(--news-violet);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.blog-card:hover .card-img { transform: scale(1.04); }

.card-body {
    min-height: 256px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 26px 22px;
    background: #ffffff;
}

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

.card-tag,
.reader-meta .card-tag {
    border: 1px solid rgba(34, 26, 76, 0.16);
    border-radius: 999px;
    background: #f0efff;
    color: #5147c6;
    font-size: 11px;
    font-weight: 760;
}

.card-tag.tag-financement { background: #edf7dd; color: #4e7417; }
.card-tag.tag-pedagogie { background: #edf1ff; color: #4258b6; }

.card-time { color: rgba(34, 26, 76, 0.66); font-size: 11px; font-weight: 700; }

.card-title {
    margin: 0;
    color: var(--news-ink);
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.038em;
}

.card-desc {
    margin: 13px 0 0;
    color: rgba(34, 26, 76, 0.72);
    font-size: 14px;
    line-height: 1.48;
}

.card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 26, 76, 0.14);
    color: rgba(34, 26, 76, 0.68);
}

.card-author,
.card-date { font-size: 11px; font-weight: 700; }

.no-results {
    grid-column: 1 / -1;
    padding: 48px 0;
    color: var(--news-muted);
    text-align: center;
}

.reader-layout {
    max-width: 860px;
    margin: 36px auto 0;
    border: 0;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: none;
}

.reader-header,
.reader-content { padding-right: clamp(24px, 6vw, 72px); padding-left: clamp(24px, 6vw, 72px); }
.reader-header { padding-top: 48px; }

.reader-title {
    color: var(--news-ink);
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.052em;
}

.reader-back {
    border: 1px solid #d5d9df;
    border-radius: 999px;
    background: transparent;
    color: var(--news-ink);
}

.reader-cover {
    width: calc(100% - clamp(48px, 12vw, 144px));
    margin: 12px auto 0;
    border-radius: 5px;
}

.reader-content { color: #35394a; }
.reader-content h2,
.reader-content h3 { color: var(--news-ink); }

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

@media (max-width: 640px) {
    .blog-hero { padding: 58px 0 40px; }
    .hero-content { width: min(100% - 32px, 1180px); }
    .blog-hero h1 { font-size: 52px; }
    .hero-desc { margin-top: 18px; font-size: 15px; }
    .content-band { padding-top: 8px; }
    .toolbar { align-items: stretch; margin-bottom: 26px; padding: 14px 0; }
    .search-wrapper { width: 100%; }
    .grid-layout { grid-template-columns: 1fr; gap: 14px; }
    .blog-card { min-height: 0; }
    .card-img-wrapper { height: 208px; }
    .card-body { min-height: 250px; padding: 23px; }
    .card-title { font-size: 27px; }
}
