/* services.css */

/* Conteneur global des services */
.services-container {
    max-width: auto;
    text-align: center;
    background-color: #142c70;
    padding: 50px
}

/* Titres */
.services-container h1 {
    margin: 10px 0;
    color: #fafafa;
    font-size: 2rem;
}

.services-container h2 {
    margin: 10px 0;
    color: #fafafa;
    font-weight: lighter;    
    font-size: 1.5rem;
}
/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 20px;
    margin-top: 30px;
    align-items: end;
}

/* Chaque service individuel */
.service {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: 400px; /* hauteur par défaut */
}

/* Service du milieu plus grand */
.services-grid .service:nth-child(2) {
    min-height: 430px; /* plus grand que les autres */
}

/* Titre et sous-titre du service */
.service-header {
    text-align: center;
    background-color: #0d96a4;
    height: 120px;
    padding-top: 10px;
    border: 1px solid #ddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


.service-header h1 {
    font-weight: 500;
    color: #fafafa;
    font-size: 1.8em;
    margin: 0 0 10px 0;
}

.service-header h2 {
    font-size: 1em;
    font-weight: normal;
    margin-bottom: 20px;
    color: #fafafa;
}

/* Contenu du service */
.service-content {
    margin-top: 20px;
    flex-grow: 1;
    font-size: 1em;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
}

.service-content ul {
    list-style: none; /* supprime les puces */
    padding-left: 0;
}

.service-content li {
    position: relative;
    padding-left: 25px; /* espace pour l'icône */
    margin-bottom: 10px;
}

.service-content li::before {
    content: "\f00c"; /* Unicode de fa-check */
    font-family: "Font Awesome 5 Free"; /* pour FA6 */
    font-weight: 950; /* solid */
    color: #03c490; /* couleur icone */
    margin-right: 10px; /* espace entre l'icône et le texte */
    display: inline-block;
    font-size: 1.2em;
}
/* Bouton */
.service-button {
    text-align: center;
    margin-top: auto;
    padding-bottom: 10px;
}

.service-button .btn {
    padding: 10px 50px;
    text-decoration: none;
    color: #fff;
    background-color: #0d96a4;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.service-button .btn:hover {
    background-color: #0056b3;
}

/* Responsive : 2 colonnes sur tablettes */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services-grid .service:nth-child(2) {
        height: auto; /* supprime la hauteur fixe pour mobile */
    }
}
