.unb-project-container {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 90px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    box-sizing: border-box;
    box-shadow: 0px -15px 30px rgba(0, 0, 0, 0.03); /* Subtle shadow for depth */
}

/* SECTION 1: HERO (FIGMA PRECISE LAYOUT) */
.unb-hero-figma {
    position: sticky;
    top: 0;
    width: 100%;
    height: 784px;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.unb-hero-content {
    position: relative;
    width: 1526px;
    height: 784px;
    margin: 0 auto;
}

.unb-fond {
    position: absolute;
    width: 100%;
    height: 774px;
    left: 0;
    top: 0;
    background-image: url('../03- Unbottled x Vice versa/UNBOTTLED x VICE VERSA-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.unb-intro-figma {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 10px;

    position: absolute;
    width: 430px;
    height: 462px;
    left: 548.09px;
    top: 300px;
    z-index: 10;
}

.unb-descriptif-figma {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px 25px 17px;
    box-sizing: border-box;
    gap: 10px;
    width: 430px;
    height: 462px;
    background-image: url('../03- Unbottled x Vice versa/Descriptif-UNBOTTLED x VICE VERSA.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.unb-text-content {
    width: 397px;
    height: 413px;
    overflow: hidden;
}

.unb-descriptif-figma p {
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #101010;
    margin: 0;
    text-align: left;
}

/* BOUTON TOUT VOIR */
.bouton-tout-voir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 113px;
    width: 22px;
    height: 13px;
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.bouton-tout-voir img {
    width: 22px;
    height: 13px;
    display: block;
}

.unb-descriptif-figma:hover .bouton-tout-voir {
    transform: translateY(8px);
    filter: invert(53%) sepia(0%) saturate(0%) brightness(90%) contrast(85%);
}

/* SECTION 2: LA SÉLECTION (Infinite/spread deck carousel of packs) */
.unb-selection-section {
    display: flex;
    flex-direction: column;
    gap: 19px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0 20px;
    overflow: hidden;
    background: transparent;
}

.unb-selection-section .unb-section-title {
    max-width: 1430px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    color: #101010;
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    font-size: 20px;
}

.unb-selection-carousel {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    position: relative;
    padding: 95px 0 110px;
    margin-top: -85px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.unb-selection-carousel::-webkit-scrollbar {
    display: none;
}

.unb-selection-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
    padding: 20px 50px;
}

.unb-selection-card {
    width: auto;
    height: 320px;
    flex-shrink: 0;
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    margin-left: -160px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    z-index: 1;
}

.unb-selection-card:first-child {
    margin-left: 0;
}

.unb-selection-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
    display: block;
    /* Apply a clean drop-shadow directly on the transparent png shape */
    filter: drop-shadow(0 6px 15px rgba(16, 16, 16, 0.08));
    transition: filter 0.4s ease;
}

/* Sibling shift animation when hovering a card (spreads open the deck) */
.unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card {
    transform: translateX(-150px);
}

.unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover {
    z-index: 10;
    transform: scale(1.2) translateY(-20px) translateX(0);
}

.unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover img {
    filter: drop-shadow(0 15px 30px rgba(16, 16, 16, 0.16));
}

.unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover ~ .unb-selection-card {
    transform: translateX(150px);
}

/* SECTION 3: GRID (liste-rocabruna layout style but with Unbottled images) */
.unb-grid-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1434px;
    margin: 0 auto;
}

.unb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px; /* vertical gap 20px, horizontal gap 14px */
    width: 100%;
}

.unb-card {
    position: relative;
    width: 100%;
    aspect-ratio: 710 / 532.5;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.unb-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.unb-card:hover .unb-card-bg {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .unb-hero-figma {
        position: relative;
        height: auto;
    }
    .unb-hero-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .unb-fond {
        position: relative;
        width: 100%;
        height: 400px;
        top: 0;
        left: 0;
    }
    .unb-intro-figma {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        padding: 20px;
        box-sizing: border-box;
    }
    .unb-descriptif-figma {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .unb-text-content {
        width: 100%;
        height: auto;
    }
    .unb-selection-carousel {
        padding: 50px 0;
        margin-top: 0;
    }
    .unb-selection-track {
        padding: 10px 20px;
        gap: 15px;
    }
    .unb-selection-card {
        margin-left: 0;
        height: 300px;
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card {
        transform: none;
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover {
        transform: scale(1.05);
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover ~ .unb-selection-card {
        transform: none;
    }
    .unb-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.roca-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(16, 16, 16, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.roca-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.roca-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roca-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.roca-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.roca-lightbox-close:hover {
    transform: scale(1.1);
    color: #101010;
}

.roca-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 40px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.roca-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.roca-lightbox-prev {
    left: -70px;
}

.roca-lightbox-next {
    right: -70px;
}

@media (max-width: 1024px) {
    .roca-lightbox-prev {
        left: 10px;
    }
    .roca-lightbox-next {
        right: 10px;
    }
    .roca-lightbox-close {
        top: -40px;
        right: 0px;
    }
    .roca-lightbox-img {
        max-width: 85vw;
        max-height: 85vh;
    }
}

/* Emotion Illustrations Physics & Drag & Float Styles */
.emotion-illu-container {
    position: absolute;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 20;
    opacity: 0; /* Géré par JS */
    transition: opacity 0.5s ease;
}

.emotion-illu-container:active {
    cursor: grabbing;
}

.emotion-illu-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.0096)) 
            drop-shadow(0px 10px 18px rgba(0, 0, 0, 0.012)) 
            drop-shadow(0px 18px 56px rgba(0, 0, 0, 0.024));
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), filter 0.2s ease;
}

.emotion-illu-container:hover .emotion-illu-inner {
    transform: translateY(-5px) scale(1.02);
}

.emotion-illu-container.dragging .emotion-illu-inner {
    transform: scale(1.08) translateY(-10px);
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.12)) 
            drop-shadow(0px 30px 50px rgba(0, 0, 0, 0.08));
}

/* Tailles individuelles des illustrations */
.env-illu {
    width: 173px;
    height: 180px;
}
.enn-illu {
    width: 105px;
    height: 180px;
}
.emb-illu {
    width: 133px;
    height: 180px;
}
.anx-illu {
    width: 123px;
    height: 180px;
}

@media (max-width: 1024px) {
    .emotion-illu-container {
        display: none;
    }
}

/* SECTION 4 : LES AUTRES ILLUSTRATIONS */
.unb-others-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1434px;
    margin: 90px auto 100px;
}

.unb-others-title {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #101010;
    margin-bottom: 10px;
}

.unb-others-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 650px;
    border-radius: 8px;
    overflow: hidden;
    gap: 0;
}

/* Cards for secondary illustrations */
.unb-other-card {
    position: relative;
    width: 478px;
    height: 650px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    text-decoration: none;
}

.unb-others-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    z-index: 1;
}

.unb-other-card:hover .unb-others-card-bg {
    transform: scale(1.04);
    filter: brightness(0.9);
}

/* Reusing unb-card-caption since there's no conflict in this file if we define it, wait, we need to define it */
.unb-card-caption {
    position: absolute;
    top: 23px;
    right: 27px;
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #101010;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #101010;
    padding: 4px 10px;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease;
}

.unb-other-card:hover .unb-card-caption {
    background: #101010;
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 1280px) {
    .unb-others-grid {
        height: 550px;
    }
    .unb-other-card {
        height: 550px;
    }
}

@media (max-width: 992px) {
    .unb-others-grid {
        flex-direction: column;
        height: auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .unb-other-card {
        width: 100%;
        height: 380px;
        border-bottom: 1px solid rgba(16, 16, 16, 0.08);
    }

    .unb-other-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .unb-others-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    .unb-other-card {
        height: 300px;
    }
    .unb-card-caption {
        font-size: 14px;
        top: 15px;
        right: 15px;
        padding: 4px 8px;
    }
}
