/* ═══════════════════════ Noël en famille — thème ═══════════════════════ */
:root {
  --bg0: #050d1a;
  --bg1: #0a1a30;
  --bg2: #14305a;
  --gold: #f3cf7a;
  --gold-deep: #c9983a;
  --red: #d62839;
  --red-deep: #9d1626;
  --green: #2faa6e;
  --green-soft: #7be0a8;
  --snow: #f4f8fc;
  --ink: #eaf0f8;
  --muted: #a3b4cc;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(243, 207, 122, 0.24);
  --line-soft: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg0);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ───────────── Ciel de nuit ───────────── */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(60, 110, 190, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 48%, var(--bg2) 100%);
}
.aurora {
  position: absolute;
  width: 70vw;
  height: 42vh;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora.a1 { top: -12vh; left: -12vw; background: linear-gradient(90deg, #1fbf8f, #2a7fd6); }
.aurora.a2 { top: 4vh; right: -20vw; background: linear-gradient(90deg, #7b4bd6, #1fbf8f); opacity: 0.2; animation-duration: 34s; animation-direction: alternate-reverse; }

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars.s1 {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #fff, transparent 60%),
    radial-gradient(1px 1px at 140px 90px, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 260px 40px, #ffe9b0, transparent 60%),
    radial-gradient(1px 1px at 320px 180px, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 70px 220px, #cfe3ff, transparent 60%);
  background-size: 380px 280px;
  opacity: 0.85;
}
.stars.s2 {
  background-image:
    radial-gradient(1px 1px at 60px 120px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 200px, #fff, transparent 60%),
    radial-gradient(1px 1px at 300px 70px, #ffe9b0, transparent 60%);
  background-size: 340px 300px;
  animation-delay: -2.5s;
  animation-duration: 7s;
  opacity: 0.6;
}
/* La lune et le traîneau défilent avec la page : ils ne passent jamais derrière les cartes. */
.heavens {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.moon {
  position: absolute;
  top: 9vh;
  right: 9vw;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fffdf2, #f3e3b3 60%, #d9c388);
  box-shadow: 0 0 40px 12px rgba(255, 240, 190, 0.28), 0 0 120px 40px rgba(255, 240, 190, 0.12);
}
.sleigh {
  position: absolute;
  top: 16vh;
  left: 100%;
  font-size: 26px;
  white-space: nowrap;
  letter-spacing: -4px;
  filter: drop-shadow(0 0 10px rgba(255, 240, 190, 0.5));
  animation: fly 42s linear infinite;
  animation-delay: 5s;
}

#snow, #confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#snow { z-index: 1; }
#confetti { z-index: 60; }

/* ───────────── Guirlande ───────────── */
.lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 6;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}
.lights::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: #0d3a27;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.lights i {
  --c: #ff4d5e;
  position: relative;
  width: 11px;
  height: 17px;
  margin-top: 12px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--c);
  box-shadow: 0 0 14px 3px var(--c);
  animation: glow 2.6s ease-in-out infinite;
}
.lights i::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 3px;
  width: 5px;
  height: 7px;
  border-radius: 2px;
  background: #0d3a27;
}
.lights i:nth-child(odd) { margin-top: 18px; }
.lights i:nth-child(odd)::before { top: -12px; height: 13px; }
.lights i:nth-child(4n + 2) { --c: #ffd24d; animation-delay: -0.6s; }
.lights i:nth-child(4n + 3) { --c: #46e08f; animation-delay: -1.2s; }
.lights i:nth-child(4n + 4) { --c: #58b6ff; animation-delay: -1.8s; }

/* ───────────── Barre du haut ───────────── */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ───────────── Héros ───────────── */
.hero {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 28px 20px 40px;
}
.hero-kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 6px; }
.script {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 8.5rem);
  line-height: 1.05;
  /* Le dégradé n'est peint que dans la boîte de l'élément : on l'agrandit vers le bas (boucle du J)
     et sur les côtés (paraphes), puis on compense par des marges négatives pour ne rien décaler. */
  padding: 0.1em 0.3em 0.42em;
  margin: 0 -0.1em -0.36em;
  background: linear-gradient(180deg, #fff6d8 8%, var(--gold) 42%, var(--gold-deep) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(243, 207, 122, 0.3));
}
.hero-title {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  margin-top: -0.1em;
}
.hero-date {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-date strong { color: var(--ink); }

.countdown {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(68px, 96px));
  gap: 12px;
  margin-top: 26px;
}
.cd-tile {
  padding: 14px 6px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cd-tile b {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cd-tile span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.countdown-done {
  margin-top: 24px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--gold);
}

/* ───────────── Mise en page ───────────── */
.wrap {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-tree { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.card-narrow { max-width: 480px; width: 100%; margin: 0 auto; }
.card-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.card-title.center { justify-content: center; text-align: center; }
.card-title.center::after { display: none; }
.lead { color: var(--muted); margin-bottom: 18px; }
.center { text-align: center; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
h3.sub {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin: 22px 0 10px;
  color: var(--ink);
}
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 180px; min-width: 0; }

/* ───────────── Boutons ───────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ee4455, var(--red) 55%, var(--red-deep));
  border-color: rgba(255, 220, 160, 0.45);
  box-shadow: 0 10px 26px rgba(214, 40, 57, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-gold {
  color: #2a1c05;
  background: linear-gradient(180deg, #ffe9a8, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 24px rgba(201, 152, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-soft);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--line); }
.btn-ghost.is-on { background: rgba(243, 207, 122, 0.18); border-color: var(--gold); color: var(--gold); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-danger { color: #ffb3bb; background: rgba(214, 40, 57, 0.12); border-color: rgba(214, 40, 57, 0.4); }
.icon-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ───────────── Champs ───────────── */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 0.92rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='number'], input[type='date'], input[type='time'], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 16, 32, 0.55);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 72px; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #0d1f3a; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #7f92ad; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 207, 122, 0.2);
}
input[type='date'], input[type='time'] { color-scheme: dark; }

/* ───────────── Connexion ───────────── */
.seal {
  width: 74px;
  height: 74px;
  margin: -62px auto 12px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f15c6b, var(--red) 55%, var(--red-deep));
  border: 2px solid rgba(255, 220, 160, 0.6);
  box-shadow: 0 12px 30px rgba(214, 40, 57, 0.45);
}
.login { margin-top: 40px; }
.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.otp input {
  width: 100%;
  min-height: 58px;
  padding: 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  border-radius: 14px;
  caret-color: var(--gold);
}
.otp input.filled { border-color: var(--gold); background: rgba(243, 207, 122, 0.1); }
.otp.shake { animation: shake 0.4s; }
.form-error { color: #ffb3bb; font-weight: 700; min-height: 1.5em; text-align: center; }

/* ───────────── Rendez-vous ───────────── */
.info-list { display: grid; gap: 12px; margin-bottom: 16px; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
}
.info-ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: rgba(243, 207, 122, 0.14);
}
.info-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.info-val { font-family: var(--font-title); font-size: 1.15rem; font-weight: 700; }
.info-sub { color: var(--muted); font-size: 0.95rem; }
.quote {
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-style: italic;
  margin-bottom: 18px;
  white-space: pre-line;
}

/* ───────────── Présence ───────────── */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.choice-btn {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 10px;
  border-radius: 18px;
  border: 1.5px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.choice-btn:hover { transform: translateY(-2px); border-color: var(--line); }
.choice-ico { font-size: 2rem; line-height: 1; }
.choice-btn[aria-pressed='true'].yes {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(47, 170, 110, 0.32), rgba(47, 170, 110, 0.12));
  box-shadow: 0 0 0 3px rgba(47, 170, 110, 0.2), 0 12px 28px rgba(47, 170, 110, 0.25);
}
.choice-btn[aria-pressed='true'].no {
  border-color: #8fa3bf;
  background: rgba(143, 163, 191, 0.2);
  box-shadow: 0 0 0 3px rgba(143, 163, 191, 0.16);
}
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stepper {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  text-align: center;
}
.stepper-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.stepper-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; }
.stepper-ctrl button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(243, 207, 122, 0.12);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.stepper-ctrl button:hover { background: rgba(243, 207, 122, 0.24); }
.stepper-ctrl output {
  min-width: 2ch;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.status-line.ok { background: rgba(47, 170, 110, 0.16); color: var(--green-soft); }
.status-line.away { background: rgba(143, 163, 191, 0.16); color: #c5d2e4; }
.status-line.todo { background: rgba(243, 207, 122, 0.14); color: var(--gold); }

/* ───────────── La table (contributions) ───────────── */
.notice {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(243, 207, 122, 0.12);
  border: 1px dashed var(--line);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-soft);
}
.chip.mine { background: rgba(47, 170, 110, 0.2); border-color: rgba(47, 170, 110, 0.55); color: #c9f5dd; }
.chip button {
  width: 20px;
  height: 20px;
  margin-right: -4px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.8rem;
  line-height: 1;
}
.chip button:hover { background: var(--red); color: #fff; }
.chip-lg { padding: 7px 12px; font-size: 0.92rem; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 0.88rem;
}
.pill[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #2a1c05; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.item:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3); }
.item.is-mine { border-color: rgba(47, 170, 110, 0.6); }
.item.is-full { opacity: 0.78; }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(47, 170, 110, 0.22);
  color: var(--green-soft);
}
.badge.warn { background: rgba(243, 207, 122, 0.18); color: var(--gold); }
.badge.off { background: rgba(214, 40, 57, 0.18); color: #ffb3bb; }
.item h4 { font-family: var(--font-title); font-size: 1.12rem; line-height: 1.25; }
.item-desc { color: var(--muted); font-size: 0.9rem; }
.item-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.item-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.item-actions select { width: 74px; min-height: 36px; padding: 4px 26px 4px 12px; }
.item-actions .btn { flex: 1; }

progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.12); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--green), var(--green-soft)); border-radius: 999px; transition: width 0.5s ease; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--green), var(--green-soft)); border-radius: 999px; }
progress.gold::-webkit-progress-value { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
progress.gold::-moz-progress-bar { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.inline-form input[type='text'] { flex: 1 1 200px; }
.inline-form select { flex: 0 0 76px; width: 76px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 0 rgba(123, 224, 168, 0.6);
  animation: pulse 1.8s infinite;
}

/* ───────────── Le sapin ───────────── */
.tree-wrap { display: grid; place-items: center; }
.tree { width: min(100%, 440px); height: auto; overflow: visible; }
.tree-star { animation: starPulse 2.6s ease-in-out infinite; transform-origin: 200px 34px; }
.star-rays { animation: spin 16s linear infinite; transform-origin: 200px 34px; }
.slot-free { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; stroke-dasharray: 3 3; }
.tree-dot { animation: twinkle 2.2s ease-in-out infinite alternate; }
.tree-dot:nth-of-type(2n) { animation-delay: -0.8s; animation-duration: 1.7s; }
.tree-dot:nth-of-type(3n) { animation-delay: -1.5s; }
.bauble { cursor: pointer; transform-box: fill-box; transform-origin: center; animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.bauble:hover, .bauble:focus-visible { filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); outline: none; }
.bauble.mine circle:first-child { stroke: #fff; stroke-width: 2.5; }
.bauble { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.tree-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  padding: 14px 8px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
}
.stat b { display: block; font-family: var(--font-title); font-size: 1.9rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.guest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guest-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.25), inset 2px 2px 3px rgba(255, 255, 255, 0.35); }
.guest-name { font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.guest-count { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }

.tip {
  position: fixed;
  z-index: 70;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fffaf0;
  color: #1c2a3f;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

/* ───────────── Petits mots ───────────── */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 18px; }
.note {
  position: relative;
  padding: 18px 16px 14px;
  border-radius: 4px 4px 14px 4px;
  background: linear-gradient(180deg, #fffdf5, #fbf1d6);
  color: #2b2418;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.2deg);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.note:nth-child(3n + 2) { transform: rotate(1.4deg); background: linear-gradient(180deg, #f3fff7, #d9f3e2); }
.note:nth-child(3n + 3) { transform: rotate(-0.4deg); background: linear-gradient(180deg, #fff5f5, #fbdcdc); }
.note::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7582, var(--red-deep));
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
}
.note p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.98rem; }
.note footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8rem; color: #6a5a3c; font-weight: 800; }
.note .link-btn { color: var(--red-deep); font-size: 0.8rem; }

/* ───────────── Organisation ───────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.dash { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .dash { grid-template-columns: 220px 1fr; } }
.donut { width: 200px; height: 200px; margin: 0 auto; display: block; }
.donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray 0.6s ease; }
.donut text { fill: #fff; font-family: var(--font-title); font-weight: 700; text-anchor: middle; }
.donut .donut-sub { fill: var(--muted); font-family: var(--font-body); font-size: 9px; letter-spacing: 1.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 0.92rem; }
th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
td.num, th.num { text-align: center; }
td small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.item-edit {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
@media (min-width: 760px) {
  .item-edit { grid-template-columns: 1.4fr 1fr 132px 1.4fr auto; align-items: end; }
}
.item-edit .field > span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.item-edit.new { border-style: dashed; border-color: var(--line); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.share { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .share { grid-template-columns: 170px 1fr; } }
.qr { width: 170px; height: 170px; padding: 10px; border-radius: 16px; background: #fff; margin: 0 auto; }
.url-box {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 16, 32, 0.55);
  border: 1px solid var(--line-soft);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* ───────────── Pied de page ───────────── */
.footer { position: relative; z-index: 4; margin-top: 30px; }
.footer-note { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 16px; position: relative; z-index: 2; }
.heart { color: var(--red); }
.landscape { display: block; width: 100%; height: clamp(210px, 30vw, 430px); margin-top: -6px; }
.landscape .window { animation: hearth 4s ease-in-out infinite; }
.smoke circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: smoke 6s ease-in-out infinite; }
.smoke circle:nth-child(2) { animation-delay: 2s; }
.smoke circle:nth-child(3) { animation-delay: 4s; }

/* ───────────── Divers ───────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(92vw, 460px);
  padding: 12px 20px;
  border-radius: 14px;
  background: #fffaf0;
  color: #1c2a3f;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-left: 5px solid var(--green);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { border-left-color: var(--red); }
.loader { display: flex; gap: 10px; justify-content: center; padding: 60px 0; }
.loader i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: bounce 1s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; background: var(--red); }
.loader i:nth-child(3) { animation-delay: 0.3s; background: var(--green); }
.noscript { position: relative; z-index: 9; text-align: center; padding: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .card { padding: 22px 16px; }
  .topbar { padding-top: 50px; }
  .moon { width: 34px; height: 34px; top: 96px; right: 16px; }
  .stepper { padding: 12px 4px; }
  .stepper-ctrl { gap: 8px; }
  .stepper-ctrl button { width: 36px; height: 36px; }
  .countdown { gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 360px; }
  .cd-tile span { font-size: 0.6rem; letter-spacing: 0.08em; }
  .hide-sm { display: none; }
  .topbar-actions { flex-wrap: nowrap; }
  .item-edit .row { justify-content: flex-end; }
}

/* ───────────── Animations ───────────── */
@keyframes glow { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: 0.45; filter: brightness(0.8); } }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 5vh) scale(1.15); } }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(-4deg); }
  30% { transform: translate(-70vw, -6vh) rotate(3deg); }
  45%, 100% { transform: translate(-140vw, 2vh) rotate(-2deg); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 224, 168, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(123, 224, 168, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hearth { 0%, 100% { opacity: 1; } 45% { opacity: 0.72; } 60% { opacity: 0.95; } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(10px) scale(0.6); } 35% { opacity: 0.55; } 100% { opacity: 0; transform: translateY(-30px) scale(1.3); } }
@keyframes starPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .sleigh { display: none; }
}

/* ───────────── Compléments ───────────── */
.legend .lg-yes { background: var(--green); }
.legend .lg-no { background: var(--red); }
.legend .lg-wait { background: #6f85a6; }
svg.dot { box-shadow: none; }
.form-grid .full { min-width: 0; }

/* ───────────── Sapin 3D ───────────── */
.tree-stage { position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5; margin: 0 auto; touch-action: pan-y; }
.tree-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.tree-stage canvas:active { cursor: grabbing; }
.tree-stage .tree { width: 100%; height: 100%; }
.tree-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* ───────────── Fenêtre de gestion d'un invité ───────────── */
.no-scroll { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-card {
  width: min(100%, 580px);
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #14294b, #0c1b34);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.3s ease both;
}
.gap-top { margin-top: 12px; }
.inline-form select.grow { flex: 1 1 200px; width: auto; }
td.actions { white-space: nowrap; }
.link-btn.danger { color: #ffb3bb; }

/* Précision sous un libellé de compteur (« moins de 15 ans ») */
.stepper-label small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }

/* Prénoms des participants, sous les compteurs */
.names-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
h3.sub em { font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 6px; }
#yes-block h3.sub { margin-top: 4px; }

/* ───────────── Champ quantité avec boutons − / + ───────────── */
.qty {
  display: inline-flex;
  align-items: stretch;
  flex: none;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 16, 32, 0.55);
  overflow: hidden;
}
.qty:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 207, 122, 0.2); }
.qty button {
  width: 40px;
  border: 0;
  background: rgba(243, 207, 122, 0.12);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.qty button:hover { background: rgba(243, 207, 122, 0.26); }
.qty button:active { background: rgba(243, 207, 122, 0.4); }
.qty input[type='number'] {
  width: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty input[type='number']:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field > .qty { justify-self: start; }
.item-actions .qty { min-height: 36px; }
.item-actions .qty button { width: 32px; }
.item-actions .qty input[type='number'] { width: 34px; }

/* ───────────── Bandeau du clip karaoké ───────────── */
.clip-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-color: rgba(214, 40, 57, 0.5); background: linear-gradient(120deg, rgba(214, 40, 57, 0.2), rgba(243, 207, 122, 0.1) 60%, rgba(255, 255, 255, 0.04)); }
.clip-banner .lead { margin-bottom: 0; }
.clip-banner-ico { font-size: 2.6rem; line-height: 1; animation: bounce 1.6s ease-in-out infinite; }
