/**
 * Page Services — mise en page premium (SPA)
 */

/* Services discontinués — agence de voyage & DHL (non affichés) */
body.ht-spa-active #ht-page-content .ht-services-page .ht-service-retired,
body.ht-spa-active #ht-page-content .ht-services-page #voyage,
body.ht-spa-active #ht-page-content .ht-services-page #dhl,
body.ht-spa-active #ht-page-content .ht-services-page .ht-services-nav a[href="#voyage"],
body.ht-spa-active #ht-page-content .ht-services-page .ht-services-nav a[href="#dhl"] {
    display: none !important;
}

body.ht-spa-active #ht-page-content .ht-services-page .ht-page-body,
body.ht-spa-active #ht-page-content .ht-services-page .ht-page-body > .ht-wrap {
    padding-top: 3.25rem !important;
}

body.ht-spa-active #ht-page-content .ht-services-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 3rem !important;
    padding: 0 !important;
}

body.ht-spa-active #ht-page-content .ht-services-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #606060 !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.ht-spa-active #ht-page-content .ht-services-nav a i {
    color: #b69854;
    font-size: 0.95rem;
}

body.ht-spa-active #ht-page-content .ht-services-nav a:hover,
body.ht-spa-active #ht-page-content .ht-services-nav a:focus {
    border-color: #deb666;
    background: #faf6ee;
    color: #606060 !important;
}

/* Grille hôtellerie */
body.ht-spa-active #ht-page-content .ht-services-core {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem !important;
}

body.ht-spa-active #ht-page-content .ht-service-core-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

body.ht-spa-active #ht-page-content .ht-service-core-card:hover {
    border-color: rgba(222, 182, 102, 0.55);
    box-shadow: 0 12px 40px rgba(222, 182, 102, 0.15);
    transform: translateY(-3px);
}

body.ht-spa-active #ht-page-content .ht-service-core-card__media {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

body.ht-spa-active #ht-page-content .ht-service-core-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

body.ht-spa-active #ht-page-content .ht-service-core-card:hover .ht-service-core-card__media img {
    transform: scale(1.04);
}

body.ht-spa-active #ht-page-content .ht-service-core-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.ht-spa-active #ht-page-content .ht-service-core-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf6ee;
    color: #b69854;
    border-radius: 50%;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

body.ht-spa-active #ht-page-content .ht-service-core-card h3 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #606060 !important;
    margin: 0 0 0.5rem !important;
}

body.ht-spa-active #ht-page-content .ht-service-core-card p {
    font-family: 'Lato', sans-serif !important;
    font-size: 15px !important;
    color: #858a99 !important;
    line-height: 1.65 !important;
    margin: 0 0 1rem !important;
    flex: 1;
}

body.ht-spa-active #ht-page-content .ht-service-core-card .ht-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Blocs détail connexes */
body.ht-spa-active #ht-page-content .ht-service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem !important;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

body.ht-spa-active #ht-page-content .ht-service-detail:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

body.ht-spa-active #ht-page-content .ht-service-detail__media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

body.ht-spa-active #ht-page-content .ht-service-detail__media img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

body.ht-spa-active #ht-page-content .ht-service-detail__tag {
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: #b69854;
    margin-bottom: 0.5rem;
}

body.ht-spa-active #ht-page-content .ht-service-detail h2 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #606060 !important;
    margin: 0 0 0.75rem !important;
    line-height: 1.25 !important;
}

body.ht-spa-active #ht-page-content .ht-service-detail .ht-lead {
    margin-bottom: 1rem !important;
}

body.ht-spa-active #ht-page-content .ht-service-detail__contact {
    margin-top: 1rem !important;
    font-size: 15px;
    color: #606060;
}

body.ht-spa-active #ht-page-content .ht-service-detail__contact a {
    color: #b69854;
    text-decoration: none;
}

body.ht-spa-active #ht-page-content .ht-service-detail__contact a:hover {
    text-decoration: underline;
}

body.ht-spa-active #ht-page-content .ht-service-detail__contact i {
    color: #deb666;
    margin-right: 0.35rem;
}

/* Bloc gratuits */
body.ht-spa-active #ht-page-content .ht-services-free {
    background: #fafafa;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin: 2rem 0 3rem !important;
}

body.ht-spa-active #ht-page-content .ht-services-free .ht-section-title {
    display: block !important;
}

body.ht-spa-active #ht-page-content .ht-services-contact {
    margin-top: 1rem !important;
    align-items: center;
}

body.ht-spa-active #ht-page-content .ht-services-contact .ht-section-title {
    display: block !important;
    margin-bottom: 0.75rem !important;
}

/* .ht-page-cta : ht-buttons.css */

/* Ancres : décalage sous header fixe */
body.ht-spa-active #ht-page-content .ht-services-page [id] {
    scroll-margin-top: 100px;
}

@media (max-width: 991px) {
    body.ht-spa-active #ht-page-content .ht-services-core {
        grid-template-columns: 1fr;
    }

    body.ht-spa-active #ht-page-content .ht-service-detail,
    body.ht-spa-active #ht-page-content .ht-service-detail--reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    body.ht-spa-active #ht-page-content .ht-service-detail__media {
        order: -1;
    }

    body.ht-spa-active #ht-page-content .ht-stats-band {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    body.ht-spa-active #ht-page-content .ht-services-nav a span {
        display: none;
    }

    body.ht-spa-active #ht-page-content .ht-services-nav a {
        padding: 0.55rem 0.75rem;
    }
}
