:root {
  /* === PALETTE ALAMBRIQ === */
  --bg: #07080A;
  --panel: #121315;
  --panel-soft: #1A1C1E;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F9F5F0;
  --muted: rgba(249, 245, 240, 0.5);
  --accent: #D4A373; /* Cuivre */
  --accent-dim: rgba(212, 163, 115, 0.15);
  --accent-glow: rgba(212, 163, 115, 0.4);
  --success: #4CAF50;
  --danger: #f44336;
  --info: #60a5fa;

  /* === TYPOGRAPHIE === */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  /* Lumière ambiante cinématique (Cuivre / Blanc subtil) */
  background:
    radial-gradient(circle at top left, rgba(212, 163, 115, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 22%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; }

.shell { width: min(1100px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }

/* === CARTES (Design "Verre Dépoli Clinique") === */
.card {
  background: rgba(22, 23, 25, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 4px; /* Remplacé le 24px pour un look plus strict */
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.brand h1 { margin: 0 0 8px; font-size: 2.4rem; font-family: var(--font-display); font-weight: 300; letter-spacing: -1px; }
.brand p { margin: 0; color: var(--muted); line-height: 1.6; font-weight: 300; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  padding: 6px 12px; border-radius: 2px;
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  font-size: 0.7rem; color: var(--accent);
  font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 1px;
}

/* === FORMULAIRES === */
.form h2 { margin: 0 0 8px; font-size: 1.8rem; font-family: var(--font-display); font-weight: 300; }
.form p { margin: 0 0 24px; color: var(--muted); font-weight: 300; }

label {
  display: block; font-size: 0.75rem; margin-bottom: 8px; font-weight: 400;
  font-family: var(--font-tech); color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
}

input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); outline: none; font-family: var(--font-body); font-weight: 300;
  transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 15px var(--accent-dim);
}

.field { margin-bottom: 18px; }

/* === BOUTONS (Terminal UI) === */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 2px; border: 1px solid transparent;
  background: var(--panel-soft); color: var(--text);
  font-family: var(--font-tech); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 2px;
  text-decoration: none; cursor: pointer; transition: all 0.3s ease;
}

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #e5b687; box-shadow: 0 8px 20px var(--accent-dim); transform: translateY(-2px); }

.btn-success { background: var(--success); color: var(--bg); }
.btn-success:hover { background: #45a049; }

.btn-danger { background: var(--danger); color: var(--text); }
.btn-danger:hover { background: #d32f2f; }

.btn-secondary { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* === ALERTES === */
.alert { padding: 14px 16px; border-radius: 4px; margin-bottom: 18px; border: 1px solid; font-size: 0.9rem; font-weight: 300; }
.alert-error { background: rgba(244, 67, 54, 0.1); border-color: rgba(244, 67, 54, 0.3); color: #ffcdd2; border-left: 3px solid var(--danger); }
.alert-success { background: rgba(76, 175, 80, 0.1); border-color: rgba(76, 175, 80, 0.3); color: #c8e6c9; border-left: 3px solid var(--success); }
.alert-info { background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.3); color: #bfdbfe; border-left: 3px solid var(--info); }

/* === MÉTA-DONNÉES & LISTES === */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.meta-card { padding: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); transition: border-color 0.3s; }
.meta-card:hover { border-color: var(--accent-dim); }
.meta-card strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--accent); margin-bottom: 5px; }

.list { display: grid; gap: 14px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); }
.switch-row small { display: block; font-family: var(--font-tech); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.top-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-family: var(--font-tech); font-size: 0.75rem; text-transform: uppercase; }
.top-links a { color: var(--accent); text-decoration: none; transition: 0.2s; }
.top-links a:hover { color: var(--text); }

hr { border: none; border-top: 1px dashed var(--border); margin: 28px 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
}