/* ═══════════════════════════════════════════════
   SINGLE ARTICLE — CDTT76
   Palette : --navy #0D2A6B | --red #D4192C | --light #F4F6FB
   ═══════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────── */
:root {
    --navy:        #0D2A6B;
    --navy-light:  #1a3a85;
    --red:         #D4192C;
    --red-hover:   #b8152b;
    --light:       #F4F6FB;
    --border:      #e2e6f0;
    --text:        #1a1a2e;
    --muted:       #6b7280;
    --white:       #ffffff;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(13, 42, 107, .10);
    --shadow-lg:   0 12px 48px rgba(13, 42, 107, .16);
    --transition:  .25s ease;
}

/* ── Layout helpers ──────────────────────────── */
.single-news .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.article-hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}

/* Avec image de couverture */
.article-hero.has-cover {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

/* Sans image */
.article-hero.no-cover {
    padding: 72px 0 56px;
}

.article-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.article-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 42, 107, .92) 0%,
        rgba(13, 42, 107, .55) 50%,
        rgba(13, 42, 107, .20) 100%
    );
}

.article-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.article-hero__content {
    max-width: 760px;
    padding: 48px 0 52px;
}

/* Badge catégorie */
.article-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background var(--transition);
}

.article-badge:hover { background: var(--red-hover); }

.article-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    color: var(--white);
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .88rem;
    color: rgba(255,255,255,.75);
}

.article-hero__date,
.article-hero__author {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════════
   BODY — layout 2 colonnes
   ═══════════════════════════════════════════════ */
.article-body {
    padding: 56px 0 64px;
    background: var(--light);
}

.article-body__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── Contenu éditorial ───────────────────────── */
.article-body__content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 48px;
}

/* Prose */
.article-prose {
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--text);
}

.article-prose h2,
.article-prose h3 {
    color: var(--navy);
    font-weight: 700;
    margin-top: 2em;
}

.article-prose h2 { font-size: 1.45rem; }
.article-prose h3 { font-size: 1.2rem; }

.article-prose p { margin-bottom: 1.2em; }

.article-prose a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-prose img {
    width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-prose blockquote {
    border-left: 4px solid var(--red);
    margin: 1.5em 0;
    padding: 12px 24px;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--navy);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tags__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: 4px;
}

.article-tag {
    font-size: .8rem;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--navy);
    text-decoration: none;
    transition: all var(--transition);
}

.article-tag:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Partage */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.article-share__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
}

.article-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition);
}

.article-share__btn--fb {
    background: #1877f2;
    color: var(--white);
}

.article-share__btn--fb:hover { background: #0f5ec9; }

.article-share__btn--tw {
    background: #000;
    color: var(--white);
}

.article-share__btn--tw:hover { background: #333; }

/* Retour */
.article-nav {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ── Sidebar ─────────────────────────────────── */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.sidebar-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.sidebar-card__text {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.55;
}

/* Mini liste articles sidebar */
.sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sidebar-post__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.sidebar-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.sidebar-post__thumb:hover img { transform: scale(1.05); }

.sidebar-post__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-post__date {
    font-size: .72rem;
    color: var(--muted);
}

.sidebar-post__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.3;
    transition: color var(--transition);
}

.sidebar-post__title:hover { color: var(--red); }

/* ═══════════════════════════════════════════════
   SECTION AUTRES ACTUALITÉS
   ═══════════════════════════════════════════════ */
.related-news {
    padding: 72px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

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

/* Card */
.related-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.related-card:hover .related-card__img-wrap img { transform: scale(1.04); }

.related-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.related-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.related-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-card__date {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.related-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.related-card__title a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

.related-card__title a:hover { color: var(--red); }

.related-card__excerpt {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

/* ═══════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--sm { font-size: .82rem; padding: 7px 16px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .article-body__layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .article-body__content {
        padding: 24px 20px;
    }
    .article-hero__content {
        padding: 36px 0 40px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-hero.has-cover {
        min-height: 340px;
    }
}