/* ═══════════════════════════════════════════════════════
   Labo Tirages — Upload & Prix — Styles Frontend
   ═══════════════════════════════════════════════════════ */

/* ── Zone upload principale ─────────────────────────── */
.lwt-upload-zone {
    margin: 20px 0 16px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.lwt-upload-zone.lwt-has-files {
    border-color: #D91E0E;
    border-style: solid;
}

/* ── En-tête de la zone ─────────────────────────────── */
.lwt-upload-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.lwt-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.lwt-upload-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.lwt-upload-hint {
    display: block;
    font-size: 12px;
    color: #9B9B9B;
    line-height: 1.5;
}

/* ── Zone de dépôt ──────────────────────────────────── */
.lwt-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 20px;
    border: 2px dashed #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}

.lwt-drop-zone:hover,
.lwt-drop-zone:focus {
    border-color: #D91E0E;
    background: #fff8f8;
}

.lwt-drop-zone.lwt-dragover {
    border-color: #D91E0E;
    background: #fff0f0;
    border-style: solid;
}

.lwt-drop-text {
    font-size: 14px;
    color: #1A1A1A;
    line-height: 1.5;
}

.lwt-drop-text u {
    color: #D91E0E;
}

.lwt-drop-formats {
    font-size: 11px;
    color: #9B9B9B;
    letter-spacing: 0.5px;
}

/* ── Liste des fichiers uploadés ────────────────────── */
#lwt-file-list {
    margin-top: 12px;
}

.lwt-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #D91E0E;
    border-radius: 2px;
    font-size: 13px;
    animation: lwt-slide-in 0.25s ease;
}

@keyframes lwt-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lwt-file-ok {
    font-size: 16px;
    flex-shrink: 0;
}

.lwt-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lwt-file-renamed {
    font-weight: 700;
    color: #1A1A1A;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lwt-file-meta {
    font-size: 11px;
    color: #9B9B9B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lwt-file-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9B9B9B;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.lwt-file-remove:hover {
    color: #D91E0E;
    background: #fff0f0;
}

/* ── Upload en cours ────────────────────────────────── */
.lwt-uploading {
    padding: 10px 14px;
    font-size: 13px;
    color: #9B9B9B;
    font-style: italic;
    animation: lwt-pulse 1.2s infinite;
}

@keyframes lwt-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ── Compteur de fichiers ───────────────────────────── */
.lwt-file-count {
    margin-top: 10px;
    padding: 6px 12px;
    background: #D91E0E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 2px;
    display: inline-block;
}

/* ── Avertissement options changées ─────────────────── */
.lwt-warn {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fffbe6;
    border-left: 3px solid #f5a623;
    font-size: 12px;
    color: #7a5800;
    border-radius: 2px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .lwt-file-item {
        flex-wrap: wrap;
    }
    .lwt-file-renamed {
        white-space: normal;
    }
}
