/* ============================================================
   ABC SERVICES — Bloc "Nos Services / Produits"
   Classes préfixées abc-svc-* pour éviter tout conflit
   ============================================================ */

.abc-svc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 576px) {
    .abc-svc-grid {
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .abc-svc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.abc-svc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.abc-svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 114, 206, 0.15);
    border-color: var(--primary-blue);
}

.abc-svc-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--light-gray);
    overflow: hidden;
}

.abc-svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.abc-svc-card:hover .abc-svc-card-img img {
    transform: scale(1.06);
}

.abc-svc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
}

@media (min-width: 768px) {
    .abc-svc-card-body {
        padding: 14px;
    }
}

.abc-svc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .abc-svc-card-title {
        font-size: 15px;
    }
}

.abc-svc-card-desc {
    font-size: 12.5px;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abc-svc-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 12px;
    background: var(--light-gray);
    color: var(--primary-blue);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.abc-svc-card-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.abc-svc-card-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.abc-svc-card-btn:hover i {
    transform: translateX(3px);
}
/* ============================================================
   MODAL DÉTAIL SERVICE — style "article de blog"
   ============================================================ */

.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
}

.service-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-large);
    max-width: 100%;
    width: 100%;
    margin: 30px auto;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: abcSvcModalIn 0.25s ease;
}

@media (min-width: 576px) {
    .service-modal-content {
        max-width: 600px;
        margin: 50px auto;
    }
}

@media (min-width: 992px) {
    .service-modal-content {
        max-width: 720px;
    }
}

@keyframes abcSvcModalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-black);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.service-modal-close:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Corps du modal : toujours en colonne, image en haut, texte en dessous */
.service-modal-body {
    display: flex;
    flex-direction: column;
}

.service-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--light-gray);
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .service-modal-image {
        aspect-ratio: 21 / 9;
    }
}

.service-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-modal-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 768px) {
    .service-modal-info {
        padding: 32px 36px;
    }
}

.service-modal-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 16px;
    line-height: 1.3;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--medium-gray);
}

@media (min-width: 768px) {
    .service-modal-info h2 {
        font-size: 26px;
    }
}

.service-modal-info #modalServiceDescription {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray);
    white-space: pre-line;
}
