/* Caféino — système de design v2 « Torréfaction ».
   Premium comme Apple (matières, typographie, retenue), audacieux comme Spotify (aplats, stories, mouvement).
   Espresso #0E0C0B · Moka #1C1917 · Cuivre #C8814A · Crema #E9C9A3 · Lait #F6F1EA.
   Les noms historiques (--wood, --ink, --surface…) restent valables : ce sont désormais des alias du nouveau système.
   Spécification complète : design/DESIGN-SYSTEM.md — vitrine vivante : /design.html */

/* ---------- Police : Inter (axe de taille optique → Inter Display aux grandes tailles), embarquée hors ligne ---------- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* — Typographie — */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --fs-caption: 12px; --fs-footnote: 13px; --fs-body: 15px; --fs-callout: 16px; --fs-headline: 17px;
  --fs-title3: 20px; --fs-title2: 24px; --fs-title1: 30px; --fs-large: 40px; --fs-display: 56px; --fs-hero: 76px;
  --track-display: -.035em; --track-title: -.022em; --track-body: -.006em; --track-caps: .08em;

  /* — Palette de marque (fixe, indépendante du thème) — */
  --espresso: #0E0C0B; --moka: #1C1917; --moka-2: #26211E; --copper: #C8814A; --copper-deep: #A8642F;
  --crema: #E9C9A3; --milk: #F6F1EA; --white: #FFFFFF;

  /* — Thème clair (menu client, hub) — */
  --bg: #F6F1EA;
  --surface: #FFFFFF;
  --surface-2: #FBF8F4;
  --surface-3: #F1EAE1;
  --ink: #1A1512;
  --ink-2: #4A413A;
  --muted: #857A70;
  --line: #EBE3D9;
  --line-strong: #DCD1C4;
  --steel: #0E0C0B;
  --scrim: rgba(14, 12, 11, .5);

  --accent: #A8642F;              /* cuivre profond : lisible sur fond clair */
  --accent-bright: #C8814A;
  --accent-soft: #F4E6D7;
  --accent-ink: #8A4F22;
  --on-accent: #FFF8F1;
  --accent-grad: linear-gradient(180deg, #C8814A 0%, #A8642F 100%);
  --wood: var(--accent); --wood-strong: #8E5226; --wood-grad: var(--accent-grad);
  --wood-soft: var(--accent-soft); --wood-ink: var(--accent-ink); --on-wood: var(--on-accent);

  --ok: #2E7A4E;   --ok-soft: #E2F1E7;
  --warn: #99620F; --warn-soft: #F8ECD5;
  --danger: #B5412A; --danger-soft: #F9E3DC;
  --info: #3D6E9E; --info-soft: #E3EDF7;

  /* — Formes : douces et rondes — */
  --radius-xs: 8px; --radius-sm: 12px; --radius: 18px; --radius-lg: 24px; --radius-xl: 30px; --radius-pill: 999px;

  /* — Élévation — */
  --shadow-xs: 0 1px 2px rgba(26, 21, 18, .06);
  --shadow-sm: 0 1px 2px rgba(26, 21, 18, .05), 0 4px 12px rgba(26, 21, 18, .05);
  --shadow: 0 1px 2px rgba(26, 21, 18, .05), 0 10px 30px rgba(26, 21, 18, .08);
  --shadow-md: 0 2px 6px rgba(26, 21, 18, .06), 0 18px 44px rgba(26, 21, 18, .12);
  --shadow-lg: 0 30px 80px rgba(14, 12, 11, .30);
  --shadow-accent: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 8px 22px rgba(168, 100, 47, .30);
  --focus: 0 0 0 3px rgba(200, 129, 74, .42);
  --hairline: inset 0 0 0 1px var(--line);
  --rim: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .7);   /* liseré + reflet haut */

  /* — Matières verre (Apple) — */
  --glass: rgba(255, 255, 255, .72);
  --glass-thick: rgba(255, 255, 255, .86);
  --glass-thin: rgba(255, 255, 255, .5);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-line: rgba(26, 21, 18, .08);
  --glass-blur: saturate(180%) blur(22px);

  /* — Mouvement — */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 140ms; --dur: 220ms; --dur-slow: 380ms; --dur-expressive: 620ms;

  /* — Tuiles produits (squircles teintés par catégorie) — */
  --tile-cafe: #F1E2D2; --tile-the: #E3EEDC; --tile-frais: #F7EACB; --tile-brunch: #F6E0CF;
  --tile-bowl: #DCEDE3; --tile-sandwich: #EEE5D8; --tile-sucre: #F5E0DD;
}

.theme-dark {
  --bg: #0E0C0B;
  --surface: #1C1917;
  --surface-2: #231F1C;
  --surface-3: #2D2825;
  --ink: #F6F1EA;
  --ink-2: #D4CAC0;
  --muted: #9D9288;
  --line: #2B2623;
  --line-strong: #3B3430;
  --steel: #080706;
  --scrim: rgba(0, 0, 0, .62);

  --accent: #C8814A;
  --accent-bright: #DB9A63;
  --accent-soft: rgba(200, 129, 74, .16);
  --accent-ink: #E9C9A3;
  --on-accent: #1A0F07;
  --accent-grad: linear-gradient(180deg, #D4915A 0%, #B5733F 100%);
  /* Les alias se résolvent là où ils sont déclarés : on les redéclare pour qu'ils suivent le thème sombre. */
  --wood: var(--accent); --wood-strong: #E0A06A; --wood-grad: var(--accent-grad);
  --wood-soft: var(--accent-soft); --wood-ink: var(--accent-ink); --on-wood: var(--on-accent);
  --hairline: inset 0 0 0 1px var(--line);
  --rim: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);

  --ok: #5FBD88;   --ok-soft: rgba(95, 189, 136, .15);
  --warn: #E7AC55; --warn-soft: rgba(231, 172, 85, .15);
  --danger: #EF735B; --danger-soft: rgba(239, 115, 91, .16);
  --info: #7FB0E0; --info-soft: rgba(127, 176, 224, .15);

  --shadow-xs: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 4px 14px rgba(0, 0, 0, .3);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .38);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 22px 50px rgba(0, 0, 0, .5);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, .65);
  --shadow-accent: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px rgba(200, 129, 74, .28);

  --glass: rgba(28, 25, 23, .66);
  --glass-thick: rgba(28, 25, 23, .84);
  --glass-thin: rgba(28, 25, 23, .42);
  --glass-edge: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .07);

  --tile-cafe: #3A2A1E; --tile-the: #26301F; --tile-frais: #3A311C; --tile-brunch: #3B281D;
  --tile-bowl: #1E3027; --tile-sandwich: #332C24; --tile-sucre: #3B2423;
  color-scheme: dark;
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.47; letter-spacing: var(--track-body);
  color: var(--ink); background: var(--bg); font-optical-sizing: auto; font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: rgba(200, 129, 74, .3); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--track-title); line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ico { flex: none; display: block; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barres de défilement discrètes */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Typographie utilitaire ---------- */
.t-hero { font: 800 var(--fs-hero)/.95 var(--font-display); letter-spacing: -.045em; }
.t-display { font: 750 var(--fs-display)/1 var(--font-display); letter-spacing: var(--track-display); }
.t-large { font: 750 var(--fs-large)/1.05 var(--font-display); letter-spacing: var(--track-display); }
.t-title1 { font: 700 var(--fs-title1)/1.1 var(--font-display); letter-spacing: var(--track-title); }
.t-title2 { font: 700 var(--fs-title2)/1.15 var(--font-display); letter-spacing: var(--track-title); }
.t-title3 { font: 650 var(--fs-title3)/1.2 var(--font-display); letter-spacing: -.015em; }
.t-headline { font-size: var(--fs-headline); font-weight: 600; }
.t-footnote { font-size: var(--fs-footnote); color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.amount { font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.03em; }
.amount .cur, .amount small { font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: .18em; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; font-family: var(--font-display); color: currentColor; padding-top: .55em; }
.logo-word { font-weight: 650; letter-spacing: .09em; font-size: 1em; white-space: nowrap; }
.logo-e { position: relative; display: inline-block; }
.logo-steam { position: absolute; left: 50%; bottom: 100%; width: .36em; height: .68em; transform: translateX(-38%); margin-bottom: .06em; }
.logo-sub { font-size: .3em; letter-spacing: .24em; font-weight: 600; margin-top: .4em; opacity: .8; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--hairline); }
.theme-dark .card { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.glass, .glass-thick, .glass-thin {
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge);
}
.glass-thick { background: var(--glass-thick); }
.glass-thin { background: var(--glass-thin); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-thin { background: var(--glass-thick); }
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Boutons (pilules) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-pill); font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; user-select: none;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease, box-shadow var(--dur) ease, opacity var(--dur) ease, filter var(--dur) ease;
}
a.btn { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.965); }
.btn:disabled { opacity: .4; }
.btn-primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06) saturate(1.05); }
.btn-dark { background: var(--espresso); color: var(--milk); }
.btn-dark:hover:not(:disabled) { background: #221E1B; }
.theme-dark .btn-dark { background: var(--surface-3); color: var(--ink); }
.theme-dark .btn-dark:hover:not(:disabled) { background: #39332F; }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); }
.btn-tinted { background: var(--accent-soft); color: var(--accent-ink); }
.btn-tinted:hover:not(:disabled) { filter: brightness(.97); }
.theme-dark .btn-tinted:hover:not(:disabled) { filter: brightness(1.15); }
.btn-glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge); }
.btn-ok { background: var(--ok); color: #fff; }
.theme-dark .btn-ok { color: #06180D; }
.btn-danger-ghost { color: var(--danger); background: var(--danger-soft); }
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 26px; }
.btn-xl { min-height: 64px; font-size: 18px; padding: 0 30px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2);
  transition: background-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }

/* ---------- Puces, badges, segments, champs ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; background: var(--surface-3); color: var(--ink-2);
}
.badge-wood, .badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-ink { background: var(--ink); color: var(--bg); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--surface-3); }
.chip:active { transform: scale(.96); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface-3); }
.segmented > button { min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease; }
.segmented > button.is-active, .segmented > button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.theme-dark .segmented > button.is-active, .theme-dark .segmented > button[aria-selected="true"] { background: #3A3430; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 48px; padding: 12px 15px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line); transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background-color var(--dur) ease;
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent-bright); background: var(--surface); box-shadow: var(--focus); }
textarea.input { resize: vertical; min-height: 84px; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color var(--dur) ease; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .12); transition: transform var(--dur-slow) var(--ease-spring); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.stepper button:hover { background: var(--surface-3); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Tuiles produits : emoji sur squircle teinté ---------- */
.item-icon {
  display: grid; place-items: center; flex: none; border-radius: 30%; font-size: 30px; line-height: 1;
  background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%), var(--tile, var(--surface-3));
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, .05), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 3px 6px rgba(26, 21, 18, .16);
}
.theme-dark .item-icon {
  background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 55%), var(--tile, var(--surface-3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .07);
  text-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}
.tile-cafe { --tile: var(--tile-cafe); } .tile-the { --tile: var(--tile-the); } .tile-frais { --tile: var(--tile-frais); }
.tile-brunch { --tile: var(--tile-brunch); } .tile-bowl { --tile: var(--tile-bowl); } .tile-sandwich { --tile: var(--tile-sandwich); }
.tile-sucre { --tile: var(--tile-sucre); }

/* ---------- Couches : modale et feuille, fond flouté ---------- */
.layer { position: fixed; inset: 0; z-index: 100; display: grid; }
.layer-backdrop {
  position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%);
}
.layer-panel { position: relative; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
.theme-dark .layer-panel { box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); }
.layer.open .layer-backdrop { opacity: 1; }

.layer-modal { place-items: center; padding: 20px; }
.layer-modal .layer-panel {
  width: min(560px, 100%); max-height: calc(100dvh - 40px); border-radius: var(--radius-xl);
  opacity: 0; transform: translateY(14px) scale(.965); transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease-spring);
}
.layer-modal.open .layer-panel { opacity: 1; transform: none; }
.layer-modal.wide .layer-panel { width: min(880px, 100%); }

.layer-sheet { align-items: end; justify-items: center; }
.layer-sheet .layer-panel {
  width: min(560px, 100%); max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%); transition: transform 460ms var(--ease-out); padding-bottom: env(safe-area-inset-bottom);
}
.layer-sheet.open .layer-panel { transform: none; }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 9px auto 0; }
body.has-layer { overflow: hidden; }

.layer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 8px; }
.layer-head h2 { font-size: var(--fs-title3); letter-spacing: -.02em; }
.layer-body { padding: 10px 24px 22px; }
.layer-foot { position: sticky; bottom: 0; padding: 16px 24px 20px; background: linear-gradient(to bottom, transparent, var(--surface) 26%); display: flex; gap: 10px; }

/* ---------- Toasts : pilule verre façon « Dynamic Island », en haut au centre ---------- */
#toasts { position: fixed; z-index: 200; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100vw - 24px));
  min-height: 46px; padding: 10px 18px 10px 14px; border-radius: var(--radius-pill);
  background: rgba(20, 17, 15, .86); color: #F6F1EA; font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(-14px) scale(.9); transition: opacity var(--dur) ease, transform 520ms var(--ease-spring);
}
.toast.show { opacity: 1; transform: none; }
.toast-wood { background: linear-gradient(180deg, rgba(212, 145, 90, .96), rgba(168, 100, 47, .96)); color: #1A0F07; }
.toast-ok { background: rgba(32, 96, 61, .92); }
.toast-danger { background: rgba(150, 46, 30, .94); }
.toast-action { margin-left: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 13px; }

/* ---------- Mouvement partagé ---------- */
@keyframes ds-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ds-pop { 0% { transform: scale(.92); opacity: 0; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ds-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.ds-rise { animation: ds-rise var(--dur-slow) var(--ease-out) both; }
.ds-pop { animation: ds-pop var(--dur-slow) var(--ease-spring) both; }
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: ds-shimmer 1.4s linear infinite; }

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