/* COMPONENT STYLES: ABOUT STATS / KEY FIGURES */
.key-figures-section,
.about-stats-section {
    background-image: url('../assets/img/chiffre-clés.jpg');
    position: relative !important;
    padding: 80px 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.key-figures-section .stats-overlay,
.about-stats-section .stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 35, 101, 0.5);
    /* Primary Blue Overlay */
    z-index: 1;
}

.about-stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-stat-item h2 {
    color: #ffffff;
    font-size: 5rem;
    /* Slightly reduced base for better fit on standard desktop */
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.about-stat-item p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Add an intermediate breakpoint for tablets/smaller desktops */
@media (max-width: 1200px) {
    .about-stats-grid {
        gap: 20px;
    }

    .about-stat-item h2 {
        font-size: 4rem;
    }

    .about-stat-item p {
        font-size: 1.1rem;
    }
}

/* Tablet landscape / medium devices */
@media (max-width: 992px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .key-figures-section,
    .about-stats-section {
        padding: 60px 0 !important;
    }

    .key-figures-section .stats-overlay,
    .about-stats-section .stats-overlay {
        background: rgba(6, 35, 101, 0.7);
        /* Darken slightly for readability */
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stat-item h2 {
        font-size: 3.5rem;
    }

    .about-stat-item p {
        font-size: 1.1rem;
    }

    .key-figures-section,
    .about-stats-section {
        padding: 50px 0 !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .about-stats-grid {
        gap: 30px;
    }

    .about-stat-item h2 {
        font-size: 3rem;
    }

    .about-stat-item p {
        font-size: 1rem;
    }
}