/* --- CONTENEUR PRINCIPAL --- */
.script-detail-container {
    width: 100%;
    height: 100dvh;
    padding: 0;
    
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    overflow: hidden; /* Empêche le scroll de la page entière */
}

.detail-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* --- PARTIE GAUCHE : GALERIE D'IMAGES --- */
.detail-left {
    flex: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: flex; flex-direction: column;
    gap: 12px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.images-gallery {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    scroll-snap-type: x mandatory;
    gap: 20px;
}

/* Personnalisation de la barre de scroll de la galerie */
.images-gallery::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.images-gallery::-webkit-scrollbar-thumb {
    background: var(--ui-gradient);
    border-radius: 10px;
}

.gallery-img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
}




.detail-right {
    flex: 0.8;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}


.script-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag-badge {
    background: var(--ui-gradient);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 50px;
    text-shadow: 0 0 6px #0002;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Titre et Bio */
#script-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
    font-style: italic;
}

.script-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}


.script-features-box {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #fff1;
}

.script-features-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
    text-transform: uppercase;
}

#script-features {
    list-style: circle;
    display: flex; flex-direction: column;
    gap: 8px;
}

#script-features li {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

#script-features li::before {
    content: "→";
    color: var(--ui-primary);
    font-weight: bold;
}

/* Prix et Boutons */
.detail-meta {
    margin-top: auto; /* Pousse le prix et le bouton vers le bas */
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: transparent;
    background: var(--ui-gradient);
    background-clip: text; -webkit-background-clip: text;
}


.cta-btn {
    padding: 16px 35px;
    background: var(--ui-gradient);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .detail-wrapper{flex-direction: column;}
    .detail-left, .detail-right{flex: unset;}
    .detail-left{height: 300px; overflow: visible;}
}