/* =========================================================
   ACTUALITES.HTML — HERO DARK + COURBE + LISTE NEWS
   A charger APRES assets/css/styles.css
   ========================================================= */

:root {
    --brand: #0B0F14;
    --accent: #DC2626;
    --accent-2: #991B1B;
    --ink: #0B0F14;
    --muted: #6B7280;
    --soft: #f5f6f8;
    --radius: 14px;
}

/* Base */
body {
    background: #fff;
    color: var(--ink);
}

.page-content {
    background: transparent;
}

/* Navbar hover */
.navbar .nav-link:hover {
    color: var(--accent) !important;
}

/* =========================================================
   HERO (page-header) : dark + courbe (même hauteur index)
   ========================================================= */

.page-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(1200px 600px at 15% 20%, rgba(225,29,72,.25), transparent 55%), radial-gradient(900px 500px at 85% 30%, rgba(0,0,0,.55), transparent 55%), linear-gradient(180deg, #05070A, var(--brand));
    min-height: 400px;
    display: flex;
    align-items: flex-start; /* contenu en haut */
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
    .page-header {
        min-height: 400px;
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

@media (min-width: 1200px) {
    .page-header {
        min-height: 400px;
    }
}

/* Breadcrumb + textes */
.page-header .breadcrumb,
.page-header .breadcrumb a {
    color: rgba(255,255,255,.75);
}

    .page-header .breadcrumb a:hover {
        color: #fff;
    }

    .page-header .breadcrumb .active {
        color: #fff;
    }

.page-title {
    color: #fff;
}

.page-header .text-muted {
    color: rgba(255,255,255,.72) !important;
}

/* Bouton hero */
.page-header .btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

    .page-header .btn-primary:hover {
        background: var(--accent-2) !important;
        border-color: var(--accent-2) !important;
    }

/* Courbe vers fond gris clair (section soft) */
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,48 C240,80 480,80 720,48 C960,16 1200,16 1440,48 L1440,80 L0,80 Z' fill='%23f5f6f8'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* =========================================================
   MAIN : fond gris clair (comme index alternance)
   ========================================================= */

main.section {
    background: var(--soft);
    border-top: 1px solid rgba(15,23,42,.06);
    padding: 4rem 0;
}

/* Panel / filtres */
.panel {
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

/* Inputs */
.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
    border-color: rgba(15,23,42,.12);
}

.input-group .input-group-text {
    border-right: 0;
}

.input-group .form-control {
    border-left: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(220,38,38,.55);
    box-shadow: 0 0 0 .2rem rgba(220,38,38,.12);
}

/* Boutons (rouge) */
main.section .btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

    main.section .btn-primary:hover {
        background: var(--accent-2) !important;
        border-color: var(--accent-2) !important;
    }

main.section .btn-outline-primary {
    color: var(--accent) !important;
    border-color: rgba(220,38,38,.55) !important;
}

    main.section .btn-outline-primary:hover {
        background: rgba(220,38,38,.08) !important;
        border-color: rgba(220,38,38,.75) !important;
    }

/* =========================================================
   News cards (image + fallback + hover)
   ========================================================= */

.news-card {
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
    overflow: hidden;
    background: #fff;
}

    .news-card:hover {
        transform: translateY(-2px);
        transition: transform .18s ease, box-shadow .18s ease;
        box-shadow: 0 14px 34px rgba(2,6,23,.10);
    }

.news-img-wrap {
    position: relative;
    background: rgba(17,24,39,.04);
    border-bottom: 1px solid rgba(15,23,42,.08);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback si image manquante */
.news-img-fallback .news-img {
    display: none;
}

.news-img-fallback-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: rgba(15,23,42,.55);
    font-weight: 600;
}

/* Typo */
.text-muted {
    color: var(--muted) !important;
}

/* Empty state */
#nempty {
    border-radius: var(--radius);
}
