.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: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1526px;
    height: 784px;
    margin: 0 auto;
    transform-origin: top center;
    z-index: 2; /* S'assure que le contenu et les mascottes s'affichent au-dessus du fond */
}

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

.unb-logo-centre {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100px;
    z-index: 10;
    width: 580px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unb-logo-centre img {
    width: 100%;
    height: auto;
    display: block;
}

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

    position: absolute;
    width: 50%;
    height: 462px;
    left: 25%;
    top: 200px;
    z-index: 100;
}

.unb-descriptif-figma {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    box-sizing: border-box;
    gap: 10px;
    width: 100%;
    height: auto;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    cursor: pointer;
}

.unb-text-content {
    width: 100%;
    height: auto;
    overflow: hidden;
}

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

.unb-descriptif-figma p strong {
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1600px) {
    .unb-hero-content {
        transform: translateX(-50%) scale(0.9) !important;
    }
}

@media (max-width: 1400px) {
    .unb-hero-content {
        transform: translateX(-50%) scale(0.8) !important;
    }
}

@media (max-width: 1200px) {
    .unb-hero-content {
        transform: translateX(-50%) scale(0.68) !important;
    }
}

/* 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: 1400px) {
    .unb-selection-section {
        width: 100vw !important;
        left: auto !important;
        right: auto !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        position: relative !important;
    }
    .unb-selection-carousel {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding: 5vw 0 8vw !important;
        margin-top: 0 !important;
        cursor: grab;
    }
    .unb-selection-carousel:active {
        cursor: grabbing;
    }
    .unb-selection-track {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: max-content !important;
        padding: 2vw 50vw !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    .unb-selection-card {
        width: auto !important;
        height: clamp(160px, 55vw, 320px) !important;
        margin-left: clamp(-160px, -12vw, -60px) !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transition: transform 0.3s ease !important;
    }
    .unb-selection-card:first-child {
        margin-left: 0 !important;
    }
    .unb-selection-card img {
        height: 100% !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card {
        transform: none !important;
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover {
        transform: scale(1.04) !important;
        box-shadow: none !important;
    }
    .unb-selection-track:has(.unb-selection-card:hover) .unb-selection-card:hover ~ .unb-selection-card {
        transform: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .unb-hero-figma {
        position: sticky !important;
        width: 100% !important;
        height: calc(784px * (100vw / 1526)) !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    .unb-hero-content {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) scale(calc(100vw / 1526)) !important;
        transform-origin: top center !important;
    }
    .unb-logo-centre {
        width: 700px !important; /* Agrandit le logo de la hero sur tablette */
        z-index: 10 !important;
    }
    .unb-intro-figma {
        top: 310px !important; /* Descend le descriptif pour éviter tout chevauchement avec le grand logo */
        width: 65% !important;
        left: 17.5% !important;
        z-index: 50 !important;
    }
}

@media (max-width: 767px) {
    .unb-project-container {
        padding-bottom: 20px !important;
    }
    .unb-hero-figma {
        position: relative !important;
        width: 100% !important;
        height: 85vh !important; /* Même hauteur que la page Rocabruna */
        min-height: 590px !important;
        overflow: visible !important;
    }
    .unb-hero-content {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 2 !important; /* Devant le fond */
    }
    .unb-fond {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 0 !important;
        z-index: 1 !important;
    }
    .unb-logo-centre {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 10px !important;
        width: 90% !important;
        max-width: 350px !important; /* Logo généreux mais contenu */
        height: calc(100% - 380px) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important; /* Remonté en haut de la zone disponible au-dessus du descriptif */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        z-index: 5 !important;
        box-sizing: border-box !important;
    }
    .unb-logo-centre img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
    .unb-intro-figma {
        position: absolute !important;
        bottom: 0px !important; /* Aimanté tout en bas de la hero section */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 420px !important;
        height: auto !important;
        z-index: 100 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .unb-descriptif-figma {
        width: 100% !important;
        height: auto !important;
        background-image: none !important;
        background-color: #ffffff !important;
        border: 1px solid #101010 !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        border-radius: 0px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        gap: 15px !important;
    }
    .unb-descriptif-figma p {
        font-size: clamp(9px, 3.05vw, 13px) !important;
        line-height: 1.45em !important;
        margin: 0 !important;
    }
    .unb-text-content {
        width: 100%;
        height: auto;
    }
    .unb-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustements pour les écrans de faible hauteur pour garantir au moins 15px d'espacement avec le descriptif */
    @media (max-height: 720px) {
        .unb-logo-centre {
            max-width: 260px !important;
            height: calc(100% - 290px) !important;
        }
        .unb-intro-figma {
            bottom: 0px !important;
        }
        .unb-descriptif-figma {
            padding: 16px 16px !important;
        }
    }

    @media (max-height: 620px) {
        .unb-logo-centre {
            max-width: 200px !important;
            height: calc(100% - 260px) !important;
        }
        .unb-intro-figma {
            bottom: 0px !important;
        }
        .unb-descriptif-figma {
            padding: 12px 12px !important;
        }
    }
}

/* 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: 767px) {
    .emotion-illu-container {
        z-index: 110 !important;
    }
    .env-illu {
        width: 86px !important;
        height: 90px !important;
    }
    .enn-illu {
        width: 52px !important;
        height: 90px !important;
    }
    .emb-illu {
        width: 66px !important;
        height: 90px !important;
    }
    .anx-illu {
        width: 61px !important;
        height: 90px !important;
    }
}

/* 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-section {
        align-items: center !important;
        width: 100% !important;
        margin: 60px auto 10px !important;
    }

    .unb-others-title {
        font-family: 'Source Code Pro', monospace !important;
        font-size: clamp(9px, 3.05vw, 13px) !important;
        line-height: clamp(12px, 3.82vw, 16px) !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Ligne horizontale — 2 cartes côte à côte, centrées */
    .unb-others-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        height: 81.13vw !important;   /* 318.79 / 393 × 100 */
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        gap: 0 !important;
        margin: 0 auto !important;
    }

    .unb-other-card {
        flex: 1 !important;
        width: auto !important;
        height: 81.13vw !important;
        flex-shrink: 1 !important;
        border-bottom: none !important;
    }

    /* La première carte (illustrations.html / Les affiches) est cachée sur mobile comme sur la page BD */
    .unb-other-card:nth-child(1) {
        display: none !important;
    }

    .unb-card-caption {
        font-size: clamp(6px, 1.63vw, 8px) !important;
        top: 2.29vw !important;
        right: 2.8vw !important;
        padding: 0.51vw 1.27vw !important;
    }

    /* Zoomer et remonter l'image de fond pour masquer le texte "Anatomie" dessiné dessus au format mobile */
    .unb-other-card[href="anatomie.html"] .unb-others-card-bg {
        transform: scale(1.18) translateY(-6%) !important;
    }
    .unb-other-card[href="anatomie.html"]:hover .unb-others-card-bg {
        transform: scale(1.22) translateY(-6%) !important;
        filter: brightness(0.9) !important;
    }

    /* Zoomer et remonter l'image de fond pour masquer le texte "Les affiches" dessiné dessus au format mobile */
    .unb-other-card[href="affiches.html"] .unb-others-card-bg {
        transform: scale(1.25) translateY(-8%) !important;
    }
    .unb-other-card[href="affiches.html"]:hover .unb-others-card-bg {
        transform: scale(1.29) translateY(-8%) !important;
    }
    .nav-arrow {
        display: none !important;
    }
}

/* Navigation Control Arrows */
.nav-arrow {
    position: absolute;
    width: 64px;
    height: 64px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 245, 245, 0.25) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.nav-arrow img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.arrow-left {
    left: 40px;
}

.arrow-right {
    right: 40px;
    transform: translateY(-50%) rotate(180deg);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 245, 245, 0.45) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.arrow-left:hover {
    transform: translateY(-50%) scale(1.08);
}

.arrow-right:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.08);
}

.nav-arrow:hover img {
    transform: translateX(-2px);
}

@media (min-width: 1401px) {
    .nav-arrow {
        display: none !important;
    }
}

/* Fix sticky hero showing through transparent footer */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}


