/* =========================================================================
   Train Radar — RER E
   Direction visuelle : Ariane Signal 5.0 (monochrome, filets, micro-labels)
   ========================================================================= */

/* ------------------------------------------------------------------ tokens */

:root,
[data-theme="sombre"] {
  --fond: #0f1112;
  --surface: #16181a;
  --surface-2: #1c1d1f;
  --encre: #e8eaeb;
  --encre-2: #a9aeb3;
  --encre-3: #8d9399;
  --filet: rgba(255, 255, 255, 0.12);
  --filet-fort: rgba(255, 255, 255, 0.22);
  --action: #e8eaeb;
  --action-texte: #0f1112;
  --voile: rgba(0, 0, 0, 0.6);

  --accent: #e3f55b;
  --accent-ink: #5e6b00;
  --rer-e: #c0418d;
  --ok: #8bd450;
  --warn: #ffd60a;
  --bad: #ff7a1a;
  --info: #5cb3ff;

  --font-sans: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --dur-appui: 90ms;
  --dur-local: 160ms;
  --dur-phrase: 260ms;
  --dur-rail: 4.8s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-sortie: cubic-bezier(0.4, 0, 1, 1);

  --tabbar-h: 58px;
  color-scheme: dark;
}

[data-theme="clair"] {
  --fond: #e6e8e7;
  --surface: #f2f4f3;
  --surface-2: #fbfcfb;
  --encre: #121415;
  --encre-2: #454a4f;
  --encre-3: #5c6269;
  --filet: rgba(0, 0, 0, 0.12);
  --filet-fort: rgba(0, 0, 0, 0.22);
  --action: #121415;
  --action-texte: #f2f4f3;
  --voile: rgba(0, 0, 0, 0.4);

  --accent: #5e6b00;
  --accent-ink: #f2f4f3;
  --rer-e: #a0127f;
  --ok: #2e6b00;
  --warn: #7a5c00;
  --bad: #b04400;
  --info: #0a5bb0;

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--fond);
  color-scheme: dark;
}

html[data-theme="clair"] {
  color-scheme: light;
}

body {
  min-height: 100dvh;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  transition: background-color var(--dur-phrase) var(--ease),
    color var(--dur-phrase) var(--ease);
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--encre);
  color: var(--fond);
}

/* ------------------------------------------------------------------ layout */

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--fond);
}

@media (min-width: 520px) {
  .app {
    border-left: 1px solid var(--filet);
    border-right: 1px solid var(--filet);
  }
}

.main {
  flex: 1;
  padding: 0 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
}

.view {
  animation: view-in var(--dur-phrase) var(--ease) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 12px;
  border-bottom: 1px solid var(--filet);
  background: var(--fond);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wordmark {
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule-v {
  width: 1px;
  height: 14px;
  background: var(--filet-fort);
}

.context {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--filet-fort);
  color: var(--encre);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color var(--dur-appui) var(--ease);
}

.key-btn:hover {
  background: var(--surface-2);
}

.key-btn:active {
  transform: translateY(1px);
}

.key-btn svg {
  width: 14px;
  height: 14px;
}

.key-btn.spin svg {
  animation: spin 0.8s linear infinite;
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--filet);
  color: var(--encre-2);
  transition: background-color var(--dur-appui) var(--ease),
    color var(--dur-appui) var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--encre);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

[data-theme="sombre"] .icon-moon,
[data-theme="clair"] .icon-sun {
  display: none;
}

/* ------------------------------------------------------------------ gares */

.station-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0 8px;
  border-bottom: 1px solid var(--filet);
  scrollbar-width: none;
}

.station-tabs::-webkit-scrollbar {
  display: none;
}

.station-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 11px;
  color: var(--encre-3);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--dur-local) var(--ease);
}

.station-tab::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 1px;
  background: var(--encre);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-phrase) var(--ease);
}

.station-tab[aria-selected="true"] {
  color: var(--encre);
}

.station-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.station-tab:hover {
  color: var(--encre);
}

.station-badge {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--rer-e);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.station-add {
  gap: 6px;
  color: var(--encre-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-add span:first-child {
  font-size: 16px;
  line-height: 1;
}

/* ------------------------------------------------------------------ tête de gare */

.station-head {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--filet);
}

.micro {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-3);
}

.station-head h1,
.view-head h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.025em;
}

.station-head p,
.view-head p {
  max-width: 34ch;
  margin: 0;
  color: var(--encre-2);
  font-size: 13px;
  line-height: 18px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  margin-top: 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--filet-fort);
  border-top: 2px solid var(--rer-e);
  background: var(--surface);
}

.hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hero-countdown {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-main {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 6px;
}

.hero-time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.hero-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.hero-dest {
  overflow: hidden;
  font-size: 15px;
  font-weight: 550;
  line-height: 22px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--encre-2);
  font-size: 11px;
  line-height: 16px;
}

.rail {
  position: relative;
  height: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--filet);
}

.rail-tick {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.rail::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
  animation: rail-sweep var(--dur-rail) linear infinite;
}

@keyframes rail-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(420%);
  }
}

.hero-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--filet);
  color: var(--warn);
  font-size: 11px;
  line-height: 16px;
}

/* ------------------------------------------------------------------ liste */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 10px;
}

.live {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-3);
}

.live.stale {
  color: var(--bad);
}

.board {
  border-top: 1px solid var(--filet-fort);
}

.dep {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
  animation: dep-in var(--dur-phrase) var(--ease) both;
}

@keyframes dep-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dep-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.dep-base {
  display: block;
  color: var(--encre-3);
  font-size: 10px;
  line-height: 12px;
}

.dep-base.struck {
  text-decoration: line-through;
}

.dep-real {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.03em;
}

.dep-body {
  min-width: 0;
}

.dep-dest {
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--encre-3);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  background: var(--tag, var(--rer-e));
  color: var(--tag-ink, #fff);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dep-plat {
  white-space: nowrap;
}

.dep-msg {
  margin-top: 4px;
  color: var(--warn);
  font-size: 11px;
  line-height: 15px;
}

.dep-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.delay {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.delay.ok {
  color: var(--ok);
}

.delay.warn {
  color: var(--warn);
}

.delay.bad {
  color: var(--bad);
}

.delay.early {
  color: var(--info);
}

.countdown {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  color: var(--encre-3);
  white-space: nowrap;
}

.is-soon .dep-real {
  color: var(--accent);
}

.is-watched {
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 8px;
}

.is-cancelled .dep-real,
.is-cancelled .dep-dest {
  color: var(--encre-3);
  text-decoration: line-through;
}

.skeleton {
  height: 64px;
  border-bottom: 1px solid var(--filet);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--surface-2) 50%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -80% 0;
  }
}

/* ------------------------------------------------------------------ vide */

.empty {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--filet);
  text-align: center;
}

.empty h2 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.02em;
}

.empty p {
  max-width: 30ch;
  margin: 8px auto 18px;
  color: var(--encre-2);
  font-size: 12px;
  line-height: 18px;
}

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--filet-fort);
  background: transparent;
  color: var(--encre);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color var(--dur-appui) var(--ease),
    border-color var(--dur-appui) var(--ease),
    color var(--dur-appui) var(--ease);
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: var(--action);
  background: var(--action);
  color: var(--action-texte);
}

.btn.primary:hover {
  background: var(--encre-2);
  border-color: var(--encre-2);
}

.btn.small {
  min-height: 32px;
  padding: 0 12px;
}

.btn.danger {
  border-color: var(--filet-fort);
  color: var(--bad);
}

.btn.danger:hover {
  background: var(--surface-2);
}

/* ------------------------------------------------------------------ recherche */

.view-head {
  padding: 24px 0 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--filet-fort);
  background: var(--surface);
}

.search-box svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--encre-3);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--encre-3);
}

.search-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--encre-3);
  font-size: 18px;
  line-height: 1;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
}

.quick .chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--filet);
  color: var(--encre-2);
  font-size: 11px;
  line-height: 26px;
  transition: border-color var(--dur-appui) var(--ease),
    color var(--dur-appui) var(--ease);
}

.quick .chip:hover {
  border-color: var(--filet-fort);
  color: var(--encre);
}

.results {
  border-top: 1px solid var(--filet);
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
  text-align: left;
}

.result-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--filet);
  color: var(--encre-2);
}

.result-mark svg {
  width: 18px;
  height: 18px;
}

.result-body {
  flex: 1;
  min-width: 0;
}

.result-name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-sub {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--encre-3);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-add {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hint {
  padding: 16px 0;
  color: var(--encre-3);
  font-size: 11px;
  line-height: 16px;
}

/* ------------------------------------------------------------------ réglages */

.card {
  padding: 16px 0;
  border-bottom: 1px solid var(--filet);
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-row label {
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
}

.card-hint {
  margin: 8px 0 0;
  color: var(--encre-3);
  font-size: 11px;
  line-height: 16px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--encre-3);
}

input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 10px 0 0;
  accent-color: var(--encre);
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 1px solid var(--filet-fort);
  border-radius: 999px;
  background: transparent;
  transition: background-color var(--dur-local) var(--ease),
    border-color var(--dur-local) var(--ease);
}

.switch-knob {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--encre-3);
  transition: transform var(--dur-local) var(--ease),
    background-color var(--dur-local) var(--ease);
}

.switch[aria-checked="true"] {
  border-color: var(--encre);
  background: var(--encre);
}

.switch[aria-checked="true"] .switch-knob {
  background: var(--fond);
  transform: translateX(16px);
}

.watch-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.watch-add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--filet);
  outline: 0;
  background: var(--surface);
  font-size: 12px;
}

.watch-add input:focus {
  border-color: var(--filet-fort);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip-remove {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--filet);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 24px;
}

.manage-list {
  margin-top: 6px;
}

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--filet);
}

.manage-item:first-child {
  border-top: 0;
}

.mi-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mi-city {
  color: var(--encre-3);
  font-size: 11px;
}

.manage-del {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--encre-3);
}

.manage-del:hover {
  color: var(--bad);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--filet-fort);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.live {
  border-color: var(--accent);
  color: var(--accent);
}

.link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.version {
  padding: 24px 0 8px;
  color: var(--encre-3);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ tabbar */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 460px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--filet-fort);
  background: var(--fond);
  transform: translateX(-50%);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 0 8px;
  color: var(--encre-3);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-local) var(--ease);
}

.tab::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--encre);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: opacity var(--dur-local) var(--ease),
    transform var(--dur-local) var(--ease);
}

.tab[aria-current="page"] {
  color: var(--encre);
}

.tab[aria-current="page"]::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.tab svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  left: 50%;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  background: var(--encre);
  color: var(--fond);
  font-size: 12px;
  line-height: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity var(--dur-local) var(--ease),
    transform var(--dur-local) var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: var(--bad);
  color: #fff;
}

/* ------------------------------------------------------------------ mouvement */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ desktop */

@media (min-width: 720px) {
  .main {
    padding-right: 24px;
    padding-left: 24px;
  }

  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }
}
