/* Styles pour les cartes photos dans la section d'impact */
.impact-photo-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 280px; /* Hauteur fixe pour uniformité */
    box-sizing: border-box;
    position: relative;
    transition: all 0.4s ease;
    display: flex; /* Ajout pour forcer l'alignement */
    flex-direction: column; /* Ajout pour l'alignement */
    /* Effet de brume */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.impact-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Effet de brouillard global sur la section */
.impact-section {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(ellipse at center, rgba(233, 231, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.impact-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    /* Léger vignettage pour accentuer l'effet centré */
    filter: brightness(1.05);
}

/* Styles responsifs pour les photos d'impact */
@media (max-width: 992px) {
    .impact-photo-card {
        height: 200px;
    }
    
    .impact-section h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .impact-photo-card {
        height: 180px;
    }
    
    .impact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .impact-photo-card {
        height: 160px;
    }
    
    .impact-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        padding: 0 15px;
    }
}

/* Effet de vignette autour des photos pour accentuer l'aspect centré */
.impact-photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 60%, rgba(124, 137, 255, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Overlay brumeux pour renforcer l'effet centré */
.impact-photo-card::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

.impact-photo-card:hover .impact-photo {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .impact-photo-card {
        height: 300px;
    }
}
