.content-stats {
    padding-top: 90px;
    padding-bottom: 1rem;
    text-align: center;
    background-color: var(--light);
}


@media (max-width: 1024px) {
    .content-stats {
        padding-top: 100px;
    }
}

.content-stats h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}
.content-categories {
	padding-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #f03749;
    margin: 10px 0;
}

.stat-card p {
    font-size: 1rem;
    color: #666;
}



/* Supprimez le soulignement du lien par défaut */
.stats-grid a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Récupère la couleur du texte par défaut */
}

/* Animation au survol */
.stat-card:hover {
}

/* Changez la couleur de fond et du texte au survol */
.stats-grid a:hover .stat-card {
    background-color: #f0f8ff; /* Bleu clair au survol */
    transform: translateY(-5px); /* Décale légèrement vers le haut */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Ombre accentuée */
}

.stat-card:hover i {
    color: #0056b3; /* Change légèrement la couleur de l’icône */
}

.france-map {
	border: solid;
	border-width: 10px;
	border-radius: 10px;
	border-color: #000;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.france-map img {
    width: 100%;
    display: block;
}

.map-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-stat {
    position: absolute;
    background: rgba(240, 55, 73, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    transform: translate(-50%, -50%);
}

/* Styles pour les catégories revisitées */
.category-section {
    padding-top: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Base pour le slider des catégories */
.examples-slider {
    display: flex;
    overflow-x: auto; /* Active le scroll horizontal */
    gap: 20px; /* Espacement entre chaque fiche */
    padding: 10px 0;
    scroll-snap-type: x mandatory; /* Permet un défilement "snap" */
    -webkit-overflow-scrolling: touch; /* Pour un défilement fluide sur iOS */
    cursor: grab;
}

/* Pendant le scroll / drag */
.examples-slider:active {
    cursor: grabbing; /* Montre un curseur de "glisser" pendant l'action */
}

/* Les cartes dans le slider */
.image-wrapper {
    display: flex; /* Utilise Flexbox pour positionner les éléments enfants */
    flex-direction: column; /* Positionne les enfants verticalement */
    justify-content: flex-end; /* Aligne le contenu (ici le `h4`) en bas */
    align-items: flex-start; /* Facultatif : Aligne horizontalement le texte à gauche */
    flex: 0 0 90%; /* Largeur des fiches sur mobile */
    max-width: 220px; /* Largeur limite sur desktop */
    height: 270px; /* Hauteur fixe des fiches */
    border-radius: 10px;
    overflow: hidden; /* Cache les débordements */
    position: relative;
    background-color: #fff;
    transition: transform 0.3s ease; /* Animation au survol */
    scroll-snap-align: center; /* Centre les fiches dans le slider */
    border: 5px solid rgb(var(--category-color-rgb)); /* Contour des fiches */
    user-select: none; /* Empêche la sélection du contenu */
}

/* Ajout du "hover" */
.image-wrapper:hover {
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste l'image au conteneur */
    z-index: 0; /* Place l'image derrière le contenu */
    position: absolute; /* Positionne l’image en fond */
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
}

.image-wrapper::before {
    content: ''; /* Nécessaire pour les pseudo-éléments */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(var(--category-color-rgb), 0) 0%,
            rgba(var(--category-color-rgb), 0) 50%,
            rgba(var(--category-color-rgb), 0.3) 60%,
            rgba(var(--category-color-rgb), 0.6) 70%,
            rgba(var(--category-color-rgb), 0.9) 100%
    );
    z-index: 1; /* Place le dégradé au-dessus de l'image */
}

/* Titre dans les fiches */
.image-wrapper h4 {
    position: relative; /* Toujours relatif pour z-index */
    z-index: 2; /* Visible au-dessus de l'image et des dégradés */
    margin: 0;
    padding: 10px; /* Ajoute un espace autour du texte */
    width: 100%; /* Assure que le texte occupe toute la largeur */
    color: #fff; /* Couleur blanche par défaut */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Ombrage pour la lisibilité */
    font-size: 13px;
    line-height: 1.4;
    text-align: left; /* Le texte reste aligné à gauche */
}

/* Effet visuel au survol des fiches */
.image-wrapper:hover {
}

/* Layout desktop : plusieurs fiches visibles */
@media (min-width: 768px) {
    .image-wrapper {
        flex: 0 0 calc((100% - 60px) / 3); /* Affiche 3 fiches avec un gap de 20px */
    }
}

@media (min-width: 1024px) {
    .image-wrapper {
        flex: 0 0 calc((100% - 80px) / 4); /* Affiche 4 fiches avec un gap de 20px */
    }
}


.category-header {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .example-card {
        flex: 0 0 85%;
        height: 300px;
    }
    
    .category-header {
        font-size: 1.0rem;
    }
}

/* Animation de défilement */
@keyframes scrollHint {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.category-section:first-child .examples-slider::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    animation: scrollHint 1.5s infinite;
}
