.services-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
}

/* Intro Section */
.intro {
    margin-bottom: 32px;
    text-align: center;
}

.intro h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1f7a8c;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1rem;
    color: #555;
    max-width: 700px;
    margin: auto;
    line-height: 1.5;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;       /* permet le retour à la ligne */
    gap: 20px;
    justify-content: center; /* centre les lignes */
}

.service-item {
    background-color: #ffffff;
    border-radius: 12px;
    flex: 1 1 300px;       /* flex-grow:1, flex-shrink:1, base 300px */
    max-width: 350px;      /* largeur max pour pas être trop large */
    min-width: 250px;      /* largeur mini pour garder une bonne taille */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 0 auto;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.service-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

/* Contenu */
.service-item h3 {
    font-size: 1.25rem;
    margin: 16px 0 8px;
    color: #1f7a8c;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 16px 20px;
    line-height: 1.4;
}

/* Bouton ajout */
button.addButton {
    align-self: flex-start;
    margin-bottom: 20px;
    background: #1f7a8c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button.addButton:hover {
    background: #166272;
}

/* Responsive */
@media (max-width: 768px) {
    
        .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        max-width: 100%;
        min-width: auto;
        flex-basis: auto;
    }
    .services-container {
        padding: 15px;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .service-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .service-item h3 {
        font-size: 1.1rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}
