/* ✅ Bannière */
#hero-stats {
    background: url("../img/stats-banner.jpg") center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
}

.hero-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
}

/* ✅ Chiffres Clés */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease-in-out;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 32px;
    color: #E81E6F;
    font-weight: bold;
}

.stat-item p {
    font-size: 16px;
    color: #666;
}

/* ✅ Graphique */
#stats-graph {
    text-align: center;
    padding: 50px;
}

#chiffres-cles h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Espacement entre l'icône et le texte */
}

/* ✅ Conteneur du graphique */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 700px; /* ✅ Taille réduite */
    margin: auto;
}

/* ✅ Taille du graphique */
canvas {
    width: 100% !important;
    height: 400px !important; /* ✅ Taille réduite */
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .chart-container {
        width: 100%;
    }

    canvas {
        height: 300px !important;
    }
}


/* ✅ Format Responsive */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 90%;
    }

    canvas {
        max-width: 100%;
    }
}
