/**
 * Section Services — accueil (en-tête identique à NOS FORMATIONS)
 */

.tcf-services {
    background: var(--tcf-footer-bg, #141622);
    padding: 5rem 0;
    color: var(--tcf-text-on-dark, #fff);
}

.tcf-services .tcf-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tcf-services .tcf-main-title {
    color: var(--main-color, #d30d0d);
    text-align: center;
    margin-bottom: 0;
}

.tcf-services__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 2rem;
}

.tcf-services__visual {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.tcf-services__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tcf-services__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 22, 34, 0.05) 0%,
        rgba(20, 22, 34, 0.55) 100%
    );
    pointer-events: none;
}

.tcf-services__visual:hover img {
    transform: scale(1.04);
}

.tcf-services__badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.tcf-services__badge i {
    font-size: 1.125rem;
    color: var(--tcf-primary, #d30d0d);
}

.tcf-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tcf-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.25rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.tcf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(211, 13, 13, 0.18);
    border-color: rgba(211, 13, 13, 0.25);
}

.tcf-service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcf-gradient, linear-gradient(135deg, #d30d0d 0%, #a50a0a 100%));
    color: #fff;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.tcf-service-card__icon i {
    font-size: 22px;
    line-height: 1;
    display: block;
}

.tcf-service-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem !important;
    font-weight: 700;
    color: var(--tcf-text, #141622);
    line-height: 1.3;
}

.tcf-service-card__text {
    margin: 0;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: var(--tcf-text-muted, #6c757d);
}

@media (max-width: 768px) {
    .tcf-services {
        padding: 5rem 0;
    }

    .tcf-services .tcf-wrapper {
        padding: 0 1.25rem;
    }

    .tcf-services__layout {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }

    .tcf-services__visual {
        min-height: 260px;
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .tcf-services .tcf-wrapper {
        padding: 0 1rem;
    }

    .tcf-services__grid {
        grid-template-columns: 1fr;
    }

    .tcf-service-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.1rem 1rem;
    }

    .tcf-service-card__icon {
        margin-bottom: 0;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .tcf-service-card__icon i {
        font-size: 20px;
    }

    .tcf-service-card__body {
        flex: 1;
        min-width: 0;
    }
}
