/* ===== Témoins C&M — feuille de style ===== */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-var-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f8f4ec;
  --bg-2: #f1ebdf;
  --card: #ffffff;
  --ink: #22324a;
  --ink-2: #4b5768;
  --muted: #7b8494;
  --line: #e7e0d3;
  --navy: #22324a;
  --blue: #4a6fa5;
  --blue-soft: #e8eef7;
  --gold: #c9a24a;
  --gold-soft: #f6efdc;
  --blush: #e6a3b8;
  --blush-soft: #fbeef2;
  --green: #2f855a;
  --green-soft: #e6f4ec;
  --red: #c0392b;
  --red-soft: #fbe9e7;
  --jlc: #2b6cb0;
  --pe: #2f855a;
  --ag: #c0567a;
  --shadow: 0 1px 2px rgba(34, 50, 74, 0.06), 0 6px 20px rgba(34, 50, 74, 0.07);
  --radius: 16px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --topbar-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.15; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Boot ===== */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.boot-mark { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--navy); }
.boot-mark span { color: var(--gold); font-style: italic; }

/* ===== Login ===== */
.login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 15% 10%, rgba(230, 163, 184, 0.28), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(74, 111, 165, 0.22), transparent 45%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: 32px 24px 28px; text-align: center;
}
.login-flower { color: var(--gold); font-size: 26px; line-height: 1; }
.login-title { font-size: 40px; font-weight: 600; margin-top: 6px; letter-spacing: 0.5px; }
.login-title span { color: var(--gold); font-style: italic; font-weight: 500; }
.login-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.login-kicker {
  display: inline-block; margin: 20px 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 18px; }
.who-btn {
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s, transform .1s;
}
.who-btn:active { transform: scale(0.97); }
.who-btn.selected { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, white); }
.who-btn .avatar { width: 46px; height: 46px; font-size: 15px; }
.who-btn .who-name { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.1; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.input {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 17px;
  background: #fff; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--blue); }
.btn {
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 600; font-size: 16px;
  background: var(--navy); color: #fff; transition: transform .1s, opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: 0.6; }
.btn-secondary { background: var(--blue-soft); color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-sm { padding: 8px 12px; font-size: 14px; min-height: 36px; border-radius: 10px; }
.login-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.login-hint { color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ===== Avatars & chips ===== */
.avatar {
  --c: var(--navy);
  width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; letter-spacing: 0.5px; flex: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid transparent; white-space: nowrap;
}
.chip-w { --c: var(--navy); background: var(--c); color: #fff; letter-spacing: 0.4px; }
.chip-w.me { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.chip-other { background: #fff; border-color: var(--line); color: var(--ink-2); font-weight: 500; }
.chip-time { background: var(--gold-soft); color: #7a5d17; font-variant-numeric: tabular-nums; }
.chip-music { background: var(--blush-soft); color: #8a3f5a; font-weight: 500; white-space: normal; text-align: left; }
.chip-music::before { content: '♪ '; }
.chip-place { background: var(--blue-soft); color: var(--blue); text-decoration: none; white-space: normal; text-align: left; }
.chip-tag { background: var(--gold-soft); color: #7a5d17; font-style: italic; font-weight: 500; }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-gold { background: var(--gold-soft); color: #7a5d17; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy); color: #fff;
  padding-top: var(--safe-top);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:active { background: rgba(255,255,255,0.12); }
.icon-btn svg { width: 24px; height: 24px; }
.brand { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }
.brand-mark span { color: var(--gold); font-style: italic; font-weight: 500; }
.brand-page { font-size: 14px; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .avatar { width: 34px; height: 34px; font-size: 11px; box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.status-dot.off { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }

/* ===== Drawer ===== */
.scrim { position: fixed; inset: 0; background: rgba(20, 28, 42, 0.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); z-index: 50;
  background: var(--card); box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  transform: translateX(-104%); transition: transform .22s ease-out;
  display: flex; flex-direction: column; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
}
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer-head .avatar { width: 44px; height: 44px; font-size: 14px; }
.drawer-user { min-width: 0; }
.drawer-user b { display: block; font-size: 16px; }
.drawer-user small { color: var(--muted); font-size: 12px; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.nav-section { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 12px; border-radius: 12px; border: 0; background: transparent; text-align: left;
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none;
}
.nav-link svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.nav-link.active { background: var(--blue-soft); font-weight: 600; }
.nav-link.sub { padding-left: 46px; font-size: 15px; }
.nav-link .nav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }

/* ===== Layout ===== */
.main { padding: 14px 14px calc(96px + var(--safe-bottom)); max-width: 720px; margin: 0 auto; }
.page-title { font-size: 30px; margin: 4px 0 2px; }
.page-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Sticky toolbar under the top bar */
.toolbar {
  position: sticky; top: calc(var(--topbar-h) + var(--safe-top)); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin: -14px -14px 12px; padding: 10px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.segmented { display: flex; background: var(--bg-2); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented button {
  flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 9px 6px; font-weight: 600; font-size: 14px; color: var(--ink-2);
  min-height: 40px;
}
.segmented button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.10); }
.progress { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.bar { flex: 1; height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #48bb78); border-radius: 999px; transition: width .3s; }
.bar.gold > i { background: linear-gradient(90deg, var(--gold), #e2c275); }
.progress b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Planning ===== */
.day { margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.day h2 { font-size: 26px; }
.day small { color: var(--muted); font-size: 14px; }
.block { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; scroll-margin-top: calc(var(--topbar-h) + var(--safe-top) + 100px); }
.block.current { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.block.past .block-time { background: var(--bg-2); color: var(--muted); }
.block-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 10px; }
.block-time {
  flex: none; min-width: 62px; padding: 6px 8px; border-radius: 12px; text-align: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.block-time.range { font-size: 12px; }
.block-title { flex: 1; min-width: 0; }
.block-title h2 { font-size: 22px; }
.block-meta { margin-top: 6px; }
.now-badge {
  flex: none; align-self: flex-start; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.milestone { display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-bottom: 8px; color: var(--muted); }
.milestone .block-time { min-width: 62px; background: var(--bg-2); color: var(--ink-2); }
.milestone h2 { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.milestone .chip-music { margin-top: 2px; }
.items { list-style: none; margin: 0; padding: 0 0 6px; }
.item { display: flex; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: flex-start; }
.item-body { flex: 1; min-width: 0; }
.item-text { font-size: 16px; }
.item-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item.done .item-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(123,132,148,0.6); }
.item.done { background: linear-gradient(90deg, var(--green-soft), transparent 60%); }
.item-done { margin-top: 5px; font-size: 12px; color: var(--green); font-weight: 600; }
.item.info { background: var(--blue-soft); border-top-color: transparent; }
.item.info .item-text { font-size: 14px; color: var(--ink-2); }
.item.info.important { border-left: 4px solid var(--blue); }
.item.info .i-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--blue); font-family: var(--font-display); font-weight: 700; font-style: italic; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-top: 1px; }
.item.step { padding-top: 7px; padding-bottom: 7px; }
.item.step .step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.item.step .item-text { font-size: 14px; color: var(--ink-2); }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; border: 0;
}
.link-btn.soft { background: var(--blue-soft); color: var(--navy); }
.link-btn svg { width: 14px; height: 14px; }

/* Checkbox */
.chk {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c6ccd6; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; position: relative;
  transition: background .15s, border-color .15s, transform .1s;
}
.chk::after { content: ''; position: absolute; inset: -9px; }
.chk svg { width: 18px; height: 18px; color: #fff; opacity: 0; transform: scale(0.5); transition: opacity .15s, transform .15s; }
.chk[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.chk[aria-checked="true"] svg { opacity: 1; transform: scale(1); }
.chk:active { transform: scale(0.9); }
.chk.pending { opacity: 0.6; }

.fab {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-bottom)); z-index: 25;
  border: 0; border-radius: 999px; padding: 12px 18px; background: var(--gold); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 20px rgba(201, 162, 74, 0.45); display: inline-flex; align-items: center; gap: 8px;
}
.fab svg { width: 18px; height: 18px; }

/* ===== Photos ===== */
.next-card { background: linear-gradient(135deg, var(--navy), #3b5680); color: #fff; }
.next-card .kicker { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.8; font-weight: 700; }
.next-card h3 { color: #fff; font-size: 28px; margin: 4px 0 6px; }
.next-card .people { opacity: 0.9; font-size: 14px; }
.next-card .btn { background: #fff; color: var(--navy); margin-top: 12px; }
.photo { display: flex; gap: 12px; align-items: flex-start; }
.num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: #7a5d17; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.photo.done .num { background: var(--green-soft); color: var(--green); }
.photo h3 { font-size: 20px; margin-bottom: 4px; }
.photo.done h3 { color: var(--muted); text-decoration: line-through; }
.people-chips .chip { font-weight: 500; }
.chip-couple { background: var(--blush-soft); color: #8a3f5a; }

/* ===== Tables ===== */
.search { position: relative; margin-bottom: 12px; }
.search .input { padding-left: 42px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.room { margin: 16px 0 8px; }
.room-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.room-title h2 { font-size: 22px; }
.room-title .band { width: 6px; height: 26px; border-radius: 3px; background: #3aa76d; }
.room-title .band.dark { background: #333; }
.grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.grid-row.single { grid-template-columns: 1fr; }
.table { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 10px 8px; min-width: 0; border: 2px solid transparent; }
.table.hit { border-color: var(--gold); }
.table.dim { opacity: 0.45; }
.table-head { text-align: center; margin-bottom: 6px; }
.table-head b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.table-head small { color: var(--muted); font-size: 12px; font-style: italic; }
.table-head .lbl { display: block; font-size: 11px; color: var(--blue); font-weight: 600; }
.guests { list-style: none; margin: 0; padding: 0; text-align: center; }
.guests li { padding: 3px 0; font-size: 14px; line-height: 1.25; border-top: 1px dashed var(--line); }
.guests li:first-child { border-top: 0; }
.guests .g-name { font-weight: 500; }
.guests .g-name.noalc { color: #1d6fd1; }
.guests .g-name.witness { font-weight: 700; }
.guests .g-role { color: var(--gold); font-style: italic; font-size: 12px; }
.guests .g-diet { display: block; color: var(--red); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.guests li.match { background: var(--gold-soft); border-radius: 6px; }
.guests li.nomatch { opacity: 0.35; }
.side-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 2px; text-align: center; }
.repose { background: #d9d9d9; border-radius: 12px; padding: 14px; text-align: center; color: #555; font-size: 13px; font-weight: 600; }
.no-result { text-align: center; color: var(--muted); padding: 30px 0; }
.hits { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.hit-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.hit-row:first-child { border-top: 0; }
.hit-row b { font-size: 15px; }
.hit-row span { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; }
.hit-row em { color: var(--red); font-style: normal; font-weight: 600; }
.hit-row svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.table { scroll-margin-top: 90px; }

/* ===== Games ===== */
.game-cards { display: grid; gap: 12px; }
.game-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.game-card .ring { flex: none; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-2) 0); display: inline-flex; align-items: center; justify-content: center; }
.game-card .ring i { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.game-card h3 { font-size: 22px; }
.game-card .when { color: var(--muted); font-size: 13px; }
.game-card .chev { margin-left: auto; color: var(--muted); }
.game-head { border-top: 5px solid var(--c, var(--gold)); }
.game-head .when { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: #7a5d17; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.game-head p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
details.howto summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; list-style: none; }
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary::before { content: '▸ '; }
details[open].howto summary::before { content: '▾ '; }
details.howto ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
details.howto li { margin: 4px 0; }
.theme-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.theme-legend .chip { border: 1px solid rgba(0,0,0,0.06); }
.gitem { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 8px; border-left: 6px solid var(--c, transparent); }
.gitem .num { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
.gitem .gtext { flex: 1; min-width: 0; font-size: 16px; }
.gitem.done .gtext { color: var(--muted); text-decoration: line-through; }
.gitem.done { background: var(--green-soft); }
.gitem.next { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.gitem .gdone { display: block; font-size: 12px; color: var(--green); font-weight: 600; text-decoration: none; }
.gitem .themed { display: block; font-size: 11px; font-weight: 600; margin-top: 2px; }
.answer { display: flex; gap: 4px; margin-top: 8px; }
.answer button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 32px; }
.answer button.on-elle { background: var(--blush); border-color: var(--blush); color: #fff; }
.answer button.on-lui { background: var(--blue); border-color: var(--blue); color: #fff; }
.answer button.on-deux { background: var(--gold); border-color: var(--gold); color: #fff; }
.gitem.luielle { align-items: flex-start; }
.gitem.luielle .chk { margin-top: 4px; }
.next-label { font-size: 11px; color: #7a5d17; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ===== Infos ===== */
.place { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.place:first-of-type { border-top: 0; }
.place .when { flex: none; min-width: 58px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
.place b { display: block; font-size: 15px; }
.place small { color: var(--muted); font-size: 12px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.contact:first-of-type { border-top: 0; }
.contact .avatar { --c: var(--gold); }
.contact a { margin-left: auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 6px 0; font-size: 15px; }
.timeline .when { flex: none; min-width: 92px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
.music-list { list-style: none; margin: 0; padding: 0; }
.music-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.music-list li:first-child { border-top: 0; }
.music-list .track { font-weight: 600; color: #8a3f5a; }
.music-list .track::before { content: '♪ '; }
.music-list .moment { font-size: 13px; color: var(--muted); }
.accounts { display: flex; flex-direction: column; gap: 8px; }
.accounts .row b { font-size: 15px; }
.accounts .row small { color: var(--muted); }

/* ===== Activity ===== */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.feed li:first-child { border-top: 0; }
.feed .avatar { width: 30px; height: 30px; font-size: 10px; }
.feed .what { font-size: 14px; }
.feed .what b { font-weight: 600; }
.feed .when { font-size: 12px; color: var(--muted); }
.feed .verb { color: var(--green); font-weight: 600; }
.feed .verb.un { color: var(--red); }
.feed .verb.ans { color: var(--blue); }
.reset-zone { border: 1px dashed var(--line); }
.reset-zone select { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; margin: 8px 0; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-width: calc(100vw - 32px); text-align: center;
}
.toast.err { background: var(--red); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

@media (min-width: 640px) {
  .main { padding-left: 20px; padding-right: 20px; }
  .toolbar { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
