/* Styles extraits de page-school-news.php — servis en fichier cacheable (voir colibris_enqueue_template_css). */

/* ══════════════════════════════════════════════════════════════
   PAGE ACTUALITÉS, scoped under .sn- (school-news)
══════════════════════════════════════════════════════════════ */

html, body, #page, .ast-container, .site-content, #content, .entry-content {
    background-color: #faf7f2 !important;
}

/* ── 1. HERO ─────────────────────────────────────────────────── */

/* ── 2. INTRO ─────────────────────────────────────────────────── */
.sn-intro {
    padding: 56px 24px 52px;
    background: #faf7f2;
    border-bottom: 1px solid #f0ede8;
}

.sn-intro__inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.sn-intro__text {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.85;
    color: #6b6460;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.sn-intro__text em {
    font-style: normal;
    color: #1a1612;
    font-weight: 600;
}

/* ── 3. FEATURED ─────────────────────────────────────────────── */
.sn-featured {
    padding: 72px 24px;
    background: #faf8f5;
    border-bottom: 1px solid #f0ede8;
}

.sn-featured__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.sn-featured__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    color: #fff;
    background: #009C8E;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,156,142,0.25);
}

.sn-featured__label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: sn-pulse 2s ease-in-out infinite;
}

@keyframes sn-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.3); }
}

.sn-featured__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(26,22,18,0.06);
    text-decoration: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.sn-featured__card:hover {
    box-shadow: 0 12px 48px rgba(26,22,18,0.1);
    transform: translateY(-3px);
}

.sn-featured__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e3dc;
    position: relative;
}

.sn-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sn-featured__card:hover .sn-featured__image img {
    transform: scale(1.04);
}

.sn-featured__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #f0ece6 0%, #e4ddd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-featured__body {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sn-featured__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.sn-featured__cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #BA078C;
    background: rgba(186,7,140,0.07);
    padding: 5px 12px;
    border-radius: 20px;
}

.sn-featured__date {
    font-size: 0.8rem;
    color: #a09892;
    font-weight: 500;
}

.sn-featured__title {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    color: #1a1612;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-featured__excerpt {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #6b6460;
    margin: 0 0 36px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #1a1612;
    border-bottom: 2px solid #1a1612;
    padding-bottom: 3px;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
    text-decoration: none;
}

.sn-featured__card:hover .sn-featured__cta {
    color: #009C8E;
    border-color: #009C8E;
    gap: 16px;
}

/* ── 3b. FILTER BAR ─────────────────────────────────────────── */
.pill-nav.sn-filter {
    padding: 16px 24px;
    background: #faf7f2;
}

.sn-filter__active-label {
    font-size: 0.78rem;
    color: #a09892;
    display: flex;
    align-items: center;
    padding: 0 8px;
}
.sn-filter__active-label strong { color: #1a1612; font-weight: 700; }

/* ── 4. GRID ─────────────────────────────────────────────────── */
.sn-grid {
    padding: 72px 24px 96px;
    background: #faf7f2;
}

.sn-grid__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.sn-grid__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 48px;
    border-bottom: 1px solid #f0ede8;
    padding-bottom: 24px;
}

.sn-grid__title {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: #1a1612;
    margin: 0;
    letter-spacing: -0.02em;
}

.sn-grid__count {
    font-size: 0.8rem;
    color: #a09892;
    font-weight: 500;
}

.sn-grid__posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Card ─────────────────────────────────────────────────────── */
.sn-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(26,22,18,0.05);
    border: 1px solid #f0ede8;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sn-card:hover {
    box-shadow: 0 8px 36px rgba(26,22,18,0.1);
    transform: translateY(-4px);
}

.sn-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0ece6;
    position: relative;
    flex-shrink: 0;
}

.sn-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sn-card:hover .sn-card__image img {
    transform: scale(1.05);
}

.sn-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f5f0 0%, #ede8e2 100%);
}

.sn-card__body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sn-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sn-card__cat {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #BA078C;
    background: rgba(186,7,140,0.07);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sn-card__date {
    font-size: 0.75rem;
    color: #b0a8a0;
    font-weight: 500;
}

.sn-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1a1612;
    line-height: 1.35;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.sn-card:hover .sn-card__title {
    color: #009C8E;
}

.sn-card__excerpt {
    font-size: 0.84rem;
    line-height: 1.7;
    color: #8a8078;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Empty state ──────────────────────────────────────────────── */
.sn-empty {
    grid-column: 1 / -1;
    padding: 80px 24px;
    text-align: center;
}

.sn-empty__icon {
    font-size: 3rem;
    margin-bottom: 24px;
    opacity: .5;
}

.sn-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1612;
    margin: 0 0 12px;
}

.sn-empty__text {
    font-size: 0.9rem;
    color: #9a8f87;
    margin: 0;
}

/* ── 5. PAGINATION ────────────────────────────────────────────── */
.sn-pagination {
    padding: 0 24px 80px;
    background: #faf7f2;
}

.sn-pagination__inner {
    max-width: 1160px;
    margin: 0 auto;
    border-top: 1px solid #f0ede8;
    padding-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sn-pagination__inner .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b6460;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.sn-pagination__inner .page-numbers:hover {
    border-color: #ede8e2;
    color: #1a1612;
    background: #faf8f5;
}

.sn-pagination__inner .page-numbers.current {
    background: #1a1612;
    color: #fff;
    border-color: #1a1612;
}

.sn-pagination__inner .page-numbers.prev,
.sn-pagination__inner .page-numbers.next {
    width: auto;
    padding: 0 20px;
    border-radius: 50px;
    border-color: #ede8e2;
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.sn-pagination__inner .page-numbers.prev:hover,
.sn-pagination__inner .page-numbers.next:hover {
    background: #1a1612;
    border-color: #1a1612;
    color: #fff;
}

.sn-pagination__inner .page-numbers.dots {
    border: none;
    color: #c8bfb6;
    cursor: default;
}

/* ── 6. CTA ───────────────────────────────────────────────────── */
.sn-cta {
    padding: 88px 24px;
    background: linear-gradient(160deg, #faf8f5 0%, #fff 100%);
    border-top: 1px solid #f0ede8;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .sn-grid__posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .sn-featured__card {
        grid-template-columns: 1fr;
    }

    .sn-featured__image {
        aspect-ratio: 16 / 7;
    }

    .sn-featured__body {
        padding: 40px 40px;
    }
}

@media (max-width: 640px) {
    .sn-hero { min-height: 340px; }
    .sn-hero__body { padding: 60px 20px 48px; }

    .sn-grid__posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sn-grid__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sn-featured__body { padding: 32px 28px; }

    .sn-pagination__inner .page-numbers.prev span,
    .sn-pagination__inner .page-numbers.next span {
        display: none;
    }
}

/* Séparateurs visuels entre axes (école | type | vues) */
.sn-filter__pill--view-first, .sn-filter__pill--type-first { margin-left: 14px; position: relative; }
.sn-filter__pill--view-first::before, .sn-filter__pill--type-first::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: #e0dad2; }
.sn-filter__pill--view.pill-nav__pill--active { background: #1a1612; border-color: #1a1612; color: #fff; }
@media (max-width: 640px) {
    .sn-filter__pill--view-first, .sn-filter__pill--type-first { margin-left: 8px; }
    .sn-filter__pill--view-first::before, .sn-filter__pill--type-first::before { left: -8px; }
}
