/* =========================
   STATS SECTION
========================= */

.stats-section {
    position: relative;
    padding: 90px 20px;
    background: url("../assets/images/produit1.jpg") center/cover no-repeat;
    overflow: hidden;
}

/* voile sombre sur l'image */
.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1;
}

/* rectangle déformé */
.stats-container {
    position: relative;
    z-index: 2;
    width: min(1150px, 92%);
    margin: 0 auto;
    padding: 55px 35px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 40px 120px 45px 110px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.stats-heading {
    text-align: center;
    margin-bottom: 45px;
}

.stats-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.stats-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stats-card {
    text-align: center;
    padding: 28px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.stats-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.stats-number {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.stats-label {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* =========================
   DARK MODE
========================= */

body.dark .stats-section {
    background: url("../assets/images/stats-bg-dark.jpg") center/cover no-repeat;
}

body.dark .stats-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark .stats-container {
    background: rgba(18, 18, 18, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

body.dark .stats-card {
    background: rgba(255,255,255,0.03);
}

body.dark .stats-card:hover {
    background: rgba(255,255,255,0.07);
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 992px) {
    .stats-container {
        border-radius: 35px 80px 35px 80px;
        padding: 45px 25px;
    }

    .stats-title {
        font-size: 34px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-number {
        font-size: 34px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .stats-section {
        padding: 70px 15px;
    }

    .stats-container {
        width: 94%;
        padding: 35px 18px;
        border-radius: 28px 55px 28px 55px;
    }

    .stats-title {
        font-size: 28px;
    }

    .stats-subtitle {
        font-size: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-card {
        padding: 22px 14px;
    }

    .stats-icon {
        font-size: 34px;
    }

    .stats-number {
        font-size: 30px;
    }

    .stats-label {
        font-size: 15px;
    }
}