
/* =========================================
   SERVICES
========================================= */

.services-page {
    background: #fff;
}

.services-intro {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 25px;
}

.services-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bleu);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.services-intro h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}

.services-intro p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   GRILLE DES SPÉCIALITÉS
========================================= */

.services-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 10px 0 65px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.specialty-card {
    position: relative;
    display: block;
    height: 205px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--deep);
    text-decoration: none;
    isolation: isolate;
}

.specialty-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.specialty-card:hover img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 19, 55, .05) 10%,
        rgba(8, 19, 55, .28) 45%,
        rgba(8, 19, 55, .88) 100%
    );
}

.specialty-icon {
    position: absolute;
    left: 16px;
    bottom: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 15px;
    backdrop-filter: blur(5px);
}

.specialty-text {
    position: absolute;
    right: 15px;
    bottom: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.specialty-text b {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.specialty-text small {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.4;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {
    .specialty-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .specialty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .specialty-card {
        height: 185px;
    }

    .specialty-text b {
        font-size: 14px;
    }

    .specialty-text small {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .services-intro {
        padding-top: 28px;
    }

    .services-content {
        padding-bottom: 45px;
    }

    .specialty-card {
        height: 165px;
    }

    .specialty-icon {
        bottom: 63px;
        left: 12px;
        width: 32px;
        height: 32px;
    }

    .specialty-text {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
}
/* =========================================
   CARTES SERVICES AVEC DESCRIPTION
========================================= */

.specialty-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    overflow: hidden; 
    border-radius: 8px;
    background: #fff;
    isolation: isolate;
}

/* =========================================
   PHOTO : SUPERPOSITION ORIGINALE CONSERVÉE
========================================= */

.specialty-image {
    position: relative;
    display: block;
    flex: 0 0 205px;
    width: calc(100% + 2px);
    height: 205px;
    margin: -1px -1px 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--deep);
}

/* L'image reste en arrière-plan */

.specialty-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.specialty-card:hover img {
    transform: scale(1.06);
}

/* =========================================
   DESCRIPTION
========================================= */

.specialty-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 5px 5px;
    background: #fff;
}

.specialty-details p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* =========================================
   LIEN CONTACT
========================================= */

.specialty-contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
    color: var(--bleu);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.specialty-contact:hover {
    color: var(--bleu-fonce);
}

.specialty-contact i {
    font-size: 11px;
    transition: transform .2s ease;
}

.specialty-contact:hover i {
    transform: translateX(4px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {
    .specialty-image {
        flex-basis: 185px;
        height: 185px;
    }

    .specialty-details {
        padding: 11px;
    }
}

@media (max-width: 420px) {
    .specialty-image {
        flex-basis: 165px;
        height: 165px;
    }

    .specialty-details {
        padding: 10px;
    }
}