﻿/* Styles pour les pages de catégories */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--primary-white);
    padding: 1.5rem 0;
    text-align: center;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.page-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.page-header h1 {
    color: var(--primary-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Member Notice */
.member-notice {
    padding: 2rem 0;
    background: rgba(196, 30, 58, 0.05);
}

.notice-card {
    display: flex;
    align-items: center;
    background: var(--primary-white);
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.notice-icon {
    font-size: 3rem;
    margin-right: 2rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-content h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.notice-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.notice-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Articles Section */
.articles-section {
    padding: 3rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Articles épinglés - Style discret pour les pages de catégories */
.article-card.featured {
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
    position: relative;
}

.article-card.featured::before {
    content: '📌';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: var(--primary-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.article-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    z-index: 1;
}

.article-card.featured:hover::before {
    transform: scale(1.1);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-category {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category.avantages { background: var(--primary-red); }
.article-category.voyages { background: #28a745; }
.article-category.retraites { background: #dc3545; }
.article-category.evenements { background: #fd7e14; }

.article-date {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.article-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.article-author {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.article-author strong {
    color: var(--dark-gray);
}

.read-more-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.read-more-btn:hover {
    background: var(--primary-blue);
    color: var(--primary-white);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
}

.no-articles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-articles-icon {
    font-size: 4rem;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.no-articles h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-articles p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.pagination-info {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* Member Content (contenu visible uniquement aux membres connectés) */
.member-content {
    position: relative;
}

.member-content.blurred .article-excerpt {
    filter: blur(3px);
    pointer-events: none;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    backdrop-filter: blur(2px);
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-blue);
}

.overlay-content h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 1.25rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .page-icon {
        font-size: 2rem;
    }
    
    .notice-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .notice-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .notice-actions {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-icon {
        font-size: 1.75rem;
    }
    
    .notice-card {
        margin: 0 1rem;
        padding: 1.25rem;
    }
    
    .notice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}