.roca-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: 90px;
    box-shadow: 0px -15px 30px rgba(0, 0, 0, 0.03); /* Subtle shadow for depth */
}

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

.roca-hero-content {
    position: relative;
    width: 1525px;
    height: 902px;
    margin: 0 auto;
}

.roca-fond {
    position: absolute;
    width: 1525px;
    height: 902px;
    left: 0;
    top: -8px;
    background-image: url('../02-Rocabruna/Fond-rocabruna.webp');
    background-size: cover;
    background-position: center;
}

.roca-icones {
    position: absolute;
    width: 1480px;
    height: 859px;
    left: -25.41px;
    top: 35px;
    background-image: url('../02-Rocabruna/Icones-rocabruna.webp');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.bouton-tout-voir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 113px;
    width: 22px;
    height: 13px;
    margin-top: -5px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

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

.roca-bouteilles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 486px;
    position: absolute;
    width: 1056px;
    height: 713px;
    left: 234.09px;
    top: 86px;
    z-index: 2;
}

@keyframes wiggle-bottle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-3deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-2deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(-1deg); }
    85% { transform: rotate(1deg); }
}

@keyframes wiggle-bottle-hover {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-3deg); }
    30% { transform: rotate(3deg); }
    45% { transform: rotate(-2deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(-1deg); }
    85% { transform: rotate(1deg); }
}

.roca-bouteille-1 {
    width: 287px;
    height: 713px;
    background-image: url('../02-Rocabruna/bouteille-péché_mignon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    animation: wiggle-bottle 1.2s ease-in-out 0.3s both;
}

.roca-bouteille-2 {
    width: 283px;
    height: 713px;
    background-image: url('../02-Rocabruna/bouteille-cuisinier_en_herbe.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    animation: wiggle-bottle 1.2s ease-in-out 0.5s both;
}

.roca-bouteille-1:hover, .roca-bouteille-2:hover {
    animation: wiggle-bottle-hover 1s ease-in-out forwards;
}

.roca-intro-figma {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 10px;
    position: absolute;
    width: 430px;
    height: 449px;
    left: 548.59px;
    top: 351px;
    z-index: 10;
}

.roca-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: 439px;
    background-image: url('../02-Rocabruna/Descriptif-rocabruna.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.roca-text-content {
    width: 100%;
}

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

.roca-descriptif-figma strong {
    font-weight: 600;
}

.bouton-tout-voir img {
    width: 22px;
    height: 13px;
    transform: rotate(0deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bouton-tout-voir:hover img {
    transform: translateY(8px);
    opacity: 0.6;
}

/* Main Visuals in Hero */
.roca-visuals {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 5;
}

.roca-hero-image {
    width: 100%;
    max-width: 900px;
    object-fit: contain;
    /* Optional hovering effect */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.roca-visuals:hover .roca-hero-image {
    transform: scale(1.02);
}

/* SECTION 2: GRID */
.roca-grid-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1431px;
    margin: 0 auto;
}

.roca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px; /* Figma shows gap around 14px between 710px cards in 1434px container */
    width: 100%;
}

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

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

.roca-card:hover .roca-card-bg {
    transform: scale(1.02);
}

/* Responsive scaling for the absolute layout */
@media (max-width: 1550px) {
    .roca-fond {
        transform: translateX(-50%) scale(0.9);
        transform-origin: top center;
    }
    .roca-hero-figma {
        height: 800px;
    }
}

@media (max-width: 1400px) {
    .roca-fond {
        transform: translateX(-50%) scale(0.8);
    }
    .roca-hero-figma {
        height: 720px;
    }
}

@media (max-width: 1200px) {
    .roca-fond {
        transform: translateX(-50%) scale(0.65);
    }
    .roca-hero-figma {
        height: 600px;
    }
}

@media (max-width: 900px) {
    .roca-fond {
        transform: translateX(-50%) scale(0.5);
    }
    .roca-hero-figma {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .roca-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .roca-project-container {
        gap: 60px;
        margin-top: 10px;
        margin-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .roca-fond {
        transform: translateX(-50%) scale(0.35);
    }
    .roca-hero-figma {
        height: 320px;
    }
}

/* =========================================
   LIGHTBOX GALERIE PLEIN ÉCRAN
   ========================================= */
.roca-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    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: #BA5B2F; /* Touche Rocabruna */
}

.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-hero-figma {
        position: relative;
        height: auto;
    }
    .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;
    }
}
