/* --- CONFIGURATION PC --- */
@media (min-width: 1025px) {
    .services-grid {
    display: flex;
    flex-wrap: wrap;       /* Permet le retour à la ligne */
    justify-content: center; /* CENTRE LES ÉLÉMENTS SUR LA DERNIÈRE LIGNE */
    gap: 25px;             /* Espacement entre les cartes */
    padding: 40px 20px;
    width: 100%;
    max-width: 1300px;     /* Largeur max pour garder 4 cartes par ligne sur PC */
    margin: 0 auto;
}

/* --- LA CARTE --- */
.service-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    
    /* Calcul pour 4 cartes par ligne : (100% / 4) - gap */
    flex: 0 1 calc(25% - 25px); 
    min-width: 280px;      /* Sécurité pour ne pas être trop étroit */
    min-height: 480px;     /* Hauteur augmentée comme demandé */
    
    padding: 50px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
}

/* --- ICONES (Taille fixe pour éviter les bugs précédents) --- */
.icon-circle {
    width: 140px;
    height: 140px;
    background-color: #f8fafd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Plus d'espace sous l'icône pour augmenter la hauteur visuelle */
    flex-shrink: 0;
}
.service-card:hover .icon-circle {
    border-color: #00adef; /* Le bleu apparaît */
    background-color: transparent; /* Optionnel: le fond devient blanc comme sur votre image */
    transform: scale(1.05); /* Optionnel: léger agrandissement du cercle */
}
.service-card .icon-circle:hover{
    border: 3px solid #00adef;
    background-color: transparent;
}
/* Si vous voulez aussi un effet sur la carte entière au survol */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}
.icon-circle img {
    width: 70px;
    height: auto;
}

/* --- TITRE ET DESCRIPTION --- */
.service-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 25px;
    min-height: 50px;
}

.service-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* --- CONFIGURATION TABLETTE (Écran < 1024px) --- */
@media (max-width: 1024px) {
    .services-grid {
        /* On passe à 2 colonnes seulement */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

/* --- CONFIGURATION MOBILE (Écran < 768px) --- */
@media (max-width: 768px) {
    .services-grid {
        /* On passe à 1 seule colonne (les cartes s'empilent) */
        grid-template-columns: 1fr; 
        padding: 20px;
    }

    /* Optionnel : On réduit un peu la taille des cercles sur mobile */
    .icon-circle {
        width: 120px;
        height: 120px;
    }
}

/* --- SÉCURITÉ POUR LES IMAGES --- */
.service-card img {
    max-width: 100%;
    height: auto;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Important pour le responsive */
    width: 100%; 
    box-sizing: border-box;
}
.center-container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */
    text-align: center;      /* Centre le texte si plusieurs lignes */
    height: 200px;           /* Optionnel : définit une hauteur */
}
