/* ========================================
   FEATURED SECTION (structure 2 colonnes)
   Palette euromagh : vert #006633, rouge #d42e12, or #c9a84c
   ======================================== */

.featured-section {
    margin: 30px 0 40px;
}

.featured-section .container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Colonne principale (article à la une) */
.featured-main {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--red);
}

.featured-main:hover {
    box-shadow: var(--shadow-hover);
}

.article-une {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Lien cliquable sur toute la carte */
.article-une-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-side-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Container de l'image */
.une-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    height: 100%;
    min-height: 350px;
}

.une-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-une-link:hover .une-image {
    transform: scale(1.05);
}

/* Overlay (texte sur l'image) */
.une-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 35px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Badge "À la une" */
.badge-une {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 4px;
}

.une-overlay .badge-une {
    background: var(--red);
    color: #fff;
    align-self: flex-start;
    margin-bottom: 4px;
}

.une-overlay h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 700;
}

.une-overlay h2:hover {
    text-decoration: underline;
}

.une-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.une-overlay .une-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    gap: 12px;
    display: flex;
    gap: 15px;
}

.une-overlay .une-meta i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

.une-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.une-meta i {
    margin-right: 5px;
    color: var(--red);
}

/* Colonne de droite */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-side {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 1;
    transition: all var(--transition);
    position: relative;
    border-top: 3px solid var(--gold);
}

.article-side:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Carte partenaire (codée en dur) */
.voyage-card {
    position: relative;
    display: flex;
    flex-direction: column;
    animation: voyage-pulse-shadow 2.4s ease-in-out infinite;
    border-top: 3px solid var(--red);
}

.voyage-card-image {
    flex: 1;
    min-height: 180px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.voyage-card:hover {
    animation-play-state: paused;
}

.voyage-card:hover .voyage-card-image {
    transform: scale(1.03);
}

/* Badge CTA pulsant sur la carte voyage */
.voyage-card-cta {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(212, 46, 18, 0.4);
    animation: voyage-pulse-badge 1.6s ease-in-out infinite;
    pointer-events: none;
}

.voyage-card-cta i {
    transition: transform var(--transition);
}

.voyage-card:hover .voyage-card-cta {
    animation-play-state: paused;
    background: var(--red-dark);
}

.voyage-card:hover .voyage-card-cta i {
    transform: translateX(4px);
}

@keyframes voyage-pulse-shadow {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 8px 25px rgba(212, 46, 18, 0.25), 0 0 0 1px rgba(212, 46, 18, 0.08);
    }
}

@keyframes voyage-pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .voyage-card,
    .voyage-card-cta {
        animation: none;
    }
}

/* Contenu de l'article secondaire */
.side-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-side:hover .side-image {
    transform: scale(1.03);
}

.side-text {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-block;
    background: var(--green-dark);
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.category-tag.national {
    background: var(--green-dark);
}

.category-tag.international {
    background: var(--gold);
}

.side-text h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 600;
}

.side-text h3 a:hover {
    color: var(--red);
}

.side-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.side-meta i {
    margin-right: 4px;
    color: var(--red);
}

/* ========================================
   BADGE VIDÉO
   ======================================== */

.article-side,
.article-card,
.une-image-wrapper {
    position: relative;
}

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(232, 0, 0, 0.9);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-badge i {
    font-size: 0.7rem;
}

.video-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(232, 0, 0, 0.4);
}

.une-image-wrapper .video-badge {
    top: 18px;
    right: 18px;
    z-index: 20;
    padding: 7px 18px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .video-badge {
        font-size: 0.6rem;
        padding: 4px 12px;
        top: 8px;
        right: 8px;
    }

    .une-image-wrapper .video-badge {
        font-size: 0.65rem;
        padding: 5px 14px;
        top: 12px;
        right: 12px;
    }
}

/* ========================================
   BANDEAU WHATSAPP / VIDÉOS
   ======================================== */

.videos-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-gradient) 100%);
    color: #fff;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.videos-banner .container {
    padding: 0;
    max-width: 100%;
}

.videos-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.videos-banner-text {
    flex: 1 1 auto;
    min-width: 260px;
}

.videos-banner-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.videos-banner-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
}

.whatsapp-link {
    color: #25d366;
    background: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 6px;
}

.whatsapp-link:hover {
    background: #25d366;
    color: #fff;
}

.whatsapp-link i {
    font-size: 20px;
}

.btn-contact-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: var(--green-dark);
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-contact-banner:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-contact-banner i {
    transition: transform 0.3s ease;
}

.btn-contact-banner:hover i {
    transform: translateX(4px);
}

/* ========================================
   DERNIERS ARTICLES
   ======================================== */

.derniers-articles {
    background: var(--bg-white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.derniers-articles .container {
    padding: 0;
    max-width: 100%;
}

.derniers-articles .section-title {
    color: var(--green-dark);
    border-bottom: 3px solid var(--red);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 3px solid var(--green-medium);
}

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

.article-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.article-card .card-content {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 8px 0 12px;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
}

.article-card .card-meta i {
    margin-right: 4px;
    color: var(--red);
}

.no-article {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--off-white);
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .featured-section .container {
        grid-template-columns: 1fr;
    }

    .videos-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .une-overlay h2 {
        font-size: 1.4rem;
    }

    .une-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .derniers-articles,
    .videos-banner {
        padding: 20px 16px;
    }

    .videos-banner-title {
        font-size: 1.2rem;
    }
}
