/* wingmate — 3 palettes (Réglages › Look) : midnight (par défaut), wine, crush */
:root, [data-palette="midnight"] {
  --primary: #1E1240; --accent: #FF5C7A; --accent-deep: #E23D5E; --extra: #FFB86B;
  --bg: #F6F2FF; --ink: #140B2E; --soft: #E4DCFF; --label: #C42A4C; --muted: #4D4570; --line: #DDD5F2; --card2: #ECE6FA;
}
[data-palette="wine"] {
  --primary: #5E1F3A; --accent: #FF8A70; --accent-deep: #E0634A; --extra: #E9C46A;
  --bg: #FFF4EF; --ink: #2A0E1A; --soft: #F8D9DF; --label: #A8324E; --muted: #6B4552; --line: #EED6D2; --card2: #F6E4DF;
}
[data-palette="crush"] {
  --primary: #B3122E; --accent: #FFC2B4; --accent-deep: #B3122E; --extra: #2B2B2B;
  --bg: #FFF6F3; --ink: #26080D; --soft: #FFE1DA; --label: #B3122E; --muted: #6E3A42; --line: #F2D6D0; --card2: #F8E3DE;
}
:root {
  --card: #FFFFFF;
  --green: #2F7D4F; --green-bg: #E3F2E8; --orange: #9A5200; --orange-dot: #E08A1E; --orange-bg: #FBEBD5; --red: #C62828; --red-bg: #FBE1E1;
  --radius: 22px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 2px rgba(20,11,46,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; overscroll-behavior-x: none; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
h1 { font-weight: 900; font-size: 30px; line-height: 1.05; }
h2 { font-weight: 800; font-size: 18px; }
h3 { font-weight: 800; font-size: 16px; }
a { color: var(--label); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.b { font-weight: 800; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.center { text-align: center; }
.pre { white-space: pre-line; }

/* ---------- boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; background: var(--card2); color: var(--ink); white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary); }
[data-palette="crush"] .btn-accent { color: #7A0B1E; }
.btn-outline { background: transparent; border: 2px solid var(--ink); }
.btn-ghost { background: transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--card2); color: var(--ink); padding: 0; text-decoration: none; position: relative; }
.icon-btn.plain { background: transparent; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; border: 2px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; min-width: 0; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; }
.textarea { height: auto; min-height: 90px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.error { color: var(--red); font-size: 14px; font-weight: 700; margin: 0; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card2); border-radius: 14px; }
.seg button { flex: 1 1 0; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; padding: 0 10px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--line); padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .18s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { left: 23px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--card2); color: var(--ink); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.red { background: var(--red); color: #fff; }
.pill.primary { background: var(--primary); color: #fff; }
.pill.accent { background: var(--accent); color: var(--primary); }
.dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; display: inline-block; }
.dot.green { background: var(--green); } .dot.orange { background: var(--orange-dot); } .dot.red { background: var(--red); } .dot.none { background: var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.dark { background: var(--primary); color: #fff; border-color: transparent; }
.card.dark .muted { color: var(--soft); }
.note-box { padding: 10px 14px; border-radius: 14px; background: var(--card2); color: var(--ink); font-size: 13px; font-weight: 600; }
.avatar { width: 42px; height: 42px; border-radius: 999px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; background: var(--soft); color: var(--primary); position: relative; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar .rank { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 999px; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); color: var(--ink); }
.rank.r1 { background: #E2B13C; } .rank.r2 { background: #C9CCD3; } .rank.r3 { background: #D49A6A; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--accent-deep); }
.card.dark .bar { background: rgba(255,255,255,.18); }
.card.dark .bar > span { background: var(--accent); }
.score { font-weight: 900; font-size: 26px; letter-spacing: -0.03em; color: var(--label); line-height: 1; }
.card.dark .score { color: #fff; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.badge-n { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo-word { font-weight: 900; font-size: 22px; letter-spacing: -0.04em; }

/* ---------- structure ---------- */
.shell { min-height: 100vh; min-height: 100dvh; max-width: 640px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--bg); }
.topbar .logo { margin-right: auto; }
.circle-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 46vw; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--ink); }
.main { padding: 4px 16px calc(112px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 8px 10px calc(10px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); max-width: 640px; margin: 0 auto; }
.bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.bottomnav a.on { background: var(--primary); color: #fff; font-weight: 800; }
.bottomnav a.sos { color: var(--red); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sidebar, .desk-only { display: none !important; }
.cols, .card-grid, .top-grid { display: flex; flex-direction: column; gap: 14px; }
.col { min-width: 0; }

/* ---------- ordinateur : menu latéral, contenu large, colonnes ---------- */
@media (min-width: 960px) {
  body { background: var(--bg); }
  .shell { max-width: none; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
  .shell.solo { display: block; max-width: 980px; }
  .shell.solo .topbar { display: flex; }
  .content { min-width: 0; }
  .topbar, .bottomnav { display: none; }
  .desk-only { display: inline-flex !important; }
  .sidebar { display: flex !important; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 16px 20px; background: var(--card); border-right: 1px solid var(--line); }
  .sidebar .logo { padding: 0 10px 18px; }
  .sidebar .logo-word { font-size: 24px; }
  .side-pill { width: 100%; max-width: none; min-height: 52px; padding: 0 12px 0 8px; margin-bottom: 10px; background: var(--bg); }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
  .sidebar nav a:hover { background: var(--card2); }
  .sidebar nav a.on { background: var(--primary); color: #fff; }
  .sidebar .badge-n { position: static; }
  .side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
  .side-me { padding: 10px; border-radius: 16px; background: var(--bg); }
  .main { padding: 40px 48px 64px; max-width: 1160px; margin: 0 auto; gap: 20px; }
  h1 { font-size: 40px; }
  .page-head h1 { font-size: 44px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .col { display: flex; flex-direction: column; gap: 16px; }
  .top-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
  .top-grid .date-card { height: 100%; padding: 20px; }
  .top-grid .date-card .bar { margin-top: auto; }
  .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
  .grid-2.narrow { max-width: 520px; }
  .card { padding: 20px; }
  .hero { margin: 0; border-radius: 28px; padding: 24px 28px; }
  .hero h1 { font-size: 44px !important; }
  .auth { flex-direction: row; max-width: none; }
  .auth-top { flex: 1 1 auto; align-items: flex-start; text-align: left; padding: 72px; }
  .auth-top .tile { width: 110px; height: 110px; border-radius: 32px; }
  .auth-top h1 { font-size: 96px; }
  .auth-top p { font-size: 24px; max-width: 520px; line-height: 1.35; }
  .auth-card { flex: 0 0 500px; border-radius: 0; justify-content: center; padding: 56px; }
  .chat { max-width: 820px; }
  .composer { left: 272px; right: 0; bottom: 0; max-width: none; margin: 0; padding: 14px max(48px, calc((100vw - 272px - 1160px) / 2 + 48px)); }
  .chat-pad { height: 90px; }
  #toast { bottom: 32px; left: 272px; }
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 520px; border-radius: 28px; padding: 24px; max-height: 86vh; }
  .sheet .grab { display: none; }
  .status-grid .st-btn { min-height: 110px; }
  .map { height: 220px; }
  .sos-wrap { padding: 20px 0; }
}

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--primary); max-width: 640px; margin: 0 auto; }
.auth-top { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(40px + var(--safe-t)) 28px 28px; text-align: center; color: #fff; }
.auth-top .tile { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.auth-top h1 { font-size: 46px; }
.auth-top p { margin: 0; color: var(--soft); font-size: 16px; max-width: 300px; }
.auth-card { background: var(--bg); border-radius: 30px 30px 0 0; padding: 26px 22px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }

/* ---------- board ---------- */
.date-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.date-card .desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card.dark .desc { color: #fff; }
.ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero { background: var(--primary); color: #fff; border-radius: 0 0 30px 30px; margin: 0 -16px; padding: 10px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.hero .muted { color: var(--soft); }
.quote { margin: 0; font-size: 17px; line-height: 1.5; font-style: italic; }
.vote { flex: 1 1 0; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--ink); }
.vote.on.keep { background: var(--green); border-color: var(--green); color: #fff; }
.vote.on.hmm { background: var(--orange-dot); border-color: var(--orange-dot); color: #1F1200; }
.vote.on.run { background: var(--red); border-color: var(--red); color: #fff; }
input[type=range] { width: 100%; accent-color: var(--accent-deep); height: 28px; margin: 0; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 800; }
.stepper input { width: 52px; text-align: center; height: 36px; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }

/* ---------- tonight ---------- */
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-btn { min-height: 98px; border-radius: 18px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px solid transparent; font-weight: 800; }
.st-btn small { font-size: 11px; font-weight: 600; line-height: 1.25; }
.st-btn .dot { width: 14px; height: 14px; }
.st-btn.green { background: var(--green-bg); color: #1F5A37; } .st-btn.green.on { background: var(--green); color: #fff; }
.st-btn.orange { background: var(--orange-bg); color: #6E3B00; } .st-btn.orange.on { background: var(--orange-dot); color: #1F1200; }
.st-btn.red { background: var(--red-bg); color: #8E1B1B; } .st-btn.red.on { background: var(--red); color: #fff; }
.st-btn.on .dot { background: #fff; }
.map { width: 100%; height: 170px; border: 0; border-radius: 16px; display: block; background: var(--card2); }
.timer { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.crew-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.crew-row:last-child { border-bottom: 0; }
.red-card { background: var(--red); color: #fff; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.red-card .btn-white { color: var(--red); }
.red-card .btn-line { background: transparent; border: 2px solid #fff; color: #fff; }

/* ---------- SOS ---------- */
.sos-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; }
.sos-btn { position: relative; width: 180px; height: 180px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font-weight: 900; font-size: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 0 0 14px var(--red-bg); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sos-btn small { font-size: 12px; font-weight: 600; }
.sos-btn svg.prog { position: absolute; inset: -14px; width: 208px; height: 208px; transform: rotate(-90deg); pointer-events: none; }
.tool-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; text-decoration: none; }
.tool-row:last-child { border-bottom: 0; }
.tool-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--label); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--card); border: 1px solid var(--line); padding: 9px 13px; border-radius: 18px 18px 18px 4px; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-color: transparent; border-radius: 18px 18px 4px 18px; }
.msg .who { font-size: 11px; font-weight: 800; color: var(--muted); margin: 0 0 2px 4px; }
.sys { align-self: center; max-width: 92%; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card2); padding: 5px 12px; border-radius: 12px; }
.chat-date { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-b)); z-index: 25; max-width: 640px; margin: 0 auto; display: flex; gap: 8px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line); }
.composer .input { height: 46px; border-radius: 23px; }
.chat-pad { height: 70px; }

/* ---------- sheets, toast, popups ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20,11,46,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; padding: 12px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow-y: auto; overflow-x: hidden; }
.sheet .grab { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--line); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-b)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
#toast .t { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(20,11,46,.35); max-width: 520px; }
.update { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; }
.upd-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; animation: updPing 1.4s ease-out infinite; }
.upd-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,11,46,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: updFade .25s ease-out; }
.upd-card { width: 100%; max-width: 420px; border-radius: 32px; padding: 34px 24px 22px; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--primary); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: updPop .45s cubic-bezier(.2,1.4,.4,1); }
.upd-card .logo-mark { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); animation: updBounce 1.8s ease-in-out infinite; }
.upd-badge { background: var(--accent); color: var(--primary); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.upd-card h2 { font-size: 26px; line-height: 1.1; color: #fff; }
.upd-card p { margin: 0; font-size: 16px; color: rgba(255,255,255,.92); }
.upd-card .btn-upd { width: 100%; min-height: 60px; font-size: 18px; animation: updPulse 1.6s ease-in-out infinite; }
.upd-later { background: none; border: 0; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; text-decoration: underline; padding: 6px; }
@keyframes updPing { 0% { box-shadow: 0 0 0 0 rgba(255,92,122,.8); } 100% { box-shadow: 0 0 0 12px rgba(255,92,122,0); } }
@keyframes updFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes updPop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes updBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes updPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* alerte rouge plein écran */
.red-overlay { position: fixed; inset: 0; z-index: 95; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(30px + var(--safe-t)) 24px calc(30px + var(--safe-b)); text-align: center; animation: updFade .2s; }
.red-overlay h2 { font-size: 30px; color: #fff; }
.red-overlay .pulse { width: 90px; height: 90px; border-radius: 999px; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 900; animation: updPulse 1s infinite; }
.red-overlay .btn { width: 100%; max-width: 360px; }

/* faux appel (plein écran, façon iPhone) */
.fake { position: fixed; inset: 0; z-index: 100; background: linear-gradient(#2B2B33, #121216); color: #fff; display: flex; flex-direction: column; align-items: center; padding: calc(90px + var(--safe-t)) 36px calc(60px + var(--safe-b)); font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.fake .lbl { font-size: 16px; color: #C9C9D1; }
.fake h1 { font-family: inherit; font-weight: 400; font-size: 38px; letter-spacing: 0; margin-top: 6px; }
.fake .av { width: 110px; height: 110px; border-radius: 999px; background: #44444E; margin-top: 44px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #E5E5EA; }
.fake .acts { margin-top: auto; width: 100%; display: flex; justify-content: space-between; }
.fake .act { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; color: #fff; font-size: 14px; }
.fake .act span { width: 76px; height: 76px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.fake .dec span { background: #E5383B; } .fake .acc span { background: #2FB34A; }
.fake .acc span { animation: updPulse 1.2s infinite; }

/* ---------- aide ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 12px 28px 12px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; color: var(--label); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 12px; color: var(--muted); font-size: 15px; }
.faq .ans p { margin: 0 0 8px; }
.faq .ans ol, .faq .ans ul { margin: 0 0 8px; padding-left: 20px; }
.faq .ans li { margin-bottom: 4px; }
.step-ic { display: inline-flex; vertical-align: middle; }
.palette-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.palette-pick button { border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink); }
.palette-pick button.on { border-color: var(--ink); }
.palette-pick .sw { display: flex; }
.palette-pick .sw i { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #fff; margin-left: -6px; }
.palette-pick .sw i:first-child { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 960px) { .mob-only { display: none !important; } }

/* ---------- prospects : éliminés (grisés + bandeau), red flags ---------- */
.elim-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .12em; transform: rotate(-2deg); }
.cand-row.elim, .chat-date.elim { filter: grayscale(1); opacity: .55; }
.cand-row.elim b { text-decoration: line-through; text-decoration-thickness: 2px; }
.elim-hero { background: #4A4A52 !important; position: relative; overflow: hidden; }
.elim-banner { align-self: stretch; text-align: center; padding: 8px; margin: 0 -20px; background: var(--red); color: #fff; font-weight: 900; letter-spacing: .3em; font-size: 15px; transform: rotate(-2deg); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.flags { border-color: #F2C4C4; }
.flags h2 { display: flex; align-items: center; gap: 8px; color: var(--red); }
.flag-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--red-bg); }
.flag-row b { color: #8E1B1B; }
