/**
 * Section Nos Services - Avec image de fond et overlay
 * Cartes pour chaque service avec image et description
 */

/* ============================================================
   STRUCTURE PRINCIPALE
   ============================================================ */

.services-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    /* Image de fond (définie via style inline dans le PHP) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay très foncé par-dessus l'image */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 7, 0.50);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.services-section__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ============================================================
   EN-TÊTE DE SECTION
   ============================================================ */

.services-section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-section__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: -0.06em;
    font-family: var(--font-heading);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.services-section__title .highlight {
    color: var(--color-primary);
}

.services-section__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-family: var(--font-primary);
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.services-section__description {
    font-size: 1.125rem;
    color: var(--color-light);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-primary);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* ============================================================
   GRILLE DES SERVICES
   ============================================================ */

.services-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* ============================================================
   CARTES DE SERVICE
   ============================================================ */

.services-section__card {
    position: relative;
    /* Effet Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px 0 rgba(3, 6, 7, 0.15),
        inset 0 0 0 1px rgba(227, 177, 52, 0.1);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.services-section__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Image du service */
.services-section__card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.services-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.services-section__card:hover .services-section__image {
    transform: scale(1.1);
}

/* Badge B2C/B2B */
.services-section__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
}

/* Overlay au hover */
.services-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 6, 7, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.services-section__card:hover .services-section__overlay {
    opacity: 1;
}

/* Bouton Découvrir */
.services-section__button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.services-section__button:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Contenu de la carte */
.services-section__card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-section__card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 1rem;
}

/* Barre de soulignement sous le titre */
.services-section__card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

.services-section__card-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-primary);
}

/* ============================================================
   CROIX DÉCORATIVES
   ============================================================ */

/* Croix en haut à gauche */
.services-section__cross-top-left {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: 100px;
    height: 100px;
    z-index: 2;
    pointer-events: none;
}

.services-section__cross-top-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-primary);
}

.services-section__cross-top-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 164%;
    height: 2px;
    background: var(--color-primary);
}

/* Croix en bas à droite */
.services-section__cross-bottom-right {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    width: 100px;
    height: 100px;
    z-index: 2;
    pointer-events: none;
}

.services-section__cross-bottom-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-primary);
}

.services-section__cross-bottom-right::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

/* Croix au centre droit */
.services-section__cross-center-right {
    position: absolute;
    top: 33%;
    right: 5rem;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

.services-section__cross-center-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-primary);
}

.services-section__cross-center-right::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .services-section {
        padding: 4rem 1.5rem;
        background-attachment: scroll;
    }

    .services-section__header {
        margin-bottom: 3rem;
    }

    .services-section__title {
        font-size: 2rem;
    }

    .services-section__subtitle {
        font-size: 1.125rem;
    }

    .services-section__description {
        font-size: 1rem;
    }

    .services-section__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-section__card-image {
        height: 220px;
    }

    .services-section__card-content {
        padding: 1.5rem;
    }

    .services-section__card-title {
        font-size: 1.5rem;
    }

    /* Croix plus petites sur mobile */
    .services-section__cross-top-left,
    .services-section__cross-bottom-right {
        width: 70px;
        height: 70px;
    }

    .services-section__cross-top-left {
        top: 2rem;
        left: 1.5rem;
    }

    .services-section__cross-bottom-right {
        bottom: 2rem;
        right: 1.5rem;
    }

    /* Masquer la croix centrale sur mobile */
    .services-section__cross-center-right {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .services-section {
        padding: 5rem 2rem;
        background-attachment: scroll;
    }

    .services-section__title {
        font-size: 2.5rem;
    }

    .services-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .services-section__card-image {
        height: 240px;
    }

    /* Croix ajustées pour tablette */
    .services-section__cross-top-left,
    .services-section__cross-bottom-right {
        width: 85px;
        height: 85px;
    }

    .services-section__cross-top-left {
        top: 2.5rem;
        left: 2rem;
    }

    .services-section__cross-bottom-right {
        bottom: 2.5rem;
        right: 2rem;
    }

    .services-section__cross-center-right {
        width: 100px;
        height: 100px;
        right: 3rem;
    }

    .services-section__cross-center-right::before {
        width: 2px;
    }

    .services-section__cross-center-right::after {
        height: 2px;
    }
}

/* ============================================================
   RESPONSIVE - LARGE DESKTOP
   ============================================================ */

@media (min-width: 1280px) {
    .services-section {
        padding: 10rem 3rem;
    }

    .services-section__container {
        max-width: 1600px;
    }

    .services-section__header {
        margin-bottom: 5rem;
    }

    .services-section__title {
        font-size: 3.5rem;
    }

    .services-section__subtitle {
        font-size: 1.75rem;
    }

    .services-section__description {
        font-size: 1.25rem;
    }

    .services-section__grid {
        gap: 2.5rem;
    }

    .services-section__card-image {
        height: 320px;
    }

    /* Croix plus grandes sur large desktop */
    .services-section__cross-top-left,
    .services-section__cross-bottom-right {
        width: 120px;
        height: 120px;
    }

    .services-section__cross-top-left {
        top: 4rem;
        left: 43rem;
    }

    .services-section__cross-bottom-right {
        bottom: 4rem;
        right: 4rem;
    }

    .services-section__cross-center-right {
        width: 140px;
        height: 140px;
        right: 2rem;
    }

    .services-section__cross-center-right::before {
        width: 2px;
    }

    .services-section__cross-center-right::after {
        height: 2px;
    }
}
