/* Specific styles for the Myia project page */

.myia-project-container {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 90px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
    box-sizing: border-box;
}

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

.hero-myia {
    position: relative;
    width: 1526px;
    height: 781px;
    margin: 0 auto;
}

.Fond-hero-Myia {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-image: url('../04- Myia/hero myia/fond header myia.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.Logo-Myia-white {
    position: absolute;
    width: 438px;
    height: 242px;
    left: 521px;
    top: 126px;
    background-image: url('../04- Myia/Logo-Myia-white.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.mascotte-myia {
    position: fixed;
    width: 358px;
    height: 251px;
    right: 60px;
    top: 488px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 200; /* Float above all scrolled content on desktop */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mascotte-myia:active {
    cursor: grabbing;
}

.mascotte-myia-inner {
    position: absolute;
    width: 332px;
    height: 225px;
    left: 13px;
    top: 13px;
    background-image: url('../04- Myia/hero myia/mascottes-myia.webp');
    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;
}

.mascotte-myia-inner:hover {
    transform: translateY(-5px) scale(1.02);
}

.mascotte-myia.dragging .mascotte-myia-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));
}
.Introduction {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 10px;

    position: absolute;
    width: 430px;
    height: 376px;
    left: 548.59px;
    top: 390px;
    z-index: 10;
}

.Descriptif {
    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: 376px;
    background-image: url('../04- Myia/hero myia/Descriptif.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
}

.myia-text-content {
    width: 397px;
    height: 314px;
    overflow: hidden;
}

.myia-text-content 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;
}

.Descriptif strong {
    font-weight: 600;
}

/* 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;
}

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

/* SECTION 2: GRID (liste-myia style grid) */
.myia-grid-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1434px;
    margin: 0 auto;
}

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

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

.myia-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);
}

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

/* SECTION 3: MOCKUP DEVICE FRAME WITH EMBEDDED MAQUETTE VIDEO */
.myia-mockup-section {
    width: 100vw;
    height: 800px;
    margin-top: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('../04-%20Myia/fond%20myia.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.myia-mockup-container {
    width: 100%;
    max-width: 1432px;
    height: 647px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.myia-mockup-device {
    position: absolute;
    width: 1106px;
    height: 647px;
    left: 50%;
    top: 0px;
    margin-left: -553px; /* center 1106px */
    background-image: url('../04- Myia/mockup-ordi.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

.myia-mockup-screen {
    position: absolute;
    /* Centered: device centered at 50%, screen is 122px inside device from left */
    width: 862.43px;
    height: 539px;
    left: 50%;
    margin-left: -431px; /* center 862.43px */
    top: 45px;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    z-index: 5;
}

.myia-mockup-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile responsive layout */
@media (max-width: 1024px) {
    .myia-hero-figma {
        position: relative;
        height: auto;
    }
    .hero-myia {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .Fond-hero-Myia {
        position: relative;
        width: 100%;
        height: 400px;
        top: 0;
        left: 0;
    }
    .Logo-Myia-white {
        position: absolute;
        width: 80%;
        max-width: 300px;
        height: 150px;
        left: 10%;
        top: 50px;
    }
    .mascotte-myia {
        position: relative;
        width: 180px;
        height: 130px;
        left: 0;
        top: 0;
        margin: 20px auto;
        touch-action: auto;
        cursor: default;
        animation: none;
    }
    .mascotte-myia-inner {
        position: relative;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    .Introduction {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        padding: 20px;
        box-sizing: border-box;
    }
    .Descriptif {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .myia-text-content {
        width: 100%;
        height: auto;
    }
    .myia-grid {
        grid-template-columns: 1fr;
    }
    .myia-mockup-section {
        height: auto;
        aspect-ratio: 16/9;
    }
    .myia-mockup-container {
        position: relative;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
    }
    .myia-mockup-device {
        width: 100%;
        height: 100%;
        left: 0;
    }
    .myia-mockup-screen {
        /* approx responsive screen aspect */
        width: 78%;
        height: 83%;
        left: 11%;
        top: 7%;
    }
}

/* =========================================
   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: #ccc;
}

.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;
    }
}

