/* =====================================================================
   OASIS — feuille de style
   Charte reprise d'Oasis Coffee et d'Oasis Spliff Journey : fond presque noir,
   violet + menthe en dégradé à 135°, verre dépoli, grands arrondis, halos flottants,
   logos en contours avec bordure dégradée qui tourne.
   Sommaire : 1. variables  2. base + halos  3. boutons d'angle  4. accueil
              5. page Infos  6. admin  7. fenêtre / toast  8. animations  9. écrans
   ===================================================================== */

/* ---------- 1. Polices et couleurs ---------- */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --background: #07090c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #11141a;
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --soft: #c3c7d1;
  --muted: #8d93a1;
  --violet: #a78bfa;
  --mint: #34d399;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;
  --ok: #4ade80;
  --warn: #fb923c;
  --danger: #f87171;
  --gold: #facc15;
  --gradient: linear-gradient(135deg, #a78bfa 0%, #34d399 100%);
  --gradient-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(52, 211, 153, 0.14));
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.45);
  --glow: 0 14px 30px -14px rgba(52, 211, 153, 0.75), 0 8px 24px -16px rgba(139, 92, 246, 0.9);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-title: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* couleurs des messageries (boutons « style Telegram » et « style Signal ») */
  --tg: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
  --tg-glow: 0 14px 30px -14px rgba(42, 171, 238, 0.85);
  --sg: linear-gradient(135deg, #4b83f2 0%, #2c6bed 100%);
  --sg-glow: 0 14px 30px -14px rgba(58, 118, 240, 0.85);
  --col: 440px; /* largeur de la colonne centrale */
  color-scheme: dark;
}

/* ---------- 2. Base + halos animés ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--background); -webkit-text-size-adjust: 100%; }
body {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  background: transparent; color: var(--text);
  font-family: var(--font-text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-title); letter-spacing: -0.02em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
::selection { background: rgba(167, 139, 250, 0.4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs i { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; will-change: transform; animation: orb-a 18s ease-in-out infinite alternate; }
.bg-orbs i:nth-child(1) { top: -35vmax; left: -35vmax; background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0.18) 35%, transparent 65%); }
.bg-orbs i:nth-child(2) { top: 20vh; right: -45vmax; background: radial-gradient(circle, rgba(16, 185, 129, 0.42) 0%, rgba(16, 185, 129, 0.12) 35%, transparent 65%); animation-name: orb-b; animation-duration: 22s; }
.bg-orbs i:nth-child(3) { bottom: -50vmax; left: -10vmax; background: radial-gradient(circle, rgba(91, 33, 182, 0.5) 0%, rgba(91, 33, 182, 0.14) 35%, transparent 65%); animation-name: orb-c; animation-duration: 26s; }
.bg-orbs::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 3px 3px; }

/* page : colonne centrée, contenu empilé */
.page {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: min(100%, var(--col)); min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: calc(72px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  animation: view-in 0.5s var(--ease) both;
}
.page.top { justify-content: flex-start; }
.page > * { width: 100%; animation: card-in 0.55s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: 0.06s; }
.page > *:nth-child(3) { animation-delay: 0.12s; }
.page > *:nth-child(4) { animation-delay: 0.18s; }
.page > *:nth-child(5) { animation-delay: 0.24s; }
.page > *:nth-child(6) { animation-delay: 0.3s; }

/* ---------- 3. Boutons d'angle (admin, notifications, retour) ---------- */
.corner { position: absolute; top: calc(14px + env(safe-area-inset-top)); z-index: 30; } /* défile avec la page : ne recouvre jamais le contenu */
.corner.left { left: calc(14px + env(safe-area-inset-left)); }
.corner.right { right: calc(14px + env(safe-area-inset-right)); }

.corner-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 13px; border: 1px solid var(--border); background: rgba(7, 9, 12, 0.55);
  color: var(--soft);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.corner-btn:active { transform: scale(0.92); }
.corner-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.corner-btn .grad { stroke: url(#oasisGrad); }

/* cloche : son état est visible (couleur + pastille) */
.bell .on-icon { display: none; }
.bell[data-state="on"] { color: var(--mint); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.bell[data-state="on"] .on-icon { display: block; }
.bell[data-state="on"] .off-icon { display: none; }
.bell[data-state="off"], .bell[data-state="unsupported"], .bell[data-state="ios-install"] { color: var(--muted); }
.bell[data-state="denied"] { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.bell .pip { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2px var(--background); }
.bell[data-state="on"] .pip { background: var(--mint); box-shadow: 0 0 0 2px var(--background), 0 0 10px var(--mint); animation: pulse-dot 2.4s ease-in-out infinite; }
.bell[data-state="denied"] .pip { background: var(--danger); }
.bell[data-state="loading"] { opacity: 0.6; pointer-events: none; }
.bell[data-state="loading"] .pip { animation: pulse-dot 0.8s ease-in-out infinite; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 13px; border: 1px solid var(--border); background: rgba(7, 9, 12, 0.55);
  color: var(--soft); font-weight: 600; font-size: 14px;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.back-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-btn:active { transform: scale(0.95); }

/* ---------- 4. Accueil ---------- */
.tile {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  overflow: hidden; border-radius: var(--radius); isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.tile:active { transform: scale(0.975); }
.tile svg.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* reflet brillant qui balaie le bouton (repris du bouton principal d'Oasis Coffee) */
.shine::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.2s ease-in-out infinite;
}

/* bannière Oasis Coffee -> canal Telegram */
.tile-banner { aspect-ratio: 12 / 5; border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(167, 139, 250, 0.15); background: var(--surface-solid); }
.tile-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; transition: transform 0.6s var(--ease); }
.tile-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 12, 0) 45%, rgba(7, 9, 12, 0.75) 100%); }
.tile-banner .chip {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(7, 9, 12, 0.6); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile-banner .chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* boutons messageries */
.tile-msg { min-height: 58px; padding: 14px 18px; color: #fff; font-weight: 700; font-size: 16px; }
.tile-tg { background: var(--tg); box-shadow: var(--tg-glow); }
.tile-sg { background: var(--sg); box-shadow: var(--sg-glow); }

/* gros carré QR -> Infos Rassos */
.tile-qr {
  width: min(100%, 360px) !important; aspect-ratio: 1; margin: 4px auto;
  border-radius: 28px; padding: 3px; background: #0f1117; box-shadow: var(--glow);
}
.tile-qr::before { /* bordure dégradée qui tourne, comme le logo */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), #a78bfa, #34d399, #a78bfa);
  animation: logo-spin 6s linear infinite;
}
.tile-qr .qr-wrap { position: absolute; inset: 3px; border-radius: 25px; overflow: hidden; background: #f3f4f6; }
.tile-qr .qr-wrap svg { width: 100%; height: 100%; filter: blur(2.5px); transform: scale(1.06); transition: filter 0.4s var(--ease), transform 0.6s var(--ease); }
.tile-qr .veil {
  position: absolute; inset: 3px; z-index: 1; border-radius: 25px; display: grid; place-items: center; align-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 50%, rgba(7, 9, 12, 0.72) 0%, rgba(7, 9, 12, 0.45) 60%, rgba(7, 9, 12, 0.2) 100%);
  text-align: center;
}
.tile-qr .veil strong { font-family: var(--font-title); font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.tile-qr .veil small { color: var(--soft); font-size: 14px; font-weight: 600; }
.tile-qr .veil .tap { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gradient); color: #07140f; font-weight: 700; font-size: 13px; }
.tile-qr .veil .tap svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.title-flow { background: linear-gradient(90deg, #a78bfa, #34d399, #a78bfa); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-flow 6s linear infinite alternate; }

/* ---------- 5. Page Infos ---------- */
.qr-card {
  position: relative; width: min(100%, 340px) !important; margin: 0 auto; aspect-ratio: 1;
  border-radius: 28px; padding: 3px; isolation: isolate; box-shadow: var(--glow);
}
.qr-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--angle, 0deg), #a78bfa, #34d399, #a78bfa); animation: logo-spin 6s linear infinite; }
.qr-card .qr-wrap { width: 100%; height: 100%; border-radius: 25px; background: #f3f4f6; padding: 14px; }
.qr-card .qr-wrap svg { width: 100%; height: 100%; }

.hint { color: var(--muted); font-size: 14px; text-align: center; }

.card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
a.card:active { transform: scale(0.98); }
.card .badge {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.28), transparent 65%), radial-gradient(circle at 80% 90%, rgba(52, 211, 153, 0.22), transparent 60%), #0f1117;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.card .badge svg { width: 24px; height: 24px; fill: none; stroke: url(#oasisGrad); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.35)); }
.card .txt { min-width: 0; flex: 1; }
.card .txt > span { display: block; }
.card .txt > .sub { display: flex; }
.card .txt > .when-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card .v { font-family: var(--font-title); font-size: 19px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.card .sub { color: var(--mint); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.card .sub svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card .time { font-family: var(--font-title); font-size: 30px; font-weight: 800; line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .tz { color: var(--muted); font-size: 12px; }
.card .arrow { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.status { justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; }
.status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--violet)); box-shadow: 0 0 12px var(--c, var(--violet)); flex: none; }
.status[data-s="hypothetical"] { --c: var(--warn); }
.status[data-s="confirmed"] { --c: var(--ok); }
.status[data-s="waiting_info"] { --c: var(--violet); }
.status[data-s="moving"] { --c: #60a5fa; }
.status[data-s="waiting_start"] { --c: var(--gold); }
.status[data-s="ongoing"] { --c: var(--mint); }
.status[data-s="ongoing"] .dot, .status[data-s="moving"] .dot { animation: pulse-dot 1.6s ease-in-out infinite; }
.status[data-s="finished"] { --c: var(--muted); color: var(--soft); }
.status { border-color: color-mix(in srgb, var(--c, var(--violet)) 40%, transparent); background: color-mix(in srgb, var(--c, var(--violet)) 9%, transparent); }

/* ---------- 6. Admin ---------- */
.brand-logo {
  position: relative; display: grid; place-items: center; width: 96px !important; height: 96px; margin: 0 auto; border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.28), transparent 65%), radial-gradient(circle at 80% 90%, rgba(52, 211, 153, 0.22), transparent 60%), #0f1117;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), var(--glow);
}
/* anneau dégradé qui tourne (seul le contour est visible grâce au masque) */
.brand-logo::before { content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 2px; background: conic-gradient(from var(--angle, 0deg), #a78bfa, #34d399, #a78bfa);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: logo-spin 6s linear infinite; }
.brand-logo svg { position: relative; width: 64px; height: 64px; overflow: visible; filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.35)); }
.big-title { text-align: center; font-size: clamp(26px, 7vw, 34px); font-weight: 800; }

.login { display: flex; gap: 8px; padding: 6px; border-radius: 18px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.3); transition: border-color 0.2s, box-shadow 0.2s; }
.login:focus-within { border-color: rgba(167, 139, 250, 0.7); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15); }
.login input { flex: 1; min-width: 0; padding: 10px 10px; border: 0; background: transparent; font-size: 20px; font-family: var(--font-title); font-weight: 700; letter-spacing: 0.18em; text-align: center; }
.login input:focus { outline: none; }
.login input::placeholder { color: #5d6270; letter-spacing: 0.02em; font-size: 15px; font-family: var(--font-text); font-weight: 500; }
.login.shake { animation: shake 0.35s; border-color: rgba(248, 113, 113, 0.7); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  padding: 12px 18px; border-radius: 14px; background: var(--gradient); color: #07140f; font-weight: 700;
  box-shadow: var(--glow); transition: transform 0.2s var(--ease), opacity 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.wide { width: 100%; padding: 15px; font-size: 16px; }
.msg { min-height: 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--danger); }

.panel { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(167, 139, 250, 0.35); background: var(--gradient-soft); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2 { font-size: 17px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.panel-head .btn { white-space: nowrap; }
.panel form { display: flex; flex-direction: column; gap: 14px; }
.panel form > .btn.small { align-self: flex-start; margin-top: -6px; }
.panel-head h2 svg { width: 20px; height: 20px; fill: none; stroke: url(#oasisGrad); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row .field { flex: 1; min-width: 0; }
.field {
  width: 100%; padding: 12px 13px; border: 1px solid var(--border); border-radius: 13px; background: rgba(0, 0, 0, 0.35);
  color: var(--text); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field::placeholder { color: #5d6270; }
.field:focus { outline: none; border-color: rgba(167, 139, 250, 0.7); background: rgba(0, 0, 0, 0.45); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: var(--surface-solid); }
input[type="datetime-local"].field { min-height: 48px; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 500; }

/* ---------- 7. Fenêtre de confirmation + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 6, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.2s ease both; }
.modal-box { width: min(100%, 380px); padding: 22px; border-radius: 24px; border: 1px solid var(--border-strong); background: rgba(17, 20, 26, 0.92); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), var(--glow); text-align: center; animation: pop-in 0.3s var(--ease) both; }
.modal-box h3 { font-size: 21px; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-cancel { margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; width: max-content; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(17, 20, 26, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; text-align: center; transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }

/* ---------- 8. Animations ---------- */
@keyframes orb-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30vw, 20vh, 0) scale(1.15); } 100% { transform: translate3d(10vw, 45vh, 0) scale(0.9); } }
@keyframes orb-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-35vw, -15vh, 0) scale(1.2); } 100% { transform: translate3d(-15vw, 25vh, 0) scale(0.95); } }
@keyframes orb-c { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(35vw, -30vh, 0) scale(1.1); } 100% { transform: translate3d(50vw, -10vh, 0) scale(1.25); } }
@keyframes logo-spin { to { --angle: 360deg; } }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes text-flow { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

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

/* ---------- 9. Adaptation à l'écran ---------- */
@media (hover: hover) {
  .tile:hover { transform: translateY(-2px); }
  .tile-banner:hover img { transform: scale(1.04); }
  .tile-banner:hover { border-color: rgba(167, 139, 250, 0.5); }
  .tile-qr:hover .qr-wrap svg { filter: blur(1.5px); }
  .tile-msg:hover { filter: brightness(1.06); }
  .corner-btn:hover, .back-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
  a.card:hover { background: var(--surface-hover); border-color: var(--border-strong); }
  .btn:hover:not(:disabled) { transform: translateY(-1px); }
}
@media (max-width: 640px) {
  .bg-orbs i { width: 80vmax; height: 80vmax; opacity: 0.55; animation-duration: 14s; }
  .bg-orbs i:nth-child(2) { opacity: 0.45; animation-duration: 18s; }
  .bg-orbs i:nth-child(3) { opacity: 0.45; animation-duration: 22s; }
}
@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; gap: 12px; }
  .tile-msg { font-size: 15px; }
}
@media (min-width: 960px) {
  :root { --col: 460px; }
  .corner { top: 22px; }
  .corner.left { left: 26px; }
  .corner.right { right: 26px; }
  .corner-btn { width: 44px; height: 44px; }
}
@media (max-height: 640px) and (max-width: 640px) {
  .tile-qr { width: min(100%, 280px) !important; }
}
