/*
 * Dashboard admin MyOrigines Meet — refonte Éclipse (handoff 22/07/2026).
 * Sombre par défaut (tokens.css est la source de vérité des valeurs).
 * Polices AUTO-HÉBERGÉES (CSP 'self') : Space Grotesk (display/chiffres),
 * Instrument Sans (corps/UI).
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/admin/assets/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/admin/assets/instrument-sans.woff2') format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--color-bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: var(--leading-snug);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 140, 0.25);
  border-radius: 6px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
button { font-family: var(--font-ui); }
button:focus-visible, input:focus-visible, .nav-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Animations (signature Éclipse) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeSoft { to { opacity: 1; } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes growY { to { transform: scaleY(1); } }
@keyframes growX { to { transform: scaleX(1); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(205, 222, 255, 0.3); }
  50% { box-shadow: 0 0 22px rgba(205, 222, 255, 0.6); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .page { animation: none !important; }
  .anim-draw, .anim-fill { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .anim-grow, .anim-grow-x { transform: none !important; }
}

/* ---------- Shell : sidebar + main ---------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 22px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}
.main { flex: 1; overflow-y: auto; background: var(--color-bg-app); }

.logo-anneau {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 42%, var(--color-bg-app) 0 44%, var(--accent) 46% 54%, var(--color-bg-app) 56%);
  animation: pulseGlow 4s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(205, 222, 255, 0.3);
  display: inline-block;
}
.sb-logo { display: flex; align-items: center; gap: 11px; padding: 4px 8px 24px; }
.sb-wordmark { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 15px; }
.sb-section {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 10px 6px;
}
#nav-systeme { margin-bottom: 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-standard), color var(--duration-normal) var(--ease-standard);
  text-align: left;
}
.nav-item:hover { color: var(--text-primary); background: var(--surface-1); }
.nav-item.on {
  background: var(--surface-3);
  box-shadow: var(--rim-light);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(146, 146, 156, 0.45);
  transition: background var(--duration-normal) var(--ease-standard);
}
.nav-item.on .nav-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.sb-pied { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.sb-lien {
  border: none;
  background: none;
  padding: 2px 10px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: left;
}
.sb-lien:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.sb-profil {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}
.sb-profil-nom { font-size: 13px; font-weight: var(--weight-semibold); display: block; }
.sb-profil-role { font-size: var(--text-xs); color: var(--text-tertiary); display: block; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #fff;
  flex: 0 0 auto;
}
.avatar.pt { width: 30px; height: 30px; font-size: 11px; }

/* ---------- Pages ---------- */
.page { padding: 28px 34px 40px; animation: fadeUp 0.45s ease both; }
.page-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.page-titre {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}
.page-sous { font-size: 14px; color: var(--text-tertiary); margin: 0; }
.tete-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Segment de période */
.periode {
  display: flex;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.periode .seg {
  border: none;
  background: none;
  padding: 6px 13px;
  border-radius: 8px;
  color: var(--text-tertiary);
  cursor: pointer;
  font: inherit;
}
.periode .seg.on { background: var(--surface-strong); box-shadow: var(--rim-light); color: var(--text-primary); }

.btn-solid {
  padding: 9px 17px;
  background: var(--solid);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.btn-solid:hover { background: var(--solid-hover); }
.btn-solid:active { background: var(--solid-active); }
.btn-ghost {
  padding: 8px 14px;
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-strong); }

/* ---------- Cartes & grilles ---------- */
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.grille-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grille-17 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 14px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
@media (max-width: 1080px) {
  .grille-4, .grille-bento { grid-template-columns: repeat(2, 1fr); }
  .grille-17, .grille-2 { grid-template-columns: 1fr; }
  .span-3 { grid-column: span 2; }
}
@media (max-width: 680px) {
  .grille-4, .grille-bento { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
}

.carte {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--rim-light);
  min-width: 0;
}
.carte.large { border-radius: 18px; padding: 22px 24px; }
.carte.sans-pad { padding: 0; overflow: hidden; }

.carte-titre { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.carte-sous { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.carte-lien { border: none; background: none; padding: 0; font-size: 12px; color: var(--accent); cursor: pointer; }
.carte-lien:hover { text-decoration: underline; text-underline-offset: 2px; }

/* StatTile */
.stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.stat-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.stat-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}
.stat-note { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; }
.stat-note.pos { color: #7fe0a0; }
.stat-note.warn { color: var(--warning); }
.stat-note.neg { color: #ff9a94; }
.stat-spark { flex: 0 0 auto; }

/* Légendes de graphique */
.legende { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

/* Badges de statut */
.badge {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-block;
}
.badge.ok { color: #7fe0a0; background: rgba(40, 200, 64, 0.12); }
.badge.accent { color: var(--accent); background: var(--accent-soft); }
.badge.warn { color: var(--warning); background: rgba(254, 188, 46, 0.12); }
.badge.danger { color: var(--danger-text); background: rgba(255, 95, 87, 0.12); }
.badge.neutre { color: var(--text-secondary); background: var(--surface-3); }

/* Barres de progression (pousse animée) */
.jauge { height: 8px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.jauge > div {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scaleX(0);
  transform-origin: left;
  animation: growX 0.9s var(--ease-out) 0.3s forwards;
}
.jauge > div.warn { background: var(--warning); box-shadow: none; }
.jauge.fine { height: 7px; }
.jauge.epaisse { height: 10px; border-radius: 5px; }

/* Lignes clé/valeur dans une carte */
.kv { display: flex; flex-direction: column; gap: 11px; font-size: var(--text-sm); }
.kv > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-subtle);
}
.kv > div:last-child { padding-bottom: 0; border-bottom: none; }
.kv .k { color: var(--text-secondary); }
.kv strong { font-family: var(--font-display); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }

/* ---------- Tableaux (grid) ---------- */
.tbl { min-width: 0; }
.tbl-head {
  display: grid;
  padding: 13px 22px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}
.tbl-row {
  display: grid;
  padding: 15px 22px;
  align-items: center;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) var(--ease-standard);
  gap: 10px;
}
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: var(--surface-1); }
.tbl .fort { font-weight: var(--weight-semibold); }
.tbl .doux { color: var(--text-secondary); }
.tbl .absent { color: var(--text-disabled); }
.tbl .num { font-family: var(--font-display); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.tbl .fin { text-align: right; }
.tbl .tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cols-reunions { grid-template-columns: 2.4fr 1.3fr 1.2fr 0.8fr 1.1fr 0.7fr 0.9fr; }
.cols-couts { grid-template-columns: 2.2fr 1fr 1fr 1fr 0.9fr; }
.cols-users { grid-template-columns: 2.4fr 1.2fr 1fr 1.3fr 1fr; }
.tbl-titre { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 4px; }
.tbl-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tbl-user .nom { font-weight: var(--weight-semibold); display: block; }
.tbl-user .mail { font-size: 12px; color: var(--text-tertiary); display: block; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bandeau enregistrement live ---------- */
.live {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, rgba(255, 95, 87, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 95, 87, 0.22);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--rim-light);
  flex-wrap: wrap;
}
.live-pt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  animation: blink 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--danger);
  flex: 0 0 auto;
}
.live-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9a94;
  font-weight: var(--weight-semibold);
}
.live-titre { font-size: 14px; font-weight: var(--weight-semibold); }
.live-sous { font-size: 12px; color: var(--text-tertiary); }
.live-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; overflow: hidden; justify-content: center; min-width: 120px; }
.live-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 auto;
  transform-origin: center;
  animation: wave 1s ease-in-out infinite;
}
.live-timer { font-family: var(--font-display); font-size: 15px; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* ---------- Filtres (Réunions) ---------- */
.filtres { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filtres input[type='search'] {
  flex: 1;
  max-width: 320px;
  height: 38px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: var(--text-sm);
  font-family: var(--font-ui);
  color: var(--text-primary);
}
.filtres input::placeholder { color: var(--text-tertiary); }
.filtre-chip {
  height: 38px;
  padding: 0 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
}
.filtre-chip.on { background: var(--surface-strong); color: var(--text-primary); box-shadow: var(--rim-light); }

/* ---------- Feedback : chips + commentaires ---------- */
.chips { display: flex; gap: 8px; }
.chip {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-standard);
}
.chip.on { background: var(--solid); border-color: var(--solid); color: var(--text-on-accent); }
.commentaires { display: flex; flex-direction: column; gap: 12px; }
.commentaire {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(128, 128, 140, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.commentaire.negatif { background: rgba(255, 95, 87, 0.05); border-color: rgba(255, 95, 87, 0.15); }
.commentaire .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.commentaire .qui { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.commentaire .pt { width: 6px; height: 6px; border-radius: 50%; background: #7fe0a0; flex: 0 0 auto; }
.commentaire.negatif .pt { background: var(--danger); }
.commentaire .ctx { font-size: 12px; color: var(--text-tertiary); }
.commentaire .verbatim { font-size: var(--text-sm); line-height: 1.5; color: rgba(245, 245, 247, 0.85); }
.commentaire .sans-verbatim { font-style: italic; color: var(--text-tertiary); }
.commentaire .corps { flex: 1; min-width: 0; }

/* Retours par thème */
.themes { display: flex; flex-direction: column; gap: 16px; }
.theme-ligne { display: flex; justify-content: space-between; font-size: var(--text-sm); margin-bottom: 7px; }
.theme-ligne .nm { color: rgba(245, 245, 247, 0.75); }
.theme-ligne strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Feedback récents (dashboard) */
.fb-recents { display: flex; flex-direction: column; gap: 13px; }
.fb-recent { display: flex; gap: 12px; align-items: flex-start; }
.fb-recent .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-top: 6px; flex: 0 0 auto; }
.fb-recent.negatif .pt { background: var(--danger); }
.fb-recent .txt { font-size: var(--text-sm); line-height: 1.45; color: rgba(245, 245, 247, 0.9); }
.fb-recent .src { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 3px; }

/* ---------- Graphiques ---------- */
.chart-vide { padding: 2.4rem 0; text-align: center; color: var(--text-tertiary); font-size: 13px; }
.gr-svg { display: block; overflow: visible; width: 100%; }
.anim-draw { animation: drawIn 1.7s var(--ease-out) 0.15s forwards; }
.anim-draw.d2 { animation-delay: 0.35s; }
.anim-fill { opacity: 0; animation: fadeSoft 1s ease 0.6s forwards; }
.anim-grow { transform: scaleY(0); transform-origin: bottom; animation: growY 0.7s var(--ease-out) forwards; }
.gl-accent { filter: drop-shadow(0 0 6px rgba(205, 222, 255, 0.6)); }
.gl-vert { filter: drop-shadow(0 0 6px rgba(127, 224, 160, 0.5)); }

/* Infobulle partagée des graphiques */
.chart-tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: rgba(13, 13, 16, 0.95);
  border: 1px solid var(--border-strong);
  color: #f5f5f7;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 12px;
  line-height: 1.55;
  max-width: 240px;
  box-shadow: var(--shadow-float);
}
.chart-tip .k { color: rgba(245, 245, 247, 0.55); margin-bottom: 2px; }
.chart-tip b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.chart-tip .pt { width: 8px; height: 8px; border-radius: 3px; display: inline-block; vertical-align: baseline; }
.gr-svg .cr-hit { cursor: crosshair; }

/* Barres du coût quotidien */
.barres7 { display: flex; align-items: flex-end; gap: 14px; height: 132px; padding-top: 12px; }
.barres7 .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barres7 .bar { width: 100%; background: rgba(205, 222, 255, 0.2); border-radius: 7px 7px 3px 3px; }
.barres7 .bar.max { background: var(--accent); box-shadow: 0 0 12px rgba(205, 222, 255, 0.5); }
.barres7 .jr { font-size: var(--text-xs); color: var(--text-tertiary); }

/* Donut : légende */
.donut-centre-wrap { display: flex; justify-content: center; margin: 4px 0 16px; }
.donut-legende { display: flex; flex-direction: column; gap: 9px; }
.donut-legende > div { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
.donut-legende .nm { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.donut-legende .nm i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.donut-legende strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Gros pourcentage (Satisfaction) */
.hero-pct {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-pct .unite { font-size: 22px; color: var(--text-tertiary); }
.hero-note { font-size: var(--text-sm); margin: 9px 0 16px; }
.hero-note.pos { color: #7fe0a0; }
.hero-repartition { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* Budget */
.budget-val { font-family: var(--font-display); font-size: 34px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.budget-val .sur { font-size: 18px; color: var(--text-tertiary); }
.budget-jauge { margin: 16px 0 20px; }

/* Carte fournisseur */
.fourn-tete { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; flex-wrap: wrap; }
.fourn-tete .pt { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.fourn-tete .pt.accent { background: var(--accent); box-shadow: 0 0 8px rgba(205, 222, 255, 0.6); }
.fourn-tete .pt.gris { background: #8b9bc7; }
.fourn-tete .nom { font-family: var(--font-display); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.fourn-tete .sous { font-size: 12px; color: var(--text-tertiary); }
.fourn-tete .total { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--color-bg); }
.login-card {
  width: min(24rem, 100%);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--rim-light), var(--shadow-card);
  padding: 30px 28px;
}
.login-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-marque { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-lg); }
.login-sous { font-size: 12px; color: var(--text-tertiary); }
.login-stack { display: flex; flex-direction: column; gap: 10px; }
.login input {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-sunken);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  width: 100%;
}
.login input::placeholder { color: var(--text-tertiary); }
.login-err { font-size: 13px; color: var(--danger-text); margin: 0; }

/* ---------- Mode démo ---------- */
.demo-banner {
  margin: 20px 34px 0;
  background: rgba(254, 188, 46, 0.08);
  border: 1px solid rgba(254, 188, 46, 0.25);
  color: var(--warning);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.demo-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; padding: 2px 10px; }
.demo-switch input { display: none; }
.demo-switch .track {
  width: 30px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  position: relative;
  transition: background var(--duration-normal) var(--ease-standard);
  flex: 0 0 auto;
}
.demo-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--duration-normal) var(--ease-out);
}
.demo-switch input:checked + .track { background: var(--accent); box-shadow: 0 0 10px rgba(205, 222, 255, 0.4); }
.demo-switch input:checked + .track .knob { transform: translateX(12px); }
.demo-label { font-size: 12.5px; color: var(--text-tertiary); font-weight: var(--weight-medium); }
