/* ========================================= */
/* Page Header (pour toutes les pages internes) */
/* ========================================= */
/* Ce bloc devrait déjà exister dans votre CSS. Je le répète pour le contexte. */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/page-header-impact-bg.jpg') no-repeat center center/cover; /* Nouvelle image de fond suggérée */
    color: var(--text-color-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.page-header h2 {
    font-size: 3.5em;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

/* ========================================= */
/* Section Contenu (générique, déjà existante) */
/* ========================================= */
/* Ce bloc devrait déjà exister dans votre CSS. Je le répète pour le contexte. */
.content-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.content-section .container p { /* Paragraphes de la section introductive */
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 25px; /* Espacement entre les paragraphes */
    color: var(--text-color-dark);
}

.content-section .container h3 { /* Titre "La vente de nos produits..." */
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin: 50px 0 30px 0; /* Espacement au-dessus et en dessous */
    position: relative;
    padding-bottom: 15px;
}

.content-section .container h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}


/* ========================================= */
/* Grille d'impact (Impact Grid) */
/* ========================================= */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille flexible à 3 colonnes */
    gap: 40px; /* Espacement entre les éléments d'impact */
    margin-top: 60px;
}

.impact-item {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    animation: fadeInUp 0.8s ease-out forwards; /* Animation d'apparition */
    opacity: 0; /* Caché initialement pour l'animation */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Délai pour l'animation de chaque item d'impact */
.impact-grid .impact-item:nth-child(1) { animation-delay: 0.1s; }
.impact-grid .impact-item:nth-child(2) { animation-delay: 0.3s; }
.impact-grid .impact-item:nth-child(3) { animation-delay: 0.5s; }


.impact-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.impact-item img {
    max-width: 100%;
    height: 200px; /* Hauteur fixe pour les images d'impact */
    object-fit: cover; /* Recadre les images pour qu'elles remplissent l'espace */
    border-radius: 8px;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.impact-item:hover img {
    transform: scale(1.05); /* Léger zoom sur l'image au survol */
}

.impact-item h4 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.impact-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark);
    flex-grow: 1; /* Permet aux paragraphes de prendre l'espace disponible */
}

/* ========================================= */
/* Appel à l'action pour l'impact (Call To Action) */
/* ========================================= */
.call-to-action-impact {
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.9), rgba(var(--secondary-color-rgb), 0.9)), url('../images/cta-impact-bg.jpg') no-repeat center center/cover; /* Fond avec dégradé et image */
    color: var(--text-color-light);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 80px; /* Espacement au-dessus de la section CTA */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleIn 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.call-to-action-impact h3 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--text-color-light); /* S'assurer que le titre est blanc/clair */
}

.call-to-action-impact p {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-impact .btn-primary {
    padding: 18px 50px;
    font-size: 1.2em;
    border-radius: 50px;
    background-color: var(--accent-color); /* Couleur différente pour le bouton CTA */
    border-color: var(--accent-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.call-to-action-impact .btn-primary:hover {
    background-color: var(--text-color-light);
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* ========================================= */
/* Responsive Design pour ce bloc */
/* ========================================= */

/* Tablette et petits desktops */
@media (max-width: 992px) {
    .page-header h2 {
        font-size: 2.8em;
    }

    .content-section .container h3 {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .content-section .container h3::after {
        width: 60px;
        height: 3px;
    }

    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }
    .impact-item img {
        height: 180px;
        margin-bottom: 20px;
    }
    .impact-item h4 {
        font-size: 1.6em;
    }
    .impact-item p {
        font-size: 0.95em;
    }

    .call-to-action-impact {
        padding: 50px 30px;
        margin-top: 60px;
    }
    .call-to-action-impact h3 {
        font-size: 2.5em;
    }
    .call-to-action-impact p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .call-to-action-impact .btn-primary {
        padding: 15px 40px;
        font-size: 1.1em;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .page-header h2 {
        font-size: 2.2em;
    }

    .content-section .container h3 {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .content-section .container h3::after {
        width: 50px;
        height: 2px;
    }

    .impact-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 25px;
        margin-top: 40px;
    }
    .impact-item img {
        height: 160px;
        margin-bottom: 15px;
    }
    .impact-item h4 {
        font-size: 1.5em;
    }
    .impact-item p {
        font-size: 0.9em;
    }

    .call-to-action-impact {
        padding: 40px 20px;
        margin-top: 40px;
    }
    .call-to-action-impact h3 {
        font-size: 2em;
    }
    .call-to-action-impact p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .call-to-action-impact .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
        width: 100%; /* Prend toute la largeur sur mobile */
        max-width: none;
    }
}

/* Animations spécifiques pour cette page */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* L'animation fadeInUp a été définie précédemment dans les produits. Si ce n'est pas le cas, ajoutez-la ici: */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}