/* Styles pour la page Actualités */
:root {
    --blue: #0055A4;
    --white: #ffffff;
    --red: #EF4135;
    --dark: #333333;
    --light: #f5f5f5;
    --gray: #777777;
    --light-blue: #e6f0ff;
    --light-red: #ffebe9;
}

/* Styles généraux de la page actualités */
.page-header {
    background: linear-gradient(rgba(0, 85, 164, 0.8), rgba(0, 85, 164, 0.9)), url('../images/vidauban_marche.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0 60px;
    margin-top: 10px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section des actualités */
.news-section {
    padding: 60px 0;
    background-color: var(--white);
}

/* Filtres et recherche */
.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--blue);
}

.search-box button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #004080;
}

.category-filter select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
    outline: none;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s;
}

.category-filter select:focus {
    border-color: var(--blue);
}

/* Grille d'actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content .date {
    color: var(--red);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--blue);
    text-align: left;
}

.news-content p {
    color: var(--dark);
    margin-bottom: 20px;
    flex: 1;
}

.news-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

.btn-outline {
    background-color: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background-color: var(--blue);
    color: white;
}

/* Vue d'article unique */
.single-article-view {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
}

.single-article {
    padding: 0;
}

.article-header {
    position: relative;
}

.article-image {
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    padding: 30px 40px;
    background-color: var(--light-blue);
}

.article-meta .date {
    color: var(--red);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

.article-meta h1 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 0;
}

.article-content {
    padding: 40px;
}

.article-resume {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--blue);
    margin: 30px 0 20px;
    text-align: left;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--red);
    margin: 25px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
}

.social-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share span {
    font-weight: 600;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--dark);
    transition: all 0.3s;
    font-size: 1rem;
}

.social-share a:hover {
    background-color: var(--blue);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-header p {
        font-size: 1.3rem;
    }
    
    .article-meta h1 {
        font-size: 2.2rem;
    }
    
    .article-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box, .category-filter {
        max-width: 100%;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .article-meta {
        padding: 25px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-meta h1 {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta h1 {
        font-size: 1.6rem;
    }
    
    .article-resume {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
}