/* ============================================
   ACTUALITÉS SECTION - SOCIAL FEED STYLE 2026
   Glassmorphism + Instagram/TikTok vibes
   ============================================ */

/* --- Section Container --- */
.actualites-section-2026 {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background-color: var(--actu-bg, #0a0a0a);
}

.actualites-section-2026::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(212, 160, 23, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* --- Article Cards Base --- */
.actu-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--actu-card-bg, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.actu-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 160, 23, 0.08);
    border-color: rgba(212, 160, 23, 0.2);
}

/* --- Card Image --- */
.actu-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
}

.actu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.actu-card:hover .actu-card-image img {
    transform: scale(1.05);
}

.actu-card-image .actu-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    color: rgba(212, 160, 23, 0.3);
    font-size: 3rem;
}

/* Gradient overlay on image bottom */
.actu-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Read overlay on hover */
.actu-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.actu-card:hover .actu-card-overlay {
    opacity: 1;
}

.actu-card-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 160, 23, 0.9);
    color: #0a0a0a;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.actu-card:hover .actu-card-overlay span {
    transform: translateY(0);
}

/* --- Card Content --- */
.actu-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.actu-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--actu-text, #cccccc);
    opacity: 0.6;
}

.actu-card-meta i {
    color: var(--actu-accent, #D4A017);
    font-size: 0.7rem;
}

.actu-card-meta .actu-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.actu-card-meta .actu-reading-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.actu-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--actu-title, #ffffff);
    margin: 0 0 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.actu-card:hover .actu-card-title {
    color: var(--actu-accent, #D4A017);
}

.actu-card-excerpt {
    font-size: 0.9rem;
    color: var(--actu-text, #cccccc);
    opacity: 0.7;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.actu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.actu-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--actu-accent, #D4A017);
    transition: gap 0.3s ease;
}

.actu-card:hover .actu-read-more {
    gap: 0.75rem;
}

/* --- LAYOUT: Feed Social (1 hero + grid) --- */
.actu-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.actu-feed-grid .actu-card-hero {
    grid-column: 1 / -1;
}

.actu-card-hero .actu-card {
    flex-direction: row;
    min-height: 380px;
}

.actu-card-hero .actu-card-image {
    width: 55%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.actu-card-hero .actu-card-content {
    padding: 2rem;
    justify-content: center;
}

.actu-card-hero .actu-card-title {
    font-size: 1.6rem;
    -webkit-line-clamp: 3;
}

.actu-card-hero .actu-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 1rem;
}

/* Hero badge */
.actu-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(212, 160, 23, 0.15);
    color: var(--actu-accent, #D4A017);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

/* --- LAYOUT: Grid Uniforme --- */
.actu-uniform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* --- LAYOUT: Masonry / Bento --- */
.actu-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.actu-masonry-grid .actu-card-item:first-child {
    grid-row: span 2;
}

.actu-masonry-grid .actu-card-item:first-child .actu-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 250px;
}

.actu-masonry-grid .actu-card-item:first-child .actu-card {
    height: 100%;
}

.actu-masonry-grid .actu-card-item:first-child .actu-card-title {
    font-size: 1.4rem;
}

/* --- Empty State --- */
.actu-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.actu-empty-state i {
    font-size: 3rem;
    color: var(--actu-accent, #D4A017);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.actu-empty-state p {
    color: var(--actu-text, #cccccc);
    opacity: 0.5;
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .actu-feed-grid,
    .actu-uniform-grid,
    .actu-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actu-card-hero .actu-card {
        flex-direction: column;
        min-height: auto;
    }

    .actu-card-hero .actu-card-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .actu-card-hero .actu-card-title {
        font-size: 1.3rem;
    }

    .actu-masonry-grid .actu-card-item:first-child {
        grid-row: span 1;
        grid-column: 1 / -1;
    }

    .actu-masonry-grid .actu-card-item:first-child .actu-card {
        flex-direction: row;
    }

    .actu-masonry-grid .actu-card-item:first-child .actu-card-image {
        width: 45%;
        min-height: unset;
    }
}

@media (max-width: 767px) {
    .actualites-section-2026 {
        padding: 3rem 0;
    }

    .actu-feed-grid,
    .actu-uniform-grid,
    .actu-masonry-grid {
        grid-template-columns: 1fr;
    }

    .actu-feed-grid .actu-card-hero {
        grid-column: 1;
    }

    .actu-card-hero .actu-card-content {
        padding: 1.5rem;
    }

    .actu-card-hero .actu-card-title {
        font-size: 1.2rem;
    }

    .actu-masonry-grid .actu-card-item:first-child .actu-card {
        flex-direction: column;
    }

    .actu-masonry-grid .actu-card-item:first-child .actu-card-image {
        width: 100%;
    }

    .actu-card-title {
        font-size: 1.05rem;
    }
}

/* --- Animations --- */
@keyframes actu-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.actu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.actu-card:hover::after {
    opacity: 1;
}
