/* ========== CONTAINER PRINCIPAL ========== */

.boxService {
    position: relative;
    min-height: calc(100vh - 62px);
    height: auto;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SLIDE ET ITEMS ========== */

.boxService .slide .item {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 80%;
    transform: translate(0, -50%);
    border-radius: 8px;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

/* Items principaux (centre) */
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

/* Filtre sombre uniquement sur les deux items principaux */
.boxService .slide .item:nth-child(1)::before,
.boxService .slide .item:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: inherit;
    z-index: 1;
}

/* Items secondaires (côté) */
.slide .item:nth-child(3) {
    left: 65%;
}

.slide .item:nth-child(4) {
    left: calc(65% + 220px);
}

/* Items hors-champ */
.slide .item:nth-child(n + 5) {
    left: calc(65% + 440px);
    opacity: 0;
}

/* ========== CONTENU D'UN ITEM ========== */

.item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 500px;
    text-align: left;
    text-shadow: 0 0 10px black;
    color: var(--color-gray-background);
    transform: translate(0, -50%);
    display: none;
    z-index: 2;
}

/* Affichage du contenu sur le deuxième item */
.slide .item:nth-child(2) .content {
    display: block;
}

/* Titre */
.content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 1;
}

/* Description */
.content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 1;
}

/* Bouton */
.content .seeMore {
    font-weight: bold;
    background: var(--color-site-item);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 1;
    border: none;
}

.content .seeMore a {
    color: var(--color-gray-background);
    text-decoration: none;
}

.content .seeMore:hover {
    background: var(--color-site-item-hover);
    transform: translateY(-3px);
}

/* ========== BOUTONS DE NAVIGATION ========== */

.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 50px;
}

.button button {
    width: 70px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-site-item);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.button button:last-child {
    margin-left: 25px;
}

.button button i {
    color: var(--color-gray-background);
    font-size: 25px;
}

.button button:hover {
    transform: translateY(-3px);
    background: var(--color-site-item-hover);
}

/* ========== ANIMATION ========== */

/* Animation Fade-In Up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.boxService {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

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

/* Écrans ≤ 700px */
@media (max-width: 700px) {
    .item .content {
        left: 40px;
    }
}

/* Écrans ≤ 560px */
@media (max-width: 560px) {
    .item .content {
        left: 15px;
        width: 400px;
    }

    .item .content .name {
        font-size: 18px;
    }

    .item .content .des {
        font-size: 13px;
    }

    .slide .item:nth-child(3) {
        left: 110%;
    }

    .content .seeMore {
        padding: 5px 15px !important;
        font-size: 13px;
    }

    .button {
        bottom: 20px;
    }

    .button button {
        width: 35px;
        height: 35px;
    }

    .button button i {
        font-size: 18px;
    }

    .button button:last-child {
        margin-left: 5px;
    }
}
