/* ===================== SERVICES PAGE ===================== */

/* ---- Hero ---- */
.services-hero {
    background-color: #62757c;
    padding: 130px 5% 64px;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.8em;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.services-hero-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

/* ---- Contenu principal ---- */
.services-main {
    background-color: #f7f7f5;
    padding: 64px 5% 88px;
}

/* ---- Bloc par catégorie ---- */
.services-category {
    margin-bottom: 72px;
}

.services-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #62757c;
    text-align: left;
    margin: 0 0 32px;
    padding: 4px 0 4px 16px;
    border-left: 4px solid #b34b32;
    line-height: 1.3;
}

/* ---- Grille de cards ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- Card service ---- */
.service-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #b34b32;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ---- Image de la card ---- */
.service-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #d8e3e0;
    flex-shrink: 0;
}

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

.service-card:hover .service-card-image img {
    transform: scale(1.04);
}

/* ---- Corps de la card ---- */
.service-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-body h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: #2a3c42;
    margin: 0 0 10px;
    text-align: left;
    line-height: 1.4;
}

.service-card-body p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
    text-align: left;
}

/* ---- CTA ---- */
.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86em;
    font-weight: 600;
    color: #b34b32;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease, color 0.2s;
}

.service-card-cta i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.service-card-cta:hover {
    color: #8f3a25;
}

.service-card-cta:hover i {
    transform: translateX(4px);
}

/* ---- État vide ---- */
.services-empty {
    text-align: center;
    color: #888;
    padding: 60px 0;
    font-size: 1.05em;
}

/* ---- Contrôles admin ---- */
.service-card .admin {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.service-card .admin a {
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 0.8em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.service-card .admin a:hover {
    background: #b34b32;
}

.service-card .admin svg path {
    fill: #fff;
}

/* ---- Responsive ---- */
@media screen and (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .services-hero {
        padding: 105px 5% 48px;
    }

    .services-hero h1 {
        font-size: 2em;
    }

    .services-hero-subtitle {
        font-size: 1em;
    }

    .services-main {
        padding: 44px 5% 64px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-title {
        font-size: 1.15em;
        margin-bottom: 24px;
    }

    .services-category {
        margin-bottom: 52px;
    }
}
