/* ============================================================
   Transfert — feuille de style
   ============================================================ */

:root {
    --accent: #c62426;
    --accent-2: #f0593c;
    --accent-dark: #9e1c1e;
    --text: #23233a;
    --text-soft: #71718a;
    --line: #e8e2e1;
    --bg-soft: #faf6f5;
    --danger: #d64550;
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background-color: #2a0c0d;
    background-image:
        radial-gradient(900px 600px at 88% -10%, rgba(240, 89, 60, 0.42), transparent 60%),
        radial-gradient(800px 600px at -8% 108%, rgba(198, 36, 38, 0.40), transparent 55%),
        linear-gradient(150deg, #240a0b 0%, #5e1416 55%, #971d1f 100%);
    background-attachment: fixed;
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ---------- Carte ---------- */

.card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 30px 30px 26px;
    box-shadow: 0 24px 70px rgba(60, 12, 14, 0.45);
}

.card.narrow { text-align: center; }

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: var(--accent);
    margin-bottom: 18px;
}

.brand-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px rgba(198, 36, 38, 0.14);
}

h1 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

/* Titre du site (page publique) : centré, agrandi */
.site-title {
    text-align: center;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
    margin: 4px 0 16px;
}

.form-lead {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}

.locked-title { font-size: 20px; margin: 0 0 8px; }

.admin-badge {
    text-align: center;
    background: #fbe7e6;
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    margin: 0 0 14px;
}

.muted { color: var(--text-soft); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.optional { color: var(--text-soft); font-weight: 400; font-size: 12px; }

/* ---------- Alertes ---------- */

.alert {
    background: #fdecee;
    border: 1px solid #f5c6cb;
    color: #8f2a33;
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.alert.warn {
    background: #fff7e8;
    border-color: #f3dfae;
    color: #7a5b13;
    margin: 0 0 18px;
}

/* ---------- Zone de dépôt ---------- */

.dropzone {
    border: 2px dashed #ecb4b4;
    border-radius: 16px;
    padding: 26px 18px 22px;
    text-align: center;
    color: var(--accent);
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
    outline: none;
    margin-bottom: 14px;
}

.dropzone:hover,
.dropzone:focus-visible { background: var(--bg-soft); border-color: var(--accent); }

.dropzone.dragover {
    background: #fbe7e6;
    border-color: var(--accent);
    border-style: solid;
    transform: scale(1.012);
}

.dz-icon { width: 42px; height: 42px; margin-bottom: 4px; }

.dz-title { margin: 0 0 4px; font-weight: 600; font-size: 15px; color: var(--text); }

.dz-sub { margin: 0; font-size: 13px; color: var(--text-soft); }

.dz-extensions {
    display: block;
    text-align: center;
    color: var(--text-soft);
    font-size: 10px;
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 4px;
    padding-bottom: 10px;
}

.reassurance {
    text-align: center;
    color: var(--text-soft);
    font-size: 10px;
    font-style: italic;
    line-height: 1.55;
    margin: 14px 2px 0;
}

.link { color: var(--accent); font-weight: 600; }

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Liste de fichiers ---------- */

.file-summary { margin-bottom: 16px; }

.file-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 168px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    font-size: 13.5px;
}

.file-list li + li { border-top: 1px solid var(--bg-soft); }

.file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name .path { color: var(--text-soft); }

.file-size { color: var(--text-soft); font-size: 12.5px; white-space: nowrap; }

.file-remove {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 6px;
}

.file-remove:hover { color: var(--danger); background: #fdecee; }

.file-dl {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.file-dl:hover { background: var(--bg-soft); }

.file-total {
    display: flex;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 12.5px;
    padding: 7px 4px 0;
}

/* ---------- Champs ---------- */

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; min-height: 70px; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px rgba(198, 36, 38, 0.16);
}

.field input.invalid { border-color: var(--danger); }

/* ---------- Boutons ---------- */

.btn {
    display: inline-block;
    border: none;
    border-radius: var(--radius);
    padding: 13px 22px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: var(--accent);
    background: var(--bg-soft);
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 22px rgba(198, 36, 38, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(198, 36, 38, 0.45); }

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    background: #e0a8a9;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost { background: none; color: var(--text-soft); }

.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }

.btn-block { display: block; width: 100%; margin-top: 6px; }

/* ---------- Écran de progression ---------- */

.progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 26px 0 12px;
}

.progress-label { margin: 0 0 6px; font-weight: 600; font-size: 15px; }

.progress-percent {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.progress-percent .pct { font-size: 22px; font-weight: 700; }

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

.progress-detail { margin: 12px 0 2px; font-size: 13.5px; color: var(--text-soft); }

.progress-file {
    margin: 0 0 22px;
    font-size: 12.5px;
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 17px;
}

/* ---------- Écran de confirmation ---------- */

.status-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 16px;
    font-size: 28px;
    font-weight: 800;
}

.status-icon svg { width: 30px; height: 30px; }

.status-icon.success {
    color: #fff;
    background: linear-gradient(130deg, #22c55e, #10b981);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.4);
    animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.status-icon.error { color: #fff; background: var(--danger); }

.status-icon.lock {
    color: #fff;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px rgba(198, 36, 38, 0.4);
}

@keyframes pop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.share-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 18px 0 6px;
}

.share-row { display: flex; gap: 8px; }

.share-row input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-soft);
}

.share-row input:focus { outline: none; border-color: var(--accent); }

.share-row .btn { padding: 11px 18px; flex-shrink: 0; }

#done-expires { margin-top: 12px; }

/* ---------- Divers ---------- */

.message-box {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
    word-wrap: break-word;
}

.footer-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    margin: 22px 0 0;
    text-align: center;
}

@media (max-width: 480px) {
    .card { padding: 24px 20px 20px; border-radius: 18px; }
    h1 { font-size: 21px; }
    .progress-percent { font-size: 38px; }
}
