:root {
    --brand-red:   #c0392b;
    --brand-dark:  #1a1a2e;
    --card-radius: .75rem;
    --img-height:  220px;
}

/* ── Corps ────────────────────────────────────────────────── */
body {
    background: #f4f6f8;
    color: #222;
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-brand { font-size: 1.25rem; letter-spacing: -.3px; }
.navbar { background: var(--brand-dark) !important; }

/* ── Hero / intro ─────────────────────────────────────────── */
.site-intro {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
    border-left: 45px solid transparent;
    border-image: linear-gradient(to bottom, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ED2939 66.66%) 1;
}
@media (max-width: 767px) {
    .site-intro {
        border-left: none;
        border-top: 6px solid transparent;
        border-image: linear-gradient(to right, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ED2939 66.66%) 1;
    }
}
.site-intro h1 { font-size: 2rem; font-weight: 700; }
.site-intro p   { opacity: .8; max-width: 640px; margin: .5rem auto 0; }

/* ── Cards article ────────────────────────────────────────── */
.article-card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.article-card .card-img-top {
    height: var(--img-height);
    object-fit: cover;
}
.article-card .card-img-placeholder {
    height: var(--img-height);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 3rem;
}
.article-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card .card-title { font-weight: 700; font-size: 1.05rem; }
.article-card .card-text  {
    flex: 1;
    color: #555;
    font-size: .9rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.article-card .btn-read {
    align-self: flex-start;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: .4rem;
    padding: .35rem .9rem;
    font-size: .875rem;
    text-decoration: none;
    transition: background .2s;
    margin-top: auto;
}
.article-card .btn-read:hover { background: #a93226; }

/* ── Page article ─────────────────────────────────────────── */
.article-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--card-radius);
    margin-bottom: .5rem;
}
.article-caption {
    font-size: .82rem;
    color: #777;
    margin-bottom: 1.5rem;
}
.article-content { font-size: 1.05rem; }
.article-content img { max-width: 100%; border-radius: .5rem; }
.article-content p   { margin-bottom: 1.2rem; }

/* ── Badges statut ────────────────────────────────────────── */
.badge-draft     { background: #ffc107; color: #000; }
.badge-published { background: #198754; }

/* ── Admin table ──────────────────────────────────────────── */
.admin-table th { background: var(--brand-dark); color: #fff; }

/* ── Login ────────────────────────────────────────────────── */
.login-card { max-width: 400px; margin: 4rem auto; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination .page-link { color: var(--brand-red); }
.pagination .page-item.active .page-link {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}