.bloc-versus-pieces {
    position: relative;
    overflow: hidden;
    /* padding-top: 0px !important; */
}

.versus-pieces {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bloc-gap, 40px);
}

.versus-pieces--pleine-hauteur {
    min-height: calc(100vh - 240px);
}

.versus-pieces--ambiance::before {
    content: "";
    position: absolute;
    top: -25%;
    left: 50%;
    width: 100vw;
    height: 150%;
    margin-left: -50vw;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(65% 85% at -8% 50%, color-mix(in srgb, var(--halo-1, transparent) 70%, transparent), transparent 72%),
        radial-gradient(65% 85% at 108% 50%, color-mix(in srgb, var(--halo-2, transparent) 70%, transparent), transparent 72%);
}

.versus-pieces__illustration {
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%);
    width: min(420px, 32%);
    z-index: 0;
    opacity: 0.14;
    pointer-events: none;
}

.versus-pieces__illustration picture,
.versus-pieces__illustration img {
    display: block;
    width: 100%;
    height: auto;
}

.versus-pieces__intro {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    max-width: min(680px, 46vw);
    text-align: center;
}

.versus-pieces__intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.versus-pieces__surtitre {
    font-family: "Cabinet" !important;
    color: var(--color-primary);
    font-size: clamp(20px, 2vw, 28px) !important;
    font-weight: 700;
    line-height: 1.2;
}

.versus-pieces__titre {
    margin: 0;
}

.versus-pieces__soustitre {
    margin: 0;
    font-size: clamp(18px, 1.7vw, 24px);
}

.versus-pieces__lien {
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    opacity: 0.65;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.versus-pieces__lien:hover {
    color: inherit;
    opacity: 1;
}

.versus-pieces__piece {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    margin-top: clamp(130px, 16vw, 190px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 520px;
    text-align: center;
}

.versus-pieces__visual {
    position: relative;
    display: block;
    width: clamp(260px, 29vw, 480px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    animation: versus-flottement 6s ease-in-out infinite;
}

.versus-pieces__piece:nth-of-type(2) .versus-pieces__visual {
    animation-delay: -3s;
}

.versus-pieces__coin {
    position: relative;
    z-index: 1;
    width: 100%;
}

.versus-pieces__coin picture {
    display: block;
    width: 100%;
}

.versus-pieces__coin picture img {
    display: block;
    width: 100%;
    height: auto;
}

.versus-pieces__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.versus-pieces__piece-titre {
    margin: 0;
}

.versus-pieces__piece-desc {
    margin: 0;
    font-size: 18px;
}

.versus-pieces__hint {
    margin: 0;
    font-size: 16px;
    opacity: 0.6;
}

.versus-pieces__content .button {
    margin-top: 8px;
}

@keyframes versus-flottement {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 1024px) {

    .versus-pieces {
        flex-direction: column;
        gap: 48px;
    }

    .versus-pieces__intro {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
    }

    .versus-pieces__piece {
        margin-top: 0;
    }

    .versus-pieces__illustration {
        display: none;
    }

    .versus-pieces--pleine-hauteur {
        min-height: 0;
    }

    .versus-pieces--haut-de-page {
        padding-top: 90px;
    }
}

@media (max-width: 768px) {

    .versus-pieces__visual {
        width: min(320px, 76vw);
    }

    .versus-pieces__piece {
        gap: 16px;
    }
}

@media (max-width: 600px) {

    .versus-pieces--haut-de-page {
        padding-top: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .versus-pieces__visual {
        animation: none;
    }
}
