/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rouge-terre: #C0392B;
    --rouge-fonce: #A93226;
    --gris-fonce: #2C3E50;
    --blanc: #FFFFFF;
    --beige: #F4F1EA;
    --ocre: #D68910;
    --gris-moyen: #7F8C8D;
    --gris-clair: #ECF0F1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--gris-fonce);
    background: var(--beige);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--blanc);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    max-height: 65px;
    width: auto;
    display: block;
}

.nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--gris-fonce);
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list a:hover {
    color: var(--rouge-terre);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris-fonce);
}

.search-icon a {
    color: var(--gris-fonce);
    font-size: 1.2rem;
    text-decoration: none;
}

.search-icon a:hover {
    color: var(--rouge-terre);
}

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER - VERSION PROFESSIONNELLE
   ============================================ */
.footer {
    background: #1a252f;
    color: #bdc3c7;
    margin-top: 2.5rem;
    padding: 1.5rem 0 0.8rem;
    font-size: 0.8rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-col h3 {
    color: #e67e22;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.footer-col p,
.footer-col ul {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.2rem;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #e67e22;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links a {
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.social-links a i {
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.6rem;
    color: #7f8c8d;
}
/* ============================================
   BOUTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rouge-terre);
    color: var(--blanc);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--rouge-fonce);
    transform: translateY(-2px);
}

.lire-suite {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rouge-terre);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
}

.lire-suite:hover {
    gap: 0.75rem;
    color: var(--rouge-fonce);
}

/* ============================================
   CARTES ARTICLES
   ============================================ */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card-article {
    background: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-article:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.5rem;
}

.categorie {
    display: inline-block;
    background: var(--ocre);
    color: var(--blanc);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content h3 a {
    color: var(--gris-fonce);
    text-decoration: none;
}

.card-content h3 a:hover {
    color: var(--rouge-terre);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gris-moyen);
    margin-bottom: 1rem;
}

.meta i {
    margin-right: 0.25rem;
    width: 14px;
}

/* ============================================
   PUBLICITÉS
   ============================================ */
.ad-space {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ad-banner {
    display: block;
    width: 100%;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ad-label {
    font-size: 0.7rem;
    color: #7F8C8D;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #e0e0e0;
    padding: 0.2rem;
    text-align: center;
}

.in-article-ad {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.home-ad {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px dashed #C0392B;
}

/* ============================================
   MOBILE (max-width 768px)
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-list li {
        border-top: 1px solid var(--gris-clair);
    }
    
    .nav-list li:first-child {
        border-top: none;
    }
    
    .nav-list a {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .grid-articles {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .ad-space, .in-article-ad, .home-ad {
        padding: 0.5rem;
    }
}

.theme-toggle {
    margin-left: 1rem;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gris-fonce);
    transition: transform 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.theme-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.05);
}