/*
 * Liste des actualités
 * Extrait de templates/public/news/list.html.twig : ce fichier remplace le bloc <style> que le
 * gabarit portait en ligne. Chargé via asset() (versionné par ASSETS_VERSION).
 */

.news-list-header {
    padding: 140px 0 50px;
    position: relative;
    overflow: hidden;
}

.news-list-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 85% 25%, rgba(72, 40, 179, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 10% 75%, rgba(112, 69, 225, 0.12) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.news-list-header > * {
    position: relative;
    z-index: 1;
}

.news-list-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9b7eed;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.news-list-eyebrow::before,
.news-list-eyebrow::after {
    content: "";
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 126, 237, 0.6), transparent);
}

.news-list-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.news-list-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    line-height: 1.6;
}

.news-back-btn {
    background: transparent;
    color: #fff;
    padding: 0.7rem 1.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1.5px solid rgba(112, 69, 225, 0.6);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    margin-top: 0.25rem;
    box-shadow: 0 0 0 1px rgba(112, 69, 225, 0.15), 0 8px 24px rgba(44, 23, 138, 0.35);
}

.news-back-btn:hover {
    color: #fff;
    border-color: #7045e1;
    transform: translateY(-3px);
    background: rgba(112, 69, 225, 0.08);
    box-shadow: 0 0 0 1px rgba(112, 69, 225, 0.35), 0 14px 32px rgba(44, 23, 138, 0.55);
}

.news-list-container {
    padding: 5px 0 80px;
    position: relative;
}

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

/* ---------- Featured (1er article) ---------- */
.news-list-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: rgba(18, 13, 26, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 380px;
}

.news-list-featured::before {
    content: "À LA UNE";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    background: linear-gradient(135deg, #7045e1 0%, #4828b3 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    box-shadow: 0 8px 24px rgba(44, 23, 138, 0.55);
}

.news-list-featured:hover {
    transform: translateY(-6px);
    box-shadow:
        0 28px 70px rgba(44, 23, 138, 0.5),
        0 0 0 1px rgba(112, 69, 225, 0.35);
    border-color: rgba(112, 69, 225, 0.35);
}

.news-list-featured-image {
    overflow: hidden;
    height: 100%;
    background: linear-gradient(135deg, #1a1226 0%, #0c0814 100%);
    position: relative;
}

.news-list-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-list-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(18, 13, 26, 0.6) 100%);
    pointer-events: none;
}

.news-list-featured:hover .news-list-featured-image img {
    transform: scale(1.06);
}

.news-list-featured-content {
    padding: 3rem 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-featured-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.news-list-featured-excerpt {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ---------- Cartes standard ---------- */
.news-list-card {
    background: rgba(18, 13, 26, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-list-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 22px 50px rgba(44, 23, 138, 0.4),
        0 0 0 1px rgba(112, 69, 225, 0.3);
    border-color: rgba(112, 69, 225, 0.3);
}

.news-list-card-image {
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #1a1226 0%, #0c0814 100%);
}

.news-list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-card:hover .news-list-card-image img {
    transform: scale(1.08);
}

.news-list-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-list-card-date {
    font-size: 0.72rem;
    color: #9b7eed;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-list-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.news-list-card-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.news-list-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9b7eed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: auto;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid rgba(112, 69, 225, 0.4);
    align-self: flex-start;
}

.news-list-card-link:hover {
    color: #fff;
    gap: 0.9rem;
    border-bottom-color: #7045e1;
}

.news-list-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.news-list-card-tag {
    display: inline-block;
    background: rgba(112, 69, 225, 0.12);
    border: 1px solid rgba(112, 69, 225, 0.3);
    color: #9b7eed;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.news-no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(18, 13, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    max-width: 500px;
    margin: 0 auto;
}

.news-no-results i {
    font-size: 4rem;
    color: #7045e1;
    margin-bottom: 1rem;
}

.news-no-results p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.news-list-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(112, 69, 225, 0.2);
}

@media (max-width: 992px) {
    .news-list-featured {
        grid-template-columns: 1fr;
        height: auto;
    }

    .news-list-featured-image {
        min-height: 280px;
    }

    .news-list-featured-content {
        padding: 2rem;
    }

    .news-list-featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-list-header {
        padding: 120px 0 40px;
    }

    .news-list-header h1 {
        font-size: 2rem;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-list-container {
        padding: 40px 0 60px;
    }

    .news-list-featured::before {
        top: 1rem;
        left: 1rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    .news-list-featured-image {
        min-height: 220px;
    }

    .news-list-featured-content {
        padding: 1.75rem;
    }

    .news-list-featured-title {
        font-size: 1.35rem;
    }

    .news-list-featured-excerpt {
        font-size: 0.95rem;
    }
}

/* ---- Anciens attributs style="" de news/list.html.twig ---- */

.news-list-featured,
.news-list-featured:hover {
    text-decoration: none;
}

/* Visuel de substitution quand l'article n'a pas d'image à la une. */
.news-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c178a 0%, #4828b3 50%, #7045e1 100%);
    color: white;
}

.news-list-placeholder i {
    font-size: 4rem;
    opacity: 0.85;
}

.news-list-placeholder-sm i {
    font-size: 3rem;
}

.news-back-btn.news-back-btn-lg {
    padding: 0.95rem 2.2rem;
}
