/* =====================================================================
   Chaud ?!  —  styles
   ===================================================================== */

:root {
  --bg: #fff6ef;
  --card: #ffffff;
  --ink: #22141c;
  --muted: #86717b;
  --line: #f0dfd3;
  --soft: #fcefe6;
  --accent: #ff4d2e;
  --accent2: #ff2e7e;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --danger: #e11d48;
  --shadow: 0 12px 30px -14px rgba(140, 50, 20, .35);
  --shadow-sm: 0 4px 14px -8px rgba(140, 50, 20, .3);
  --r: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150c11;
    --card: #22161d;
    --ink: #fbeef3;
    --muted: #a78f9a;
    --line: #382631;
    --soft: #2b1d25;
    --shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
    --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 0% -10%, rgba(255, 77, 46, .16), transparent 45%),
    radial-gradient(circle at 110% 0%, rgba(255, 46, 126, .12), transparent 40%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 750; }
p { margin: .4em 0; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; }

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(110px + env(safe-area-inset-bottom));
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.danger-text { color: var(--danger) !important; }

/* ---------- Loader / animations ---------- */
.loader { display: grid; place-items: center; min-height: 50vh; font-size: 44px; }
.loader span { animation: flicker 1s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.2) rotate(4deg); } }

#view.enter > * { animation: rise .35s cubic-bezier(.2, .8, .3, 1) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; }
#view.enter > *:nth-child(3) { animation-delay: .08s; }
#view.enter > *:nth-child(4) { animation-delay: .12s; }
#view.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pop { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }

.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.wiggle .b-emoji { animation: wiggle 1.6s ease-in-out infinite; display: inline-block; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-6deg); } }

.wave { display: inline-block; animation: wiggle 2.4s ease-in-out infinite; transform-origin: 70% 80%; }

.burst-p {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  font-size: 22px; margin: -12px 0 0 -12px;
  animation: burst .9s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes burst {
  from { transform: translate(var(--x), var(--y)) scale(.4); opacity: 1; }
  to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1.15) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px;
  margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.logo em {
  font-style: normal; display: inline-block; transform: rotate(8deg);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.big { font-size: 54px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 20px;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.icon-btn:active, .me-btn:active { transform: scale(.9); }
.me-btn { display: inline-flex; transition: transform .15s; }

/* ---------- Onglets ---------- */
.tabbar {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(528px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 6px; border-radius: 26px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -10px rgba(80, 20, 20, .35), inset 0 0 0 1px var(--line);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0; border-radius: 18px; color: var(--muted);
  transition: background .2s, color .2s;
}
.tabbar a span { font-size: 21px; transition: transform .2s; filter: grayscale(.6); }
.tabbar a small { font-size: 11px; font-weight: 600; }
.tabbar a.active { color: var(--ink); background: var(--soft); }
.tabbar a.active span { transform: translateY(-1px) scale(1.12); filter: none; }
.tabbar .tab-plus { padding: 0; }
.tabbar .tab-plus span {
  width: 54px; height: 54px; border-radius: 20px; margin-top: -26px;
  display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; filter: none;
  background: var(--grad); box-shadow: 0 10px 22px -8px var(--accent2);
  transform: rotate(-6deg);
}
.tabbar .tab-plus:active span { transform: rotate(6deg) scale(.92); }
.tabbar .tab-plus.active { background: none; }
.badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent2); color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card);
}
.badge[hidden] { display: none; }
.icon-btn:has(.admin-badge) { position: relative; }
.admin-badge { top: -4px; right: -6px; }

/* ---------- Boutons & formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 8px 18px -10px var(--accent2);
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .55; }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.big { padding: 15px 22px; font-size: 17px; }
.btn.full { width: 100%; }
.btn.ghost { background: var(--soft); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }

.card {
  background: var(--card); border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow); margin: 14px 0;
}
.card h2 { margin-bottom: 4px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: 14px; }
.field .label { font-weight: 650; font-size: 14px; }
.form input:not([type=radio]):not([type=checkbox]):not([type=range]), .form textarea, .search, #code-form input {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--bg); font-weight: 500; font-size: 16px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 64px; }
.form input:focus, .form textarea:focus, .search:focus, #code-form input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.count { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: auto; }
.form label:has(.count) { flex-direction: column; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: var(--muted); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
#code-form { flex-wrap: nowrap; margin: 10px 0; }
#code-box { margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 2px dashed var(--line); }
.invite-code { font-size: 24px; letter-spacing: .15em; font-family: ui-monospace, monospace; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--soft); border-radius: 16px; padding: 4px; margin: 0 0 16px;
}
.seg > * { padding: 9px; border-radius: 12px; text-align: center; font-weight: 700; color: var(--muted); transition: .2s; }
.seg > .active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
/* .seg en version formulaire (boutons radio) */
.form .seg { margin: 0; }
.form .seg > label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg > label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg > label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.guest-list { max-height: 260px; overflow-y: auto; box-shadow: inset 0 0 0 2px var(--line); }
.guest-list .list-item { cursor: pointer; color: var(--ink); }

.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emo { aspect-ratio: 1; border-radius: 12px; font-size: 22px; display: grid; place-items: center; transition: transform .15s, background .15s; }
.emo:hover { background: var(--soft); }
.emo.active { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.08); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); transition: transform .15s; }
.swatch.active { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); transform: scale(1.1); }
.avatar-pick { display: flex; gap: 14px; align-items: flex-start; }
.avatar-pick > div { flex: 1; min-width: 0; }

.search { margin-bottom: 12px; }

/* ---------- Avatars ---------- */
.av {
  --c: #ff4d2e;
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 22px; line-height: 1;
  background: color-mix(in srgb, var(--c) 24%, var(--card));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 65%, transparent);
  transition: background .2s, box-shadow .2s;
}
.av.xs { width: 22px; height: 22px; font-size: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 65%, transparent); }
.av.sm { width: 32px; height: 32px; font-size: 17px; }
.av.lg { width: 60px; height: 60px; font-size: 32px; }
.av.xl { width: 96px; height: 96px; font-size: 52px; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 65%, transparent), var(--shadow); }
.av-stack { display: inline-flex; }
.av-stack .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.av-stack .av:first-child { margin-left: 0; }

/* ---------- Auth ---------- */
.auth { padding-top: calc(48px + env(safe-area-inset-top)); }
.auth-hero { text-align: center; margin-bottom: 20px; }
.auth-hero p { font-size: 18px; color: var(--muted); margin-top: 6px; }
.flame { font-size: 64px; animation: flicker 1.4s ease-in-out infinite; display: inline-block; }
.auth-card { padding: 16px 18px 20px; }

/* ---------- Accueil ---------- */
.hello { padding: 10px 0 6px; }
.hello h1 { font-size: 34px; }
.tagline { font-size: 18px; color: var(--muted); margin-top: 4px; }

.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r); margin: 12px 0;
  background: var(--card); box-shadow: var(--shadow); transition: transform .15s;
}
a.banner:active { transform: scale(.98); }
.banner > div { flex: 1; display: flex; flex-direction: column; }
.banner small { color: var(--muted); }
.banner .b-emoji { font-size: 30px; }
.banner .chev { font-size: 26px; color: var(--muted); }
.banner.warn { background: linear-gradient(135deg, #ffe08a, #ffb36b); color: #3a1f00; }
.banner.warn small, .banner.warn .chev { color: #6b3d0b; }
.banner.info { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.match-banner { background: linear-gradient(135deg, #fff2b3, #ffd86b); color: #3a2a00; }
.match-banner small { color: #6b5200 !important; }

.section { margin: 26px 0 8px; }
.section > h2 { margin-bottom: 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.link { color: var(--accent); font-weight: 700; font-size: 14px; }
.pill { font-size: 13px; background: var(--soft); padding: 2px 9px; border-radius: 99px; vertical-align: middle; color: var(--muted); }

.chips { display: flex; flex-direction: column; gap: 8px; }
.dispo-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.dispo-chip:active { transform: scale(.98); }
.dispo-chip > div { display: flex; flex-direction: column; gap: 2px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot { font-size: 14px; background: var(--soft); padding: 2px 8px; border-radius: 99px; }

.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 86%; scroll-snap-align: center; }
.hscroll > *:only-child { flex-basis: 100%; }

.friends-row { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.friends-row::-webkit-scrollbar { display: none; }
.friend-bubble { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; flex: none; text-align: center; }
.friend-bubble small { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-bubble.hot .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent), 0 0 18px var(--accent2); }
.friend-bubble.hot small::before { content: '🔥 '; }

.empty { text-align: center; padding: 22px 16px; color: var(--muted); background: var(--card); border-radius: var(--r); border: 2px dashed var(--line); }
.empty-emoji { font-size: 40px; display: block; margin-bottom: 4px; }
.empty .btn { margin-top: 8px; }

/* ---------- Ticket (sortie) ---------- */
.ticket {
  --k1: #ff9a3c; --k2: #ff3d6e;
  display: flex; flex-direction: column; position: relative;
  border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s;
}
a.ticket:active { transform: scale(.98) rotate(-.4deg); }
.ticket.is-past { filter: saturate(.5); opacity: .85; }
.t-top {
  position: relative; overflow: hidden;
  padding: 16px 18px 18px; color: #fff;
  background: linear-gradient(135deg, var(--k1), var(--k2));
}
.t-bg-emoji { position: absolute; right: -12px; top: -14px; font-size: 96px; opacity: .25; transform: rotate(14deg); pointer-events: none; }
.t-kind {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px);
}
.t-title { font-size: 24px; font-weight: 800; margin-top: 10px; text-shadow: 0 1px 10px rgba(0, 0, 0, .12); overflow-wrap: anywhere; }
.t-desc {
  margin: 6px 0 0; opacity: .95; font-size: 15px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticket.full .t-desc { -webkit-line-clamp: unset; display: block; }
.ticket.full .t-title { font-size: 28px; }

.t-cut { position: relative; height: 18px; }
.t-cut::before { content: ''; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--line); }
.t-cut::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 9px, transparent 9.5px),
    radial-gradient(circle at 100% 50%, var(--bg) 9px, transparent 9.5px);
}
.t-bottom { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px 14px; padding: 0 18px 10px; }
.t-info { display: flex; flex-direction: column; min-width: 0; }
.t-info small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.t-info b { font-size: 16px; }
.t-info span { color: var(--muted); font-size: 14px; }
.t-info:nth-child(3) { grid-column: 1 / -1; }
.t-place { overflow-wrap: anywhere; }
.budget { display: inline-flex; align-items: center; gap: 6px; }
.euros i { font-style: normal; font-weight: 800; color: var(--line); }
.euros i.on { color: var(--k2); }
.t-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 18px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin: 0 0 0;
}
.t-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-author b { color: var(--ink); }
.t-stats { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.preview { margin-bottom: 4px; }
.preview .ticket { transform: rotate(-1deg); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.day-label { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }

/* ---------- Pages ---------- */
.page-head { margin: 8px 0 14px; }
.page-head p { margin-top: 6px; }
.back { display: inline-block; color: var(--muted); font-weight: 700; margin: 4px 0 10px; }

.profile-hero { text-align: center; padding: 6px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-hero h1 { margin-top: 8px; }
.profile-hero .row { margin-top: 8px; }
.locked { text-align: center; }

/* ---------- Calendrier ---------- */
.weeknav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 0 14px;
}
.weeknav > div { text-align: center; display: flex; flex-direction: column; }
.weeknav b { font-size: 18px; }
.weeknav small { color: var(--muted); }

.brushes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.brushes::-webkit-scrollbar { display: none; }
.brush {
  flex: none; padding: 9px 14px; border-radius: 99px; font-weight: 700;
  background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--line);
  transition: transform .15s, background .2s, color .2s;
}
.brush.active { color: #fff; background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 8px 16px -8px var(--k2); transform: translateY(-2px); }
.brush.erase.active { background: var(--ink); color: var(--bg); box-shadow: none; }

.cal { display: grid; grid-template-columns: 54px repeat(3, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 20px; padding-bottom: 2px; }
.cal-head small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--card); box-shadow: var(--shadow-sm); padding: 4px 0;
}
.cal-day small { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-day b { font-size: 18px; }
.cal-day.today { background: var(--grad); color: #fff; }
.cal-day.today small { color: rgba(255, 255, 255, .85); }
.editable .cal-day:active { transform: scale(.92); }
.cal-cell {
  position: relative; min-height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 1px; font-size: 20px;
  background: var(--soft); border: 2px dashed var(--line);
  transition: transform .12s;
}
.cal-cell.on {
  border: 2px solid color-mix(in srgb, var(--k1) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--k1) 26%, var(--card)), color-mix(in srgb, var(--k2) 26%, var(--card)));
}
.editable .cal-cell:active { transform: scale(.9); }
.cal-cell:not(:disabled):hover { border-color: var(--accent); }
.cal-day.past, .cal-cell.past { opacity: .45; }
.cal-cell.match { border-color: #ffc93c; box-shadow: 0 0 0 2px #ffc93c, 0 0 16px rgba(255, 201, 60, .55); }
.spark { position: absolute; top: -9px; right: -6px; font-style: normal; font-size: 15px; animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(15deg); } }

.legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 12px 0; }

/* ---------- Détail d'une sortie ---------- */
.react-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.react {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--line);
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.react:active { transform: scale(.94); }
.react .r-emoji { font-size: 32px; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.react .r-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.react.chaud.active { background: linear-gradient(135deg, #ff7a2e, #ff2e5b); color: #fff; box-shadow: 0 10px 22px -10px #ff2e5b; }
.react.nope.active { background: linear-gradient(135deg, #8aa2c8, #5b6b8c); color: #fff; box-shadow: 0 10px 22px -10px #5b6b8c; }
.react.active .r-emoji { transform: scale(1.2) rotate(-8deg); }
.react.active .r-count { color: rgba(255, 255, 255, .85); }
.who { margin-top: 12px; }
.who small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.who > div { display: flex; gap: 6px; flex-wrap: wrap; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; }

.comment { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0; }
.comment .bubble {
  max-width: 78%; padding: 8px 12px; border-radius: 18px 18px 18px 6px;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.comment .bubble b { font-size: 13px; }
.comment .bubble p { margin: 2px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment .bubble small { color: var(--muted); font-size: 11px; }
.comment.mine { flex-direction: row-reverse; }
.comment.mine .bubble { background: var(--grad); color: #fff; border-radius: 18px 18px 6px 18px; }
.comment.mine .bubble small { color: rgba(255, 255, 255, .8); }
.comment .x { color: var(--muted); font-size: 13px; padding: 6px; opacity: .6; }
.comment-form { display: flex; gap: 8px; margin-top: 14px; }
.comment-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; font-size: 16px;
  border: 2px solid var(--line); background: var(--card); outline: none;
}
.comment-form input:focus { border-color: var(--accent); }
.comment-form .btn { width: 46px; height: 46px; padding: 0; font-size: 18px; }

/* ---------- Formulaire de sortie ---------- */
.kind-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--soft); transition: transform .15s, background .2s, color .2s;
}
.kind-pick span i { font-style: normal; font-size: 24px; }
.kind-pick input:checked + span { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 16px -8px var(--k2); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--accent); }
.budget-row { display: flex; align-items: center; gap: 12px; }
.budget-row input[type=range] { flex: 1; accent-color: var(--accent); height: 28px; }
.budget-row input:disabled { opacity: .35; }
.budget-row output { min-width: 64px; text-align: right; font-weight: 800; font-size: 18px; }
#bword { color: var(--accent); }

/* ---------- Listes ---------- */
.list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list.highlight { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.li-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.li-main > div { display: flex; flex-direction: column; min-width: 0; }
.li-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-actions { display: flex; gap: 6px; flex: none; }

/* ---------- Modale & toast ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 8, 14, .45); backdrop-filter: blur(3px); animation: fade .15s;
}
.modal { background: var(--card); border-radius: var(--r); padding: 20px; width: min(380px, 100%); box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.3, 1.6, .5, 1); }
.modal p { margin: 0 0 16px; font-size: 17px; }
@keyframes fade { from { opacity: 0; } }

#toast {
  position: fixed; z-index: 150; left: 50%; top: calc(14px + env(safe-area-inset-top));
  transform: translate(-50%, -150%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 16px; font-weight: 650;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }

/* ---------- Grand écran ---------- */
@media (min-width: 700px) {
  .hscroll > * { flex-basis: 70%; }
  .cal-cell { min-height: 62px; }
}
