#services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-card {
    background: var(--surface-2);
    border: 0.5px solid var(--bdr);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.service-card .ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.service-card p {
    font-size: 11px;
    color: var(--t2);
    line-height: 1.5;
}


/* ============================= */
/* MODALE */
/* ============================= */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.service-modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
}


/* Contenu */

.service-modal-content {
    position: relative;
    z-index: 2;

    width: min(850px, 100%);
    max-height: 90vh;

    display: grid;
    grid-template-columns: 1.1fr 1fr;

    background: var(--teal-lt);
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 25px 70px rgba(0,0,0,.25);

    animation: modalIn .2s ease;
}

@keyframes modalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Bouton fermer */

.modal-close {
    position: absolute;
    z-index: 5;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: var(--teal);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 18px;
}

.modal-close:hover {
    background: var(--teal-dk);
}


/* ============================= */
/* GALERIE */
/* ============================= */

.modal-gallery {
    position: relative;
    min-height: 400px;
    background: lab(100% 0.01 -0.01);

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    min-height: 400px;

    object-fit: cover;

    display: block;
}


/* Boutons précédent / suivant */

.gallery-btn {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: var(--teal-lt);
    color: white;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.gallery-btn:hover {
    background: var(--teal);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}


/* Compteur */

.gallery-counter {
    position: absolute;

    bottom: 12px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(0,0,0,.55);
    color: white;

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 10px;
}


/* ============================= */
/* INFORMATIONS */
/* ============================= */

.modal-info {
    padding: 30px;
    overflow-y: auto;
}

.modal-tag {
    display: inline-block;

    padding: 3px 10px;

    border-radius: 20px;

    background: var(--teal);
    color: white;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .5px;

    margin-bottom: 10px;
}

.modal-info h2 {
    font-size: 24px;
    font-weight: 500;

    color: var(--text-primary);

    margin-bottom: 12px;
}

.modal-info > p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--t2);

    margin-bottom: 22px;
}

.modal-info h4 {
    font-size: 12px;
    font-weight: 500;

    color: var(--text-primary);

    margin-bottom: 10px;
}

.modal-info ul {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-bottom: 20px;
}

.modal-info li {
    font-size: 11px;
    color: var(--t2);

    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.modal-info li::before {
    content: "✓";

    color: var(--teal);
    font-weight: 600;
}

.modal-devis {
    display: block;
    width: 100%;

    text-align: center;

    padding: 10px;
}
/* ============================= */
/* ADAPTATION MOBILE */
/* ============================= */

@media (max-width: 1000px) {

    #services-container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    #services-container {
        grid-template-columns: 1fr;
    }

    .service-modal-content {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
    }

}

.gallery-btn i, .modal-close i{ font-size:22px; line-height:1; display:block; }
.gallery-btn:hover{ background:var(--teal,#007070)!important; }
.modal-close:hover{ background:var(--teal,#007070)!important; color:#fff; }
