/**
 * Styles pour la page Actualités du Chanvre
 * EcoWeb CenC
 * @version 1.0
 * @date 2025-10-10
 */

/* ========================================
   EN-TÊTE DE PAGE
======================================== */

.page-header {
    background: #f8f9fa;
    border-bottom: 3px solid #2e7d32;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Leixo', serif;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #2e7d32;
}

.page-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: #666;
    font-weight: 400;
}

/* ========================================
   SECTION FILTRES
======================================== */

.filtres-section {
    background: white;
    padding: 30px 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filtres-form {
    max-width: 1200px;
    margin: 0 auto;
}

.filtres-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

@media (max-width: 1024px) {
    .filtres-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filtre-item:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .filtres-grid {
        grid-template-columns: 1fr;
    }

    .filtre-actions {
        display: flex;
        gap: 10px;
    }
}

.filtre-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
}

.filtre-input,
.filtre-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.filtre-input:focus,
.filtre-select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.filtre-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #757575;
    color: white;
}

.btn-secondary:hover {
    background: #616161;
}

/* Filtres actifs */
.filtres-actifs {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filtres-label {
    font-weight: 600;
    color: #555;
}

.filtre-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c8e6c9;
}

.filtre-remove {
    color: #2e7d32;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.filtre-remove:hover {
    color: #c62828;
}

/* Compteur de résultats */
.resultats-info {
    margin-top: 20px;
    font-size: 1rem;
    color: #666;
    text-align: center;
}

/* ========================================
   GRILLE D'ACTUALITÉS
======================================== */

.actualites-section {
    padding: 40px 20px;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .actualites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .actualites-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CARTE ACTUALITÉ
======================================== */

.actualite-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.actualite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.15);
    border-color: #2e7d32;
}

.actualite-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.actualite-image img {
    /*max-width: 80px;*/
    max-width: 50%;
    /*max-height: 80px;*/
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.actualite-card:hover .actualite-image img {
    transform: scale(1.1);
}

.actualite-theme {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2e7d32;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actualite-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.actualite-titre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.actualite-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #757575;
}

.actualite-date,
.actualite-lieu {
    display: flex;
    align-items: center;
}

.actualite-date::before {
    content: "📅";
    margin-right: 6px;
}

.actualite-lieu::before {
    content: "📍";
    margin-right: 6px;
}

.actualite-extrait {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.actualite-lien {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
}

.actualite-lien:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* ========================================
   AUCUN RÉSULTAT
======================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #757575;
}

.no-results p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ========================================
   PAGINATION
======================================== */

.pagination-section {
    padding: 40px 20px;
    background: #fafafa;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #2e7d32;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.pagination-number.active {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.pagination-ellipsis {
    padding: 10px 8px;
    color: #999;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* ========================================
   HEADER & FOOTER (ajustements)
======================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    padding-left: 5vw;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 60px;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.site-title-ecoweb {
    color: #2e7d32;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-login {
    background: #2e7d32 !important;
    color: white !important;
}

.btn-login:hover {
    background: #1b5e20 !important;
}

.site-footer {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid #2e7d32;
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-nav a:hover {
    background: #e8f5e9;
    color: #1b5e20;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .actualite-titre {
        font-size: 1.1rem;
    }

    .site-header {
     background: white;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     padding: 15px 0;
    }
}
