body {
    background-color: #e0e5ec;
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.shadow-neu-flat {
    box-shadow: 9px 9px 16px rgba(163,177,198, 0.6), -9px -9px 16px rgba(255,255,255, 0.8);
}

.shadow-neu-pressed {
    box-shadow: inset 6px 6px 10px rgba(163,177,198, 0.7), inset -6px -6px 10px rgba(255,255,255, 0.8);
}

.modal-overlay {
    background: rgba(224, 229, 236, 0.95);
    backdrop-filter: blur(5px);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23536878' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") 16 16, pointer;
}

.modal-card {
    cursor: default;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.btn-lavender {
    background: linear-gradient(145deg, #8E78FF, #7665d9);
    box-shadow: 5px 5px 10px rgba(123, 104, 238, 0.3), -5px -5px 10px rgba(255,255,255, 0.9);
}
.btn-lavender:active {
    transform: scale(0.98);
}

[contenteditable="true"]:focus {
    outline: none;
    background: rgba(255,255,255,0);
    border-radius: 4px;
}

.add-actor-btn {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 1rem;
    border: 2px dashed #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.2s;
}
.add-actor-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(255,255,255,0);
}

/* Bouton X suppression acteur */
.delete-actor-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 50;
    transition: transform 0.2s, opacity 0.15s;
    opacity: 0;
}
.delete-actor-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.actor-photo-wrapper:hover .delete-actor-btn {
    opacity: 1;
}

.actor-draggable {
    cursor: grab;
}
.actor-draggable:active {
    cursor: grabbing;
}

.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.drag-over {
    /* marqueur logique */
}

.actor-drop-over {
    outline: 2px dashed #667eea;
    outline-offset: 2px;
}

/* Style spécifique pour drop sur poster */
#posterClick.actor-drop-over {
    outline: 3px dashed #667eea;
    outline-offset: 4px;
}

/* Barre verticale insertion drag */
.actor-drop-slot-left::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 5%;
    bottom: 5%;
    width: 3px;
    background: #667eea;
    border-radius: 9999px;
}

.actor-drop-slot-right::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 5%;
    bottom: 5%;
    width: 3px;
    background: #667eea;
    border-radius: 9999px;
}

/* Responsive typo grands écrans */
@media (min-width: 1280px) {
    body {
        font-size: 1.42em;
    }
    h1, h2, h3, .text-3xl, .text-4xl {
        font-size: 1.42em;
    }
}

/* Mode lien direct : masquer navigation */
.direct-link-mode header {
    display: none;
}

.direct-link-mode #grid {
    display: none;
}

.direct-link-mode #fabAdd {
    display: none;
}

.direct-link-mode .modal-overlay {
    cursor: default;
}

.direct-link-mode #closeFilmBtn {
    display: none;
}
