/* ============================================
   PAGE D'ACCUEIL - VERSION PROFESSIONNELLE
   ============================================ */

/* HERO - Version très compacte */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 0 0 12px 12px;
}

.hero-content h1 {
    font-size: 1.6rem;
    color: var(--ocre);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 0.85rem;
    color: var(--blanc);
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.hero-content .btn-primary {
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 120px;
    }
    .hero-content h1 {
        font-size: 1.1rem;
    }
    .hero-content p {
        font-size: 0.6rem;
    }
    .hero-content .btn-primary {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* LAYOUT PRINCIPAL */
.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* SECTION ARTICLES */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #C0392B;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #2C3E50;
    margin: 0;
    font-weight: 600;
}

.section-header i {
    color: #C0392B;
    font-size: 1rem;
}

/* GRILLE ARTICLES */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-article {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.categorie {
    display: inline-block;
    background: #D68910;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.card-content h3 a {
    color: #2C3E50;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: #C0392B;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #7F8C8D;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.8rem;
    color: #7F8C8D;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.lire-suite {
    font-size: 0.75rem;
    color: #C0392B;
    text-decoration: none;
    font-weight: 500;
}

/* SIDEBAR */
.sidebar-widget {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #C0392B;
    display: inline-block;
}

.sidebar-widget h3 i {
    margin-right: 0.4rem;
    color: #C0392B;
}

.sidebar-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #ECF0F1;
    font-size: 0.8rem;
}

.sidebar-list a {
    text-decoration: none;
    color: #2C3E50;
}

.sidebar-list a:hover {
    color: #C0392B;
}

.cat-tag {
    background: #F4F1EA;
    color: #2C3E50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.7rem;
}

.cat-tag:hover {
    background: #C0392B;
    color: #FFFFFF;
}

/* NEWSLETTER */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.newsletter-form input {
    padding: 0.6rem;
    border: 1px solid #ECF0F1;
    border-radius: 6px;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 0.5rem;
    font-size: 0.8rem;
    background: #C0392B;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* PUBLICITÉS */
.ad-space, .home-ad {
    margin: 1rem 0;
}

.ad-label {
    font-size: 0.6rem;
    color: #7F8C8D;
    text-align: center;
    margin-bottom: 0.3rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .home-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .grid-articles {
        grid-template-columns: 1fr;
    }
}

