.titre-type-projet {
    margin-top: 50px;
}

/* Conteneur pour aligner les cards et le formulaire horizontalement */
.projects-services {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Container des cartes */
.services-container {
    display: flex;
    gap: 20px; /* Espace entre les cartes */
    flex-wrap: wrap;
    width: 65%;
}

/* Style des cartes */
.card {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 23%; /* Chaque carte prend 23% de la largeur */
    transition: box-shadow 0.3s ease, background-color 0.3s ease; /* Retrait de la transformation de translation */
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #007bff;
}

.card p {
    color: #333;
    line-height: 1.6;
}

/* Effet hover stylé */
.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
    background-color: #f1f1f1; /* Changement de fond léger */
}

.card:hover h3 {
    color: #0056b3; /* Changement de couleur du titre */
}

.card:hover p {
    color: #555; /* Changement de couleur du texte */
}

/* Formulaire de contact à droite */
.contact-form {
    width: 30%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.contact-form h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #007bff;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-services {
        flex-direction: column;
        align-items: center;
    }

    .services-container, .contact-form {
        width: 100%;
    }

    .card {
        width: 100%; /* Les cartes prennent toute la largeur sur petits écrans */
    }
}
