/* RÈGLES DE BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
}

/* EN-TÊTE */
.header-text {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.header-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-text p {
    color: #666;
    font-size: 16px;
    text-transform: uppercase;
}

/* SYSTÈME DE GRILLE */
.container {
    display: grid;
    grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Passage à 3 colonnes sur les écrans d'ordinateur */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CARTES ET ANIMATIONS */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Effet de fluidité */
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%; /* Permet aux cartes d'avoir la même hauteur */
}

/* Effet au survol de la souris */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* IMAGE DE COUVERTURE */
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ddd;
}

/* CONTENU DE LA CARTE */
.card-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

/* STYLE DES LOGOS */
.service-logo {
    width: 60px;
    height: 60px;
    object-fit: contain; /* Empêche le logo de se déformer */
    margin-bottom: 10px;
    border-radius: 50%;
    background-color: #fff; /* Sécurité si vos logos ont un fond transparent */
}

/* TITRES ET LOCALISATION */
.service-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.service-location {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* BOUTONS */
.btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.service-card:hover .btn {
    background-color: #333;
}