/* Kalam web — couleurs de kalam-design/tokens.json (v1.0.0).
   Bouton principal : texte blanc sur #1DAB61 (choix du 29 octobre 2026). */

:root {
  color-scheme: light dark;
  --bg: #f6faf7;
  --surface: #ffffff;
  --input: #f0f4f1;
  --green: #1dab61;
  --green-hover: #2bc274;
  --on-green: #ffffff;
  --deep: #0b5c3b;
  --accent-text: #0b5c3b;
  --bubble-out: #d9fdd3;
  --bubble-in: #ffffff;
  --pale: #e7f8ee;
  --yellow: #f5c518;
  --ylight: #fef7dc;
  --text: #2e3d37;
  --text-soft: #61756c;
  --hair: rgba(11, 92, 59, 0.14);
  --read: #53bdeb;
  --danger: #d32f2f;
  --danger-fill: #d32f2f;
  --warn: #8a6d00;
  --disabled-fill: #e6ece8;
  --disabled-ink: #61756c;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 4px 18px rgba(11, 92, 59, 0.08);
  --toast-bg: #2e3d37;
  --toast-ink: #ffffff;
  --avatar-radius: 8px;
  --thread-bg: var(--bg);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", Avenir, "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e2a1f;
    --surface: #133427;
    --input: #1a3f31;
    --deep: #e8f0ea;
    --accent-text: #43c878;
    --bubble-out: #1e4735;
    --bubble-in: #22372c;
    --pale: #1e4735;
    --text: #e8f0ea;
    --text-soft: #9dbba9;
    --hair: rgba(232, 240, 234, 0.12);
    --read: #6fd08c;
    --danger: #ff7a70;
    --warn: #f5c518;
    --disabled-fill: #22372c;
    --disabled-ink: #9dbba9;
    --glass: rgba(47, 93, 71, 0.72);
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    --toast-bg: #e8f0ea;
    --toast-ink: #0e2a1f;
    --avatar-radius: 12px;
    --thread-bg: linear-gradient(rgba(232, 240, 234, 0.09) 1px, transparent 1px) 0 0 / 34px 34px,
      linear-gradient(90deg, rgba(232, 240, 234, 0.09) 1px, transparent 1px) 0 0 / 34px 34px, #0e2a1f;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.soft {
  color: var(--text-soft);
}

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.em {
  font-style: italic;
  color: var(--text-soft);
}

#app {
  height: 100%;
}

/* ---------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--green);
  color: var(--on-green);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-hover);
}

.btn-primary:disabled {
  background: var(--disabled-fill);
  color: var(--disabled-ink);
  cursor: default;
}

.btn-primary[aria-busy="true"] {
  background: var(--green);
  color: var(--on-green);
  opacity: 0.85;
}

.btn-quiet {
  background: transparent;
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.btn-outline {
  background: transparent;
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1.5px var(--text-soft);
}

.btn-danger {
  background: var(--danger-fill);
  color: #fff;
}

.btn-small {
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--deep);
}

.icon-btn:hover {
  background: var(--hair);
}

.icon-btn.small {
  width: 32px;
  height: 32px;
}

.link {
  border: 0;
  background: none;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.danger-link {
  color: var(--danger);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--hair);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

.spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: currentColor;
}

.spinner.big {
  width: 44px;
  height: 44px;
  border-width: 4px;
}

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

/* ---------------------------------------------------------------- Accueil */

.onb {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 20px calc(env(safe-area-inset-bottom) + 24px);
  overflow-y: auto;
  height: 100%;
}

.onb-top {
  height: 44px;
  margin-left: -8px;
}

.onb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px 0 24px;
}

.onb-body p {
  margin: 0;
  max-width: 340px;
}

.onb-title {
  margin: 8px 0 0;
  font: 700 24px/1.2 var(--font-display);
  color: var(--deep);
  outline: none;
}

.onb-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onb .danger-link {
  align-self: center;
  margin-top: 12px;
}

.lead {
  font-size: 16px;
}

.art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--pale);
  color: var(--green);
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.logo-glyph {
  line-height: 0;
}

.logo-word {
  font: 700 44px/1 var(--font-display);
  letter-spacing: -0.66px;
  color: var(--deep);
  margin-left: 4px;
}

.progress-line {
  min-height: 3em;
  font-weight: 500;
}

@media (min-width: 700px) and (min-height: 640px) {
  .onb-card {
    height: auto;
    min-height: 0;
    max-height: calc(100% - 12vh);
    margin: 6vh auto;
    padding: 24px 36px 32px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .onb-card .onb-body {
    min-height: 340px;
  }
}

/* ---------------------------------------------------------------- Formulaires */

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.onb-body .form {
  max-width: 400px;
  margin-top: 8px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-top: 4px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--input);
  border: 1.5px solid transparent;
  color: var(--text-soft);
}

.field:focus-within {
  border-color: var(--green);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
}

.field input::placeholder {
  color: var(--text-soft);
  font-weight: 400;
}

.suffix {
  font-weight: 600;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.status.ok {
  color: var(--accent-text);
}

.status.bad {
  color: var(--danger);
}

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

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-size: 14px;
  text-align: left;
}

/* ---------------------------------------------------------------- Coquille */

.shell {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  padding-top: env(safe-area-inset-top);
}

body[data-view="list"] .pane-main,
body[data-view="main"] .pane-list {
  display: none;
}

@media (min-width: 860px) {
  .shell {
    grid-template-columns: minmax(320px, 380px) 1fr;
  }

  body[data-view] .pane {
    display: flex;
  }

  .pane-list {
    border-right: 1px solid var(--hair);
  }

  .only-mobile {
    display: none !important;
  }
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 52px;
  margin: 6px 12px 8px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--hair);
  position: relative;
  z-index: 2;
}

.topbar > .icon-btn:first-child {
  margin-left: -12px;
}

.topbar-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 860px) {
  .pane-main .topbar {
    padding-left: 18px;
  }
  .pane-main .chat-top {
    padding-left: 10px;
  }
}

/* ---------------------------------------------------------------- Liste */

.conv-list {
  display: flex;
  flex-direction: column;
}

.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 0.5px solid var(--hair);
}

.conv-row:hover {
  background: color-mix(in srgb, var(--pale) 55%, transparent);
}

.conv-row.active {
  background: var(--pale);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--avatar-radius);
  background: var(--pale);
  color: var(--deep);
  font-weight: 600;
  font-size: 17px;
}

.avatar.small {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.avatar.big {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.conv-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.conv-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.conv-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.conv-time {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.unread .conv-time {
  color: var(--accent-text);
  font-weight: 600;
}

.preview {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--green);
  color: var(--on-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.team-badge {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 12px 8px;
  padding: 12px 8px 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--hair);
}

.banner-icon {
  color: var(--green);
  margin-top: 2px;
}

.banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.banner-text p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.empty,
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 32px;
  text-align: center;
}

.empty h2 {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--deep);
}

.empty p,
.placeholder p {
  margin: 0;
  max-width: 320px;
  color: var(--text-soft);
}

.empty .btn {
  margin-top: 12px;
  max-width: 320px;
}

.placeholder {
  height: 100%;
}

.placeholder .soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------------------------------------------------------------- Fil */

.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--thread-bg);
}

.chat-header-slot {
  flex: none;
}

.chat-top {
  gap: 10px;
}

.chat-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chat-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.chat-sub.secure {
  color: var(--accent-text);
}

.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
}

.thread > :first-child {
  margin-top: auto;
}

.thread-empty,
.thread-start {
  align-self: center;
  margin: 16px 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--ylight);
  color: #5b4a00;
  font-size: 12.5px;
  text-align: center;
  max-width: 320px;
}

.thread-empty {
  background: var(--surface);
  color: var(--text-soft);
}

@media (prefers-color-scheme: dark) {
  .thread-start {
    background: var(--surface);
    color: var(--text-soft);
  }
}

.day {
  align-self: center;
  margin: 12px 0 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--hair);
  font-size: 12px;
  color: var(--text-soft);
}

.sys {
  align-self: center;
  margin: 6px 0;
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
  max-width: 80%;
}

.msg {
  display: flex;
  margin-top: 6px;
}

.msg.grouped {
  margin-top: 2px;
}

.msg.out {
  justify-content: flex-end;
}

.bubble {
  max-width: min(78%, 560px);
  padding: 7px 10px 6px 12px;
  border-radius: 16px;
  background: var(--bubble-in);
  box-shadow: inset 0 0 0 0.5px var(--hair);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.msg.in .bubble {
  border-bottom-left-radius: 5px;
}

.msg.out .bubble {
  background: var(--bubble-out);
  box-shadow: none;
  border-bottom-right-radius: 5px;
}

.bubble .text {
  white-space: pre-wrap;
}

.sender {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-text);
}

.meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 7px 0 -3px 10px;
  font-size: 11px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.tick {
  display: inline-flex;
  color: var(--text-soft);
}

.tick-read {
  color: var(--read);
}

.tick-failed {
  color: var(--danger);
}

.tick-pending {
  opacity: 0.7;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 0.5px solid var(--hair);
}

.composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  padding: 11px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 16px;
  line-height: 1.375;
  resize: none;
  outline: none;
}

.composer textarea:focus {
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  transition: background-color 0.15s;
}

.send-btn:disabled {
  background: var(--disabled-fill);
  color: var(--disabled-ink);
  cursor: default;
}

.request-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  align-self: center;
  width: min(100%, 420px);
  margin: auto 0;
  padding: 24px 20px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--hair);
  text-align: center;
}

.request-card h2 {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--deep);
  overflow-wrap: anywhere;
}

.request-card p {
  margin: 0;
  font-size: 13.5px;
}

.request-out {
  color: var(--warn);
  font-weight: 500;
}

.request-card .form-error {
  margin-top: 8px;
  width: 100%;
}

.request-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.request-actions .btn {
  min-height: 46px;
}

.request-bar {
  flex: none;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 0.5px solid var(--hair);
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------- Pages (réglages, nouvelle conversation) */

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.page-body {
  padding: 4px 16px 32px;
}

.page-body > .form,
.page-body > p,
.page-body > .card,
.page-body > .section,
.page-body > .list-row {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-body > p {
  margin-top: 4px;
  margin-bottom: 12px;
}

.section {
  margin: 20px auto 8px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 0.5px var(--hair);
  overflow: hidden;
  margin-bottom: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 0.5px solid var(--hair);
  background: transparent;
  text-align: left;
}

.row:last-child {
  border-bottom: 0;
}

.row.column {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.row-label {
  display: block;
  font-weight: 500;
}

.row-sub {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
}

.row-value {
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.row-icon {
  color: var(--green);
}

.row-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.grow {
  flex: 1;
  min-width: 0;
}

.row-button {
  font-weight: 500;
  color: var(--accent-text);
  gap: 8px;
}

.row-button:hover {
  background: color-mix(in srgb, var(--pale) 55%, transparent);
}

.row-button.danger {
  color: var(--danger);
  justify-content: center;
}

.profile {
  gap: 14px;
}

.profile-name {
  font-size: 17px;
  color: var(--deep);
  overflow-wrap: anywhere;
}

.address-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address {
  flex: 1;
  min-width: 0;
  font: 13px/1.4 var(--font-mono);
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}

.foot {
  margin-top: 20px !important;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding: 12px 4px;
  border: 0;
  border-top: 0.5px solid var(--hair);
  border-bottom: 0.5px solid var(--hair);
  background: transparent;
  text-align: left;
}

.list-row-main {
  display: flex;
  flex-direction: column;
}

.list-row .avatar {
  color: var(--green);
}

.page-body .form .btn {
  margin-top: 4px;
}

/* ---------------------------------------------------------------- Interrupteur */

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 999px;
  background: var(--disabled-fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background-color 0.2s;
  cursor: pointer;
}

.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.switch:checked {
  background: var(--green);
}

.switch:checked::before {
  transform: translateX(20px);
}

.switch:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------------------------------------------------------------- Avis, dialogues */

#toasts {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
  z-index: 50;
}

.toast {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

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

.dialog {
  width: min(92vw, 400px);
  padding: 22px 20px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog h2 {
  margin: 0 0 10px;
  font: 700 19px/1.3 var(--font-display);
  color: var(--deep);
}

.dialog p {
  margin: 0 0 10px;
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.dialog-actions .btn {
  min-height: 46px;
}

/* ---------------------------------------------------------------- Divers */

.boot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

html[data-mock] body::after {
  content: "Maquette";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 8px;
  border-radius: 0 0 8px 8px;
  line-height: 14px;
  background: var(--yellow);
  color: #2e3d37;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.85;
  z-index: 60;
}

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