/* FORCE RELOAD Sat 27 Sep 17:47:22 CEST 2025 */
/* === Thème néon futuriste pour Media Importer === */
:root {
  --bg-gradient-start: #f4f8ff;
  --bg-gradient-mid: #f7ecff;
  --bg-gradient-end: #e0fbff;
  --primary-color: #7f5bff;
  --primary-bright: #9a6dff;
  --accent-color: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.18);
  --success-color: #38e0a8;
  --warning-color: #ffb74a;
  --danger-color: #ff5a8a;
  --text-strong: #1a1446;
  --text-muted: #675f9c;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --border-neon: rgba(127, 91, 255, 0.35);
  --shadow-neon: 0 30px 70px rgba(127, 91, 255, 0.18);
  --shadow-soft: 0 18px 36px rgba(26, 20, 70, 0.08);
  --transition-base: all 0.35s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Oxanium', 'Rajdhani', 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  color: var(--text-strong);
  background: linear-gradient(125deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-end) 100%);
  position: relative;
  overflow-x: hidden;
  padding: 32px 20px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle at 15% 20%, rgba(255, 94, 247, 0.22), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 180, 82, 0.18), transparent 45%);
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

body::after {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(205deg, rgba(158, 128, 255, 0.16) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.35;
  mix-blend-mode: screen;
}

@keyframes pulseGlow {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.85;
  }
  to {
    transform: translate3d(0, -15px, 0);
    opacity: 1;
  }
}

.container {
  width: min(1220px, 100%);
  margin: 0 auto;
  background: var(--surface-glass);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-neon);
  backdrop-filter: blur(28px);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(127, 91, 255, 0.45), rgba(0, 212, 255, 0.35), rgba(255, 106, 194, 0.35));
  z-index: -1;
  opacity: 0.55;
  filter: blur(18px);
}

header {
  padding: 48px clamp(24px, 5vw, 64px);
  background: linear-gradient(125deg, rgba(127, 91, 255, 0.95), rgba(0, 212, 255, 0.75));
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 65%);
  top: -160px;
  right: -120px;
  filter: blur(2px);
  opacity: 0.7;
  animation: rotateAura 20s linear infinite;
}

@keyframes rotateAura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.header-text h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #fff;
  text-shadow: 0 14px 30px rgba(26, 20, 70, 0.35);
}

.header-text p {
  margin-top: 12px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.main-content {
  padding: clamp(28px, 4vw, 54px);
  position: relative;
}

/* === Boutons néon === */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(127, 91, 255, 0.3), 0 12px 22px rgba(127, 91, 255, 0.18);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.28), rgba(0, 212, 255, 0.28));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 35px rgba(127, 91, 255, 0.24);
}

.btn:hover::before {
  opacity: 1;
}

.btn.primary,
.btn.btn-download,
.btn.btn-primary {
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  color: #fff;
  box-shadow: 0 15px 35px rgba(127, 91, 255, 0.38);
}

.btn.primary::before,
.btn.btn-download::before,
.btn.btn-primary::before {
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.8), rgba(0, 212, 255, 0.8));
}

.btn.secondary,
.btn.btn-secondary,
.btn.btn-clean {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(0, 212, 255, 0.08));
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28), 0 12px 24px rgba(0, 212, 255, 0.18);
}

.btn.btn-media {
  background: linear-gradient(120deg, #ff6ad5, #ffc46b);
  color: #fff;
  box-shadow: 0 15px 30px rgba(255, 106, 213, 0.35);
}

.btn.btn-recovery {
  background: linear-gradient(120deg, #5dffbe, #00d4ff);
  color: #0f1b3d;
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.btn.warning,
.btn.btn-warning {
  background: linear-gradient(120deg, #ffc46b, #ffd86b);
  color: #653f00;
  box-shadow: 0 15px 28px rgba(255, 196, 107, 0.38);
}

.btn.danger,
.btn.btn-danger {
  background: linear-gradient(120deg, var(--danger-color), #ff8fa3);
  color: #fff;
  box-shadow: 0 18px 32px rgba(255, 90, 138, 0.38);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(103, 95, 156, 0.2);
}

.btn.btn-small,
.btn.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
  border-radius: 10px;
}

/* === Upload & formulaire === */
.upload-section {
  position: relative;
  background: var(--surface-glass-strong);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(127, 91, 255, 0.35);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.upload-section::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(127, 91, 255, 0.18), rgba(0, 212, 255, 0.18));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.upload-section.dragover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 45px rgba(0, 212, 255, 0.25);
}

.upload-section.dragover::after {
  opacity: 1;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.4px;
}

select,
input[type="text"],
input[type="number"],
input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(127, 91, 255, 0.35);
  background: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  color: var(--text-strong);
  transition: var(--transition-base);
  box-shadow: inset 0 0 25px rgba(127, 91, 255, 0.08);
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

/* === Input fichier === */
.file-input-wrapper {
  position: relative;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18));
  border: 1px dashed rgba(127, 91, 255, 0.4);
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  min-height: 56px;
  box-shadow: inset 0 0 40px rgba(127, 91, 255, 0.1);
}

.file-input-button:hover {
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.18);
  transform: translateY(-2px);
}

.file-input-wrapper.has-file .file-input-button {
  background: linear-gradient(120deg, rgba(56, 224, 168, 0.35), rgba(0, 212, 255, 0.35));
  border-color: rgba(56, 224, 168, 0.6);
  color: #0f3d3a;
}

.file-input-icon {
  font-size: 1.4rem;
}

.file-input-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === Résultats & tags === */
.result-card {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--surface-glass);
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 25px 55px rgba(0, 212, 255, 0.18);
  display: none;
  transform-origin: top;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0;
}

.result-card.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.preview {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 22px;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  border: 1px solid rgba(127, 91, 255, 0.3);
  box-shadow: inset 0 0 20px rgba(127, 91, 255, 0.12);
}

.preview .highlight-name {
  display: inline-block;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 12px 30px rgba(127, 91, 255, 0.28);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* === Statuts & notifications === */
.status,
#status {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(127, 91, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(127, 91, 255, 0.12);
}

.status.success {
  color: #0f5132;
  background: rgba(56, 224, 168, 0.22);
  border-color: rgba(56, 224, 168, 0.45);
}

.status.error {
  color: #6f1034;
  background: rgba(255, 90, 138, 0.2);
  border-color: rgba(255, 90, 138, 0.45);
}

.status.info {
  color: #0f3d63;
  background: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.35);
}

/* === Barre de progression === */
.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(127, 91, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 24px 0;
  display: none;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  border-radius: inherit;
  transition: width 0.35s ease;
  box-shadow: 0 0 25px rgba(127, 91, 255, 0.45);
}

.file-info {
  display: none;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(127, 91, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(127, 91, 255, 0.08);
}

.file-name {
  font-weight: 700;
  color: var(--text-strong);
}

.file-size {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(127, 91, 255, 0.2);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === Raccourcis clavier === */
.shortcuts {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(127, 91, 255, 0.08);
  border: 1px solid rgba(127, 91, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(127, 91, 255, 0.08);
  font-size: 0.9rem;
}

.shortcuts h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-strong);
}

.shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.18);
  color: var(--text-strong);
  font-family: 'JetBrains Mono', monospace;
  margin-right: 12px;
}

.muted {
  color: var(--text-muted);
  font-style: italic;
}

/* === Recherche manuelle === */
.manual-edit-section {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.search-results {
  margin-top: 18px;
  padding: 18px;
  background: rgba(127, 91, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(127, 91, 255, 0.18);
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 10px 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(127, 91, 255, 0.22);
  cursor: pointer;
  transition: var(--transition-base);
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(127, 91, 255, 0.18);
}

.result-item.selected {
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.88), rgba(0, 212, 255, 0.88));
  color: #fff;
  box-shadow: 0 18px 38px rgba(127, 91, 255, 0.28);
}

.result-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.result-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-item.selected .result-details {
  color: rgba(255, 255, 255, 0.8);
}

.result-year {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.25);
  color: var(--text-strong);
  font-weight: 600;
}

.result-item.selected .result-year {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* === Indicateurs de disque === */
.disk-info {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(127, 91, 255, 0.22);
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
}

.disk-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.disk-icon {
  font-size: 1.8rem;
}

.disk-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.disk-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.disk-category {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  text-align: center;
  box-shadow: inset 0 0 22px rgba(0, 212, 255, 0.08);
  transition: transform 0.3s ease;
}

.disk-category:hover {
  transform: translateY(-4px);
}

.disk-category-label {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.disk-category-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.disk-storage {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(127, 91, 255, 0.2);
  margin-bottom: 18px;
}

.disk-storage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.disk-storage-icon {
  font-size: 1.4rem;
}

.disk-storage-name {
  font-weight: 700;
}

.disk-storage-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(127, 91, 255, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}

.disk-storage-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  transition: width 0.4s ease;
  box-shadow: 0 0 20px rgba(127, 91, 255, 0.35);
}

.disk-storage-fill.green { background: linear-gradient(120deg, #38e0a8, #8cffa3); }
.disk-storage-fill.orange { background: linear-gradient(120deg, #ffb74a, #ffd56b); }
.disk-storage-fill.red { background: linear-gradient(120deg, #ff5a8a, #ff8fa3); }

.disk-storage-text {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

/* === Étapes d'upload === */
.upload-step {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(127, 91, 255, 0.2);
  margin-bottom: 18px;
  transition: var(--transition-base);
  position: relative;
}

.upload-step.active {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.22);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.85), rgba(0, 212, 255, 0.85));
  color: #fff;
  font-weight: 700;
}

.step-header h3 {
  margin: 0;
}

.step-select {
  border-radius: 14px;
  border: 1px solid rgba(127, 91, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
  font-weight: 600;
}

.storage-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.storage-option {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(127, 91, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.storage-option::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.2), rgba(0, 212, 255, 0.2));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.storage-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(127, 91, 255, 0.18);
}

.storage-option:hover::after,
.storage-option.selected::after {
  opacity: 1;
}

.storage-option.selected {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 22px 40px rgba(0, 212, 255, 0.22);
}

.storage-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.storage-icon {
  font-size: 1.4rem;
}

.storage-name {
  font-weight: 700;
}

.storage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-weight: 600;
}

.storage-capacity {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(127, 91, 255, 0.1);
}

.storage-available {
  color: var(--success-color);
}

/* === Progression détaillée === */
.upload-progress {
  margin: 28px 0;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(127, 91, 255, 0.92), rgba(0, 212, 255, 0.85));
  color: #fff;
  box-shadow: 0 28px 55px rgba(127, 91, 255, 0.35);
}

.upload-progress-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.upload-progress-percent {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.upload-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  margin-bottom: 16px;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: inherit;
  transition: width 0.35s ease;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.upload-progress-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.upload-progress-speed,
.upload-progress-time,
.upload-progress-size {
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
}

.upload-progress-speed::before { content: '⚡ '; }
.upload-progress-time::before { content: '⏱️ '; }
.upload-progress-size::before { content: '📊 '; }

/* === Page de récupération === */
.recovery-section {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(127, 91, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.file-selection-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.12);
}

.selection-count {
  margin-left: auto;
  font-weight: 700;
}

.file-list {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(127, 91, 255, 0.2);
  transition: var(--transition-base);
}

.file-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(127, 91, 255, 0.22);
}

.file-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.file-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.file-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.16);
  font-weight: 600;
}

.info,
.error {
  padding: 18px;
  border-radius: 16px;
  font-weight: 600;
}

.info {
  background: rgba(0, 212, 255, 0.18);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #0f3d63;
}

.error {
  background: rgba(255, 90, 138, 0.2);
  border: 1px solid rgba(255, 90, 138, 0.4);
  color: #6f1034;
}

/* === Modales === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 70, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.modal-content {
  width: min(620px, 92%);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(127, 91, 255, 0.35);
  box-shadow: 0 40px 80px rgba(26, 20, 70, 0.25);
  animation: modalIn 0.45s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(127, 91, 255, 0.2);
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.15), rgba(0, 212, 255, 0.12));
  border-radius: 24px 24px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(90deg);
}

.modal-body {
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.88);
}

.duplicate-actions,
.individual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.duplicate-item,
.individual-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(127, 91, 255, 0.2);
  transition: var(--transition-base);
}

.duplicate-item:hover,
.individual-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(127, 91, 255, 0.2);
}

.duplicate-details,
.individual-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  color: var(--text-muted);
}

.duplicate-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

/* === Responsivité === */
@media (max-width: 1024px) {
  header {
    padding: 42px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 24px 14px;
  }

  header {
    padding: 36px 28px;
  }

  .header-actions {
    justify-content: center;
  }

  .main-content {
    padding: 26px 20px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .disk-categories {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .upload-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-progress-percent {
    margin-left: 0;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  header {
    border-radius: 0;
  }

  .container {
    border-radius: 20px;
  }
}
