/* Personnalisation rapide : change les couleurs ici. */
:root {
  --bg: #0b0b0d;
  --bg-elev: #141417;
  --bg-elev-2: #1c1c21;
  --line: #2a2a31;
  --text: #f2f2f0;
  --text-dim: #9a9aa3;
  --accent: #e8c547;        /* jaune doré, change-le pour ta couleur de marque */
  --accent-ink: #141208;
  --danger: #ff5c5c;
  --ok: #58d68d;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 20% -10%, rgba(232, 197, 71, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(232, 197, 71, 0.05), transparent 60%);
}

a { color: inherit; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.tagline { color: var(--text-dim); font-size: 14px; }

h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p { line-height: 1.55; }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-elev-2);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(232, 197, 71, 0.06); }
.dropzone strong { display: block; font-size: 18px; margin-bottom: 6px; }
.dropzone input { display: none; }

.files { list-style: none; margin: 16px 0 0; padding: 0; }
.files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.files li:first-child { border-top: 0; }
.files .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.files button { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.files button:hover { color: var(--danger); }

.total { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--text-dim); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text-dim); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.sm { padding: 8px 12px; font-size: 13px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.mt { margin-top: 16px; }

.bar { height: 10px; background: var(--bg-elev-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-top: 8px; font-variant-numeric: tabular-nums; }

.linkbox {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
}
.linkbox code { flex: 1; align-self: center; font-size: 14px; word-break: break-all; }

.error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.ok { color: var(--ok); }

.transfer-list { display: flex; flex-direction: column; gap: 10px; }
.transfer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev-2);
  font-size: 14px;
}
.transfer .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer .meta { color: var(--text-dim); font-size: 13px; grid-column: 1 / -1; }
.transfer .actions { display: flex; gap: 6px; }

.usage { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.usage .bar { margin-top: 6px; height: 6px; }

.dl-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}
.dl-file:first-child { border-top: 0; }
.dl-file .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dl-file .size { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

.message {
  white-space: pre-wrap;
  background: var(--bg-elev-2);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

footer { margin-top: 40px; text-align: center; color: var(--text-dim); font-size: 12px; }

[hidden] { display: none !important; }
