/* ------------------------------------------------------------- thème --- */

:root {
  color-scheme: light dark;
  --bg: #f4eee5;
  --surface: #fffcf7;
  --surface-sunk: #f6f0e7;
  --ink: #1d1b18;
  --muted: #877f75;
  --faint: #bcb3a7;
  --line: rgb(45 30 15 / .09);
  --line-strong: rgb(45 30 15 / .16);
  --accent: #d42a3f;
  --green: #1d8a55;
  --amber: #d4920f;
  --paper: #fffffd;
  --flake-dot: rgb(255 255 255 / .95);
  --glow-red: rgb(212 42 63 / .11);
  --glow-green: rgb(29 138 85 / .08);
  --shadow-sm: 0 1px 2px rgb(60 40 20 / .06), 0 2px 8px rgb(60 40 20 / .05);
  --shadow: 0 1px 2px rgb(60 40 20 / .05), 0 14px 34px -14px rgb(60 40 20 / .25);
  --paper-shadow: rgb(60 40 20 / .22);
  --radius: 24px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-family: var(--font);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%,
      1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%,
      1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%,
      1.003 76.9%, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1411;
    --surface: #17211c;
    --surface-sunk: #1d2822;
    --ink: #f1eee8;
    --muted: #92a098;
    --faint: #5b6862;
    --line: rgb(255 255 255 / .08);
    --line-strong: rgb(255 255 255 / .16);
    --accent: #ee4a5c;
    --green: #34b673;
    --amber: #e9ac34;
    --paper: #f3f0e9;
    --flake-dot: rgb(255 255 255 / .45);
    --glow-red: rgb(238 74 92 / .13);
    --glow-green: rgb(52 182 115 / .09);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 36px -14px rgb(0 0 0 / .6);
    --paper-shadow: rgb(0 0 0 / .55);
  }
}

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

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(110% 55% at 50% -12%, var(--glow-red), transparent 70%),
    radial-gradient(70% 45% at 105% 0%, var(--glow-green), transparent 70%),
    var(--bg);
  -webkit-tap-highlight-color: transparent;
}

@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; }
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 18px;
}

main, form { display: flex; flex: 1; flex-direction: column; }

/* Neige : deux couches de points qui tombent lentement (transformations seulement : peu gourmand) */
.snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Chaque couche descend d'un nombre entier de motifs par cycle : la boucle est invisible */
.snow::before,
.snow::after {
  --tile: 290px;
  content: "";
  position: absolute;
  inset: calc(var(--tile) * -3) 0 0;
  background-image:
    radial-gradient(circle at 9% 14%, var(--flake-dot) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 47% 7%, var(--flake-dot) 0 1px, transparent 2px),
    radial-gradient(circle at 81% 31%, var(--flake-dot) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 29% 46%, var(--flake-dot) 0 .9px, transparent 1.9px),
    radial-gradient(circle at 66% 62%, var(--flake-dot) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 14% 79%, var(--flake-dot) 0 1.1px, transparent 2.1px),
    radial-gradient(circle at 92% 88%, var(--flake-dot) 0 .9px, transparent 1.9px),
    radial-gradient(circle at 52% 94%, var(--flake-dot) 0 1.4px, transparent 2.4px);
  background-size: var(--tile) var(--tile);
  opacity: .7;
  animation: snowfall 48s linear infinite;
}

.snow::after {
  --tile: 410px;
  background-position: 130px 60px;
  opacity: .4;
  transform: scaleX(-1);
  animation-name: snowfall-far;
  animation-duration: 80s;
}

@keyframes snowfall { to { transform: translate3d(0, calc(var(--tile) * 3), 0); } }
@keyframes snowfall-far { to { transform: scaleX(-1) translate3d(0, calc(var(--tile) * 3), 0); } }

/* --------------------------------------------------------- barre haute --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 0 8px;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

/* Ce qui défile sous la barre est flouté, de plus en plus vers le haut */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 -18px -14px;
  z-index: -1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-width: 0;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: transform .3s var(--spring), background-color .4s, color .4s;
}

.pill:active { transform: scale(.95); }

.status { overflow: hidden; }
.status-text { overflow: hidden; text-overflow: ellipsis; }
.status.morphing .status-text { text-overflow: clip; }

.status-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
}

.status-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  transition: background-color .4s;
}

.status-icon svg {
  display: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status[data-kind="ok"] .status-icon::before { background: var(--green); }
.status[data-kind="warn"] .status-icon::before { background: var(--amber); }
.status[data-kind="off"] .status-icon::before { background: var(--accent); }

.status[data-kind="ok"] .status-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.6s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.status[data-kind="busy"] .status-icon::before {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  background: none;
  animation: spin .7s linear infinite;
}

.status[data-kind="printing"] {
  background:
    linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 50%, transparent 70%) 0 0 / 250% 100%,
    color-mix(in srgb, var(--surface) 80%, transparent);
  animation: shimmer 1.4s linear infinite;
}

.status[data-kind="printing"] .status-icon::before { background: var(--accent); animation: blink .7s ease-in-out infinite alternate; }

@keyframes shimmer { from { background-position: 100% 0, 0 0; } to { background-position: -150% 0, 0 0; } }
@keyframes blink { to { opacity: .25; } }
@keyframes spin { to { transform: rotate(1turn); } }

.status[data-kind="done"] { background: var(--green); color: #fff; }
.status[data-kind="err"] { background: var(--accent); color: #fff; }
.status[data-kind="done"] .status-icon::before,
.status[data-kind="err"] .status-icon::before { display: none; }
.status[data-kind="done"] .i-check,
.status[data-kind="err"] .i-alert { display: block; animation: pop .5s var(--spring); }

@keyframes pop { from { transform: scale(0); } }

.install { color: var(--accent); flex: none; }
.install svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.hero {
  padding: 18px 0 22px;
  text-align: center;
}

.flake {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
  transition: transform .4s var(--spring);
}

.flake:active { transform: scale(.88); }

.flake svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: .13;
  stroke-linecap: round;
  animation: spin 40s linear infinite;
}

h1 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: clamp(29px, 8.6vw, 36px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero p {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: balance;
}

.rise { animation: rise .8s var(--spring) both; }
.d1 { animation-delay: 60ms; }
.d2 { animation-delay: 120ms; }
.d3 { animation-delay: 180ms; }
.d4 { animation-delay: 240ms; }
.d5 { animation-delay: 300ms; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------- rédaction --- */

.card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.composer {
  padding: 4px;
  transition: box-shadow .3s var(--ease-out);
}

.composer :focus-visible { outline: none; }

textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 14px 14px 8px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  line-height: 1.45;
  resize: none;
  caret-color: var(--accent);
}

::placeholder { color: var(--faint); opacity: 1; }

.ideas-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .45s var(--ease-out), opacity .3s;
}

.composer.has-text .ideas-wrap {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.ideas {
  display: flex;
  gap: 8px;
  min-height: 0;
  padding: 2px 10px 10px;
  overflow: auto hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent);
}

.ideas::-webkit-scrollbar { display: none; }

.idea {
  flex: none;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: transform .3s var(--spring), background-color .2s;
}

.idea:active { transform: scale(.93); background: var(--line); }

.composer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 2px 14px;
  border-top: 1px solid var(--line);
}

.signature {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.signature input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  caret-color: var(--accent);
}

.ring {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  transition: transform .4s var(--spring);
}

.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: var(--line-strong); }
.ring-bar {
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-dasharray: 81.68;
  stroke-dashoffset: 81.68;
  transition: stroke-dashoffset .35s var(--ease-out), stroke .3s;
}

.ring.warn { transform: scale(1.12); }
.ring.warn .ring-bar { stroke: var(--amber); }
.ring.over .ring-bar { stroke: var(--accent); }

.ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ring.over span { color: var(--accent); }

/* ------------------------------------------------- imprimante et ticket --- */

.printer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 4px;
}

.slot {
  position: relative;
  z-index: 2;
  width: min(80vw, 308px);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(#433d37, #1c1916);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .55), 0 1px 0 rgb(255 255 255 / .5);
}

/* Le ticket sort de la fente : tout ce qui dépasse au-dessus est caché */
.feed {
  width: min(68vw, 264px);
  margin-top: -7px;
  clip-path: inset(0 -50vw -100vh);
}

.ticket-shadow {
  filter: drop-shadow(0 10px 14px var(--paper-shadow));
}

.ticket {
  position: relative;
  min-height: 40px;
  background:
    linear-gradient(rgb(0 0 0 / .08), transparent 14px),
    var(--paper);
  --tooth: 5px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  transform-origin: 50% 0;
}

.ticket img {
  display: block;
  width: 100%;
  height: auto;
}

.ticket.empty img { display: none; }

.ticket.empty::before {
  content: "";
  display: block;
  height: 72px;
}


/* ----------------------------------------------------- notifications --- */

.options { margin-top: 18px; }

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.toggle-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
}

.toggle-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 10%;
}

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

.toggle-text strong { font-size: 15px; font-weight: 600; }
.toggle-text small { color: var(--muted); font-size: 13px; line-height: 1.3; }

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color .3s;
}

.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / .22);
  transition: transform .45s var(--spring), width .25s var(--ease-out);
}

.toggle:active .switch::before { width: 33px; }
input:checked + .switch { background: var(--green); }
input:checked + .switch::before { transform: translateX(20px); }
.toggle:active input:checked + .switch::before { transform: translateX(14px); }
input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
input:disabled + .switch { opacity: .45; }

/* ------------------------------------------------------- envoi (dock) --- */

.dock {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  margin: auto -18px 0;
  padding: 26px 18px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 26px);
}

.dock.nocode .code { display: none; }

.code {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  transition: flex .55s var(--spring);
}

.dock.saved .code { flex: 0 0 54px; }

.code input {
  width: 100%;
  height: 54px;
  padding: 0 14px 0 44px;
  border: 0;
  border-radius: 18px;
  outline: none;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 16px;
  transition: box-shadow .25s, opacity .2s;
}

.code input:focus { box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--accent); }

.code-lock {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
  transition: width .5s var(--spring), color .3s, background-color .3s, transform .3s var(--spring);
}

.code-lock svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dock.saved .code input { opacity: 0; pointer-events: none; }

.dock.saved .code-lock {
  width: 54px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--green);
  pointer-events: auto;
}

.dock.saved .code-lock:active { transform: scale(.9); }

.send {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .22),
    0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  transition: transform .35s var(--spring), background-color .35s, opacity .3s, box-shadow .3s;
}

.send:active { transform: scale(.95); }
.send.idle { opacity: .5; box-shadow: none; }
.send.success { background: var(--green); }

.send-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s;
}

.send-label { transition: opacity .2s; }

.spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgb(255 255 255 / .35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
  transition: opacity .2s;
}

.send.loading .send-label,
.send.loading .send-icon { opacity: 0; }
.send.loading .spinner { opacity: 1; }
.send.success .send-icon { display: none; }

/* -------------------------------------------- toasts, confettis, haptique --- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 74px);
  z-index: 20;
  width: max-content;
  max-width: min(90vw, 400px);
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.94);
  transition: transform .5s var(--spring), opacity .25s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.err { background: var(--accent); color: #fff; }
.toast.ok { background: var(--green); color: #fff; }

.burst {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------------------------------------------------- feuille iPhone --- */

.sheet {
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: auto 0 0;
  padding: 10px 24px max(24px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 30px 30px 0 0;
  background: var(--surface);
  box-shadow: 0 -12px 40px rgb(0 0 0 / .2);
  color: var(--ink);
  text-align: center;
  touch-action: none;
}

.sheet[open] { animation: sheet-up .6s var(--spring); }
.sheet::backdrop { background: rgb(0 0 0 / .38); animation: fade .3s; }

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.sheet-handle {
  width: 40px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line-strong);
}

.sheet-icon { display: block; margin: 0 auto 12px; border-radius: 15px; box-shadow: var(--shadow-sm); }
.sheet h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sheet p { margin: 0 auto 18px; max-width: 32ch; color: var(--muted); font-size: 15px; line-height: 1.4; }

.sheet ol {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.sheet li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-sunk);
  font-size: 15px;
  line-height: 1.35;
}

.step-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  color: #0a84ff;
}

.step-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-close {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 650;
  transition: transform .3s var(--spring);
}

.sheet-close:active { transform: scale(.96); }

@media (min-width: 600px) {
  .sheet { max-width: 420px; margin: auto; border-radius: 30px; }
  .sheet-handle { display: none; }
}

/* ------------------------------------------------- moins d'animations --- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .snow { display: none; }
}
