/* ===========================================================
   SECTION "NOS SERVICES" — MODÈLE CLASSIQUE
   Bandeau titre + onglets EVENT / COMMUNICATION / DIGITAL cliquables,
   puis une grille de fiches (image + titre + description) pour la
   catégorie active. Pas de scroll piloté, pas de cercles — juste un clic
   pour changer d'onglet (voir services-showcase.js).
=========================================================== */

.services-showcase {
    background: #ffffff;
    padding: 90px 0 100px;
}

.services-showcase-head {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.services-showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #e30613;
    margin-bottom: 16px;
}

.services-showcase-title {
    font-family: var(--font-primary);
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin: 0;
}

/* Sur écran assez large, le titre tient sur une seule ligne (voir la
   largeur de .services-showcase-head, élargie pour ça) ; en dessous, le
   retour à la ligne normal reprend la main plutôt que de déborder. */
@media (min-width: 701px) {
    .services-showcase-title {
        white-space: nowrap;
    }
}

/* -----------------------------------------------------------
   ONGLETS
----------------------------------------------------------- */
.services-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.services-tab {
    background: none;
    border: none;
    padding: 0 2px 16px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.45);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.services-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #e30613;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-tab:hover {
    color: rgba(17, 17, 17, 0.75);
}

.services-tab.is-active {
    color: #111;
}

.services-tab.is-active::after {
    transform: scaleX(1);
}

/* -----------------------------------------------------------
   GRILLE DE FICHES
----------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(var(--items, 3), minmax(0, 1fr));
    gap: 24px;
    width: min(1200px, 92%);
    margin: 0 auto;
}

.services-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-top: 3px solid #e30613;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.1);
}

.services-card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.services-card-body {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
    flex: 1 1 auto;
}

.services-card-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e30613;
    margin-bottom: 8px;
}

.services-card-title {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: #111;
    margin: 0 0 10px;
}

.services-card-desc {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(17, 17, 17, 0.6);
    margin: 0 0 18px;
    flex: 1 1 auto;
}

.services-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    color: #e30613;
    text-decoration: none;
    width: fit-content;
    transition: gap 0.3s ease;
}

.services-card-link:hover {
    gap: 10px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-tabs {
        gap: 28px;
    }
}

@media (max-width: 576px) {
    .services-showcase {
        padding: 60px 0 70px;
    }

    .services-tabs {
        gap: 18px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: 0 0 32px;
        padding: 0 20px 4px;
    }

    .services-tab {
        flex-shrink: 0;
        font-size: 0.78rem;
    }

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