/* =================================================================
   MEGATECH — Services Grid v2 + Nav Active Fix
   Direction : minimalisme raffiné B2B
   Hover : élévation + ombre neutre uniquement, zéro couleur parasite
================================================================= */


/* ================================================================
   GRILLE
================================================================= */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .srv-grid { grid-template-columns: 1fr; } }


/* ================================================================
   CARTE — base
================================================================= */
.srv-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px 32px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;

    transition:
        box-shadow   .35s cubic-bezier(.22,.68,0,1.2),
        transform    .35s cubic-bezier(.22,.68,0,1.2),
        border-color .3s ease;
}

/* Hover : élévation pure — AUCUNE couleur de bord parasite */
.srv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px -10px rgba(15, 23, 42, .11);
    border-color: var(--gray-300);
}

/* Suppression totale des anciens éléments décoratifs */
.srv-card__dots,
.srv-card__deco-circle { display: none !important; }


/* ================================================================
   ICÔNE
================================================================= */
.srv-card__icon-wrap { margin-bottom: 22px; }

.srv-card__icon-circle {
    width: 46px;
    height: 46px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background .3s ease, color .3s ease;
}

.srv-card:hover .srv-card__icon-circle {
    background: var(--blue);
    color: var(--white);
}

.srv-card__img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
}


/* ================================================================
   BADGE SERVICE PHARE
================================================================= */
.srv-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF9EC;
    color: #92680A;
    border: 1px solid #F5D97A;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.srv-card__badge i { font-size: .65rem; }


/* ================================================================
   CORPS
================================================================= */
.srv-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.srv-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.srv-card__text {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 22px;
}


/* ================================================================
   LIEN CTA
================================================================= */
.srv-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    margin-top: auto;
    transition: color .25s ease, gap .25s ease;
}

.srv-card__link-icon {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    color: var(--blue);
    flex-shrink: 0;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.srv-card:hover .srv-card__link        { color: var(--blue-dark); gap: 11px; }
.srv-card:hover .srv-card__link-icon   { background: var(--blue); border-color: var(--blue); color: var(--white); }


/* ================================================================
   ÉTAT VIDE
================================================================= */
.srv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

.srv-empty i { font-size: 2.5rem; display: block; margin-bottom: 14px; opacity: .35; }


/* ================================================================
   NAV — ÉTAT ACTIF
   Fix : Blade génère "nav-menu__link--active" mais le CSS
   ciblait uniquement ".is-active". On unifie proprement.
================================================================= */

/* Desktop — soulignement fin discret, fond transparent */
.nav-menu__link--active {
    color: var(--gray-900) !important;
    font-weight: 700 !important;
    background: transparent !important;
    position: relative;
}

.nav-menu__link--active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* Dropdown item actif */
.nav-dropdown__item--active                        { background: var(--gray-50) !important; }
.nav-dropdown__item--active .nav-dropdown__icon    { background: var(--gray-900) !important; color: var(--white) !important; }
.nav-dropdown__item--active .nav-dropdown__label   { color: var(--gray-900) !important; font-weight: 700; }

/* Mobile — bordure gauche rouge, fond très léger */
@media (max-width: 991px) {
    .nav-menu__link--active {
        background: var(--gray-50) !important;
        color: var(--gray-900) !important;
        border-left: 3px solid var(--red);
        padding-left: 17px;
    }
    .nav-menu__link--active::after { display: none; }
}


/* ================================================================
   VIGNETTE IMAGE — titre + image côte à côte
================================================================= */
.srv-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

/* Le titre prend l'espace disponible */
.srv-card__title-row .srv-card__title {
    margin-bottom: 0;
    flex: 1;
}

/* Vignette : petit carré arrondi à droite du titre */
.srv-card__thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
    transition: transform .3s ease, box-shadow .3s ease;
}

.srv-card:hover .srv-card__thumb {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
}