/* Stories Page Styles */
.stories-page {
    padding: 2rem 0;
    background: #fff;
}

.stories-header {
    margin-bottom: 2rem;
    text-align: center;
}

.stories-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Barre de recherche */
.search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 30px;
    font-size: 1.1rem;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #4facfe;
}

/* Filtres */
.filters-container {
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4facfe;
}

.filter-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
}

/* Grille des stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.story-content {
    padding: 1.5rem;
}

.story-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.story-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-badge {
    background: #ff4757;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.story-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.story-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    border-color: #4facfe;
    color: #4facfe;
}

.pagination-link.active {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
    color: white;
}

/* Message d'erreur */
.error-message {
    background: #ffe3e3;
    color: #ff4757;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Aucun résultat */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .stories-header h1 {
        font-size: 2rem;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select, .filter-button {
        width: 100%;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
} 