/* Import d’une fonte moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #4a90e2;
  --primary-dark: #357ABD;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #333333;
  --success: #28a745;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 90%;
  max-width: 400px;
  margin: auto;
}

.card {
  background: var(--card);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.card.success {
  border-left: 6px solid var(--success);
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.file-input {
  position: relative;
  margin: 1.5rem 0;
}

.file-input input[type="file"] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file-input label {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}

.file-input label:hover {
  background: var(--primary-dark);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

code.path {
  display: block;
  background: #f1f3f5;
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  word-break: break-all;
  font-size: 0.9rem;
}

/* Loader overlay */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.hidden {
  display: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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