/**
 * Style du bouton "Charger plus" (pagination AJAX)
 */

/* Grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.articles-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Container du bouton */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    padding: 2rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #C70000 0%, #8B0000 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(199, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 0, 0, 0.4);
    background: linear-gradient(135deg, #E30000 0%, #A00000 100%);
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(199, 0, 0, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn .btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
    transform: translateY(2px);
}

.load-more-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.load-more-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cartes d'articles - Design moderne avec overlay */
.article-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #C70000 0%, #8B0000 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    border-color: rgba(199, 0, 0, 0.15);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.article-card:hover .article-image::before {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.12);
    filter: brightness(1.1) saturate(1.2);
}

.article-placeholder {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Badge catégorie en overlay */
.article-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover .article-badge {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.article-content {
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    position: relative;
    min-height: 200px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    transition: all 0.3s ease;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title {
    color: #C70000;
    transform: translateX(4px);
}

.article-excerpt {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.article-date {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: '📅';
    font-size: 1rem;
}

/* Animation des nouveaux articles */
.article-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .articles-grid,
    .articles-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .articles-grid,
    .articles-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .load-more-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .load-more-container {
        margin: 2rem auto;
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .articles-grid,
    .articles-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .load-more-container {
        margin: 1.5rem auto;
        padding: 1rem 0;
    }
}

