/* ====== Thème commun : couleurs, polices, décor ====== */
:root {
  --burgundy: #7d1533;
  --burgundy-dark: #4f0b20;
  --wine: #9c1f45;
  --pink: #f39bb7;
  --pink-soft: #f8c4d4;
  --pink-bg: #f6b7c8;
  --cream: #f8e8dd;
  --cream-dark: #ecd3c4;
  --gold: #d9a441;
  --gold-light: #f3d38a;
  --ink: #3a0a18;
  --white: #fff8f6;
  --radius: 14px;
  --font-title: 'Great Vibes', cursive;
  --font-hand: 'Dancing Script', cursive;
  --font-num: 'Playfair Display', Georgia, serif;
  --font-ui: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #f9d0dc; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, #6d1230 0%, rgba(109, 18, 48, .65) 45%, transparent 75%),
    radial-gradient(circle at 15% 60%, rgba(255, 255, 255, .25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .2), transparent 40%),
    linear-gradient(180deg, #c45375 0%, #e88aa6 35%, #f4b3c6 70%, #f9d0dc 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Bokeh / lumières floues */
.bokeh { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bokeh span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 200, .55), transparent 70%);
  animation: bokeh 9s ease-in-out infinite alternate;
}
@keyframes bokeh { from { transform: translateY(0) scale(1); opacity: .35 } to { transform: translateY(-25px) scale(1.15); opacity: .8 } }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* Guirlande lumineuse */
.garland { position: fixed; top: 0; left: 0; right: 0; height: 60px; pointer-events: none; z-index: 2; }
.garland svg { width: 100%; height: 100%; }
.garland .bulb { animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px #ffe7a8) } 50% { opacity: .35; filter: none } }

/* Boules de Noël suspendues */
.ornament { position: fixed; top: 0; z-index: 3; pointer-events: none; transform-origin: top center; animation: swing 4s ease-in-out infinite; }
.ornament::before { content: ''; display: block; width: 2px; margin: 0 auto; background: rgba(255, 230, 200, .8); height: var(--len, 60px); }
.ornament .ball {
  width: var(--size, 42px); height: var(--size, 42px); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 6%, var(--c1, #e0315a) 18%, var(--c2, #7d1533) 85%);
  box-shadow: 0 6px 14px rgba(80, 0, 20, .35);
  position: relative;
}
.ornament .ball::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 9px; border-radius: 3px; background: linear-gradient(var(--gold-light), var(--gold));
}
.ornament.gold .ball { --c1: #f5d27e; --c2: #b9802a; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) } }

/* Barre du haut style navigateur */
.topbar {
  position: relative; z-index: 5;
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 10px 22px; color: var(--burgundy-dark);
  font-family: var(--font-hand); font-size: 1.15rem;
}
.topbar .tag { background: rgba(255, 240, 244, .75); padding: 4px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(120, 10, 40, .12); }

/* Boutons */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  border: none; border-radius: 999px; padding: 10px 20px; cursor: pointer;
  background: var(--burgundy); color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 11, 32, .3);
  transition: transform .15s, box-shadow .15s, background .15s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 11, 32, .35); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255, 248, 246, .85); color: var(--burgundy); }
.btn.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--burgundy-dark); }
.btn.small { padding: 6px 14px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px);
  background: var(--burgundy); color: var(--white); padding: 14px 22px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(60, 0, 20, .35); z-index: 1000; max-width: calc(100% - 32px);
  font-size: .95rem; text-align: center; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--gold-light); }

@media (max-width: 980px) { body { background-attachment: scroll; min-height: 100vh; } }
