@import url("vendor/fonts/fonts.css");

/* Planklub — direction « Carnet » (15 nov. 2026) : papier quadrillé, encre bleue, surligneur jaune.
   Pas d'écriture manuscrite : Instrument Sans partout, le carnet passe par le papier, le surligneur et le ruban adhésif. */
:root {
  --paper: #FFFFFF;      /* fond : blanc (19 nov. 2026 : plus de bleu, blanc ou noir selon le mode) */
  --grid: transparent;   /* plus de quadrillage */
  --card: #FFFFFF;       /* feuille posée sur le carnet */
  --ink: #0B0B0B;        /* texte */
  --muted: #6E6E73;
  --line: #E7E7E9;
  --blue: #0B0B0B;       /* l'accent : noir en clair, blanc en sombre (le nom de la variable reste) */
  --blue-ink: #FFFFFF;
  --blue-deep: #000000;
  --blue-soft: #F2F2F3;
  --hl: #FFF35C;         /* surligneur */
  --hl-ink: #0B0B0B;
  --mark: #FFF35C;        /* le trait de surligneur derrière un mot */
  --tape: rgba(255, 236, 92, .72);
  --red: #D93A2B;        /* erreurs, marge du carnet */
  --ok: #1E8A5A;
  --ok-soft: #DDF3E8;
  --warn: #8A5F00;
  --warn-soft: #FFF6C2;
  --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 22px -16px rgba(0, 0, 0, .3);
  --r: 16px;
  --tabh: 58px;
  --font: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --grid: transparent; --card: #141416; --ink: #F5F5F7; --muted: #98989F; --line: #2A2A2E;
    --blue: #F5F5F7; --blue-ink: #000000; --blue-deep: #FFFFFF; --blue-soft: #1F1F22;
    --hl: #E6D63A; --mark: rgba(230, 214, 58, .32); --tape: rgba(255, 240, 140, .5); --red: #FF7A6B; --ok: #4CD69B; --ok-soft: #123A30;
    --warn: #FFD43B; --warn-soft: #3A3313; --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --grid: transparent; --card: #141416; --ink: #F5F5F7; --muted: #98989F; --line: #2A2A2E;
  --blue: #F5F5F7; --blue-ink: #000000; --blue-deep: #FFFFFF; --blue-soft: #1F1F22;
  --hl: #E6D63A; --mark: rgba(230, 214, 58, .32); --tape: rgba(255, 240, 140, .5); --red: #FF7A6B; --ok: #4CD69B; --ok-soft: #123A30;
  --warn: #FFD43B; --warn-soft: #3A3313; --shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--font);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0 0 .4em; }
h1 { font: 700 1.75rem/1.1 var(--font); letter-spacing: -.03em; }
h2 { font: 700 1.05rem/1.25 var(--font); letter-spacing: -.01em; }
a { color: var(--blue); text-underline-offset: 3px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small, small { font-size: .86rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.grow small { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
[hidden] { display: none !important; }
.pos { color: var(--ok); }
.neg { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le surligneur : sur les mots-clés des grands titres */
.hero h1 em, .create-h em, .dp-body em, .ev-title h1 {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}

.page { max-width: 560px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px 40px; }
body[data-page="e"] .page, body[data-page="c"] .page { padding-top: 16px; }
body[data-nav="1"] .page { padding-bottom: calc(var(--tabh) + 44px + env(safe-area-inset-bottom)); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 .97rem/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); box-shadow: 0 2px 0 var(--blue-deep); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; border-style: dashed; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: 14px 24px; border-radius: 14px; }
.btn.sm { min-height: 38px; padding: 6px 13px; font-size: .9rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 1.2rem var(--font); flex: none;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--ink); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn:disabled { opacity: .3; }
.icon-gap { width: 36px; flex: none; }
.link { border: 0; background: none; padding: 4px 2px; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--red); }
.btn-text { display: block; margin: 6px auto 0; border: 0; background: none; color: var(--blue); font: 600 .97rem var(--font); padding: 12px 16px; cursor: pointer; border-radius: 10px; }
.btn-text:hover { background: var(--blue-soft); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Feuilles posées sur le carnet ---------- */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 0 0 12px; }
.cards { list-style: none; padding: 0; margin: 0 0 12px; }
.cards .card { margin-bottom: 10px; }
.cards.list .card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
a.card { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.sec { margin: 28px 2px 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font: 700 1rem/1.25 var(--font); }
.sec small { font: 500 .85rem var(--font); color: var(--muted); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.pad { padding: 8px 12px; }
.card-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.card-actions .btn { padding: 10px 6px; gap: 6px; }

/* Le pense-bête : emoji d'un plan sur un carré de papier */
.note-emoji { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: var(--blue-soft); color: var(--blue); }
.note-emoji .ic { width: 24px; height: 24px; }
.note-emoji.big { width: 92px; height: 92px; border-radius: 20px; font-size: 2.8rem; }

/* ---------- Avatars ---------- */
.av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  font: 700 .82rem var(--font); background: var(--blue-soft); color: var(--blue); }
.av.c0 { background: #2340D8; color: #fff; }
.av.c1 { background: #FFF35C; color: #1E2A52; }
.av.c2 { background: #D93A2B; color: #fff; }
.av.c3 { background: #E8EDFF; color: #2340D8; }
.av.c4 { background: #1E2A52; color: #FFF35C; }
.av.c5 { background: #1E8A5A; color: #fff; }
.av.sm { width: 30px; height: 30px; font-size: .7rem; }
.av.xs { width: 24px; height: 24px; font-size: .6rem; }
.voters { display: flex; flex-wrap: wrap; margin-top: 6px; }
.voters:empty { display: none; }
.voters .av { box-shadow: 0 0 0 2px var(--card); margin-right: -5px; }
.maybe .av { opacity: .45; }
:root[data-theme="dark"] .av.c4 { box-shadow: inset 0 0 0 1.5px rgba(255, 243, 92, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av.c4 { box-shadow: inset 0 0 0 1.5px rgba(255, 243, 92, .6); } }

/* ---------- Pastilles : toujours la même taille, quel que soit le texte ---------- */
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; padding: 3px 10px; border-radius: 999px; font: 600 .76rem/1.2 var(--font);
  background: var(--blue-soft); color: var(--ink); border: 0; white-space: nowrap; flex: none; cursor: default; }
button.chip { cursor: pointer; min-height: 30px; }
.grow .chip { align-self: flex-start; margin-top: 5px; }
.chip.secret { background: #1E2A52; color: #FFF35C; }
.chip.confirmed, .chip.rs-yes { background: var(--ok-soft); color: var(--ok); }
.chip.declared, .chip.rs-maybe { background: var(--warn-soft); color: var(--warn); }
.chip.rs-wait { background: var(--blue-soft); color: var(--blue); }
.chip.rs-no, .chip.rs-pending { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.chip.rs { width: 112px; }
button.chip.rs span { font-size: .7rem; opacity: .7; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: var(--hl); font: 700 .75rem var(--font); padding: 0 7px; vertical-align: 2px; margin-left: 4px; }

/* ---------- Accueil ---------- */
.brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font: 700 1.1rem var(--font); letter-spacing: -.02em; color: var(--blue); margin: 2px 0 20px; }
.ev { padding: 12px; }
.ev strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.here { border-color: var(--blue); }
.chip.todo-n { background: var(--hl); color: var(--hl-ink); }
.new-card { border-style: dashed; box-shadow: none; background: transparent; padding: 12px; }
.new-card:hover { border-color: var(--blue); }
.proto { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 32px; }
.welcome { display: flex; flex-direction: column; min-height: 100svh; }
.hero { padding: 6px 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 14px; }
.hero p { color: var(--muted); margin: 0 0 22px; font-size: 1.06rem; max-width: 30em; }
.welcome .proto { margin-top: auto; padding-top: 24px; }

/* Le faux plan de l'accueil, scotché sur le carnet */
.demo-plan { position: relative; height: 262px; margin: 0 0 18px; }
.dp-card { position: absolute; left: 50%; top: 40px; width: 272px; margin-left: -136px; transform: rotate(-2deg); }
.dp-body { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: 0 24px 44px -26px rgba(0,0,0,.5); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.dp-body::before, .ev-plate::before, .join-top::before { content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: var(--tape); transform: rotate(-3deg); border-radius: 2px; }
.dp-head { display: flex; gap: 12px; align-items: center; }
.dp-head small { display: block; font: 600 .7rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dp-head strong { font: 700 1.1rem/1.2 var(--font); letter-spacing: -.02em; }
.dp-ppl { display: flex; align-items: center; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.dp-ppl .av { margin-right: -6px; box-shadow: 0 0 0 2px var(--card); }
.dp-ppl em { font-style: normal; font-size: .8rem; color: var(--muted); margin-left: auto; }
.bub { position: absolute; z-index: 2; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 11px; font-size: .8rem; display: inline-flex; gap: 5px; align-items: baseline; white-space: nowrap;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.5); animation: float 5s ease-in-out infinite; }
.bub b { font-weight: 700; }
.b1 { top: 0; left: 0; transform: rotate(-3deg); animation-delay: -1s; }
.b2 { top: 168px; right: 0; background: var(--hl); color: var(--hl-ink); border-color: transparent; transform: rotate(3deg); animation-delay: -2.5s; }
.b3 { bottom: 0; left: 0; transform: rotate(-1.5deg); animation-delay: -3.5s; }
@keyframes float { 50% { translate: 0 -5px; } }

/* ---------- Création ---------- */
.top { margin-bottom: 14px; }
.create-top { display: flex; align-items: center; justify-content: space-between; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; border: 0; background: none; font: 500 .95rem var(--font); padding: 8px 4px 8px 0; cursor: pointer; }
.steps { display: flex; gap: 6px; }
.steps i { width: 22px; height: 6px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--blue); }
.create-h { font-size: clamp(2rem, 9.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.045em; margin: 6px 0 12px; }
.create .lead { color: var(--muted); margin: 0 0 20px; }
.create .form { margin-top: 22px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: inherit;
  transition: transform .15s ease, border-color .15s, opacity .2s; }
.tcard:hover { border-color: var(--blue); transform: translateY(-2px); }
.tcard:active { transform: scale(.97); }
.tc-medal { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--blue-soft); }
.tcard:nth-child(3n+2) .tc-medal { background: color-mix(in srgb, var(--hl) 55%, var(--card)); }
.tcard:nth-child(3n) .tc-medal { background: color-mix(in srgb, var(--red) 14%, var(--card)); }
.tc-body { display: flex; flex-direction: column; gap: 3px; flex: 1; width: 100%; }
.tc-body strong { font: 700 1rem/1.2 var(--font); }
.tc-body small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.tc-tag { align-self: flex-start; margin-top: auto; padding-top: 6px; font: 700 .7rem var(--font); color: var(--muted); }
.tgrid.choosing .tcard:not(.picked) { opacity: .35; }
.tcard.picked { border-color: var(--blue); box-shadow: 0 0 0 3px var(--hl); }
.tgrid.enter .tcard { animation: rise .4s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i) * 35ms); }
.picked-tpl { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 14px 10px 10px; box-shadow: var(--shadow); cursor: pointer; margin: 4px 0 22px; }
.picked-tpl .note-emoji { width: 46px; height: 46px; font-size: 1.3rem; }
.picked-tpl strong { font-weight: 700; }
.picked-tpl small { color: var(--muted); font-size: .82rem; }
.pt-change { font: 600 .85rem var(--font); color: var(--blue); }
.me-line { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-size: .95rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.me-line .link { margin-left: auto; font-size: .9rem; }
fieldset.when { display: grid; gap: 12px; }
.chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.chips label { display: block !important; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 6px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: .93rem; cursor: pointer; transition: background-color .15s, color .15s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.when-poll { display: grid; gap: 10px; }
.when-poll p, .when-later { margin: 0; }
.create-go { display: grid; gap: 10px; margin-top: 6px; }
.create-go p { margin: 0; }
#opts { display: grid; gap: 10px; }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
/* Rien ne doit élargir une colonne : un champ (date, nombre) prend la place qu'on lui donne, pas plus. */
.form > *, .sheet-body > *, .row2 > *, .pk, .pk > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
.form label, .sheet label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: .93rem; }
.form label small, .sheet label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: 400 16px/1.3 var(--font); /* jamais moins de 16 px : iOS zoome sinon */
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
input[type="checkbox"], input[type="radio"] { padding: 0; min-height: 0; border-radius: 6px; box-shadow: none; }
label.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; }
label.check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--blue); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.seg { display: flex; }
.seg label { flex: 1; flex-direction: row !important; background: var(--blue-soft); padding: 4px 2px; }
.seg label:first-of-type { border-radius: 12px 0 0 12px; padding-left: 4px; }
.seg label:last-of-type { border-radius: 0 12px 12px 0; padding-right: 4px; }
.seg input, .covers input, .radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; padding: 6px 4px; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: .88rem; color: var(--muted); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.seg input:focus-visible + span, .covers input:focus-visible + span, .radio-card input:focus-visible + span { outline: 3px solid var(--blue); }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.covers legend { grid-column: 1 / -1; }
.covers label { display: block !important; }
.covers span { display: grid; place-items: center; height: 48px; border-radius: 12px; font-size: 1.45rem; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.covers input:checked + span { border-color: var(--blue); background: var(--blue-soft); }

/* ---------- Rejoindre ---------- */
.join-top { position: relative; width: 120px; margin: 24px auto 18px; padding: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.join-top .note-emoji { margin: 0 auto; }
.join .invited { margin: 0 0 4px; }
.join h1 { font-size: 2rem; margin-bottom: 8px; }
.join form { margin-top: 26px; }

/* ---------- En-tête d'un plan : une feuille scotchée ---------- */
.ev-hero { padding-top: max(12px, env(safe-area-inset-top)); }
.ev-hero .inner { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.ev-hero .ev-plate { margin-top: 18px; }
.plate-edit { position: absolute; top: 10px; right: 10px; }
.can-edit .ev-title { padding-right: 34px; }
.ev-plate { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 16px 14px; box-shadow: var(--shadow); }
.ev-title { display: flex; gap: 14px; align-items: center; }
.eyebrow { display: block; font: 600 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.ev-title h1 { font-size: 1.5rem; line-height: 1.15; margin: 0; overflow-wrap: anywhere; align-self: flex-start; }
.ev-plate .when { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: .93rem; }
.ev-plate .when .ic { width: 18px; height: 18px; color: var(--blue); }
.tutti { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); text-decoration: none; color: inherit; }
.tutti .stack { display: flex; padding-right: 8px; }
.tutti .stack .av { margin-right: -8px; box-shadow: 0 0 0 2.5px var(--card); }
.tutti .more { margin-left: 4px; font: 700 .76rem var(--font); color: var(--muted); }
.tutti small { color: var(--muted); margin-left: auto; text-align: right; }

/* ---------- Barre du bas (toute l'app) ---------- */
.appnav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
  width: min(528px, calc(100% - 20px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 5px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); }
.appnav a, .appnav .create { position: relative; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font: 600 .64rem var(--font); letter-spacing: -.01em; border-radius: 14px; border: 0; background: none; cursor: pointer; min-width: 0; }
.appnav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.appnav a:hover { color: var(--ink); }
.appnav a.on { color: var(--blue); background: color-mix(in srgb, var(--hl) 60%, transparent); }
:root[data-theme="dark"] .appnav a.on { color: var(--ink); background: var(--blue-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appnav a.on { color: var(--ink); background: var(--blue-soft); } }
.appnav .ic { width: 24px; height: 24px; }
.appnav .create { color: var(--blue); }
.appnav .create { gap: 1px; }
.appnav .create .ic { width: 32px; height: 32px; padding: 5px; border-radius: 10px; background: var(--blue); color: var(--blue-ink); stroke-width: 2.5; box-shadow: 0 2px 0 var(--blue-deep); }
.appnav .dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .66rem/18px var(--font); text-align: center; }

/* ---------- Menu du plan : flottant juste au-dessus de la barre du bas (façon Partiful) ---------- */
.evtabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--tabh) + 12px + env(safe-area-inset-bottom)); z-index: 19;
  width: min(420px, calc(100% - 44px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px;
  background: var(--ink); border-radius: 999px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.6); }
.evtabs a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 999px; color: color-mix(in srgb, var(--paper) 70%, transparent); text-decoration: none; font: 600 .82rem var(--font); }
.evtabs a .ic { width: 17px; height: 17px; }
.evtabs a:hover { color: var(--paper); }
.evtabs a.on { background: var(--hl); color: var(--hl-ink); }
body[data-page="e"] .page { padding-bottom: calc(var(--tabh) + 110px + env(safe-area-inset-bottom)); }
body[data-page="e"][data-nav="1"] .toast { bottom: calc(var(--tabh) + 84px + env(safe-area-inset-bottom)); }

/* ---------- L'affiche d'un plan (genre « Loud ») ---------- */
.th-carnet { --pbg: linear-gradient(var(--grid) 1px, transparent 1px) 0 0/22px 22px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0/22px 22px, var(--paper); --pink: var(--ink); --pglass: var(--card); --pline: var(--line); }
.th-soleil { --pbg: linear-gradient(165deg, #F2622E 0%, #D93468 50%, #5B2BD6 100%); --pink: #FFFFFF; --pglass: rgba(255,255,255,.18); --pline: rgba(255,255,255,.35); }
.th-bonbon { --pbg: linear-gradient(165deg, #FFE0F0 0%, #E7D2FF 50%, #CBE9FF 100%); --pink: #3B1F5E; --pglass: rgba(255,255,255,.55); --pline: rgba(59,31,94,.15); }
.th-lagon { --pbg: linear-gradient(165deg, #0F8FB5 0%, #1670C9 50%, #1B3FB0 100%); --pink: #FFFFFF; --pglass: rgba(255,255,255,.2); --pline: rgba(255,255,255,.35); }
.th-prairie { --pbg: linear-gradient(165deg, #FFF6B8 0%, #BFE8A0 50%, #4FB487 100%); --pink: #123A2A; --pglass: rgba(255,255,255,.5); --pline: rgba(18,58,42,.15); }
.th-nuit { --pbg: radial-gradient(circle at 80% 10%, #3A2E8F 0, transparent 55%), radial-gradient(circle at 10% 90%, #7A2E7F 0, transparent 50%), #0E1033; --pink: #FFF3C4; --pglass: rgba(255,255,255,.1); --pline: rgba(255,243,196,.22); }
.th-disco { --pbg: radial-gradient(circle at 85% 15%, #C2189B 0, transparent 45%), radial-gradient(circle at 80% 40%, #3DF2FF 0, transparent 40%), radial-gradient(circle at 50% 95%, #FFD23F 0, transparent 45%), #4A1D96; --pink: #FFFFFF; --pglass: rgba(255,255,255,.16); --pline: rgba(255,255,255,.3); }
.th-ivoire { --pbg: radial-gradient(circle at 50% 0, #FFFFFF 0, transparent 60%), linear-gradient(180deg, #F6EFE3, #EADCC6); --pink: #4A3423; --pglass: rgba(255,255,255,.6); --pline: rgba(74,52,35,.15); }
.ft-eclectique { --pfont: 800 1em/0.95 "Bricolage Grotesque", var(--font); --pcase: none; --pls: -.035em; }
.ft-classique { --pfont: italic 700 1em/1 "Fraunces", Georgia, serif; --pcase: none; --pls: -.02em; }
.ft-fantaisie { --pfont: 400 1em/1.02 "Shrikhand", var(--font); --pcase: none; --pls: -.01em; }
.ft-simple { --pfont: 700 1em/1.02 var(--font); --pcase: none; --pls: -.04em; }

.poster { position: relative; overflow: hidden; background: var(--pbg); color: var(--pink); padding-top: env(safe-area-inset-top); border-bottom: 1.5px solid var(--line); }
.poster-in { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.poster-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.poster-kicker { margin: 0; font: 700 .74rem var(--font); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.poster-kicker a { color: inherit; text-decoration: none; }
.poster-tools { display: flex; gap: 6px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pline); background: var(--pglass); color: var(--pink); font: 700 .85rem var(--font); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill-btn .ic { width: 17px; height: 17px; }
.pill-btn.round { width: 38px; padding: 0; justify-content: center; }
.poster-title { font: var(--pfont); font-size: clamp(2.5rem, 12vw, 3.6rem); letter-spacing: var(--pls); margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.poster-title.long { font-size: clamp(2rem, 9vw, 2.8rem); }
.poster-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); transform: rotate(-1.2deg); border: 4px solid rgba(255,255,255,.85); }
.poster-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-art { align-self: flex-start; width: 112px; height: 112px; border-radius: 26px; display: grid; place-items: center; font-size: 3.6rem; background: var(--pglass); border: 1.5px solid var(--pline); transform: rotate(-4deg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.poster-when { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.poster-when .ic { width: 18px; height: 18px; }
.poster .tutti { margin: 0; padding: 10px 12px; border: 1.5px solid var(--pline); border-radius: 16px; background: var(--pglass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.poster .tutti small { color: inherit; opacity: .85; }
.poster .tutti .stack .av { box-shadow: 0 0 0 2.5px rgba(255,255,255,.7); }
.join .poster { margin: calc(-1 * max(18px, env(safe-area-inset-top))) -16px 0; border-radius: 0 0 28px 28px; border: 0; }
.join .poster .poster-in { padding-top: 28px; }
.join form { margin-top: 22px; }

/* Vignette d'un plan aux couleurs de son affiche */
.poster-thumb { background: var(--pbg); background-size: cover; background-position: center; color: inherit; box-shadow: inset 0 0 0 1.5px var(--pline); }

/* Effets animés (décoratifs) */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx i { position: absolute; left: var(--x); font-style: normal; }
.fx i.c0 { --c: #FF4FD8; } .fx i.c1 { --c: #FFD23F; } .fx i.c2 { --c: #3DF2FF; } .fx i.c3 { --c: #7B4DFF; } .fx i.c4 { --c: #FF7A59; }
.fx-confettis i { top: -6%; width: 7px; height: 12px; border-radius: 2px; background: var(--c); transform: scale(var(--s)); animation: fall var(--d) linear var(--del) infinite; }
.fx-bulles i { bottom: -12%; width: calc(26px * var(--s)); height: calc(26px * var(--s)); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.08) 60%); animation: rise-up var(--d) ease-in var(--del) infinite; }
.fx-etoiles i { top: var(--y); color: #FFF3C4; font-size: calc(16px * var(--s)); animation: twinkle calc(var(--d) / 3) ease-in-out var(--del) infinite; }
.fx-coeurs i { bottom: -10%; color: #FF6FA8; font-size: calc(20px * var(--s)); animation: rise-up var(--d) ease-in var(--del) infinite; }
@keyframes fall { to { transform: translateY(560px) rotate(540deg) scale(var(--s)); } }
@keyframes rise-up { to { transform: translateY(-620px) translateX(18px); opacity: 0; } }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.6); } }

/* Feuille « L'affiche du plan » */
.pprev .poster { border-radius: 20px; border: 1.5px solid var(--line); max-height: 300px; }
.pprev .poster-in { padding: 18px 16px; }
.pprev .poster-title { font-size: 2.2rem; }
.pprev .poster-photo { max-height: 150px; }
.pprev .poster-art { width: 80px; height: 80px; font-size: 2.6rem; }
.photo-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.photo-row .btn { flex-direction: row !important; }
.pchips > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pchips label { display: block !important; }
.pchips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pchips span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: center; }
.pchips span b { font: var(--pfont, 700 1.2rem var(--font)); font-size: 1.35rem; line-height: 1; }
.pchips span small { font-size: .7rem; color: var(--muted); line-height: 1.15; }
.pchips .sw i { width: 34px; height: 34px; border-radius: 50%; background: var(--pbg); box-shadow: inset 0 0 0 1.5px var(--pline); }
.pchips input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.pchips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pchips:last-of-type > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Le plan ---------- */
.rsvp-ask { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.rsvp-ask h2 { font-size: 1.15rem; }
.rsvp-ask .seg3 { background: color-mix(in srgb, var(--blue-ink) 14%, transparent); }
.rsvp-ask .seg3 button { color: var(--blue-ink); }
.rsvp-ask .seg3 button.on { background: var(--hl); color: var(--hl-ink); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--blue-soft); border-radius: 12px; margin-top: 4px; }
.seg3 button { min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 .95rem var(--font); cursor: pointer; }
.seg3 button.on { background: var(--blue); color: var(--blue-ink); }
.starter { padding: 14px 8px 6px; }
.starter header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 6px; }
.starter h2 { margin: 0; }
.st-n { font: 700 .8rem var(--font); color: var(--muted); }
.starter ol { list-style: none; margin: 0; padding: 0; }
.starter li button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.starter li button:hover:not(:disabled) { background: var(--blue-soft); }
.starter li button:disabled { cursor: default; }
.starter strong { font-weight: 650; }
.st-dot { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; font: 700 .8rem var(--font); color: var(--muted); border: 1.5px solid var(--line); }
.starter li.next .st-dot { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.starter li.done .st-dot { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.starter li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.starter .btn-text { font-size: .85rem; color: var(--muted); padding: 8px 12px; margin-top: 2px; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.people-card { padding: 8px 14px 14px; }
.people-card .people li { min-height: 52px; border-bottom: 1px solid var(--line); }
.people-card .people li:last-child { border-bottom: 0; }
.people-card .people li.grp { min-height: 0; padding: 14px 0 4px; border-bottom: 0; }
.people-card .people li.grp:first-child { padding-top: 6px; }
.grp-head { display: flex; align-items: baseline; gap: 8px; width: 100%; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; }
button.grp-head { cursor: pointer; }
.grp-head strong { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.grp-head small { color: var(--muted); font-size: .78rem; }
.grp-head .ic { width: 15px; height: 15px; margin-left: auto; color: var(--muted); align-self: center; }
.people-card .grow strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-card .grow small { font-size: .78rem; }
.feed { list-style: none; padding: 0 2px; margin: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .93rem; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed li > span:not(.av) { flex: 1; }
.feed time { color: var(--muted); font-size: .76rem; white-space: nowrap; }

/* ---------- Profil ---------- */
.me-card { display: flex; align-items: center; gap: 14px; }
.me-card .av { width: 52px; height: 52px; font-size: 1.1rem; }
.me-card strong { font-size: 1.15rem; }
.todo { background: var(--hl); border-color: transparent; color: var(--hl-ink); }
.todo .count { background: var(--hl-ink); color: var(--hl); }
.todo ul { list-style: none; padding: 0; margin: 8px 0 0; }
.todo li a { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: inherit; text-decoration: none; border-top: 1.5px dashed rgba(0,0,0,.2); font-weight: 600; }
.todo li a span { flex: 1; }
.todo li:first-child a { border-top: 0; }
.todo.clear { background: var(--card); border-color: var(--line); color: var(--ink); }
.todo .muted { margin: 4px 0 0; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.stepper span { flex: 1; }
.stepper .icon-btn { border: 1.5px solid var(--line); color: var(--ink); border-radius: 50%; }
.stepper strong { font: 700 1.1rem var(--font); min-width: 1.5em; text-align: center; }
.danger-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 24px; }

/* ---------- Votes ---------- */
.poll header, .pot header { display: flex; gap: 10px; align-items: flex-start; }
.poll h2, .pot h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.opts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.opts li { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.opts li.lead { border-color: var(--blue); }
.opts li.win { border-color: var(--ok); background: var(--ok-soft); }
.poll.closed .opts li:not(.win) { opacity: .5; }
.opt-main { display: flex; gap: 10px; align-items: flex-start; }
.opt-main strong { font-weight: 650; }
.opt-main a { text-decoration: none; display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.opt-main a .ic { width: 14px; height: 14px; }
.score { font: 700 1.15rem var(--font); color: var(--blue); min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; }
.lead .score { background: var(--mark); border-radius: 6px; padding: 0 6px; }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; background: var(--blue-soft); border-radius: 10px; }
.tri button, .vote-btn { min-height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font: 600 .86rem var(--font); cursor: pointer; padding: 6px; }
.tri button:hover { color: var(--ink); }
.tri button.on.yes { background: var(--ok); color: #fff; }
.tri button.on.maybe { background: var(--hl); color: var(--hl-ink); }
.tri button.on.no { background: var(--ink); color: var(--paper); }
.vote-btn { background: var(--blue-soft); color: var(--ink); justify-self: start; min-width: 120px; padding: 6px 16px; }
.vote-btn.on { background: var(--blue); color: var(--blue-ink); }
.poll footer, .pot footer { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.poll footer .icon-btn, .pot footer .icon-btn { margin-left: auto; }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 8px 0; }
.poll-talk { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.poll-talk summary { font-weight: 600; font-size: .9rem; color: var(--muted); list-style: none; padding: 4px 0; }
.poll-talk summary::-webkit-details-marker { display: none; }
.poll-talk[open] summary { margin-bottom: 10px; color: var(--ink); }

/* ---------- Argent ---------- */
.pot-amount { font: 700 1.9rem/1 var(--font); letter-spacing: -.04em; margin: 16px 0 2px; font-variant-numeric: tabular-nums; }
.pot-amount small { font: 500 .9rem var(--font); color: var(--muted); letter-spacing: 0; }
.bar { position: relative; height: 10px; border-radius: 6px; background: var(--blue-soft); overflow: hidden; margin: 12px 0 8px; }
.bar span { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 6px; }
.bar span.decl { background: var(--hl); }
.mine { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
details { margin-top: 12px; border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 12px 0 2px; font-weight: 600; }
.transfers { list-style: none; padding: 0; margin: 0; }
.transfers li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.transfers li .btn { flex: none; }
.transfers li:first-child { border-top: 0; padding-top: 0; }
.transfers li.me { background: var(--blue-soft); margin: 0 -8px; padding: 12px 8px; border-radius: 12px; border-top: 0; }
.transfers li.me + li { border-top: 0; }
.transfers .grow { display: block; }
.transfers strong { font-variant-numeric: tabular-nums; }
.hint { background: var(--blue-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }
.expense .amt { font: 700 .98rem var(--font); text-align: right; display: flex; flex-direction: column; white-space: nowrap; font-variant-numeric: tabular-nums; }
.expense .amt small { font: 500 .78rem var(--font); color: var(--muted); }
.expense.transfer { opacity: .7; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.share-list li { display: flex; align-items: center; gap: 8px; }
.share-list label { flex: 1; }
.share-list input.w, .share-list input.f { width: 84px; min-height: 42px; text-align: right; flex: none; }
.share-list .calc { min-width: 72px; text-align: right; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
form[data-mode="equal"] .share-list .w, form[data-mode="equal"] .share-list .f,
form[data-mode="weighted"] .share-list .f, form[data-mode="fixed"] .share-list .w, form[data-mode="fixed"] .share-list .calc { display: none; }

/* ---------- Orga ---------- */
.sec[id] { scroll-margin-top: 16px; }
.checklist { padding: 4px 0 0; overflow: hidden; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist .pad { padding: 14px 16px; }
.trow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 16px; border-bottom: 1px solid var(--line); }
.check-btn { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--blue); background: var(--card); color: var(--blue-ink); font-weight: 800; font-size: .85rem; cursor: pointer; flex: none; padding: 0; }
.trow.done .check-btn { background: var(--blue); }
.tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; background: none; color: inherit; padding: 4px 0; cursor: pointer; font: inherit; }
.tmain strong { font-weight: 600; overflow-wrap: anywhere; }
.tmain small { color: var(--muted); font-size: .8rem; }
.tmain .free { color: var(--warn); font-weight: 600; }
.trow.done .tmain strong { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.trow > .av, .trow > .pill { flex: none; }
.pill { width: 64px; min-height: 32px; border: 1.5px dashed var(--blue); background: none; color: var(--blue); border-radius: 999px; padding: 4px 0; font: 700 .82rem var(--font); cursor: pointer; }
.trow > .av.sm { margin: 0 17px; }
.pill:hover { background: var(--blue-soft); border-style: solid; }
.add-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 16px; }
.checklist ul:has(li) + .add-row { border-top: 1px solid var(--line); }
.add-row .plus { width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1.5px solid var(--blue); background: var(--card); color: var(--blue); cursor: pointer; }
.add-row .plus.on { background: var(--blue); color: var(--blue-ink); }
.add-row .plus .ic { width: 18px; height: 18px; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 14px; }
.ideas p { margin: 0; }
.idea { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 1.5px dashed var(--blue); background: var(--card); color: var(--blue); font: 600 .86rem var(--font); cursor: pointer; }
.idea:hover { background: var(--blue-soft); border-style: solid; }
.idea .ic { width: 15px; height: 15px; }
.add-row input { flex: 1; border: 0; background: none; box-shadow: none; padding: 8px 0; min-height: 44px; }
.add-row input:focus { box-shadow: none; }
.add-row .btn { opacity: 0; pointer-events: none; transition: opacity .15s; }
.add-row:focus-within .btn { opacity: 1; pointer-events: auto; }
.hint-line { margin: -2px 2px 12px; font-size: .9rem; color: var(--warn); background: var(--warn-soft); padding: 9px 12px; border-radius: 10px; }
.ride header, .room header { display: flex; align-items: center; gap: 10px; }
.ride header strong, .room header strong { font-weight: 650; }
.seats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seat { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.seat .av.sm { width: 36px; height: 36px; font-size: .78rem; }
.seat.vacant { border: 2px dashed var(--line); }
.seat.vacant.bed { border-radius: 10px; }
.seat.driver i { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: .75rem; background: var(--card); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.room { margin: 0; display: flex; flex-direction: column; padding: 12px; }
.room header { min-height: 36px; align-items: flex-start; }
.room header small { font-size: .78rem; }
.room .seats { margin: 8px 0 12px; flex: 1; align-content: flex-start; }
.room.mine { border-color: var(--blue); }
.infos { padding: 4px 0; }
.infos ul { list-style: none; margin: 0; padding: 0; }
.infos li { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); }
.infos li:last-child, .trow:last-child { border-bottom: 0; }
.infos .grow small { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; }
.infos code { font: 700 1.05rem var(--font); letter-spacing: .08em; }
.glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.1rem; flex: none; }

/* ---------- Feuilles en bas d'écran ---------- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: hidden; border-radius: 24px 24px 0 0;
  background: var(--card); color: var(--ink); box-shadow: 0 -10px 50px rgba(0,0,0,.3); }
.sheet::backdrop { background: rgba(16, 22, 47, .5); }
.sheet[open] { animation: up .28s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes up { from { transform: translateY(60px); opacity: .3; } }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 24px; } }
.sheet form { display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh; }
.sheet header { display: flex; align-items: center; padding: 18px 18px 6px; }
.sheet header h2 { flex: 1; margin: 0; font-size: 1.2rem; }
.sheet .x { border: 0; background: var(--blue-soft); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: none; }
.sheet-body { padding: 10px 18px 16px; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sheet-body p { margin: 0; }
.sheet footer { padding: 12px 18px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.linkbox { padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--paper); font-size: .9rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.orow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opt-rows { display: grid; gap: 8px; }
.radios { display: grid; gap: 8px; }
.radio-card { position: relative; }
.radio-card span { display: flex; flex-direction: column; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.radio-card input:checked + span { border-color: var(--ok); background: var(--ok-soft); }
.menu { display: grid; gap: 8px; }

/* ---------- Messages ---------- */
.toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: var(--paper); padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem;
  max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.3); transition: opacity .3s, transform .3s; animation: pop .25s ease-out; }
@keyframes pop { from { transform: translate(-50%, 12px); opacity: 0; } }
body[data-nav="1"] .toast { bottom: calc(var(--tabh) + 30px + env(safe-area-inset-bottom)); }
.toast.bad { background: var(--red); color: #fff; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }

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

/* ---------- Commentaires & réactions ---------- */
.talk { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.talk > li { display: flex; gap: 10px; align-items: flex-start; }
.talk .bubble { flex: 1; min-width: 0; background: var(--blue-soft); border-radius: 4px 14px 14px 14px; padding: 9px 13px 8px; }
.talk .bubble p { margin: 0; font-size: .94rem; overflow-wrap: anywhere; }
.talk .bubble p:first-child { font-size: .84rem; margin-bottom: 2px; }
.talk time { color: var(--muted); font-size: .74rem; margin-left: 4px; }
.talk .chip.secret { min-height: 0; padding: 1px 6px; font-size: .7rem; }
.empty-talk { display: block !important; font-size: .92rem; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.react, .pick summary { display: inline-flex; align-items: center; justify-content: center; gap: 3px; line-height: 1; min-width: 44px; min-height: 28px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 3px 9px; font: 600 .8rem var(--font); color: var(--ink); cursor: pointer; }
.react.on { box-shadow: inset 0 0 0 1.5px var(--blue); }
.pick { position: relative; display: inline-flex; margin: 0; border: 0; }
.pick summary { list-style: none; color: var(--muted); }
.pick summary::-webkit-details-marker { display: none; }
.pick[open] summary { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.pick > span { position: absolute; z-index: 5; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; background: var(--card); border-radius: 999px; padding: 4px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.pick > span button { border: 0; background: none; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.pick > span button:hover { background: var(--blue-soft); }
.reacts .del { margin-left: auto; color: var(--muted); font-size: .76rem; text-decoration: none; padding: 4px 0; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { min-height: 46px; }
.inline-add .btn { width: 46px; min-height: 46px; padding: 0; flex: none; }
.say label.check { margin-top: 10px; font-size: .88rem; }

/* ---------- Bilan ---------- */
.sub { margin: 0 0 6px; }
.bilan-teaser { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bilan-teaser .grow small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.bilan-teaser .score-big { font: 700 1.35rem/1 var(--font); color: var(--hl); white-space: nowrap; }
.bilan-teaser.soon { background: transparent; border-style: dashed; box-shadow: none; color: var(--ink); margin-top: 24px; }
.bilan-teaser.soon .grow small { color: var(--muted); }
.bilan-teaser .big { font-size: 1.4rem; }
.bilan-wait .big { font-size: 1.9rem; }
.bilan-wait { text-align: center; padding: 28px 20px; }
.bilan-wait p { margin: 0 0 16px; }
.rating-head { text-align: center; padding: 6px 0 14px; }
.rating-head p { margin: 6px 0 0; font-size: .9rem; }
.laurel { display: inline-flex; flex-direction: column; align-items: center; position: relative; padding: 0 46px; }
.laurel::before, .laurel::after { content: "🌿"; position: absolute; top: 4px; font-size: 2.2rem; }
.laurel::before { left: 0; transform: scaleX(-1); }
.laurel::after { right: 0; }
.laurel strong { font: 700 3.3rem/1 var(--font); letter-spacing: -.05em; }
.laurel span { font: 700 .85rem var(--font); color: var(--blue); margin-top: 4px; }
.crits { list-style: none; padding: 14px 0 4px; margin: 0 0 14px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.crits li { display: grid; grid-template-columns: minmax(0, 1fr) 26% 1.8em; gap: 10px; align-items: center; font-size: .92rem; }
.crits .bar { height: 5px; margin: 0; }
.crits .bar i { display: block; height: 100%; background: var(--blue); border-radius: 9px; }
.crits b { text-align: right; font-variant-numeric: tabular-nums; }
.stars-ro { color: var(--blue); letter-spacing: 1px; white-space: nowrap; font-size: .95rem; }
.stars-ro i { font-style: normal; color: var(--line); }
.review header { display: flex; gap: 12px; align-items: center; }
.review p { margin: 10px 0 0; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.award { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.award.has { border-color: var(--blue); }
.aw-emoji { font-size: 1.9rem; line-height: 1; }
.award h3 { margin: 0; font: 700 .9rem/1.2 var(--font); }
.aw-win { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; min-height: 30px; }
.aw-win .av + .av { margin-left: -12px; box-shadow: 0 0 0 2px var(--card); }
.award select { margin-top: auto; min-height: 42px; padding: 6px 10px; }
.stars { border: 0; padding: 0; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars legend { float: left; font-weight: 600; font-size: .93rem; padding: 0; margin: 0; }
.stars > div { display: flex; flex-direction: row-reverse; gap: 2px; }
.stars label { cursor: pointer; display: block !important; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label span { display: block; font-size: 1.7rem; line-height: 1; color: var(--line); padding: 2px; }
.stars label:has(input:checked) span, .stars label:has(input:checked) ~ label span { color: var(--blue); }
.stars label:hover span, .stars label:hover ~ label span { color: color-mix(in srgb, var(--blue) 60%, var(--line)); }
.stars input:focus-visible + span { outline: 2px solid var(--blue); border-radius: 6px; }

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

/* ---------- Plans, communautés, profil ---------- */
.home-h { font-size: clamp(2rem, 9vw, 2.5rem); letter-spacing: -.04em; margin: 0 0 18px; }
.home-h em { font-style: normal; background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .08em; }
.ev-com { color: var(--blue) !important; font-weight: 600; }
.cards.past .card { opacity: .72; box-shadow: none; }
.empty-card { text-align: center; padding: 22px 18px; }
.empty-card p { margin: 0 0 6px; }
.empty-card .btn { margin-top: 10px; }
.welcome-alt { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.welcome-alt .btn-text { margin: 6px 0 0; text-decoration: none; }
.com-desc { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.ev-plate .card-actions { margin-top: 14px; }
.eyebrow a { color: var(--blue); text-decoration: none; }
.create-pick { display: grid; gap: 10px; }
.create-pick .card { margin: 0; }
.todo li a span small { display: block; font-weight: 500; font-size: .8rem; opacity: .75; }

/* ---------- Calendrier ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head .home-h { margin: 0; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav .icon-btn { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px 10px; margin-top: 16px; }
.cal-grid b { text-align: center; font-size: .72rem; color: var(--muted); padding-bottom: 4px; }
.cal-grid :is(span, a) { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 44px; padding-top: 6px; border-radius: 10px; }
.cal-grid :is(span, a) i { font-style: normal; font-weight: 600; font-size: .9rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-grid .today i { background: var(--blue); color: var(--blue-ink); }
.cal-grid .has { background: var(--blue-soft); }
.cal-grid em { display: flex; gap: 2px; }
.cal-grid u { width: 7px; height: 7px; border-radius: 50%; background: var(--pbg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cal-grid :is(span, a) i { font-variant-numeric: tabular-nums; text-align: center; }
.cal-grid :is(span, a) { justify-content: flex-start; }

/* Logements : ils réunissent des chambres */
.lodging { margin: 0 0 14px; padding: 12px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.lodging-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lodging-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.lodging-head small a { color: inherit; }
.lodging .rooms { margin-bottom: 10px; }
.lodging > p { margin: 0 0 10px; }

/* Lisibilité : texte clair sur fond coloré (contraste WCAG) */
.th-soleil, .th-lagon, .th-disco, .th-nuit { --pshadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 14px rgba(0,0,0,.25); }
.poster-title, .poster-when, .poster-kicker { text-shadow: var(--pshadow, none); }
/* Zone tactile du lien de communauté sur l'affiche */
.poster-kicker a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin-left: -12px; border-radius: 999px; }
.poster-kicker a:hover { background: var(--pglass); }
/* Barre du bas : la colonne « Communautés » un peu plus large, « Créer » plus étroite */
.appnav { grid-template-columns: repeat(5, 1fr); }
.appnav a, .appnav .create { font-size: .66rem; }

/* Création d'un événement : tout tient sur un écran de téléphone (demande d'Alexis, 15 nov. 2026). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.create .create-h { margin: 2px 0 10px; font-size: clamp(1.8rem, 8.4vw, 2.3rem); }
.tgrid { gap: 8px; }
.tcard { flex-direction: row; align-items: center; gap: 9px; padding: 8px 9px; min-height: 60px; }
.tc-medal { width: 38px; height: 38px; flex: none; font-size: 1.2rem; border-radius: 10px; }
.tc-body { gap: 1px; min-width: 0; }
.tc-body strong { font-size: .92rem; }
.tc-body small { font-size: .74rem; line-height: 1.25; }
.picked-tpl { padding: 6px 12px 6px 6px; margin: 2px 0 14px; }
.picked-tpl .note-emoji { width: 36px; height: 36px; font-size: 1.1rem; }
.create .form { margin-top: 0; gap: 12px; }
.create .form label { gap: 5px; }
.create .form input, .create .form select { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
.create .form small.shh { font-size: .8rem; }
.create .me-line { padding: 0 2px; background: none; border: 0; font-size: .9rem; color: var(--muted); }
.create .me-line strong { color: var(--ink); }
.create fieldset.when { gap: 8px; }
.create .chips span { min-height: 44px; }
.create .create-go { position: sticky; bottom: 0; margin: 4px -16px -40px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 75%, transparent); z-index: 5; }
.create fieldset.when { grid-template-columns: minmax(0, 1fr); }
.create .chips { grid-auto-columns: minmax(0, 1fr); }
.create .row2, .create .drow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.create .row2 > *, .create .drow > * { min-width: 0; }
.chips label > span { height: 100%; box-sizing: border-box; }
.rsvp-ask .rsvp-note { margin: 4px 0 10px; font-size: .88rem; color: inherit; opacity: .92; }

/* Tirage au sort des cadeaux */
.draw header { display: flex; gap: 12px; align-items: flex-start; }
.draw header h2 { font-size: 1.1rem; margin: 0; }
.draw header small { color: var(--muted); }
.draw-ic { font-size: 1.6rem; line-height: 1; }
.draw-note { margin: 10px 0 0; font-size: .95rem; }
.draw-note.warn, .sheet .draw-note.warn { color: var(--red); }
.draw-secret { display: grid; gap: 4px; justify-items: center; text-align: center; width: 100%; margin-top: 12px; padding: 18px 14px; border-radius: 14px; border: 2px dashed var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--card)); color: var(--ink); font: inherit; cursor: pointer; }
.draw-secret span { font-size: 1.6rem; }
.draw-secret small { color: var(--muted); }
.draw-reveal { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: 12px; padding: 16px 14px; border-radius: 14px; background: color-mix(in srgb, var(--mark) 45%, var(--card)); }
.draw-reveal .eyebrow { margin: 0; }
.draw-name { font-size: 1.6rem; font-weight: 800; margin: 0; }
.draw-wish { margin: 4px 0 0; font-size: .95rem; }
.draw .card-actions { margin-top: 12px; }

/* Profil : mes données et pages légales */
.data-card .btn { margin-top: 10px; width: 100%; justify-content: center; }
.btn.danger-line { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
nav.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 24px; }
nav.legal a { color: var(--muted); font-size: .88rem; font-weight: 600; padding: 8px 0; }


/* ---------- Sélecteur de date (façon Partiful) ---------- */
.dt-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dt-label { font-weight: 600; font-size: .93rem; }
.dt-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font: 400 16px/1.3 var(--font); text-align: left; cursor: pointer; }
.dt-btn.set { color: var(--ink); font-weight: 600; }
.dt-btn .ic { flex: none; color: var(--blue); }
.dt-btn .ic:last-child { color: var(--muted); }
.dt-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-btn:hover, .dt-btn:focus-visible { border-color: var(--blue); }
.drow + .drow { margin-top: 10px; }
#opts { margin-bottom: 10px; }
.pk { display: flex; flex-direction: column; gap: 12px; }
.pk-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-ends button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pk-ends button small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.pk-ends button small i { font-style: normal; font-weight: 400; }
.pk-ends button b { font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-ends button.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.pk-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pk-quick button { min-height: 40px; padding: 4px 2px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--blue-soft); color: var(--ink); font: 600 .8rem/1.15 var(--font); cursor: pointer; }
.pk-month { display: flex; align-items: center; justify-content: space-between; }
.pk-month strong { font-size: 1.05rem; }
.pk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.pk-grid b { font-size: .75rem; color: var(--muted); padding: 4px 0; }
.pk-grid button { position: relative; height: 40px; border: 0; background: transparent; color: var(--ink); font: 500 .98rem var(--font); cursor: pointer; border-radius: 0; padding: 0; }
.pk-grid button.past { color: var(--muted); opacity: .55; }
.pk-grid button.today { font-weight: 800; color: var(--blue); }
.pk-grid button.mid { background: var(--blue-soft); }
.pk-grid button.from, .pk-grid button.to { color: var(--blue-ink); font-weight: 700; opacity: 1; z-index: 0; }
.pk-grid button.from::before, .pk-grid button.to::before { content: ''; position: absolute; inset: 1px 3px; border-radius: 12px; background: var(--blue); z-index: -1; }
.pk-grid button.from:has(~ .mid), .pk-grid button.from:has(~ .to) { background: linear-gradient(90deg, transparent 50%, var(--blue-soft) 50%); }
.pk-grid button.to { background: linear-gradient(90deg, var(--blue-soft) 50%, transparent 50%); }
.pk-grid button.from.to { background: transparent; }
.pk-grid button:not(.from):not(.to):hover { background: var(--blue-soft); border-radius: 12px; }
.pk-t-label { margin: 0 0 6px; font-weight: 600; font-size: .93rem; }
.pk-t-label small { font-weight: 400; color: var(--muted); }
.pk-times { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.pk-times button { flex: none; min-width: 68px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 .9rem var(--font); font-variant-numeric: tabular-nums; cursor: pointer; scroll-snap-align: center; }
.pk-times button.on { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.pk-clear { align-self: center; }

/* ---------- Détails de l'événement et options ---------- */
.details:empty { display: none; }
.det-desc { margin: 0 0 12px; }
.det { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.det li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.det .glyph { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); font-size: 1.05rem; }
.det .grow { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.det small { font-size: .78rem; }
.add-extras { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.add-extras p { margin: 0 0 8px; }
.add-extras div { display: flex; flex-wrap: wrap; gap: 6px; }
.xchip { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 6px 12px 6px 9px; border-radius: 99px; border: 1.5px dashed var(--line); background: transparent; color: var(--ink); font: 600 .85rem var(--font); cursor: pointer; }
.xchip .ic { width: 14px; height: 14px; color: var(--blue); }
.xchip:hover { border-color: var(--blue); border-style: solid; }
.chips.five { grid-auto-columns: 1fr; }
.chips.five span { padding: 8px 2px; font-size: .88rem; }
.sheet-sec { margin: 8px 0 -4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cohosts { border: 0; padding: 0; margin: 0; min-width: 0; }
.cohosts legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: 6px; }
.cohosts legend small { display: block; font-weight: 400; color: var(--muted); }
.cohosts .people { margin: 0; }

/* ---------- Orga : une rubrique à la fois ---------- */
.prep-line { display: flex; align-items: center; gap: 12px; margin: 0 2px 12px; font-size: .9rem; color: var(--muted); }
.prep-line strong { color: var(--ink); font-size: 1rem; }
.prep-line .bar { flex: 1; height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; display: block; }
.prep-line .bar span { display: block; height: 100%; background: var(--ok); border-radius: 9px; }
.otiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.otiles.four { grid-template-columns: repeat(2, 1fr); }
.otile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.otile .ot-ic { font-size: 1.3rem; line-height: 1; margin-bottom: 4px; }
.otile strong { font-size: .95rem; }
.otile small { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.otile small.warn { color: var(--red); }
.otile.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue) inset; }
.otile .dot { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: var(--blue-ink); font: 700 .72rem/20px var(--font); text-align: center; }
.osec > .btn.wide { margin-top: 4px; }
.beds-line { margin: 0 2px 12px; font-size: .93rem; font-weight: 600; }
.beds-line.warn { color: var(--red); }
.beds-line.ok { color: var(--ok); }
.pk-ends button.next { border-style: dashed; border-color: var(--blue); }
.nowrap { white-space: nowrap; }

/* ---------- Communauté : onglets, annonce, anniversaires, prochain événement, votes ---------- */
.ctabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 4px 0 16px; padding: 4px; border-radius: 16px; background: var(--blue-soft); }
.ctabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 52px; padding: 6px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 .74rem var(--font); cursor: pointer; }
.ctabs button .ic { width: 20px; height: 20px; }
.ctabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.ctabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctabs .dot { position: absolute; top: 3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: var(--blue-ink); font: 700 .68rem/18px var(--font); }
.pinned { border-color: var(--hl); box-shadow: inset 4px 0 0 var(--hl), var(--shadow); }
.pinned .eyebrow { margin: 0 0 6px; }
.pinned .pre { margin: 0 0 6px; }
.pinned .link { display: block; margin-top: 6px; }
.bday-ask { display: flex; align-items: center; gap: 12px; }
.bday-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hl) 55%, var(--card)); font-size: 1.4rem; }
.bday-ask .grow { min-width: 0; display: flex; flex-direction: column; }
.bday-ask small { font-size: .82rem; }
.next-ev .eyebrow { margin: 0 0 10px; }
.next-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-bottom: 12px; }
.next-head .grow { min-width: 0; display: flex; flex-direction: column; }
.next-head strong { font-size: 1.12rem; }
.next-head .note-emoji.big { width: 64px; height: 64px; font-size: 2rem; flex: none; }
.ev-rep { color: var(--blue) !important; font-weight: 600; }
.bdays ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.bdays li { display: flex; align-items: center; gap: 10px; }
.bdays .grow { min-width: 0; display: flex; flex-direction: column; }
.bdays .btn { margin-top: 8px; }
.cpoll header { margin-bottom: 10px; }
.cpoll h2 { margin: 0 0 2px; font-size: 1.05rem; }
.cpoll ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cpoll li { display: flex; gap: 8px; align-items: center; }
.copt { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 .95rem var(--font); text-align: left; cursor: pointer; overflow: hidden; }
.copt-bar { position: absolute; inset: 0 auto 0 0; background: var(--blue-soft); z-index: 0; transition: width .25s; }
.copt-txt, .copt b { position: relative; z-index: 1; }
.copt-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copt b { font-variant-numeric: tabular-nums; }
.copt.on { border-color: var(--blue); }
.copt.win { border-color: var(--ok); }
.copt:disabled { cursor: default; }
.cpoll footer { margin-top: 10px; }
.chips.two { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.when.rep { margin-top: 14px; }
.rep-help { margin: 8px 0 0; }
.bday-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.bday-field legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: 7px; }
.bday-field legend small { display: block; font-weight: 400; color: var(--muted); }
.invite-all span { font-size: .93rem; }

/* ---------- Transports ---------- */
.ride header { display: flex; align-items: center; gap: 10px; }
.ride .grow { min-width: 0; display: flex; flex-direction: column; }
.ride-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); font-size: 1.25rem; }
.ride-ref { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font: 700 .78rem var(--font); vertical-align: 1px; white-space: nowrap; }
.ride-ppl { display: flex; align-items: center; margin-top: 10px; }
.ride-ppl .av { margin-right: -6px; box-shadow: 0 0 0 2px var(--card); }
.ride-ppl small { margin-left: 14px; color: var(--muted); font-size: .82rem; }
.chips.modes span { flex-direction: column; gap: 2px; min-height: 58px; font-size: .78rem; }
.chips.modes span b { font-size: 1.2rem; line-height: 1; }

/* ---------- Affiche : compte à rebours, itinéraire ---------- */
.countdown { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: .8rem; font-weight: 700; white-space: nowrap; backdrop-filter: blur(4px); }
.poster-loc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 6px 0 0; padding: 6px 12px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: inherit; font: 600 .9rem var(--font); cursor: pointer; text-align: left; }
.poster-loc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-loc small { flex: none; opacity: .8; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.link.addr { padding: 0; text-align: left; }
.det-cal { margin-top: 14px; }

/* ---------- Programme, questions, repas, budget ---------- */
.program ol, .meals ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.program li, .meals li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.program .grow { min-width: 0; display: flex; flex-direction: column; }
.prog-day { margin: 4px 0 8px; font: 700 .78rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prog-day:not(:first-child) { margin-top: 14px; }
.prog-t { flex: none; min-width: 56px; padding: 3px 0; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font: 700 .82rem var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.answers ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.answers li small { display: block; color: var(--muted); }
.answers.ask { border-color: var(--blue); }
.ans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ans-q + .ans-q { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.ans-q header { display: flex; align-items: center; gap: 8px; }
.ans-q header strong { flex: 1; min-width: 0; }
.ans-q header small { color: var(--muted); }
.ans-q li b { margin-right: 4px; }
.xideas { display: flex; flex-wrap: wrap; gap: 6px; }
.relance { margin-top: 10px; }
.meal-slot { flex: none; min-width: 72px; padding: 4px 0; border-radius: 8px; background: color-mix(in srgb, var(--hl) 45%, var(--card)); font: 700 .78rem var(--font); text-align: center; margin-top: 2px; }
.meals .tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.meals .tmain small { color: var(--muted); font-size: .82rem; }
.pill.on { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.budget .eyebrow { margin: 0 0 4px; }
.budget ul { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.budget li { display: flex; align-items: center; gap: 8px; }
.budget li small { color: var(--muted); }
.budget-add { margin-bottom: 12px; }

/* ---------- Logo et page d'accueil (18 nov. 2026) ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); }
.logo img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .4); }
.wordmark { font: 800 1.5rem/1 "Bricolage Grotesque", var(--font); letter-spacing: -.045em; }

/* Icônes des types (à la place des emojis) */
.tc-medal .ic, .note-emoji .ic { width: 24px; height: 24px; color: var(--blue); }
.tcard .tc-medal, .tcard:nth-child(3n+2) .tc-medal, .tcard:nth-child(3n) .tc-medal { background: var(--blue-soft); }
.tcard:hover .tc-medal { background: var(--blue); }
.tcard:hover .tc-medal .ic { color: var(--blue-ink); }
.poster-thumb .ic { color: var(--pink); }
.poster-art .ic { width: 54px; height: 54px; stroke-width: 1.6; color: var(--pink); }
.pprev .poster-art .ic { width: 40px; height: 40px; }
.bub .ic { width: 15px; height: 15px; align-self: center; }

.landing { --cheese: #FFF35C; --pot: #D93A2B; --brand: #2340D8; overflow-x: clip; }
.l-wrap { max-width: 560px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.l-hero { background: var(--brand); color: #fff; padding: max(14px, env(safe-area-inset-top)) 0 34px; border-radius: 0 0 32px 32px;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.l-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 18px; }
.l-top .logo { color: #fff; }
.l-top .logo img { box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.l-ex { font: 600 .92rem var(--font); color: #fff; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.l-ex:hover { background: rgba(255,255,255,.2); }
.l-pitch h1 { font: 800 clamp(2.7rem, 13vw, 4.4rem)/.95 "Bricolage Grotesque", var(--font); letter-spacing: -.05em; margin: 0 0 16px; }
.l-pitch h1 em { font-style: normal; color: var(--cheese); }
.l-pitch > p { font-size: 1.08rem; line-height: 1.45; margin: 0 0 24px; color: rgba(255,255,255,.86); max-width: 26em; }
.l-cta { white-space: nowrap; font-size: clamp(.95rem, 4.4vw, 1.05rem); padding-left: 18px; padding-right: 18px; background: var(--cheese); color: #1E2A52; border-color: var(--cheese); box-shadow: 0 3px 0 #C9B800; width: 100%; justify-content: center; font-weight: 700; }
.l-cta:hover { background: #FFF78A; border-color: #FFF78A; }
.l-pitch > .l-free { text-align: center; font-size: .86rem; line-height: 1.3; color: rgba(255,255,255,.7); margin: 22px 0 0; }
.l-hero .demo-plan { margin: 40px 0 0; }
.l-hero .b1, .l-hero .b3 { left: 4px; }
.l-hero .b2 { right: 4px; }
.l-hero .bub.b2 { background: var(--cheese); }

.l-sec { padding-top: 44px; }
.l-h { font: 800 clamp(1.7rem, 7.5vw, 2.3rem)/1 "Bricolage Grotesque", var(--font); letter-spacing: -.045em; margin: 0 0 20px; color: var(--ink); }
.l-h em { font-style: normal; color: var(--pot); }
.l-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.l-steps li { counter-increment: st; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: start; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.l-steps li::before { content: counter(st); grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 800 1.35rem/1 "Bricolage Grotesque", var(--font); }
.l-steps strong, .l-feats strong { font: 700 1.05rem/1.25 var(--font); letter-spacing: -.01em; }
.l-steps span, .l-feats li > span:last-child { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.l-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.l-feats li { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.l-emo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 8px; }
.l-feats li:nth-child(3n+2) .l-emo { background: color-mix(in srgb, var(--cheese) 60%, var(--card)); color: #1E2A52; }
.l-feats li:nth-child(3n) .l-emo { background: color-mix(in srgb, var(--pot) 15%, var(--card)); color: var(--pot); }
.l-types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.l-types li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: .92rem; font-weight: 600; }
.l-types .ic { width: 18px; height: 18px; color: var(--blue); }
.l-note { color: var(--muted); margin: 18px 0 0; font-size: .95rem; }
.l-end { margin-top: 48px; background: var(--pot); color: #fff; border-radius: 28px; padding: 30px 22px 24px; text-align: center; position: relative; overflow: hidden; }
.l-end img { width: 72px; height: 72px; border-radius: 20px; transform: rotate(-6deg); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.l-end h2 { font: 800 2.4rem/1 "Bricolage Grotesque", var(--font); letter-spacing: -.05em; margin: 16px 0 8px; }
.l-end p { margin: 0 0 20px; color: rgba(255,255,255,.88); }
.l-end .l-cta { box-shadow: 0 3px 0 #A8281C; }
.l-foot { padding-top: 36px; padding-bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; }
.l-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 12px 0; font-size: .9rem; }
.l-foot .muted { font-size: .8rem; }
@media (min-width: 440px) { .l-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .l-hero .l-wrap { max-width: 1040px; }
  .l-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .l-cta { width: auto; }
  .l-pitch > .l-free { text-align: left; }
  .l-wrap:not(.l-hero .l-wrap) { max-width: 760px; }
  .l-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Pictos 3D sur mesure (19 nov. 2026) : grands formats ; les petites icônes restent au trait */
.p3d { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.tc-medal:has(.p3d), .tcard .tc-medal:has(.p3d), .tcard:nth-child(3n+2) .tc-medal:has(.p3d), .tcard:nth-child(3n) .tc-medal:has(.p3d) { background: none; width: 54px; height: 54px; }
.tcard:hover .tc-medal:has(.p3d) { background: none; transform: scale(1.08) rotate(-4deg); }
.tc-medal { transition: transform .2s ease; }
.note-emoji:has(.p3d) { padding: 5px; }
.picked-tpl .note-emoji:has(.p3d), .dp-head .note-emoji:has(.p3d) { background: var(--blue-soft); }
.poster-art:has(.p3d) { padding: 10px; }
.l-emo:has(.p3d) { width: 64px; height: 64px; background: none !important; margin: -4px 0 6px -4px; }
.ot-ic:has(.p3d) { width: 34px; height: 34px; margin-bottom: 6px; }
.aw-emoji:has(.p3d) { width: 56px; height: 56px; margin: 0 auto; }
@media (max-width: 420px) { .tc-medal:has(.p3d) { width: 44px; height: 44px; } }
.p3d.inl { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.33em; }
.covers span:has(.p3d) { padding: 5px; }
.covers span .p3d { width: 36px; height: 36px; }
.bday-ic:has(.p3d) { background: none; padding: 2px; }
.bilan-teaser .big:has(.p3d) { width: 44px; height: 44px; flex: none; }
.bilan-wait .big:has(.p3d) { width: 64px; height: 64px; margin: 0 auto 6px; }

/* ---------- Blanc ou noir selon le mode, plus de bleu (demande d'Alexis, 19 nov. 2026) ---------- */
body { background-image: none; }
.av.c0 { background: #0B0B0B; color: #fff; }
.av.c3 { background: #F2F2F3; color: #0B0B0B; }
.av.c4 { background: #5B5B60; color: #FFF35C; }
.chip.secret { background: #0B0B0B; color: #FFF35C; }
:root[data-theme="dark"] .av.c0 { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av.c0 { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); } }
.logo { color: var(--ink); }
.logo img { border-radius: 0; box-shadow: none; }
.landing { --brand: var(--ink); --cheese: #FFF35C; }
.l-hero { background: none; color: var(--ink); border-radius: 0; padding-bottom: 10px; }
.l-top .logo { color: var(--ink); }
.l-top .logo img { box-shadow: none; }
.l-ex { color: var(--ink); background: transparent; border-color: var(--line); }
.l-ex:hover { background: var(--blue-soft); }
.l-pitch h1 em { color: inherit; background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.l-pitch > p { color: var(--muted); }
.l-pitch > .l-free { color: var(--muted); }
.l-cta, .l-end .l-cta { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.l-cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.l-steps li::before { background: var(--ink); color: var(--paper); }
.l-h em { color: inherit; background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.l-end { background: var(--blue-soft); color: var(--ink); }
.l-end p { color: var(--muted); }
.l-end img { border-radius: 0; box-shadow: none; transform: none; }
.l-hero .bub.b2 { background: var(--hl); color: var(--hl-ink); }

/* ---------- Réglages du Profil (19 nov. 2026) : listes façon iOS ---------- */
.setlist { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.setlist li + li { border-top: 1px solid var(--line); }
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.setrow:hover { background: var(--blue-soft); }
.setrow.static { cursor: default; } .setrow.static:hover { background: none; }
.setrow > .ic:first-child { color: var(--muted); }
.setrow .grow { font-weight: 600; }
.setrow .grow small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.3; margin-top: 1px; }
.setrow > .ic:last-child { color: var(--muted); width: 18px; height: 18px; }
.setval { color: var(--muted); font-size: .9rem; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setrow.danger, .setrow.danger > .ic:first-child { color: var(--red); }
.setcard { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.setcard .seg { border: 0; padding: 0; margin: 0; }
.setcard > .muted { margin: 0; }
.switch { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.switch .grow { font-weight: 600; } .switch small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch i::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,.3); transition: transform .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 2px; }
.profile .proto .logo { justify-content: center; margin-bottom: 4px; }
/* Réduire les animations (réglage du Profil) */
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Mode « Jour J » (19 nov. 2026) */
.dayof { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-color: var(--ink); }
.dayof header { display: flex; gap: 12px; align-items: center; }
.dayof-ic { width: 52px; height: 52px; flex: none; }
.dayof .eyebrow { margin: 0; font: 700 .72rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dayof h2 { margin: 0; font: 800 1.5rem/1.05 "Bricolage Grotesque", var(--font); letter-spacing: -.04em; }
.dayof-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.dayof-actions:empty { display: none; }
.dayof-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dayof-row > .ic:first-child { color: var(--muted); }
.dayof-row small { display: block; color: var(--muted); font-size: .78rem; }
.dayof-row strong { font-weight: 600; }
.empty-card .p3d { width: 96px; height: 96px; margin: 0 auto 8px; }
.empty-card.flat { padding: 10px 6px 4px; }
.empty-talk .p3d { width: 56px; height: 56px; margin: 4px auto 6px; }
.empty-talk { text-align: center; }
.steps-list { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; line-height: 1.45; }
.steps-list .ic { width: 18px; height: 18px; vertical-align: -3px; }

/* Dépenses en plusieurs devises (19 nov. 2026) */
.amt-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.amt-in select { width: auto; min-width: 76px; }
.fxrate { display: grid; gap: 4px; }
.fxrate[hidden] { display: none; }
.fxrate .fx-eq { margin: 0; }
.expense .amt small + small { margin-top: 0; }

/* ---------- Fond « halos + grain » (choix d'Alexis, 19 nov. 2026) ----------
   Des lueurs douces aux couleurs du logo dans les coins, et un grain fin par-dessus, en clair comme en sombre.
   Calques fixes derrière tout le contenu : ils ne bougent pas au défilement et ne gênent aucun clic. */
:root {
  --halo: radial-gradient(60% 40% at 0% 0%, rgba(255,216,61,.46), transparent 70%),
          radial-gradient(55% 38% at 100% 6%, rgba(255,143,200,.40), transparent 70%),
          radial-gradient(65% 42% at 92% 100%, rgba(69,181,255,.32), transparent 70%),
          radial-gradient(55% 36% at 0% 92%, rgba(63,208,143,.28), transparent 70%);
  --grain-op: .10; --grain-blend: multiply;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --halo: radial-gradient(60% 40% at 0% 0%, rgba(155,123,255,.42), transparent 70%),
            radial-gradient(55% 38% at 100% 6%, rgba(255,107,91,.30), transparent 70%),
            radial-gradient(65% 42% at 92% 100%, rgba(69,181,255,.30), transparent 70%),
            radial-gradient(55% 36% at 0% 92%, rgba(63,208,143,.22), transparent 70%);
    --grain-op: .12; --grain-blend: screen;
  }
}
:root[data-theme="dark"] {
  --halo: radial-gradient(60% 40% at 0% 0%, rgba(155,123,255,.42), transparent 70%),
          radial-gradient(55% 38% at 100% 6%, rgba(255,107,91,.30), transparent 70%),
          radial-gradient(65% 42% at 92% 100%, rgba(69,181,255,.30), transparent 70%),
          radial-gradient(55% 36% at 0% 92%, rgba(63,208,143,.22), transparent 70%);
  --grain-op: .12; --grain-blend: screen;
}
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: var(--halo); }
body::after {
  opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media print { body::before, body::after { display: none; } }

/* ---------- Événement plus clair (20 nov. 2026) ----------
   Cinq onglets (Infos, Votes, Argent, Préparer, Mur), « Pour toi » en haut, une seule carte « Infos pratiques »
   et un seul bouton « Ajouter une info ». */
.evtabs { grid-template-columns: repeat(5, 1fr); width: min(440px, calc(100% - 28px)); border-radius: 26px; }
.evtabs a { flex-direction: column; gap: 2px; height: 48px; border-radius: 22px; font: 600 .7rem/1 var(--font); }
.evtabs a .ic { width: 18px; height: 18px; }
.sec.first { margin-top: 8px; }
.todo.here { margin-bottom: 14px; }
.todo.here h2 { margin: 0; font: 700 1.05rem var(--font); display: flex; align-items: center; gap: 8px; }
.todo.here .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font: 700 .75rem var(--font); }
.todo li a .ic { width: 18px; height: 18px; flex: none; }
.det li .icon-btn { margin-left: auto; }
.det code { font: 700 1.05rem var(--font); letter-spacing: .08em; }
.det-add { margin-top: 12px; }
.addlist { display: grid; gap: 6px; }
.addrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.addrow:hover { border-color: var(--ink); }
.addrow .glyph { width: 36px; height: 36px; }
.addrow .grow { display: flex; flex-direction: column; min-width: 0; }
.addrow small { color: var(--muted); font-size: .8rem; }
.poster-when a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.poster-when a small { font-weight: 500; opacity: .85; text-decoration: underline; text-underline-offset: 2px; }

/* Hors de l'onglet Infos (21 nov. 2026) : l'affiche se réduit au titre et à la date, le contenu de l'onglet est tout de suite visible. */
.poster.mini .poster-in { padding: 8px 16px 14px; gap: 4px; }
.poster.mini .poster-bar { min-height: 32px; }
.poster.mini .poster-kicker { display: inline-flex; align-items: center; gap: 4px; }
.poster.mini .poster-kicker .ic { width: 15px; height: 15px; }
.poster.mini .poster-title, .poster.mini .poster-title.long { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.05; }
.poster.mini .poster-when { font-size: .88rem; font-weight: 600; opacity: .9; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster.mini + .evtabs + .page .tab-body > :first-child { margin-top: 0; }

/* Les noms en toutes lettres à côté des pastilles (21 nov. 2026) : « Julie M., Ana L. ». */
.who { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.room .who, .ride .who { margin: 6px 0 8px; }
.field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; font-weight: 500; }
.av { letter-spacing: -.02em; }
.av.xs { font-size: .55rem; }

/* Préparer (21 nov. 2026) : vue d'ensemble en liste, puis une rubrique à la fois avec titre et explication. */
.orows { list-style: none; margin: 0 0 16px; padding: 0; overflow: hidden; }
.orows li + li { border-top: 1px solid var(--line); }
.orow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.orow:active { background: var(--blue-soft); }
.orow .ot-ic { flex: none; width: 40px; height: 40px; margin: 0; }
.orow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.orow strong { font-size: 1rem; }
.orow small { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.orow small.warn { color: var(--red); }
.orow .dot { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--blue); color: var(--blue-ink); font: 700 .75rem/1.3 var(--font); white-space: nowrap; }
.orow > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.osec-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -6px 0 2px -4px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--font); cursor: pointer; }
.osec-back svg { width: 16px; height: 16px; }
.osec-head { display: flex; align-items: center; gap: 12px; margin: 0 2px 14px; }
.osec-head .ot-ic { flex: none; width: 48px; height: 48px; margin: 0; }
.osec-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.osec-head small { display: block; margin-top: 3px; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.orows-intro { margin: 0 2px 10px; font-size: .9rem; color: var(--muted); }
.tag-secret { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--muted); font-size: .75rem; white-space: nowrap; vertical-align: 1px; }
.tag-secret svg { width: 12px; height: 12px; }

/* Billetterie extérieure (21 nov. 2026) : carte avec gros bouton en haut de l'onglet Infos. */
.ticket-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px; }
.ticket-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ticket-card strong { font-size: 1rem; }
.ticket-card small { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.ticket-card .btn { flex: 1 1 100%; justify-content: center; }
.glyph:has(.tk-logo) { padding: 0; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tk-logo { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Calendrier (21 nov. 2026) : jours cliquables, dates proposées au vote en pointillés */
.cal-grid a { color: inherit; text-decoration: none; }
.cal-grid a:active { transform: scale(.94); }
.cal-grid a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cal-grid .vote i { outline: 1.5px dashed var(--ink); outline-offset: -1.5px; }
.cal-legend { display: flex; align-items: center; gap: 10px; margin: 10px 4px 0; font-size: .85rem; color: var(--muted); }
.cal-legend span { flex: none; width: 18px; height: 18px; border-radius: 50%; outline: 1.5px dashed var(--ink); outline-offset: -1.5px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
/* Infos pratiques : la date en tête du vote (21 nov. 2026) */
.lead-date { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; }

/* Page d'invitation (22 nov. 2026) : description, qui est déjà là, réponse dès l'arrivée */
.join .poster .tutti { margin-top: 10px; }
.join .poster .tutti small { margin-left: auto; }
.join-desc { margin: 18px 2px 0; font-size: 1.02rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.join-who { display: flex; align-items: flex-start; gap: 8px; margin: 12px 2px 0; }
.join-who .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.join-rsvp { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; min-width: 0; }
.join-rsvp legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 1.05rem; }
.join-rsvp .row2 .btn { width: 100%; }

/* Compte Instagram à côté du nom (23 nov. 2026) */
.people small .insta { color: inherit; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 6px 0; margin: -6px 0; }

/* Fiche d'un invité (23 nov. 2026) : la pastille et le nom ouvrent la fiche */
.people .who { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.people .who strong { min-width: 0; overflow-wrap: anywhere; }
.people .who + small { padding-left: 40px; margin-top: -9px; }
.av.lg { width: 76px; height: 76px; font-size: 1.5rem; }
.pcard { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pcard .pc-roles { margin: 0; color: var(--muted); font-size: .85rem; }
.pcard .pc-chips { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pcard p.small { margin: 0; }
.pcard .menu { width: 100%; margin-top: 6px; }
.pcard .menu .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Accueil : second bouton « Créer ma communauté » (23 nov. 2026), même largeur que le premier */
.l-cta2 { width: 100%; justify-content: center; gap: 8px; margin-top: 12px; white-space: nowrap; font-size: clamp(.95rem, 4.4vw, 1.05rem); }
@media (min-width: 720px) { .l-cta2 { width: auto; margin-top: 0; margin-left: 10px; } }

/* Les écrans de création tiennent sur l'écran (23 nov. 2026, demande d'Alexis) */
/* Choix du type : les cartes se partagent la hauteur visible ; s'il y en a trop, la page défile comme avant. */
.page.create:has(.tgrid) { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.page.create .tgrid { flex: 1; grid-auto-rows: minmax(56px, 1fr); max-height: 720px; }
.page.create .tcard { min-height: 0; overflow: hidden; }
.page.create .tc-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Communauté : l'image se choisit dans une rangée qui défile sur le côté, au lieu de trois rangées. */
.covers.strip { display: block; min-width: 0; }
.covers.strip legend { margin-bottom: 6px; }
.covers.strip .strip-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 4px 2px; margin-right: -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.covers.strip .strip-row::-webkit-scrollbar { display: none; }
.covers.strip .strip-row label { flex: 0 0 48px; scroll-snap-align: start; }
.create .lead { margin-bottom: 12px; font-size: .95rem; line-height: 1.35; }
@media (max-height: 700px) {
  .create .create-h { margin: 0 0 6px; font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .page.create .tgrid { gap: 6px; }
  .page.create .tcard { padding: 5px 8px; gap: 8px; }
  .page.create .tc-medal:has(.p3d) { width: 38px; height: 38px; }
  .create .form { gap: 10px; }
}

/* Menu + : Créer, puis Rejoindre (23 nov. 2026) */
.create-pick .pick-h { margin: 10px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.create-pick .pick-h:first-child { margin-top: 0; }
.create-pick button.card.ev { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 14px; }
.create-pick .card.ev { padding: 10px 12px; }
.create-pick .card.ev small { display: block; }
.create-pick { gap: 8px; }
.create-pick .note-emoji { width: 44px; height: 44px; }
.create-pick .card.ev small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
