/* OnSeVoit — © 2026 Alban Volz. Tous droits réservés. Reproduction interdite sans autorisation écrite.
 * Identité visuelle
 * Encre indigo sur papier bleuté ; le jaune souci est réservé à « là où tout le monde se retrouve »
 * (cœur du logo, meilleure date, zone suggérée). Une seule famille : Bricolage Grotesque.
 */
:root {
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --ink: #16182D;
  --ink-2: #545A78;
  --ink-3: #8A8FA8;
  --line: #E1E4F0;
  --g: #3B3AE8; /* couleur du groupe ouvert (thème) */
  --primary: var(--g);
  --primary-ink: #FFFFFF;
  --primary-soft: color-mix(in srgb, var(--g) 12%, #FFFFFF);
  --accent: #FFB020;
  --accent-ink: #2B1D00;
  --accent-soft: #FFF2D6;
  --maybe: #F6C453;
  --heat-0: #ECEEF6;
  --danger: #C2334A;
  --c1: #3B3AE8;
  --c2: #8C7CF6;
  --c3: #49B6E8;
  --radius-sheet: 22px;
  --radius-ctl: 12px;
  --shadow: 0 1px 0 rgba(22, 24, 45, .04), 0 10px 30px -18px rgba(59, 58, 232, .35);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101123;
    --surface: #181A31;
    --surface-2: #21243F;
    --ink: #EEF0FF;
    --ink-2: #B3B7D6;
    --ink-3: #7E83A6;
    --line: #2C3052;
    --primary: color-mix(in srgb, var(--g) 55%, #FFFFFF);
    --primary-ink: #0E0F24;
    --primary-soft: color-mix(in srgb, var(--g) 28%, #181A31);
    --accent: #FFC24D;
    --accent-ink: #2B1D00;
    --accent-soft: #3A2E12;
    --maybe: #D9A73A;
    --heat-0: #21243F;
    --danger: #FF7A8E;
    --c1: #8B8AFF;
    --c2: #B6A8FF;
    --c3: #6CCBF2;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #101123;
    --surface: #181A31;
    --surface-2: #21243F;
    --ink: #EEF0FF;
    --ink-2: #B3B7D6;
    --ink-3: #7E83A6;
    --line: #2C3052;
    --primary: color-mix(in srgb, var(--g) 55%, #FFFFFF);
    --primary-ink: #0E0F24;
    --primary-soft: color-mix(in srgb, var(--g) 28%, #181A31);
    --accent: #FFC24D;
    --accent-ink: #2B1D00;
    --accent-soft: #3A2E12;
    --maybe: #D9A73A;
    --heat-0: #21243F;
    --danger: #FF7A8E;
    --c1: #8B8AFF;
    --c2: #B6A8FF;
    --c3: #6CCBF2;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-optical-sizing: auto;
  min-height: 100vh; padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--ink-3); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.cap::first-letter { text-transform: uppercase; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 24px; }

/* Titres */
.title { font-size: clamp(30px, 7vw, 42px); font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; }
.title-sm { font-size: 26px; font-weight: 800; font-stretch: 85%; letter-spacing: -0.01em; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -0.005em; }
.page-head { padding: 26px 0 18px; display: grid; gap: 12px; }
.event-head { padding: 22px 0 14px; display: grid; gap: 8px; }
.place-line a { font-weight: 600; text-decoration: none; }
.place-line a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 58px; }
.spacer { flex: 1; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; font-stretch: 85%; letter-spacing: -0.01em; }
.back { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; max-width: 65vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back span { font-size: 26px; line-height: 1; margin-top: -3px; color: var(--primary); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 700; text-decoration: none; flex: 0 0 auto; }
.avatar.sm { width: 30px; height: 30px; font-size: 14px; background: var(--primary-soft); color: var(--primary); }

/* Logo */
.logo-mark { display: inline-block; flex: 0 0 auto; }
.logo-mark svg { display: block; overflow: visible; }
.logo-mark .c circle { mix-blend-mode: multiply; }
.logo-mark .c1 circle { fill: var(--c1); }
.logo-mark .c2 circle { fill: var(--c2); }
.logo-mark .c3 circle { fill: var(--c3); }
.logo-mark .core { fill: #FFBE1F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-mark .c circle { mix-blend-mode: screen; opacity: .9; }
}
:root[data-theme="dark"] .logo-mark .c circle { mix-blend-mode: screen; opacity: .9; }
.logo-mark.animated .c1 { animation: in1 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.logo-mark.animated .c2 { animation: in2 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.logo-mark.animated .c3 { animation: in3 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.logo-mark.animated .core { animation: core .5s ease-out .9s both; }
@keyframes in1 { from { transform: translate(-22px, -14px); } }
@keyframes in2 { from { transform: translate(22px, -14px); } }
@keyframes in3 { from { transform: translate(0, 24px); } }
@keyframes core { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-mark.animated * { animation: none !important; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background-color .15s, border-color .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--ink)); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--surface-2); }
.btn.danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.google { justify-self: start; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.chipbtn {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 13px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); flex: 0 0 auto;
}
.chipbtn:hover { color: var(--ink); }
.chipbtn.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Feuilles : un seul niveau de carte, les listes vivent à l'intérieur */
.sheet { background: var(--surface); border-radius: var(--radius-sheet); padding: 20px; box-shadow: var(--shadow); }
.sheet.narrow { max-width: 440px; margin: 40px auto 0; }
.sheet.center { text-align: center; justify-items: center; }
.sheet.list { padding: 4px 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
main.wrap > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.sheet.empty { display: grid; justify-items: center; }

.row-link { display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; color: var(--ink); }
.row-link + .row-link { border-top: 1px solid var(--line); }
.row-link:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-main b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--ink-3); font-size: 24px; line-height: 1; }
.pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.pill.full { background: var(--accent-soft); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.full { color: var(--accent); }
}
:root[data-theme="dark"] .pill.full { color: var(--accent); }

.create-row { display: flex; gap: 10px; }
.create-row input { flex: 1; min-width: 0; }

.member { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.member + .member { border-top: 1px solid var(--line); }
.member-name { flex: 1; font-weight: 600; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; margin-left: 6px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 4px 10px; border-radius: 8px; color: var(--ink-2); letter-spacing: 1px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 100%; z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; }
.menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop .danger { color: var(--danger); }

details.fold > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
details.fold > .sheet, details.fold > p { margin-top: 10px; }

/* Formulaires */
label.field { display: block; }
label.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-ctl);
  background: var(--surface); min-height: 46px; outline: none; font-size: 16px;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); flex: 0 0 auto; margin: 2px 0 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
label.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
label.check.privacy { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.code-input { font-size: 28px !important; letter-spacing: .35em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 15px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 24, 45, .12); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1 1 0; }
.note { background: var(--primary-soft); color: var(--ink); padding: 12px 14px; border-radius: 14px; font-size: 15px; }

/* Connexion : le seul moment animé de l'appli */
.login { min-height: 100vh; display: grid; align-content: center; gap: 28px; padding: calc(40px + env(safe-area-inset-top)) 16px 40px; max-width: 460px; margin: 0 auto; }
.login-hero { display: grid; justify-items: start; gap: 14px; }
.wordmark { font-size: clamp(48px, 13vw, 68px); font-weight: 800; font-stretch: 75%; letter-spacing: -0.035em; line-height: .95; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 30ch; }
.login-card { padding: 22px; }

/* Onglets */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid var(--line); margin-top: 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; border: 0; background: none; padding: 12px 6px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--primary); }
.tabs .count { margin-left: 4px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); }

/* Pinceaux et grilles */
.brushes { display: flex; gap: 8px; flex-wrap: wrap; }
.brush { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.brush.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch { width: 20px; height: 20px; border-radius: 7px; display: inline-block; flex: 0 0 auto; border: 1.5px solid var(--line); }
.sw-2 { background: var(--primary); border-color: var(--primary); }
.sw-1 { background: var(--maybe); border-color: var(--maybe); }
.sw-0 { background: var(--surface); }

.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.month h3 { font-size: 16px; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; user-select: none; -webkit-user-select: none; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cell {
  aspect-ratio: 1; border-radius: 11px; background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums;
  cursor: pointer; position: relative; touch-action: manipulation; transition: background-color .1s;
}
.cell.off { visibility: hidden; }
.cell.out { background: transparent; color: var(--ink-3); opacity: .45; cursor: default; }
.cell.v2 { background: var(--primary); color: var(--primary-ink); }
.cell.v1 { background: var(--maybe); color: var(--accent-ink); }
.cell.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cell .n { position: absolute; top: 3px; right: 5px; font-size: 10px; font-weight: 700; }
.cell.heat, .slot.heat { background: color-mix(in srgb, var(--primary) var(--p), var(--heat-0)); }
.cell.heat.dark, .slot.heat.dark { color: var(--primary-ink); }
.cell.best, .slot.best { box-shadow: 0 0 0 3px var(--accent); z-index: 1; }

.slotnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.slots { display: grid; gap: 3px; user-select: none; -webkit-user-select: none; }
.slots .hd { text-align: center; font-size: 13px; font-weight: 700; line-height: 1.2; padding-bottom: 4px; text-transform: capitalize; }
.slots .hd small { display: block; font-weight: 500; color: var(--ink-3); }
.slots .hr { font-size: 12px; color: var(--ink-3); text-align: right; padding-right: 4px; transform: translateY(-8px); }
.slot { height: 32px; border-radius: 7px; background: var(--surface-2); cursor: pointer; touch-action: none; position: relative; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.slot.v2 { background: var(--primary); }
.slot.v1 { background: var(--maybe); }

/* Remplissage automatique */
.dropzone {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px;
  border: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 18px;
  background: color-mix(in srgb, var(--primary-soft) 45%, transparent); cursor: pointer; transition: background-color .15s;
}
.dropzone.over, .dropzone:hover { background: var(--primary-soft); }
.dropzone b { font-size: 17px; color: var(--primary); }
.dropzone:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.saved-agenda { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.ai-panel { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.help summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.help dl { margin: 10px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.help dt { font-weight: 700; color: var(--ink); }
.help dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .help dl { grid-template-columns: 1fr; } .help dd { margin-bottom: 6px; } }
.pending { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.rules { margin: 10px 0 0; padding: 0; list-style: none; }
.rules li { padding: 4px 0 4px 18px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px; border-radius: 3px; }
.rules li.busy::before { background: var(--ink-3); }
.rules li.free::before { background: var(--primary); }
.mini-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 14px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 4px; }
.mini-cal i { aspect-ratio: 1; border-radius: 3px; background: var(--primary); }
.mini-cal i.busy { background: var(--line); }
.mini-cal i.part { background: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.mini-cal i.off { background: transparent; }

/* Résultats */
.legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.legend .ramp { display: flex; border-radius: 4px; overflow: hidden; }
.legend .ramp span { width: 16px; height: 12px; background: color-mix(in srgb, var(--primary) var(--p), var(--heat-0)); }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.legend .lg:first-child { margin-left: 0; }
.legend .lg.free { background: var(--primary); }
.legend .lg.busy { background: var(--line); }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.chip.ok::before { background: var(--primary); }
.chip.me { box-shadow: inset 0 0 0 1.5px var(--primary); }
.rank { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.rank li + li { border-top: 1px solid var(--line); }
.rank li::before { content: counter(r); font-weight: 800; font-size: 18px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank li.first::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); justify-self: center; }
.rank-label { font-weight: 600; }
.rank-label::first-letter { text-transform: uppercase; }
.score { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score b { font-size: 24px; font-weight: 800; color: var(--ink); }
.popover { position: fixed; z-index: 50; max-width: 280px; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 14px; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); display: grid; gap: 4px; }
.pop-title { font-weight: 700; }
.pop-title::first-letter { text-transform: uppercase; }

/* Lieu et activités */
.highlight { background: var(--accent-soft); border-radius: 18px; padding: 16px 18px; }
.highlight h3 { font-size: 20px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .highlight { color: var(--ink); }
}
:root[data-theme="dark"] .highlight { color: var(--ink); }
#map { height: 340px; border-radius: 16px; z-index: 0; background: var(--surface-2); }
.sugg { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 6px; background: var(--surface); }
.sugg button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 14px; cursor: pointer; }
.sugg button + button { border-top: 1px solid var(--line); }
.sugg button:hover { background: var(--surface-2); }
.list-plain > * + * { border-top: 1px solid var(--line); }
.act { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; }
.act-title { font-weight: 600; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.act-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.zone-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; margin-right: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; max-width: 320px; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.vote { min-width: 86px; }
.vote.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.venue { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.venue a { color: var(--ink); font-weight: 600; text-decoration: none; }
.zone-pin { background: none; border: 0; }
.zone-pin span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-tooltip.pin-label { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; padding: 1px 6px; box-shadow: none; }
.leaflet-tooltip.pin-label::before { display: none; }
.leaflet-popup-content { margin: 10px 12px; }

#toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { #toast, .btn, .cell { transition: none; } }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }
.foot { display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); padding: 28px 16px calc(36px + env(safe-area-inset-bottom)); }
.foot a { color: var(--ink-3); }
.linklike.tiny { font-size: 13px; color: var(--ink-3); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.btn.camera { justify-self: stretch; width: 100%; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet.narrow > .logo-mark { display: block; }
.label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.invite-bar { display: grid; gap: 10px; }
.invite-field { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.invite-field input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 36px; font-size: 14px; color: var(--ink-2); padding: 6px 12px; }
.invite-field .btn { flex: 0 0 auto; }
a.chipbtn { text-decoration: none; }

/* ---------- v4 : groupes colorés, émoji, votes en grille, photo ---------- */
body { transition: background-color .25s; }
.avatar-link { text-decoration: none; display: block; }
.avatar img, .faces img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.has-photo { background: var(--surface-2); overflow: hidden; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; }
.photo-card { display: flex; align-items: center; gap: 18px; }

/* Badge émoji d'un groupe */
.gbadge {
  --g: var(--primary);
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 14px; font-size: 22px; line-height: 1;
  background: linear-gradient(145deg, color-mix(in srgb, var(--g) 24%, #fff), color-mix(in srgb, var(--g) 46%, #fff));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 30%, transparent), 0 6px 16px -8px var(--g);
  border: 0; padding: 0;
}
.gbadge.lg { width: 52px; height: 52px; border-radius: 17px; font-size: 28px; }
.gbadge.xl { width: 68px; height: 68px; border-radius: 22px; font-size: 38px; cursor: pointer; transition: transform .15s; }
.gbadge.xl:hover { transform: rotate(-6deg) scale(1.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gbadge { background: linear-gradient(145deg, color-mix(in srgb, var(--g) 40%, #181A31), color-mix(in srgb, var(--g) 70%, #181A31)); }
}
:root[data-theme="dark"] .gbadge { background: linear-gradient(145deg, color-mix(in srgb, var(--g) 40%, #181A31), color-mix(in srgb, var(--g) 70%, #181A31)); }

/* Tuiles de groupe (accueil) */
.gtiles { display: grid; gap: 12px; }
.gtile {
  --g: var(--primary);
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: var(--radius-sheet); text-decoration: none; color: var(--ink);
  background: linear-gradient(100deg, color-mix(in srgb, var(--g) 13%, var(--surface)) 0%, var(--surface) 55%);
  box-shadow: inset 4px 0 0 var(--g), var(--shadow); transition: transform .12s;
}
.gtile:hover { transform: translateY(-1px); }
.gtile.preview { box-shadow: inset 4px 0 0 var(--g), 0 0 0 1.5px var(--line); }
.gtile-main { flex: 1; min-width: 0; display: grid; }
.gtile-main b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.btn.dashed { border-style: dashed; border-width: 2px; background: transparent; color: var(--ink-2); min-height: 56px; border-radius: var(--radius-sheet); }

/* Choix couleur + émoji */
.style-picker { display: grid; gap: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; position: relative; transition: transform .12s; box-shadow: 0 4px 10px -5px var(--c); }
.swatch-btn:hover { transform: scale(1.1); }
.swatch-btn.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--c); }
.swatch-btn.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.emoji-btn { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--surface-2); font-size: 22px; cursor: pointer; transition: transform .1s, background-color .15s; }
.emoji-btn:hover { transform: scale(1.12); }
.emoji-btn.on { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
input.emoji-custom { grid-column: span 2; min-height: 0; height: 100%; padding: 4px 8px; text-align: center; font-size: 14px; border-radius: 12px; }

/* En-tête d'un groupe */
.group-hero {
  display: flex; align-items: center; gap: 16px; margin: 18px -4px 0; padding: 18px 18px; border-radius: 26px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.group-hero-main { min-width: 0; display: grid; gap: 4px; }
.group-hero .title { font-size: clamp(26px, 6.5vw, 38px); overflow-wrap: anywhere; }
.place-link { font-weight: 600; }
.invite-card { background: var(--primary-soft); box-shadow: none; }
.invite-field { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.inline-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.inline-field select { width: auto; min-width: 86px; }

/* Interrupteur « montrer mes dispos » */
label.privacy { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
input.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background-color .2s; margin: 0; flex: 0 0 auto; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
input.switch:checked { background: var(--primary); }
input.switch:checked::after { transform: translateX(20px); }

/* Remplissage automatique replié */
details.autofill > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
details.autofill > summary::-webkit-details-marker { display: none; }
details.autofill > summary::after { content: "›"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--ink-3); transition: transform .2s; }
details.autofill[open] > summary::after { transform: rotate(90deg); }

/* Votes côte à côte */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.vcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .15s, background-color .15s; min-width: 0; }
.vcard.on { border-color: var(--primary); background: var(--primary-soft); }
.vcard.lead { box-shadow: 0 0 0 2px var(--accent); }
.vcard-top { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.vcard-top .tag { margin-left: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lead-mark { white-space: nowrap; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; }
.vcard-x { margin-left: auto; border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.vcard-x:hover { color: var(--danger); }
.vcard-title { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; flex: 1; }
.vcard .tiny a { color: inherit; }
.vcard-voters { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.faces { display: flex; }
.faces i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--primary); color: var(--primary-ink); border: 2px solid var(--surface-2); overflow: hidden; }
.faces i + i { margin-left: -7px; }
.vcard.on .faces i { border-color: var(--primary-soft); }
.vcard .bar { margin-top: 0; max-width: none; }
.vcard .vote { margin-top: 4px; }
.legal p { max-width: 65ch; }
@media (max-width: 400px) { .tabs button { font-size: 13.5px; padding: 12px 4px; } .tabs .count { font-size: 11px; } }

/* Date validée */
.meet { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-sheet); background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.meet.in { background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--primary-soft) 70%, var(--accent-soft))); }
.meet.past { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); box-shadow: var(--shadow); }
.meet-head { display: flex; align-items: center; gap: 14px; }
.meet-cal { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 58px; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); overflow: hidden; line-height: 1; }
.meet-cal small { align-self: stretch; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 0; }
.meet-cal b { font-size: 24px; font-weight: 800; padding-bottom: 6px; }
.meet-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.meet-main > b { font-size: 18px; }
.meet-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meet .faces i { border-color: var(--accent-soft); }
.btn.going { min-width: 110px; }
.btn.going.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.meet .menu summary.btn { letter-spacing: 0; padding: 6px 12px; color: var(--ink); }
.menu-pop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-pop a:hover { background: var(--surface-2); }
.rank .choose { margin-top: 8px; min-height: 32px; padding: 4px 12px; font-size: 13px; }
.rank li.chosen .rank-label { color: var(--primary); }
.rank .tag { margin: 8px 0 0; display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .meet { color: var(--ink); }
}
:root[data-theme="dark"] .meet { color: var(--ink); }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; cursor: pointer; padding: 12px 16px; border-radius: 16px; background: var(--primary-soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.next-step b { color: var(--primary); white-space: nowrap; }
.more-months { margin-top: 12px; }
.help-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; text-decoration: none; font-weight: 800; font-size: 17px; color: var(--primary); border: 1.5px solid color-mix(in srgb, var(--primary) 35%, var(--line)); background: var(--surface); }
.help-btn:hover { background: var(--primary-soft); }
.help-steps { list-style: none; margin: 0; padding: 8px 20px; counter-reset: s; }
.help-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px 0; }
.help-steps li + li { border-top: 1px solid var(--line); }
.help-steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
.help-steps b { font-size: 16px; }
.help-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-rules li { display: flex; gap: 10px; align-items: baseline; }
.center-link { justify-self: center; color: var(--ink-2); }
.help-rules li { align-items: flex-start; }
.help-rules li > span:first-child { font-size: 16px; line-height: 1.35; width: 22px; flex: 0 0 22px; text-align: center; }
.help-rules li > span.small { line-height: 1.35; }
.help-steps .small { line-height: 1.4; }
.help-rules { margin-top: 12px !important; }
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 30, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; align-items: center; justify-items: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.modal { width: 100%; max-width: 440px; animation: up .2s ease-out; }
@keyframes up { from { transform: scale(.94); opacity: 0; } }
@media (min-width: 600px) { .overlay { align-items: center; } }
.install-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* v4.3 */
.brush.clear { padding: 6px 16px; justify-content: center; color: var(--ink-2); }
.meet { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: inset 0 0 0 2px var(--primary), var(--shadow); }
.meet.in { background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), color-mix(in srgb, var(--primary) 8%, var(--surface))); }
.meet .faces i { border-color: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.meet-x { align-self: flex-start; font-size: 24px; }
.maybe-num { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px; margin: 0 3px; border: 1.5px dashed var(--maybe); border-radius: 7px; font-size: 13px; font-weight: 800; color: var(--ink); vertical-align: 4px; }
.cell .n.cond { border-bottom: 1.5px dashed currentColor; line-height: 1.1; }
.gbadge.static { cursor: default; }
.gbadge.static:hover { transform: none; }
.modal.confirm { gap: 0; text-align: center; padding: 30px 24px 24px; max-width: 400px; border-radius: 26px; }
.modal-title { font-size: 28px; font-weight: 800; font-stretch: 88%; letter-spacing: -0.01em; }
.modal .muted { max-width: 34ch; margin-left: auto; margin-right: auto; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 85%, var(--ink)); }
.modal textarea { text-align: left; }
.modal .modal-actions .btn { min-height: 50px; font-size: 16px; }

/* Barre de pinceaux qui suit l'écran */
.sticky-brushes { position: sticky; top: calc(58px + env(safe-area-inset-top) + 8px); z-index: 20; margin-left: -8px; margin-right: -8px; padding: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px -10px rgba(22, 24, 45, .35); }
.pick-list { display: grid; gap: 8px; text-align: left; margin-top: 4px; }
.gtile.pick { border: 0; cursor: pointer; font: inherit; width: 100%; }
.modal-actions.one { grid-template-columns: 1fr; }
.gtile.pick, .gtile.pick .gtile-main { text-align: left; }

/* v6 : photo de groupe et ses 3 couleurs */
.gbadge.photo { background: var(--surface-2); overflow: hidden; padding: 0; }
.gbadge.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.group-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(90% 130% at 100% 100%, color-mix(in srgb, var(--g2, var(--primary)) 24%, transparent), transparent 62%),
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--g3, var(--primary)) 18%, transparent), transparent 60%),
    var(--surface);
}
.gtile { background: linear-gradient(100deg, color-mix(in srgb, var(--g) 14%, var(--surface)) 0%, color-mix(in srgb, var(--g2, var(--g)) 9%, var(--surface)) 40%, var(--surface) 72%); }
.name-row { display: flex; align-items: center; gap: 14px; }
.name-row input { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; }
.badge-pick { position: relative; cursor: pointer; flex: 0 0 auto; }
.badge-pick .gbadge.xl { cursor: pointer; }
.badge-cam { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-prev { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); }
.pal-dots { display: flex; gap: 6px; }
.pal-dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.photo-drop { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); cursor: pointer; text-align: center; }
.photo-drop:hover { background: var(--primary-soft); }
.photo-drop-ic { font-size: 28px; }
/* Indicateur « à jour » */
.dot-ok, .dot-wait { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; background: var(--primary); }
.dot-wait { background: var(--ink-3); }
.chip.wait { color: var(--ink-2); }
.chip-wait { font-size: 12px; }
.tag.wait-tag { background: var(--accent-soft); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag.wait-tag { color: var(--accent); }
}
:root[data-theme="dark"] .tag.wait-tag { color: var(--accent); }

/* Pastilles « à faire » (pas de notification, juste un repère visuel) */
.logo-wrap, .badge-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.todo-bubble { position: absolute; top: -6px; right: -8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #E5383B; color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--bg); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.badge-wrap .todo-bubble { top: -5px; right: -5px; box-shadow: 0 0 0 2.5px var(--surface); }
.back .todo-bubble { position: static; margin-left: 6px; display: inline-block; vertical-align: 1px; }
.back .todo-bubble[hidden] { display: none; }
.tab-dot { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 5px; padding: 0 4px; border-radius: 999px; background: #E5383B; color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
@keyframes pop { from { transform: scale(0); } }
.btn.going.attn { animation: attn 1.8s ease-in-out infinite; }
@keyframes attn { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .btn.going.attn, .todo-bubble { animation: none; } }
/* Positions */
.sheet.need { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.pos-roll { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.faces.big .pos-face { position: relative; }
.faces.big i { width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--surface); }
.faces.big .pos-face + .pos-face { margin-left: -6px; }
.pos-face.missing i { filter: grayscale(1); opacity: .45; }
.pos-wait { position: absolute; right: -4px; bottom: -4px; font-size: 11px; }
.modal-ic { font-size: 40px; line-height: 1; margin-bottom: 6px; }
label.privacy.plain { box-shadow: none; padding: 0; background: none; }
.nudge-ok { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.msg-preview { text-align: left; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.btn:disabled[title] { cursor: not-allowed; }
.modal .linklike.tiny { margin-top: 12px; justify-self: center; }
.sticky-brushes { justify-content: center; }
.meet-who { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.min-line .linklike { font-weight: 600; }
.theme-seg button { white-space: nowrap; padding: 8px 6px; }
.photo-pick-side { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.photo-pick-side .tiny { margin: 0; }
.photo-change { max-width: 100%; }

/* Mentions légales tout en bas de l'écran, même quand la page est courte */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app > main { flex: 1 0 auto; width: 100%; }
#app > .foot { margin-top: auto; }

/* Plusieurs dates */
.meet { gap: 14px; }
.meet-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.meet-top > b { font-size: 18px; }
.meet-row { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.meet-row + .meet-row { margin-top: 2px; }
.meet-row.in { box-shadow: inset 0 0 0 2px var(--primary); }
.meet-row.out { opacity: .75; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.notgoing.on { background: var(--ink-3); border-color: var(--ink-3); color: var(--bg); }
.btn.choose.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.rank li.picked .rank-label { color: var(--primary); }
.pick-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; display: flex; justify-content: flex-end; gap: 8px; padding: 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -10px rgba(22, 24, 45, .45); }

/* Langue */
select.lang-select { width: auto; min-height: 0; padding: 6px 30px 6px 12px; font-size: 14px; border-radius: 999px; }
.lang-seg button { white-space: nowrap; padding: 8px 4px; }
