/* ====================================
   PUBLIC NEWS (INDEX + SHOW)
   ==================================== */

:root {
    --news-dark: #0b3f32;
    --news-accent: #109a36;
    --news-gradient: linear-gradient(135deg, var(--news-dark) 0%, var(--news-accent) 100%);
    --news-gradient-reverse: linear-gradient(135deg, var(--news-accent) 0%, var(--news-dark) 100%);
    --events-hero-gradient: linear-gradient(135deg, var(--primary-color) 0%, #08b12d 100%);
}

.page-actualites-wrapper {
    background: #f8fafc;
}

/* Hero */
.actualites-hero {
    background: var(--events-hero-gradient);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 120px 0 90px;
    margin-bottom: 40px;
}

.actualites-index .actualites-hero {
    padding: 120px 0 90px;
}

.actualites-show .actualites-hero {
    padding: 120px 0 90px;
}

.actualites-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.actualites-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.actualites-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.actualites-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.actualites-hero .breadcrumb-item a:hover {
    color: var(--green-accent);
}

.actualites-hero .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.actualites-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats */
.news-stats {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Toolbar */
.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.news-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 520px;
}

.news-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
}

.news-search .form-control {
    padding-left: 40px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.news-search .form-control:focus {
    border-color: rgba(16, 154, 54, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(16, 154, 54, 0.15);
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-filter-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1f2937;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.news-filter-pill:hover {
    border-color: rgba(16, 154, 54, 0.45);
    color: #0f172a;
    transform: translateY(-1px);
}

.news-filter-pill.active {
    background: rgba(16, 154, 54, 0.15);
    border-color: rgba(16, 154, 54, 0.4);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(16, 154, 54, 0.12);
}

.news-empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--news-gradient);
}

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

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

.news-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--news-gradient);
    position: relative;
    padding: 16px;
}

.news-card-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.news-placeholder-logo {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.2));
    transition: transform 0.25s ease, filter 0.25s ease;
    position: relative;
    z-index: 1;
}

.news-card:hover .news-placeholder-logo,
.news-detail-image:hover .news-placeholder-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.26));
}

.news-card-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--news-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--news-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--news-accent);
}

.news-card-excerpt {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eeeeee;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    font-size: 0.9rem;
}

.btn-read-more {
    background: var(--news-gradient);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more:hover {
    background: var(--news-gradient-reverse);
    color: #ffffff;
    transform: translateX(5px);
}

/* Empty state */
.no-news-wrapper {
    text-align: center;
    padding: 5rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-news-icon {
    font-size: 5rem;
    color: #dddddd;
    margin-bottom: 1.5rem;
}

.no-news-message {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 1rem;
}

.no-news-description {
    color: #999999;
    margin-bottom: 2rem;
}

/* Detail */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.news-detail-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: var(--news-gradient);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--news-gradient);
    position: relative;
    padding: 20px;
}

.news-card-image-placeholder .news-placeholder-logo {
    max-width: 160px;
    max-height: 160px;
}

.news-detail-image-placeholder .news-placeholder-logo {
    max-width: 220px;
    max-height: 220px;
}

.news-card-image-placeholder::before,
.news-detail-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: inherit;
}

.news-detail-image-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
}

.news-detail-header {
    padding: 2rem 2.5rem 1.5rem;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--news-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    color: #666666;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-detail-meta-item i {
    color: var(--news-dark);
    font-size: 1.1rem;
}

.news-detail-content {
    padding: 2rem 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
    color: var(--news-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-detail-content h1 {
    font-size: 2rem;
}

.news-detail-content h2 {
    font-size: 1.6rem;
}

.news-detail-content h3 {
    font-size: 1.3rem;
}

.news-detail-content p {
    margin-bottom: 1.2rem;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-detail-content blockquote {
    border-left: 4px solid var(--news-dark);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666666;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.news-detail-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-detail-content table th,
.news-detail-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.news-detail-content table th {
    background-color: var(--news-dark);
    color: #ffffff;
    font-weight: 600;
}

.news-detail-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.news-detail-content a {
    color: var(--news-dark);
    text-decoration: underline;
}

.news-detail-content a:hover {
    color: var(--news-accent);
}

.news-detail-footer {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--news-gradient);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--news-gradient-reverse);
    color: #ffffff;
    transform: translateX(-5px);
}

.news-share {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.news-share-title {
    font-weight: 600;
    color: #666666;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.news-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-share-dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
}

.news-share-toggle {
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    border-color: rgba(16, 154, 54, 0.35);
    color: var(--news-dark);
}

.news-share-toggle:hover {
    border-color: rgba(16, 154, 54, 0.55);
    color: var(--news-dark);
}

.news-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    padding: 8px;
    display: none;
    z-index: 20;
}

.news-share-menu.is-open {
    display: grid;
    gap: 4px;
}

.news-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.news-share-item:hover {
    background: rgba(16, 154, 54, 0.12);
    color: var(--news-dark);
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.btn-share-facebook:hover {
    background: #145dbf;
    color: #ffffff;
}

.btn-share-tiktok {
    background: #000000;
    color: #ffffff;
}

.btn-share-tiktok:hover {
    background: #73d622;
    color: #ffffff;
}

.btn-share-twitter {
    background: #1da1f2;
    color: #ffffff;
}

.btn-share-twitter:hover {
    background: #0d8bd9;
    color: #ffffff;
}

.btn-share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-share-whatsapp:hover {
    background: #1eab52;
    color: #ffffff;
}

.btn-share-email {
    background: #6c757d;
    color: #ffffff;
}

.btn-share-email:hover {
    background: #5a6268;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .news-card-image {
        height: 200px;
    }

    .news-detail-image {
        height: 300px;
    }

    .news-card-image-placeholder .news-placeholder-logo {
        max-width: 140px;
        max-height: 140px;
    }

    .news-detail-image-placeholder .news-placeholder-logo {
        max-width: 180px;
        max-height: 180px;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-header,
    .news-detail-content,
    .news-detail-footer {
        padding: 1.5rem;
    }

    .news-detail-meta {
        gap: 1rem;
    }

    .news-detail-content {
        font-size: 1rem;
    }

    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .btn-read-more {
        width: 100%;
        justify-content: center;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .news-share {
        display: grid;
        gap: 12px;
    }

    .news-share-dropdown {
        width: 100%;
    }

    .news-share-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .actualites-index .actualites-hero,
    .actualites-show .actualites-hero {
        padding: 90px 0 60px;
    }

    .news-toolbar {
        gap: 12px;
        margin-bottom: 16px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-search i {
        display: none;
    }

    .news-search .form-control {
        padding-left: 16px;
    }

    .news-card {
        border-radius: 10px;
    }

    .news-card-body {
        padding: 1.1rem 1rem 1.25rem;
    }

    .news-card-image {
        height: 180px;
    }

    .news-detail-image {
        height: 240px;
    }

    .news-card-image-placeholder .news-placeholder-logo {
        max-width: 120px;
        max-height: 120px;
    }

    .news-detail-image-placeholder .news-placeholder-logo {
        max-width: 160px;
        max-height: 160px;
    }

    .news-detail-header,
    .news-detail-content,
    .news-detail-footer {
        padding: 1.2rem 1.1rem;
    }

    .news-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .news-filters::-webkit-scrollbar {
        display: none;
    }

    .news-filter-pill {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
        background: #f8fafc;
        border-color: #cbd5e1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

