/* ══════════════════════════════════════════════════════════════════
   FLASH ACTUALITÉS — styles frontend
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --news-acc:    #f59e0b;
    --news-dark:   #d97706;
    --news-light:  #fef3c7;
    --news-rgb:    245,158,11;
}

/* ══ HERO ══════════════════════════════════════════════════════════ */
.news-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(245,158,11,.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 80% 30%, rgba(212,47,47,.08) 0%, transparent 70%);
}
.news-hero .container { position: relative; z-index: 1; }

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.5rem;
}
.hero-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--news-acc); }

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    color: var(--news-acc);
    padding: .4rem 1rem;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1.2rem;
}
.news-hero-badge .blink {
    width: 7px; height: 7px;
    background: var(--news-acc);
    border-radius: 50%;
    animation: blink-pulse 1.4s ease-in-out infinite;
}
@keyframes blink-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.3; transform:scale(.7); }
}

.news-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.1;
}
.news-hero h1 span { 
    color: var(--news-acc);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.3); 
}

.news-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    max-width: 540px;
    line-height: 1.6;
}

/* ══ GRILLE NEWS ════════════════════════════════════════════════════ */
.news-section {
    padding: 4rem 0 6rem;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2.5rem;
}

/* ── Carte ── */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    position: relative;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

/* Image */
.news-card-img {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    background: #f1f5f9;
}
.news-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.06);
    transition: filter .4s, transform .4s;
}
.news-card:hover .news-card-img img {
    filter: blur(0px);
    transform: scale(1.04);
}

/* Badges sur l'image */
.news-card-badges {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.badge-cat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(15,23,42,.75);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: .28rem .75rem;
    border-radius: 20px;
    font-size: .73rem;
    font-weight: 700;
    width: fit-content;
}
.badge-new {
    background: var(--news-acc);
    color: #fff;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    width: fit-content;
}

/* Compte à rebours sur l'image */
.news-card-countdown {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15,23,42,.85));
    padding: 1.5rem .85rem .55rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .77rem;
    color: rgba(255,255,255,.85);
}
.news-card-countdown i { color: var(--news-acc); }
.countdown-value {
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.countdown-expired { color: rgba(255,255,255,.5); font-style: italic; }

/* Contenu */
.news-card-body {
    padding: 1.1rem 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 .5rem;
    line-height: 1.35;
}
.news-card-desc {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid #f1f5f9;
    font-size: .76rem;
    color: #94a3b8;
}
.news-card-footer .expire-date {
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ── Barre de progression temporelle ── */
.news-progress-bar {
    height: 3px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.news-progress-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--news-acc), var(--news-dark));
    transition: width .5s;
}

/* ══ ÉTAT VIDE ══════════════════════════════════════════════════════ */
.news-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #94a3b8;
}
.news-empty-icon {
    width: 80px; height: 80px;
    background: var(--news-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--news-acc);
}
.news-empty h3 { font-size: 1.2rem; color: #475569; margin-bottom: .5rem; }
.news-empty p  { font-size: .9rem; }

/* ══ CTA BAS DE PAGE ════════════════════════════════════════════════ */
.news-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 4rem 0;
    text-align: center;
}
.news-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
}
.news-cta p { color: rgba(255,255,255,.6); margin-bottom: 1.8rem; font-size: 1rem; }
.news-cta .btn-acc {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--news-acc);
    color: #fff;
    padding: .85rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.news-cta .btn-acc:hover { background: var(--news-dark); transform: translateY(-2px); }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .news-hero { padding: 3.5rem 0 2.5rem; }
    .news-grid  { grid-template-columns: 1fr; gap: 1.2rem; }
    .news-section { padding: 2.5rem 0 4rem; }
}
