/* ============================================================
   JOEGOL COMPTA — Feuille de styles principale
   Design : industriel précis | Palette : anthracite + orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #0f1117;
  --bg2:        #171b26;
  --bg3:        #1e2330;
  --border:     #2a3045;
  --border2:    #3a4560;
  --text:       #e8ecf4;
  --text2:      #8892a8;
  --text3:      #545f78;
  --accent:     #f97316;       /* orange Joegol */
  --accent2:    #fb923c;
  --accent-dim: rgba(249,115,22,.12);
  --success:    #22c55e;
  --danger:     #ef4444;
  --warning:    #eab308;
  --info:       #38bdf8;
  --sidebar-w:  240px;
  --header-h:   58px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.5);
  --font-head:  'Syne', sans-serif;
  --font-body:  'Instrument Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;
  --transition: 150ms cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

/* ─── Layout principal ──────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-logo-text span {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--text3);
  font-family: var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-of-type { border-bottom: none; }

.sidebar-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 18px 4px;
  font-family: var(--font-body);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--text2);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg3);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity var(--transition);
}

.nav-item.active svg, .nav-item:hover svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 32px; height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: .68rem;
  color: var(--text3);
}

.sidebar-logout {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  color: var(--text3);
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  flex-shrink: 0;
}
.sidebar-logout:hover { background: rgba(239,68,68,.15); color: var(--danger); }
.sidebar-logout svg { width: 15px; height: 15px; }

/* ─── MAIN CONTENT ──────────────────────────────────────────── */
.main-wrap {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
}

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  flex: 1;
}

.topbar-title span {
  color: var(--text3);
  font-weight: 400;
  font-size: .85rem;
  margin-left: 8px;
  font-family: var(--font-body);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-date {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text3);
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ─── MAIN CONTENT AREA ─────────────────────────────────────── */
.content {
  padding: 24px;
  flex: 1;
}

/* ─── CARTES ────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

.card-body { padding: 20px; }

/* ─── STATS CARDS ───────────────────────────────────────────── */
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--border2); }

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-lg) 0 60px;
}

.stat-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: .75rem;
  color: var(--text2);
}

.stat-icon {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border-radius: 8px;
  z-index: 1;
}

.stat-icon svg { width: 18px; height: 18px; color: var(--accent); }

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ─── BOUTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--border2);
}
.btn-secondary:hover { background: var(--border); color: var(--text); }

.btn-danger {
  background: rgba(239,68,68,.12);
  color: var(--danger);
  border-color: rgba(239,68,68,.25);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.btn-sm { padding: 5px 10px; font-size: .78rem; }
.btn-lg { padding: 11px 22px; font-size: .95rem; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ─── FORMULAIRES ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.form-label .required { color: var(--accent); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  font-size: .88rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control::placeholder { color: var(--text3); }

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.form-error {
  font-size: .75rem;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-hint {
  font-size: .73rem;
  color: var(--text3);
  margin-top: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23545f78'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── TABLES ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.tbl thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  white-space: nowrap;
}

.tbl tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.tbl tbody tr:last-child { border-bottom: none; }
.tbl tbody tr:hover { background: var(--bg3); }

.tbl tbody td {
  padding: 11px 14px;
  color: var(--text);
  vertical-align: middle;
}

.tbl tbody td.mono {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text2);
}

/* ─── BADGES / STATUS ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.badge-success  { background: rgba(34,197,94,.12);  color: var(--success); }
.badge-danger   { background: rgba(239,68,68,.12);  color: var(--danger);  }
.badge-warning  { background: rgba(234,179,8,.12);  color: var(--warning); }
.badge-info     { background: rgba(56,189,248,.12); color: var(--info);    }
.badge-neutral  { background: var(--bg3);           color: var(--text2);   }
.badge-accent   { background: var(--accent-dim);    color: var(--accent);  }

/* ─── ALERTES FLASH ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .86rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid;
}

.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.25);  color: #86efac; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.25);  color: #fca5a5; }
.alert-warning { background: rgba(234,179,8,.1);  border-color: rgba(234,179,8,.25);  color: #fde68a; }
.alert-info    { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.25); color: #7dd3fc; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.page-btn {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: .8rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

.page-info {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text3);
  font-family: var(--font-mono);
}

/* ─── GRILLE ────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── UTILITAIRES ───────────────────────────────────────────── */
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.gap-4         { gap: 16px; }
.mt-1          { margin-top: 4px; }
.mt-2          { margin-top: 8px; }
.mt-3          { margin-top: 12px; }
.mt-4          { margin-top: 16px; }
.mb-4          { margin-bottom: 16px; }
.mb-6          { margin-bottom: 24px; }
.text-muted    { color: var(--text2); }
.text-dim      { color: var(--text3); }
.text-accent   { color: var(--accent); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-mono     { font-family: var(--font-mono); }
.text-sm       { font-size: .82rem; }
.text-xs       { font-size: .72rem; }
.font-bold     { font-weight: 700; }
.w-full        { width: 100%; }
.hidden        { display: none; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Nombre / montant mis en valeur */
.amount {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); }

  .main-wrap { margin-left: 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .content { padding: 16px; }

  .menu-toggle { display: flex !important; }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
}

.menu-toggle svg { width: 18px; height: 18px; }

/* ─── PAGE LOGIN ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-left {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(249,115,22,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(249,115,22,.04) 0%, transparent 60%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.login-brand-mark {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,.35);
}

.login-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.1;
}

.login-brand-sub {
  font-size: .75rem;
  color: var(--text3);
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-tagline {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-tagline h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
}

.login-tagline h2 em {
  font-style: normal;
  color: var(--accent);
}

.login-tagline p {
  color: var(--text2);
  font-size: .9rem;
  max-width: 320px;
  margin: 0 auto;
}

.login-grid-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .3;
  pointer-events: none;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-box {
  width: 100%;
  max-width: 380px;
}

.login-box-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text);
  margin-bottom: 6px;
}

.login-box-sub {
  color: var(--text3);
  font-size: .85rem;
  margin-bottom: 32px;
}

.login-submit {
  width: 100%;
  padding: 12px;
  font-size: .95rem;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 32px 24px; }
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
}

.modal-close {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: none;
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,.15); color: var(--danger); }
.modal-close svg { width: 14px; height: 14px; }

.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ─── LOADING SPINNER ───────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}

.empty-state svg {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  opacity: .3;
}

.empty-state p { font-size: .88rem; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn .25s ease forwards; }