/* --- VARIABLES --- */
:root {
    --footer-bg: #1a323b;
    --footer-border: #2a5c68;
    --accent-green: #7fb069;
    --accent-orange: #d35400;
    --text-light: #ccc;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* --- HEADER --- */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-logo { height: 48px; }
.header-slogan { font-size: 0.8rem; color: #666; margin: 4px 0 0 0; }
.header-buttons { display: flex; gap: 12px; }
.header-button {
    text-decoration: none;
    color: #fff;
    background-color: var(--accent-green);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.header-button:hover {
    background-color: var(--footer-bg);
    transform: translateY(-3px);
}
.blog-active { background-color: #555 !important; }

/* --- GRILLE BLOG --- */
.container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.col-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.img-container { height: 160px; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.article-content { padding: 20px; }
.btn-read { color: var(--accent-green); font-weight: bold; text-decoration: none; }

/* --- NOUVEAU FOOTER 4 COLONNES (Appliqué) --- */
.site-footer { 
    background-color: var(--footer-bg); 
    color: var(--text-light); 
    padding: 60px 20px 20px; 
    border-top: 5px solid var(--footer-border); 
}
.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-col h4 { 
    color: var(--accent-green); 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
    position: relative; 
    padding-bottom: 10px; 
    text-transform: uppercase; 
}
.footer-col h4::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 40px; 
    height: 2px; 
    background-color: var(--accent-orange); 
}
.footer-col p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; color: var(--text-light); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    color: var(--text-light); 
    text-decoration: none; 
    transition: all 0.3s ease; 
    display: inline-block; 
    font-size: 0.95rem; 
}
.footer-col ul li a:hover { color: var(--accent-green); transform: translateX(5px); }

.footer-logo { 
    width: 220px; 
    margin-bottom: 15px; 
    filter: brightness(0) invert(1); /* Rend le logo blanc */
}

.footer-col .social-links { display: flex; gap: 15px; margin-top: 20px; }
.footer-col .social-links a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border-radius: 50%; 
    transition: all 0.3s ease; 
    text-decoration: none; 
}
.footer-col .social-links a:hover { background: var(--accent-green); transform: translateY(-3px); }

.footer-contact-info i { color: var(--accent-orange); margin-right: 10px; width: 20px; text-align: center; }

.footer-bottom { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.85rem; 
    color: #888; 
}
.footer-bottom a { color: #888; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--accent-green); }

/* Responsive */
@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .col-main { grid-template-columns: 1fr 1fr; }
    .header-top { flex-direction: column; text-align: center; gap: 15px; }
}

/* BRIDAGE ULTIME DE L'IMAGE DÉTAILLÉE */
.post-view-image {
    display: block !important;
    max-width: 100% !important;   /* Elle ne dépasse jamais la largeur du texte */
    max-height: 350px !important;  /* ELLE NE DÉPASSERA JAMAIS 350px DE HAUT */
    width: auto !important;        /* Conserve ses proportions */
    height: auto !important;       /* Conserve ses proportions */
    margin: 20px auto !important;  /* Centrée avec de l'espace autour */
    object-fit: contain !important; /* L'image entière reste visible, pas de rognage */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}