/* Conteneur principal */
.services-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
/* Texte d'intro */
.intro {
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: #295861;
}

/* Grille des services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Carte service */
.service-item {
    background-color: #e9e6df;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Image service */
.service-item img.service-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: cover;
}

/* Formulaire */
.form-group {
    margin-bottom: 12px;
    text-align: left;
    color: #295861;

}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #295861;

}

.form-control,
textarea,
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e9e6df;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-control:focus,
textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #295861;
}

/* Boutons */
.btn {
    padding: 8px 14px;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    color: #295861;
    background-color: #e9e6df;
    box-shadow: 0 0 0 0.25rem rgba(41, 88, 97, 0.5); /* Vert semi-transparent */ 
        transform: translateY(-2px);
}

.btn-danger {
    background-color: #e53935;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Messages d'erreur */
.text-danger {
    color: #d32f2f;
    font-size: 0.9rem;
}
.image-wrapper {
    position: relative;
    display: inline-block;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: #295861;
}

/* Responsive */
@media (max-width: 768px) {
    .services-container {
        padding: 12px;
    }
}
