/* ================= GlouGlou 3.0 ================= */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Ticket";
  src: url("fonts/spacemono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ticket";
  src: url("fonts/spacemono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --nuit: #1C1240;
  --nuit-2: #271A55;
  --nuit-3: #34256B;
  --ligne: #4A3B85;
  --brume: #B9B0DD;
  --blanc: #F7F4FF;
  --grenadine: #FF4F7B;
  --citron: #F4E04D;
  --menthe: #3DDBA8;
  --papier: #FFFDF5;
  --encre: #241A44;
  --encre-2: #6B6290;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --tab-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--blanc);
  font-family: "Bricolage", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "opsz" 14;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--citron); }
:focus-visible { outline: 3px solid var(--citron); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
svg.lucide { width: 20px; height: 20px; stroke-width: 2.2; flex-shrink: 0; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--nuit) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar__brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.topbar__brand img { border-radius: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--brume);
}
.icon-btn:hover { color: var(--blanc); background: var(--nuit-2); }

/* ---------- Intro ---------- */
.intro { padding: 18px 0 8px; }
.intro__title {
  margin: 0;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}
.intro__text { margin: 12px 0 0; color: var(--brume); max-width: 42ch; }

/* ---------- Étapes ---------- */
.step { padding: 28px 0 8px; }
.step + .step { border-top: 1px dashed var(--ligne); margin-top: 20px; }
.step__title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 26px; font-weight: 750; letter-spacing: -0.025em;
}
.step__num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--citron); color: var(--encre);
  font-size: 18px; font-weight: 800;
}
.step__hint { margin: -8px 0 16px; color: var(--brume); font-size: 14px; }

.field { margin-top: 20px; }
.field__label { display: block; font-weight: 650; margin-bottom: 8px; }
.field__help { margin: 6px 0 0; font-size: 13px; color: var(--brume); }

/* ---------- Compteurs ---------- */
.stepper-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper {
  background: var(--nuit-2); border-radius: var(--radius-m);
  padding: 12px 12px 14px;
}
.stepper__label { display: block; font-size: 14px; color: var(--brume); margin-bottom: 6px; }
.stepper__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stepper__value {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: center;
}
.stepper--inline {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px;
}
.stepper--inline .stepper__label { margin: 0; font-size: 15px; color: var(--blanc); font-weight: 600; }
.stepper--inline .stepper__value { font-size: 26px; }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--nuit-3); color: var(--blanc);
  display: grid; place-items: center;
  transition: transform .1s;
}
.round-btn:active { transform: scale(.9); }

/* ---------- Segmenté ---------- */
.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: var(--nuit-2); border-radius: 999px;
}
.segmented button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; color: var(--brume);
  padding: 10px 8px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.segmented button svg.lucide { width: 17px; height: 17px; }
.segmented button[aria-checked="true"] { background: var(--blanc); color: var(--encre); }

/* ---------- Profils ---------- */
.mixbar {
  display: flex; height: 14px; border-radius: 999px; overflow: hidden;
  background: var(--nuit-2); margin-bottom: 14px;
}
.mixbar__part { height: 100%; transition: width .25s ease; }
.mixbar__part--soft, .dot--soft { background: var(--menthe); }
.mixbar__part--mod, .dot--mod { background: var(--citron); }
.mixbar__part--fest, .dot--fest { background: var(--grenadine); }
.profile { margin-top: 10px; }
.profile__head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.profile__head output { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.range { width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--nuit-3); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--nuit-3); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -9px; border: 3px solid var(--nuit); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--nuit); }
.range--soft::-webkit-slider-thumb { background: var(--menthe); }
.range--mod::-webkit-slider-thumb { background: var(--citron); }
.range--fest::-webkit-slider-thumb { background: var(--grenadine); }
.range--soft::-moz-range-thumb { background: var(--menthe); }
.range--mod::-moz-range-thumb { background: var(--citron); }
.range--fest::-moz-range-thumb { background: var(--grenadine); }

/* ---------- Puces ---------- */
.chipgroup { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; margin-top: 14px; }
.chipgroup__label { padding-top: 9px; font-size: 14px; color: var(--brume); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--ligne); background: transparent; color: var(--brume);
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"] { background: var(--citron); border-color: var(--citron); color: var(--encre); }

/* ---------- Le ticket de caisse ---------- */
.ticket {
  --dent: 9px;
  position: relative;
  background: var(--papier); color: var(--encre);
  font-family: "Ticket", ui-monospace, monospace; font-size: 13.5px; line-height: 1.45;
  padding: 22px 18px 26px;
  transform: rotate(-0.6deg);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--dent) * 2) var(--dent) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dent)) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--dent) * 2) var(--dent) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dent)) no-repeat;
}
.ticket__head { text-align: center; border-bottom: 1.5px dashed var(--encre-2); padding-bottom: 10px; }
.ticket__head strong { display: block; font-size: 17px; letter-spacing: .08em; }
.ticket__head span { color: var(--encre-2); }
.ticket__stats {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1.5px dashed var(--encre-2); color: var(--encre-2); font-size: 12.5px;
}
.ticket__stats b { color: var(--encre); }
.ticket__list { list-style: none; margin: 0; padding: 6px 0; }
.ticket__item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 7px 0; border-bottom: 1px dotted #d8d2ea;
}
.ticket__item:last-child { border-bottom: 0; }
.ticket__name { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; font-weight: 700; }
.ticket__price { text-align: right; font-variant-numeric: tabular-nums; }
.ticket__sub { grid-column: 1 / -1; color: var(--encre-2); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.ticket__sub a { color: #6D3FD8; font-weight: 700; text-decoration: none; }
.ticket__sub .remove { margin-left: auto; background: none; border: 0; color: #C2264F; font: inherit; font-weight: 700; padding: 0; }
.ticket__item.is-done .ticket__name, .ticket__item.is-done .ticket__price { text-decoration: line-through; opacity: .45; }
.ticket__section { font-size: 11.5px; color: var(--encre-2); padding: 10px 0 2px; letter-spacing: .06em; }
.ticket__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--encre); padding-top: 10px; margin-top: 4px;
  font-size: 15px;
}
.ticket__total b { font-size: 24px; }
.ticket__foot { margin: 10px 0 0; text-align: center; color: var(--encre-2); font-size: 11.5px; }

.side-notes { display: grid; gap: 8px; margin-top: 22px; }
.note { display: flex; align-items: center; gap: 10px; color: var(--brume); font-size: 14px; }
.note svg.lucide { color: var(--menthe); }

.drive-row { display: flex; gap: 8px; }
.drive-row .select { flex: 1; min-width: 0; }

/* ---------- Champs ---------- */
.input, .select {
  width: 100%; background: var(--nuit-2); border: 1.5px solid var(--ligne);
  border-radius: var(--radius-s); padding: 12px 14px; color: var(--blanc);
}
.input::placeholder { color: #7D73A8; }
.input:focus, .select:focus { outline: none; border-color: var(--citron); }
.select option { background: var(--nuit-2); }
.money { position: relative; }
.money .input { font-size: 22px; font-weight: 700; padding-right: 40px; }
.money span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--brume); font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 18px; font-weight: 700; font-size: 15.5px;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; margin-top: 12px; }
.btn--grenadine { background: var(--grenadine); color: #fff; }
.btn--citron { background: var(--citron); color: var(--encre); }
.btn--menthe { background: var(--menthe); color: var(--encre); }
.btn--ghost { background: transparent; color: var(--blanc); border: 1.5px solid var(--ligne); }
.btn--link { background: transparent; color: var(--brume); font-weight: 600; }
.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }

/* ---------- Partage ---------- */
.share-card {
  margin-top: 20px; padding: 18px; border-radius: var(--radius-l);
  background: var(--menthe); color: var(--encre);
  display: grid; gap: 2px;
}
.share-card output { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.share-card span:last-child { font-size: 14px; opacity: .8; }

.bubble {
  margin-top: 20px; padding: 14px 16px; white-space: pre-line;
  background: #DCF8C6; color: #1B2A1A; font-size: 14.5px;
  border-radius: 18px 18px 4px 18px; max-width: 92%; margin-left: auto;
}

/* ---------- Prévention ---------- */
.prevention {
  margin: 36px 0 12px; padding: 16px; border-radius: var(--radius-m);
  border: 1.5px solid var(--ligne); color: var(--brume); font-size: 14px;
}
.prevention p { margin: 0 0 8px; }
.prevention p:last-child { margin: 0; }
.prevention strong { color: var(--blanc); }

/* ---------- Cocktails ---------- */
.toolbar { display: grid; gap: 12px; margin: 8px 0 18px; }
.search { position: relative; }
.search svg.lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brume); width: 18px; height: 18px; }
.search input { width: 100%; padding: 12px 14px 12px 42px; border-radius: 999px; background: var(--nuit-2); border: 1.5px solid var(--ligne); }
.search input:focus { outline: none; border-color: var(--citron); }

.cards { display: grid; gap: 14px; }
.card {
  background: var(--nuit-2); border-radius: var(--radius-l); padding: 18px;
  border-left: 6px solid var(--accent, var(--citron));
}
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__title { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.card__tag { font-size: 13px; color: var(--accent, var(--citron)); font-weight: 700; white-space: nowrap; }
.card__desc { margin: 6px 0 12px; color: var(--brume); font-size: 14.5px; }
.card__dose { margin: 0 0 12px; font-size: 14.5px; }
.card__list { margin: 0 0 14px; padding-left: 18px; color: var(--brume); font-size: 14px; }
.card .btn { width: 100%; }
.empty { text-align: center; color: var(--brume); padding: 40px 0; }

/* ---------- Saladiers ---------- */
#punch-picker { margin: 8px 0 4px; }
.punch { background: var(--nuit-2); border-radius: var(--radius-l); padding: 18px; margin-top: 16px; }
.punch__title { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.punch__vol { color: var(--brume); margin: 2px 0 12px; }
.punch ul { list-style: none; padding: 0; margin: 0; }
.punch li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ligne); }
.punch li a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.punch__note { margin: 12px 0 0; font-size: 13.5px; color: var(--brume); }

/* ---------- Barre d'onglets ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; gap: 4px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  background: color-mix(in srgb, var(--nuit-2) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ligne);
}
.tabbar button {
  flex: 1; max-width: 170px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: transparent; color: var(--brume);
  padding: 6px 0; border-radius: 14px; font-size: 12.5px; font-weight: 600;
}
.tabbar button svg.lucide { width: 22px; height: 22px; }
.tabbar button[aria-current="page"] { color: var(--citron); }
.tabbar button[aria-current="page"] svg.lucide { stroke-width: 2.6; }

/* ---------- Feuilles (bottom sheets) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 6, 25, .7); }
.sheet__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--nuit-2); border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 8px 18px calc(env(safe-area-inset-bottom) + 24px);
  animation: sheet-up .25s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.sheet__head h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.sheet__intro { margin: 0 0 12px; color: var(--brume); font-size: 14.5px; }
.prose h3 { margin: 18px 0 6px; font-size: 18px; }
.prose p, .prose li { color: var(--brume); font-size: 15px; }
.prose ul { padding-left: 18px; }
.muted { color: #7D73A8 !important; font-size: 13px !important; }

.drive-list { list-style: none; padding: 0; margin: 0; }
.drive-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.drive-list li > span { flex: 1; font-size: 15px; }
.drive-list li.is-done > span { color: var(--brume); text-decoration: line-through; }
.drive-list .btn { padding: 9px 14px; font-size: 14px; }

/* ---------- Contrôle de l'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: var(--nuit);
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 79, 123, .25), transparent 45%), radial-gradient(circle at 85% 85%, rgba(61, 219, 168, .2), transparent 45%);
}
.gate__card { width: 100%; max-width: 380px; text-align: center; }
.gate__logo { border-radius: 20px; }
.gate__title { margin: 14px 0 6px; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; }
.gate__text { color: var(--brume); margin: 0 0 22px; }
.gate__refused { color: var(--citron); font-weight: 600; }
.gate__legal { margin-top: 26px; font-size: 13px; color: var(--brume); }

/* ---------- Notification ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 18px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--blanc); color: var(--encre); font-weight: 700; font-size: 14.5px;
  padding: 11px 18px; border-radius: 999px; transition: opacity .2s, transform .2s; z-index: 60;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  .intro { padding-top: 32px; }
}

/* ================= Soirée partagée ================= */
.my-parties { margin-top: 22px; }
.my-parties ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.my-party {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: var(--nuit-2); border: 1.5px solid var(--ligne); border-radius: var(--radius-m);
  padding: 12px 14px; text-align: left; font-weight: 700;
}
.my-party small { color: var(--brume); font-weight: 500; }

.party-top { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.party-top .btn--link { padding-left: 0; }
.sync { font-size: 13px; color: var(--brume); }

.join {
  margin: 18px 0 6px; padding: 18px; border-radius: var(--radius-l);
  background: var(--grenadine); color: #fff;
}
.join__title { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.join__text { margin: 4px 0 14px; font-size: 15px; opacity: .92; }
.join .input { background: rgba(255,255,255,.95); color: var(--encre); border-color: transparent; }
.join .btn--grenadine { background: var(--nuit); }
.join__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.guests { margin-top: 22px; }
.guests__head { display: flex; justify-content: space-between; align-items: baseline; }
.guest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.guest { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.guest__avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: hsl(var(--hue) 75% 68%); color: var(--encre); font-weight: 800;
}
.guest__name { flex: 1; font-weight: 600; }
.guest__name small { color: var(--citron); font-weight: 700; margin-left: 4px; }
.guest.is-me .guest__name::after { content: " (toi)"; color: var(--brume); font-weight: 500; }
.guest__paid {
  border: 1.5px solid var(--ligne); background: transparent; color: var(--brume);
  border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 700;
}
.guest__paid[aria-pressed="true"], .guest.is-paid .guest__paid--ro { background: var(--menthe); border-color: var(--menthe); color: var(--encre); }
.guest__paid--ro { border-style: dashed; }

.progress { margin: 22px 0 18px; }
.progress__bar { height: 10px; border-radius: 999px; background: var(--nuit-2); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--menthe); transition: width .3s ease; }
.progress > span { display: block; margin-top: 6px; font-size: 14px; color: var(--brume); }

.ticket--shared .ticket__name { font-weight: 700; }
.claim { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.claim__who { color: var(--encre); font-weight: 700; }
.claim__btn {
  border: 1.5px solid var(--encre); background: transparent; color: var(--encre);
  border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; font-weight: 700;
}
.claim__btn.is-mine { background: var(--encre); color: var(--papier); }
.ticket--shared .ticket__sub { flex-wrap: wrap; }

.add-item { margin-top: 24px; }
.admin { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--ligne); }
.center { text-align: center; margin-top: 18px; }

/* ================= Mixologie ================= */
.mix-cards { margin-top: 18px; }
.mix-empty {
  margin-top: 6px; padding: 22px 18px; border-radius: var(--radius-l);
  border: 1.5px dashed var(--ligne); color: var(--brume);
}
.mix-empty p { margin: 0; }
.mix-empty__title { color: var(--blanc); font-size: 20px; font-weight: 750; margin-bottom: 6px !important; }
.card__meta { margin: 0 0 10px; font-size: 13.5px; color: var(--brume); }
.card__list em { color: var(--citron); font-style: normal; }
.card__actions { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; }
.card__actions .btn { width: auto; padding: 8px 6px; font-size: 14px; }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent;
  background: var(--c); box-shadow: inset 0 0 0 3px var(--nuit-2);
}
.swatch[aria-pressed="true"] { border-color: var(--blanc); }

.ing-list { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.ing { display: grid; grid-template-columns: 1fr 56px 88px 32px; gap: 6px; align-items: center; }
.ing .input, .ing .select { padding: 10px 8px; min-width: 0; }
.ing__amount { text-align: right; }
.ing__del { width: 36px; height: 36px; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.4; }
.mix-error { margin: 0 0 4px; padding: 10px 12px; border-radius: var(--radius-s); background: rgba(255, 79, 123, .15); color: #FFC2D1; font-size: 14.5px; }
.mix-error.is-info { background: rgba(61, 219, 168, .15); color: var(--menthe); }
.tabbar button { font-size: 12px; }

/* ================= Accueil : mes soirées ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-btn {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  margin-top: 8px; padding: 18px; border: 0; border-radius: var(--radius-l);
  background: var(--grenadine); color: #fff;
  box-shadow: 0 16px 36px -18px rgba(255, 79, 123, .9);
  transition: transform .1s;
}
.hero-btn:active { transform: scale(.98); }
.hero-btn__icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--nuit); color: var(--citron);
}
.hero-btn__icon svg.lucide { width: 28px; height: 28px; stroke-width: 2.8; }
.hero-btn__text b { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -0.015em; }
.hero-btn__text small { display: block; margin-top: 3px; font-size: 14px; opacity: .9; }

.events-count { margin: 26px 0 10px; color: var(--brume); font-size: 14px; }
.events { display: grid; gap: 14px; }
.events-empty { padding: 22px 18px; border: 1.5px dashed var(--ligne); border-radius: var(--radius-l); color: var(--brume); }
.events-empty p { margin: 0 0 6px; }
.events-empty p:first-child { color: var(--blanc); font-weight: 700; font-size: 18px; }

.event {
  position: relative; overflow: hidden;
  background: var(--nuit-2); border-radius: var(--radius-l);
}
.event::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  background: hsl(var(--hue) 85% 66%);
}
.event.is-past { opacity: .62; }
.event__main {
  width: 100%; display: grid; gap: 4px; text-align: left;
  background: none; border: 0; padding: 16px 16px 10px 24px;
}
.event__date { font-size: 13.5px; color: var(--brume); }
.event__date::first-letter { text-transform: uppercase; }
.event__name { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.event__figures { font-size: 15px; color: var(--brume); }
.event__figures b { color: var(--blanc); font-variant-numeric: tabular-nums; }
.event__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge {
  font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--nuit-3); color: var(--brume);
}
.badge--shared { background: rgba(61, 219, 168, .18); color: var(--menthe); }
.badge--done { background: rgba(244, 224, 77, .16); color: var(--citron); }
.event__actions {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 14px 24px;
}
.event__actions .btn { padding: 10px 12px; font-size: 14.5px; }
.event__actions .btn--link { margin-left: auto; padding: 10px 4px; color: var(--brume); }
.home-sub { margin: 30px 0 10px; font-size: 18px; font-weight: 750; }

/* ---------- En-tête du configurateur ---------- */
.event-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.back-btn { padding-left: 0; color: var(--blanc); }
.save-state { font-size: 13px; color: var(--menthe); opacity: 0; transition: opacity .3s; }
.save-state.is-on { opacity: 1; }
.event-head { padding: 4px 0 6px; }
.event-name {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 2px 0 4px; color: var(--blanc);
  font-size: clamp(34px, 10vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  font-variation-settings: "opsz" 96;
}
.event-name::placeholder { color: #6E64A0; }
.event-name:focus { outline: none; border-bottom-color: var(--citron); }
.event-date {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--nuit-2); color: var(--brume);
}
.event-date input { background: transparent; border: 0; color: var(--blanc); font-size: 15px; color-scheme: dark; }
.event-date input:focus { outline: none; }
.event-date:focus-within { outline: 3px solid var(--citron); outline-offset: 2px; }
