/* --- PLAYGROUND CONTAINER & DA BLANCHE --- */
.playground-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    overflow: hidden;
    user-select: none;
}

/* --- SIDEBAR GAUCHE (1/4 WIDTH) --- */
.playground-sidebar {
    width: 25vw;
    height: 100vh;
    padding: 110px 40px 80px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    background-color: #ffffff;
    border-right: 1px solid #f0f0f0;
}

.pg-sidebar-content {
    position: sticky;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 80px;
}

.pg-title {
    font-family: var(--hero);
    font-size: 8rem;
    font-weight: normal;
    color: #000000;
    margin: 0 0 24px 0;
    text-transform: uppercase;
}

.pg-mono-text {
    font-family: var(--corps);
    font-size: 0.7rem;
    color: #6e6e6e;
    margin: 0;
    max-width: 280px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 350;
}

/* --- GALERIE CANVAS (3/4 WIDTH) --- */
.playground-gallery {
    width: 75vw;
    height: 100vh;
    position: relative;
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
}

#playground-canvas-container {
    width: 100%;
    height: 100%;
    cursor: default !important;
    user-select: none;
    -webkit-user-select: none;
}

#playground-canvas-container:active {
    cursor: grabbing;
}

#playground-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- MODALE PREVIEW PLEIN ÉCRAN (TRANSITION FLUIDE DU FLOU) --- */
.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.6s step-end;
}

.pg-modal.active {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear;
}

.pg-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pg-modal.active .pg-modal-backdrop {
    opacity: 1;
}

.pg-modal-wrapper {
    position: relative;
    z-index: 2;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    will-change: transform, opacity;
    transition:
            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pg-modal.active .pg-modal-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.pg-modal-wrapper img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}