/* Caisse claire — mélange des deux maisons :
   l'accueil prend l'ambiance du hub (fond sombre aux lueurs qui changent avec l'heure, Cormorant),
   le travail prend la clarté du générateur de médailles (crème, cartes blanches, or). */
:root {
  --bg: #f7f5f2;
  --bg-2: #eeeae4;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #6b6660;
  --ink-faint: #9a948c;
  --border: #e6e2db;
  --border-2: #d8d2c7;
  --accent: #b8863f;
  --accent-dark: #8f6528;
  --accent-soft: #f4e9d8;
  --henon: #e5366a;
  --night: #140b09;
  --ok: #2f7a4d;
  --ok-soft: #e4f2e8;
  --warn: #a8660b;
  --warn-soft: #fbefd9;
  --err: #c4432a;
  --err-soft: #fbe9e4;
  --info: #2a78d6;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, .06);
  --shadow: 0 8px 24px -10px rgba(28, 26, 23, .18);
  --shadow-lg: 0 24px 60px -18px rgba(28, 26, 23, .3);
  --h: 46px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* ambiance du moment (changée par ambiance.js) */
  --a1: #e5366a; --a2: #d9a95b; --a3: #7a2a3c; --sky: #1a0d12;
  --display: "Cormorant", Georgia, serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2.title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 700; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 13.5px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--accent-soft); }

/* ------------------------------------------------------------- barre du haut */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px;
  background: rgba(247, 245, 242, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand b i { color: var(--accent); }
.tabs { display: none; gap: 2px; margin-left: 14px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.tabs a svg { width: 18px; height: 18px; }
.tabs a:hover { background: var(--bg-2); color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.spacer { flex: 1; }
/* Gestion du site : roue crantée à côté du compte */
.gear { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: color .15s, transform .4s; }
.gear svg { width: 20px; height: 20px; }
.gear:hover { color: var(--ink); transform: rotate(45deg); }
.gear.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a .s, .bottomnav a .l { display: none; }
.store-pick[hidden], .gear[hidden] { display: none !important; }
.tabs a { white-space: nowrap; }
/* écran moyen : libellés courts dans les onglets */
@media (min-width: 900px) and (max-width: 1099px) { .tabs a .l { display: none; } .tabs a .s { display: inline; } }
.store-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; max-width: 46vw; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.store-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--henon)); color: #fff; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-sm); }
.menu { position: absolute; z-index: 60; min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; animation: pop .16s ease-out; }
.menu .who { padding: 12px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu .who b { display: block; font-size: 16px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: none; text-align: left; border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.menu svg { width: 18px; height: 18px; color: var(--ink-soft); }
.menu .on { background: var(--accent-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.banner { margin: 14px auto 0; max-width: 1180px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid #efd3a3; color: #6d4510; font-size: 14.5px; }

/* ------------------------------------------------------------- navigation mobile */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.bottomnav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-faint); text-decoration: none; font-size: 11.5px; font-weight: 700; }
.bottomnav a svg { width: 25px; height: 25px; }
.bottomnav a.on { color: var(--ink); }
.bottomnav a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.bottomnav a .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
@media (min-width: 900px) {
  .tabs { display: flex; }
  .bottomnav { display: none; }
  main { padding-bottom: 48px; }
}

/* ------------------------------------------------------------- boutons et champs */
.btn { min-height: var(--h); padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:hover { border-color: var(--border-2); background: var(--bg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #34302a; }
.btn.gold { background: linear-gradient(180deg, #c99a52, var(--accent)); border-color: var(--accent-dark); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn.gold:hover { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.danger { color: var(--err); border-color: #f0d3c9; }
.btn.danger:hover { background: var(--err-soft); }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn.lg { min-height: 58px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { width: var(--h); padding: 0; }

label.field { display: block; margin: 0 0 16px; }
label.field > span, .field-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
label.field > span em, .field-label em { font-style: normal; font-weight: 500; color: var(--ink-faint); }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], input[type=color], select, textarea {
  width: 100%; min-height: var(--h); padding: 0 13px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-sm); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { padding: 11px 13px; min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(184, 134, 63, .16); }
.euro { position: relative; }
.euro input { padding-right: 34px; font-variant-numeric: tabular-nums; font-weight: 700; }
.euro::after { content: "€"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 700; pointer-events: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; min-width: 0; }
.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 12px; gap: 3px; flex-wrap: wrap; }
.seg button { min-height: 36px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-soft); padding: 0 14px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.chip.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 48px; height: 29px; border-radius: 999px; background: var(--border-2); position: relative; flex: none; cursor: pointer; transition: background .18s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .18s; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { left: 22px; }
.toggle span b { display: block; font-weight: 700; }
.toggle span small { color: var(--ink-soft); font-size: 13.5px; }

/* ------------------------------------------------------------- mise en page */
.page { max-width: 1180px; margin: 0 auto; padding: 22px 16px; }
.page.narrow { max-width: 760px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.head p { margin: 6px 0 0; color: var(--ink-soft); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; }
.card + .card { margin-top: 14px; }
.card h3 { margin-bottom: 12px; }
.card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card .card-head h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid > * { min-width: 0; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); color: var(--ink-soft); font-size: 14.5px; }
.note.ok { background: var(--ok-soft); border-color: #c4e2cd; color: #1f5a37; }
.note.warn { background: var(--warn-soft); border-color: #efd3a3; color: #6d4510; }
.note.err { background: var(--err-soft); border-color: #f0c9bf; color: #8a2c1a; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-soft); }
.empty svg { width: 54px; height: 54px; color: var(--ink-faint); margin-bottom: 8px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--henon); color: #fff; font-size: 11.5px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-2); color: var(--ink-soft); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.gold { background: var(--accent-soft); color: var(--accent-dark); }
.tag svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------- accueil (ambiance du hub) */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: clamp(26px, 5vw, 48px); color: #f7efe6; min-height: 250px;
  background: radial-gradient(120% 90% at 50% 110%, var(--sky), #140b09 70%); box-shadow: var(--shadow-lg); transition: background 2s ease; }
.hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; transition: background 2s ease; }
.hero .b1 { width: 420px; height: 420px; left: -120px; top: -200px; background: var(--a1); animation: drift1 24s ease-in-out infinite alternate; }
.hero .b2 { width: 380px; height: 380px; right: -140px; top: -60px; background: var(--a2); opacity: .4; animation: drift2 30s ease-in-out infinite alternate; }
.hero .b3 { width: 340px; height: 340px; left: 30%; bottom: -260px; background: var(--a3); opacity: .6; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 80px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-80px, -60px) scale(1.2); } }
.hero .grain { position: absolute; inset: -50%; z-index: -1; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .stars { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 2s; }
.hero.night .stars { opacity: 1; }
.hero .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 239, 230, .7); }
.hero-top .clock { font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: none; font-size: 15px; color: #f7efe6; }
.hero h1 { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 8vw, 86px); line-height: .95; letter-spacing: -.02em; }
.hero h1 .greet { display: block; }
.hero h1 .name { display: block; animation: nameIn 1.1s cubic-bezier(.2, .8, .2, 1) backwards; }
/* couleur pleine et halo : le texte « découpé » dans un dégradé s'affiche mal par-dessus les lueurs animées */
.hero h1 .name b { display: inline-block; font-style: italic; font-weight: 600; padding-bottom: .08em;
  color: color-mix(in srgb, var(--a1) 45%, #fff3e2); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { text-shadow: 0 0 18px color-mix(in srgb, var(--a1) 55%, transparent); } 50% { text-shadow: 0 0 34px color-mix(in srgb, var(--a2) 70%, transparent), 0 0 2px rgba(255, 243, 226, .6); } }
@keyframes nameIn { from { opacity: 0; transform: translateY(.25em); letter-spacing: .06em; } }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero .sub { margin: 16px 0 0; max-width: 560px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.55; color: rgba(247, 239, 230, .78); }
.hero .quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero .btn { box-shadow: none; }
.hero .btn.glass { background: rgba(255, 245, 235, .1); border-color: rgba(255, 245, 235, .18); color: #f7efe6; backdrop-filter: blur(10px); }
.hero .btn.glass:hover { background: rgba(255, 245, 235, .18); }
.hero .btn.light { background: #fff7ec; border-color: #fff7ec; color: var(--night); }
.hero .btn.light:hover { background: #fff; }
.hero .coin-art { position: absolute; right: clamp(-30px, 2vw, 40px); bottom: -20px; width: clamp(150px, 22vw, 240px); opacity: .9; z-index: -1; pointer-events: none; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (max-width: 640px) {
  .hero .coin-art { opacity: .35; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero .quick .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .sumbar { padding: 10px; gap: 8px; }
  .sumbar .btn { padding: 0 12px; }
  .sumbar .btn.lg { min-height: 52px; font-size: 15.5px; white-space: normal; line-height: 1.15; text-align: center; }
  .sumbar .t b { font-size: 28px; }
  .brand b { display: none; }
  .topbar { gap: 10px; padding: 0 12px; }
  .store-pick { max-width: none; flex: 0 1 auto; min-width: 0; }
}

.home-grid { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.action { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); cursor: pointer; overflow: hidden; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.action:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }
.action .ico svg { width: 26px; height: 26px; }
.action b { font-size: 18px; }
.action small { color: var(--ink-soft); font-size: 14.5px; }
.action.alert { border-color: color-mix(in srgb, var(--henon) 45%, var(--border)); background: linear-gradient(160deg, #fff, #fff0f4); }
.action.alert .ico { background: #ffe0ea; color: var(--henon); animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(3deg); } }
.action.done { background: linear-gradient(160deg, #fff, var(--ok-soft)); }
.action.done .ico { background: #d3ebdb; color: var(--ok); }
.action .go { position: absolute; right: 18px; top: 22px; color: var(--ink-faint); }
.action .go svg { width: 20px; height: 20px; }
.stat-line { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.stat-line div { display: flex; flex-direction: column; }
.stat-line small { font-size: 12.5px; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-line b { font-family: var(--display); font-size: 28px; font-weight: 600; }
.tip { display: flex; gap: 12px; align-items: flex-start; }
.tip svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }

/* ------------------------------------------------------------- comptage */
.steps { display: flex; gap: 6px; align-items: center; margin: 4px 0 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-faint); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 7px; }
.steps span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; border: 1.5px solid var(--border-2); font-size: 12.5px; }
.steps span.on { color: var(--ink); }
.steps span.on i { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps span.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .sep { width: 22px; height: 1.5px; background: var(--border-2); }
.count-section { margin-bottom: 18px; }
.count-section > header { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.count-section > header h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.count-section > header span { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.denoms { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.denom { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, background .2s; }
.denom.has { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: linear-gradient(90deg, #fff, #fffaf2); }
.denom .art { position: relative; height: 56px; display: grid; place-items: center; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
.denom .art svg { max-width: 100%; max-height: 100%; filter: drop-shadow(0 3px 5px rgba(28, 26, 23, .22)); transition: transform .12s; }
.denom .art:active svg { transform: scale(.92); }
.denom .art .plus1 { position: absolute; top: -6px; right: 4px; font-weight: 800; color: var(--accent-dark); font-size: 14px; pointer-events: none; animation: plusOne .6s ease-out forwards; }
@keyframes plusOne { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-18px); } }
.denom .lbl b { display: block; font-size: 17px; }
.denom .lbl small { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 14px; }
.denom .lbl small.on { color: var(--accent-dark); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--ink); touch-action: manipulation; }
.stepper button:active { background: var(--bg-2); transform: scale(.95); }
.stepper button svg { width: 18px; height: 18px; }
.stepper input { width: 64px; min-height: 42px; text-align: center; font-weight: 800; font-size: 18px; padding: 0 4px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roll { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
@media (max-width: 420px) {
  .denoms { grid-template-columns: 1fr; }
  .denom { grid-template-columns: 70px 1fr auto; gap: 8px; }
  .stepper button { width: 38px; height: 40px; }
  .stepper input { width: 54px; }
}
.sumbar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 30; margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px;
  background: rgba(28, 26, 23, .94); color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
@media (min-width: 900px) { .sumbar { bottom: 16px; } }
.sumbar .t small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); font-weight: 700; }
.sumbar .t b { font-family: var(--display); font-size: clamp(30px, 6vw, 38px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.sumbar .t b.bump { animation: bump .25s ease-out; }
@keyframes bump { 50% { transform: scale(1.06); color: #f6d9a5; } }
.sumbar .btn { margin-left: auto; }
.sumbar .btn.ghost { color: #fff; }
.sumbar .btn.ghost:hover { background: rgba(255, 255, 255, .1); }

/* résultat : ce qu'il faut retirer */
.result-top { text-align: center; padding: 28px 18px 22px; border-radius: var(--r-lg); background: linear-gradient(170deg, #fff, var(--accent-soft)); border: 1px solid #ecdcc1; }
.result-top small { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-dark); font-weight: 800; }
.result-top .big { display: block; font-family: var(--display); font-size: clamp(56px, 12vw, 92px); font-weight: 600; line-height: 1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.result-top .row3 { display: flex; justify-content: center; gap: clamp(14px, 4vw, 36px); flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.result-top .row3 b { display: block; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.pull { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pull-item { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: left; transition: all .2s; box-shadow: var(--shadow-sm); }
.pull-item .art { height: 46px; display: grid; place-items: center; }
.pull-item .art svg { max-width: 100%; max-height: 100%; filter: drop-shadow(0 2px 4px rgba(28, 26, 23, .2)); }
.pull-item b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.pull-item small { color: var(--ink-soft); }
.pull-item .check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; transition: all .2s; }
.pull-item .check svg { width: 17px; height: 17px; }
.pull-item.done { border-color: #bfe0c9; background: var(--ok-soft); }
.pull-item.done b, .pull-item.done small { text-decoration: line-through; text-decoration-color: rgba(47, 122, 77, .5); }
.pull-item.done .check { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.06); }
.compo { display: flex; flex-wrap: wrap; gap: 6px; }
.compo span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.compo span svg { height: 18px; width: auto; }
.diff { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; }
.diff.ok { background: var(--ok-soft); color: var(--ok); }
.diff.warn { background: var(--warn-soft); color: var(--warn); }
.diff.err { background: var(--err-soft); color: var(--err); }
.diff svg { width: 22px; height: 22px; flex: none; }

/* signature */
.sign { position: relative; border: 2px dashed var(--border-2); border-radius: var(--r); background: repeating-linear-gradient(0deg, transparent 0 31px, #f1ede6 31px 32px), #fffefb; overflow: hidden; touch-action: none; }
.sign canvas { display: block; width: 100%; height: 190px; cursor: crosshair; touch-action: none; }
.sign .hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink-faint); font-family: var(--display); font-style: italic; font-size: clamp(18px, 4.6vw, 24px); text-align: center; padding: 0 16px; transition: opacity .2s; }
.sign .line { position: absolute; left: 24px; right: 24px; bottom: 40px; border-bottom: 1.5px solid var(--border-2); pointer-events: none; }
.sign .x { position: absolute; left: 22px; bottom: 44px; font-size: 20px; color: var(--ink-faint); pointer-events: none; }
.sign.signed { border-style: solid; border-color: var(--accent); }
.sign.signed .hint { opacity: 0; }
.sign-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); gap: 8px; flex-wrap: wrap; }
.sig-img { max-width: 100%; height: 110px; object-fit: contain; background: #fffefb; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px; }

/* ------------------------------------------------------------- listes, tableaux */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--bg); }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .grow small { color: var(--ink-soft); font-size: 13.5px; }
.item .amt { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.item .amt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-faint); }
.item.void { opacity: .55; }
.item.void .amt { text-decoration: line-through; }
.date-pill { width: 50px; flex: none; text-align: center; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); padding: 5px 0; line-height: 1.1; }
.date-pill b { display: block; font-size: 19px; font-family: var(--display); }
.date-pill small { font-size: 11px; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 800; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.c, table.t th.c { text-align: center; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.group td { background: var(--bg); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
table.perm td small { display: block; color: var(--ink-soft); font-size: 13px; }
table.perm .toggle { justify-content: center; padding: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters > * { flex: 0 1 auto; }
.filters select, .filters input:not([type=checkbox]):not([type=radio]) { width: auto; max-width: 100%; min-height: 40px; }

/* ------------------------------------------------------------- administration */
.admin { display: grid; gap: 20px; }
.admin > * { min-width: 0; }
@media (min-width: 900px) { .admin { grid-template-columns: 230px minmax(0, 1fr); align-items: start; } }
.side { display: none; position: sticky; top: 80px; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .side { display: flex; } .side-select { display: none !important; } }
.side-title { display: flex; align-items: center; gap: 10px; padding: 4px 13px 12px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.side-title svg { width: 20px; height: 20px; color: var(--accent-dark); }
.side-select { display: block; margin-bottom: 14px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.side a svg { width: 19px; height: 19px; }
.side a:hover { background: var(--bg-2); color: var(--ink); }
.side a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.side a .badge { margin-left: auto; }
.side-select { margin-bottom: 4px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi small { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 800; }
.kpi b { display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .trend { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.kpi .trend.up { color: var(--ok); }
.kpi .trend.down { color: var(--err); }
.kpi.hero-kpi { background: linear-gradient(160deg, #1c1a17, #3a2a1c); color: #fff; border-color: #1c1a17; }
.kpi.hero-kpi small, .kpi.hero-kpi .trend { color: rgba(255, 255, 255, .7); }
.kpi.hero-kpi .trend.up { color: #8fe0aa; }
.kpi.hero-kpi .trend.down { color: #ffab9b; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 230px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend i.line { height: 3px; border-radius: 2px; }
.drawer-bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.drawer-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--accent)); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--border-2); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.denom-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.denom-toggles button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; opacity: .5; filter: grayscale(.8); transition: all .15s; }
.denom-toggles button svg { height: 34px; width: auto; }
.denom-toggles button.on { opacity: 1; filter: none; border-color: var(--accent); background: var(--accent-soft); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { width: 46px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.days button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-denoms { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mini-denoms .denom { grid-template-columns: 58px 1fr auto; padding: 6px 8px; border-radius: 12px; }
.mini-denoms .denom .art { height: 38px; }
.mini-denoms .denom .lbl b { font-size: 15px; }
.mini-denoms .stepper button { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
.mini-denoms .stepper input { width: 52px; min-height: 34px; font-size: 15px; }
.chain { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--ink-soft); word-break: break-all; }

/* ------------------------------------------------------------- feuilles et dialogues */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(20, 11, 9, .45); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease-out; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet .grip { width: 44px; height: 5px; border-radius: 3px; background: var(--border-2); margin: -8px auto 14px; }
.sheet h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.sheet .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } .sheet .grip { display: none; } }
.sheet.wide { max-width: 900px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); transform: translateX(-50%); z-index: 120; padding: 13px 20px; border-radius: 14px; background: var(--ink); color: #fff;
  font-weight: 700; box-shadow: var(--shadow-lg); animation: toast .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 32px); }
.toast.err { background: var(--err); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ------------------------------------------------------------- fête de fin de journée */
#rain { position: fixed; inset: 0; z-index: 102; pointer-events: none; }
.celebrate { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(20, 11, 9, .78), rgba(20, 11, 9, .94)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .4s ease-out; }
.celebrate .box { text-align: center; color: #fff; max-width: 520px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) .2s both; }
.celebrate .seal { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff7e6 0%, transparent 32%), conic-gradient(from 200deg, #b8863f, #f4d695, #c99a4c, #fbe7b5, #b8863f);
  box-shadow: 0 0 0 6px #8f6528 inset, 0 0 0 10px #e8c27b inset, 0 20px 60px -10px rgba(229, 54, 106, .6); animation: seal 1s cubic-bezier(.2, 1.6, .3, 1) .35s both; }
.celebrate .seal svg { width: 52px; height: 52px; color: #591f12; }
@keyframes seal { from { transform: scale(0) rotate(-120deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.celebrate h2 { font-family: var(--display); font-size: clamp(38px, 8vw, 58px); font-weight: 600; line-height: 1; }
.celebrate .drum { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: #f6d9a5; font-weight: 800; margin-bottom: 8px; }
.celebrate .amount { font-family: var(--display); font-size: clamp(54px, 13vw, 96px); font-weight: 600; line-height: 1; margin: 14px 0 6px; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #f4d695, #fff3e2 50%, #e8c27b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.celebrate p { color: rgba(255, 255, 255, .82); font-size: 17px; margin: 8px 0 0; }
.celebrate .perks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.celebrate .perks span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 14px; }
.celebrate .btn { margin-top: 26px; }

/* ------------------------------------------------------------- connexion */
.login-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; color: #f7efe6;
  background: radial-gradient(120% 90% at 50% 110%, var(--sky), #140b09 70%); position: relative; overflow: hidden; isolation: isolate; }
.login-body .blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: screen; }
.login-body .b1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -30vmax; background: var(--a1); animation: drift1 26s ease-in-out infinite alternate; }
.login-body .b2 { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vmax; background: var(--a2); opacity: .35; animation: drift2 30s ease-in-out infinite alternate; }
.login-body .b3 { width: 45vmax; height: 45vmax; left: 20vw; bottom: -30vmax; background: var(--a3); animation: drift3 22s ease-in-out infinite alternate; }
.login-card { width: min(420px, 100%); padding: 34px 30px; border-radius: 28px; background: rgba(255, 248, 240, .07); border: 1px solid rgba(247, 239, 230, .14);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.login-card .logo { width: 72px; height: 72px; margin-bottom: 12px; animation: float 7s ease-in-out infinite; }
.login-card h1 { font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1; }
.login-card h1 i { background: linear-gradient(100deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card .subtitle { margin: 8px 0 24px; color: rgba(247, 239, 230, .72); }
.login-card label.field > span { color: rgba(247, 239, 230, .75); }
.login-card input { background: rgba(20, 11, 9, .45); border-color: rgba(247, 239, 230, .18); color: #fff; }
.login-card input:focus { border-color: var(--a2); box-shadow: 0 0 0 4px rgba(217, 169, 91, .2); }
.login-card .btn { width: 100%; margin-top: 4px; }
.login-card .error-msg { min-height: 20px; color: #ffab9b; font-size: 14px; margin-bottom: 8px; }
.login-card .hub { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(247, 239, 230, .12); font-size: 13.5px; color: rgba(247, 239, 230, .6); }
.login-card a { color: #f6d9a5; }

/* ------------------------------------------------------------- accueil de l'équipe (simplissime) */
.hero.hero-sm { min-height: 0; padding: clamp(22px, 4vw, 34px); }
.hero.hero-sm h1 { margin-top: 12px; font-size: clamp(40px, 7vw, 64px); }
.hero.hero-sm .sub { margin-top: 12px; }
.hero.hero-sm .sub b { color: #fff7ec; }
.big-actions { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.big-action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 190px; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
a.big-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.big-action:active { transform: scale(.985); }
.big-action .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 6px; }
.big-action .ico svg { width: 34px; height: 34px; }
.big-action b { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.05; }
.big-action small { color: var(--ink-soft); font-size: 15.5px; }
.big-action .badge { position: absolute; top: 20px; right: 20px; }
.big-action.alert { border-color: color-mix(in srgb, var(--henon) 45%, var(--border)); background: linear-gradient(160deg, #fff, #fff0f4); }
.big-action.alert .ico { background: #ffe0ea; color: var(--henon); animation: ring 2.6s ease-in-out infinite; }
.big-action.done { background: linear-gradient(160deg, #fff, var(--ok-soft)); }
.big-action.done .ico { background: #d3ebdb; color: var(--ok); }
.big-action.off { box-shadow: none; background: var(--bg); border-style: dashed; }
.big-action.off .ico { background: var(--bg-2); color: var(--ink-faint); }
.big-action.off b { color: var(--ink-faint); }
.store-choice { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 14px; }
.store-choice button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 20px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.store-choice button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-choice button span { flex: 1; min-width: 0; }
.store-choice button b { display: block; font-size: 19px; }
.store-choice button small { color: var(--ink-soft); }
.store-choice button svg { width: 22px; height: 22px; color: var(--ink-faint); }
.store-choice .dot { width: 14px; height: 14px; }

/* ------------------------------------------------------------- visualisation employé */
.preview-pill { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 14.5px;
  background: linear-gradient(135deg, #6250d6, var(--henon)); color: #fff; box-shadow: 0 14px 34px -10px rgba(98, 80, 214, .7); white-space: nowrap; }
.preview-pill svg { width: 19px; height: 19px; }
.preview-pill b { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.preview-pill:hover b { background: rgba(255, 255, 255, .34); }
@media (min-width: 900px) { .preview-pill { bottom: 22px; } }
body.preview main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 90px); }
body.preview .sumbar { bottom: calc(var(--nav-h) + var(--safe-b) + 72px); }
body.preview .toast { bottom: calc(var(--nav-h) + var(--safe-b) + 76px); }
@media (min-width: 900px) { body.preview .sumbar { bottom: 80px; } body.preview .toast { bottom: 84px; } }

/* ------------------------------------------------------------- impression d'une fiche */
@media print {
  .topbar, .bottomnav, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .page { padding: 0; }
}

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