/**
 * Hero Actualités - Styles modernes
 * Design responsive avec effets hover et animations
 */

/* Container principal */
.hero-actualites-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
}

/* Article Principal */
.main-article {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.main-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.main-article .article-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image principale */
.article-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.main-article:hover .article-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

/* Badges */
.article-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.badge-new {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge-category {
    background: rgba(0, 0, 0, 0.6);
}

/* Contenu principal */
.article-content {
    padding: 30px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a4c8b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-article:hover .article-title {
    color: #667eea;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-item i {
    color: #667eea;
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.main-article:hover .read-more {
    gap: 15px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.main-article:hover .read-more i {
    transform: translateX(5px);
}

/* Articles Secondaires */
.secondary-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.secondary-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.secondary-article .article-link-wrapper {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

/* Images secondaires */
.article-image-container-small {
    position: relative;
    width: 140px;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.secondary-article:hover .article-image-small {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.article-image-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.badge-new-small {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Contenu secondaire */
.article-content-small {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge-category-small {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    width: fit-content;
}

.article-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-article:hover .article-title-small {
    color: #667eea;
}

.article-meta-small {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.meta-item-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

.meta-item-small i {
    color: #667eea;
    font-size: 0.75rem;
}

.article-excerpt-small {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-actualites-container {
        grid-template-columns: 1fr;
    }
    
    .article-image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .article-image-container {
        height: 250px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .secondary-article .article-link-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-image-container-small {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-actualites-container {
        gap: 15px;
    }
    
    .article-image-container {
        height: 200px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .article-badges {
        top: 10px;
        left: 10px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-article {
    animation: fadeInUp 0.6s ease-out;
}

.secondary-article:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.secondary-article:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.secondary-article:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}
