.details-btn {
    background-color: transparent;
    border: 2px solid forestgreen;
    color: forestgreen;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.details-btn:hover {
    background-color:forestgreen;
    color: white;
}

/* --- Styles de la Fenêtre Modale (Pop-up) --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; 
    z-index: 1000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Fond semi-transparent noir */
    backdrop-filter: blur(5px); /* Effet de flou sur l'arrière-plan */
    animation: fadeIn 0.4s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% du haut et centré */
    padding: 0;
    border-radius: 10px;
    width: 90%; 
    max-width: 600px; /* Largeur max */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s;
}

/* Image dans la modale */
.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-content h2 {
    padding: 20px 20px 0 20px;
    color: #228b22
}

.modal-content p {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: #555;
}

/* Bouton de fermeture (X) */
.close-btn {
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: 0.3s;
}

.close-btn:hover {
    background-color: rgba(255,0,0,0.8);
}

/* Bouton Devis dans la modale */
.modal-content .cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto 30px auto;
    text-align: center;
    background-color: #0b9b66; /* Vert action ou bleu EPIC */
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
    /* Base et Réinitialisation */


main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section de Filtres */
.filters {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.856);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    padding: 10px 15px;
    border: 2px solid #0b9b66;
    background-color: white;
    color: #0b9b66;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #0b9b66;
    color: white;
}

/* Grille des Services (Design Responsive) */
.service-grid {
    display: grid;
    /* Mise en page par défaut pour les petits écrans (1 colonne) */
    grid-template-columns: 1fr;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Responsive pour tablettes et desktops */
@media (min-width: 768px) {
    .service-grid {
        /* 2 colonnes pour les tablettes */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        /* 3 colonnes pour les desktops */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cartes de Service */
.service-card {
    background-color: white;
    /*padding: 20px;*/
    border-radius: 8px;
     box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    /*transition: transform 0.3s ease-in-out;*/
    transition: transform 0.3s, box-shadow 0.3s;
    /*border-left: 5px solid var(--primary-color);*/
}

/* Style de la carte quand elle est cachée par le filtre */
.service-card.hidden {
    display: none;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: forestgreen; /* Couleur secondaire */
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background-color:forestgreen;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}