/* =========================================================
   ✨💖 KITSCH.CSS 💖✨ — plus c'est rose, plus c'est beau
   ========================================================= */
:root {
  --rose: #ff2e93;
  --rose-pale: #ffd1f0;
  --or: #ffd700;
  --or-fonce: #c99700;
  --violet: #8a2be2;
  --turquoise: #00e5ff;
  --vert: #7CFC00;
  --encre: #4a0e3c;
  --arc-en-ciel: linear-gradient(90deg, #ff0040, #ff8c00, #ffe600, #4dff00, #00e5ff, #6a5cff, #ff00d4, #ff0040);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  color: var(--encre);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='26' font-size='26'>🍼</text></svg>") 4 4, auto;
}
button, a { font: inherit; cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='26' font-size='26'>👆</text></svg>") 10 2, pointer; }

/* ---------- Fonds ---------- */
.page-captcha {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.7) 0 2px, transparent 3px) 0 0 / 40px 40px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.5) 0 1.5px, transparent 2.5px) 0 0 / 55px 55px,
    linear-gradient(135deg, #ff9ad5, #ffd1f0, #c9b8ff, #a8e6ff, #ff9ad5);
  background-size: 40px 40px, 55px 55px, 400% 400%;
  animation: degrade 14s ease infinite;
}
@keyframes degrade {
  0%, 100% { background-position: 0 0, 0 0, 0% 50%; }
  50%      { background-position: 0 0, 0 0, 100% 50%; }
}

/* ---------- Bandeau défilant ---------- */
.marquee {
  position: relative; z-index: 5; overflow: hidden; white-space: nowrap;
  background: var(--arc-en-ciel); background-size: 200% 100%; animation: degrade-x 4s linear infinite;
  border-top: 3px dashed var(--or); border-bottom: 3px dashed var(--or);
  font-weight: 700; color: #fff; text-shadow: 2px 2px 0 var(--encre); padding: 6px 0; font-size: 16px;
}
.marquee span { display: inline-block; padding-left: 100%; animation: defile 22s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }
@keyframes degrade-x { to { background-position: 200% 0; } }

.blink { animation: clignote 1s steps(2, start) infinite; }
@keyframes clignote { to { visibility: hidden; } }

/* ---------- Texte WordArt ---------- */
.wordart {
  font-family: "Lobster", cursive; font-weight: 400; font-size: clamp(34px, 8vw, 52px); margin: 0 0 10px;
  background: var(--arc-en-ciel); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: degrade-x 3s linear infinite;
  filter: drop-shadow(3px 3px 0 #fff) drop-shadow(3px 3px 0 var(--encre));
  transform: rotate(-3deg);
}

/* =========================================================
   CAPTCHA
   ========================================================= */
.gate { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 32px 16px; }
.gate-card {
  position: relative; width: 100%; max-width: 460px; text-align: center; padding: 28px 22px 22px;
  background: rgba(255,255,255,.85);
  border: 6px solid transparent; border-radius: 28px;
  background-clip: padding-box;
  box-shadow: 0 0 0 4px var(--or), 0 0 0 9px var(--rose), 0 0 40px 10px rgba(255, 46, 147, .5);
  animation: flotte 4s ease-in-out infinite;
}
@keyframes flotte { 50% { transform: translateY(-8px) rotate(.5deg); } }
.gate-card p { font-size: 17px; line-height: 1.45; margin: 0 0 22px; font-weight: 700; }
.gate-card .blink { color: var(--rose); }
.deco { margin-top: 18px; font-size: 22px; letter-spacing: 4px; }

.badge-new {
  position: absolute; top: -26px; right: -18px; width: 82px; height: 82px;
  display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.1;
  color: var(--encre); background: var(--or);
  clip-path: polygon(50% 0%, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 57%, 98% 77%, 75% 79%, 70% 100%, 50% 88%, 30% 100%, 25% 79%, 2% 77%, 15% 57%, 0% 40%, 20% 32%, 18% 10%, 39% 18%);
  animation: tourne 6s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.widget {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, #fff, #ffeef9); border: 3px solid var(--rose); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--violet);
  padding: 12px 12px 12px 14px; text-align: left; max-width: 330px; margin: 0 auto;
}
.widget-left { display: flex; align-items: center; gap: 12px; }
.check {
  width: 30px; height: 30px; border: 3px solid var(--rose); border-radius: 6px; background: #fff;
  display: grid; place-items: center; flex: none; padding: 0; transition: transform .15s;
}
.check:hover { transform: scale(1.15) rotate(-6deg); }
.check svg { display: none; width: 32px; height: 32px; }
.check.loading { border: 4px solid var(--rose-pale); border-top-color: var(--rose); border-radius: 50%; animation: tourne .7s linear infinite; }
.check.done { border: none; background: transparent; animation: boing .5s; }
.check.done svg { display: block; }
@keyframes boing { 40% { transform: scale(1.6); } }
.widget-label { font-size: 16px; font-weight: 700; line-height: 1.25; }
.widget-label small { display: block; color: var(--violet); font-size: 12px; font-weight: 400; }
.widget-brand { text-align: center; font-size: 9px; color: var(--violet); line-height: 1.2; flex: none; }
.widget-brand span { display: block; font-size: 28px; line-height: 1; margin-bottom: 2px; animation: wiggle 1.5s ease-in-out infinite; }

/* Challenge */
.challenge {
  position: fixed; inset: 0; display: none; place-items: center; padding: 16px; z-index: 20;
  background: rgba(138, 43, 226, .35); backdrop-filter: blur(3px);
}
.challenge.open { display: grid; animation: apparait .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes apparait { from { opacity: 0; transform: scale(.5) rotate(-10deg); } }
.panel {
  width: 100%; max-width: 410px; background: #fff; padding: 8px; border-radius: 16px;
  border: 4px solid var(--or); box-shadow: 0 0 0 4px var(--rose), 8px 8px 0 4px var(--violet);
}
.panel.shake { animation: shake .5s; }
@keyframes shake {
  20%, 60% { transform: translateX(-10px) rotate(-2deg); }
  40%, 80% { transform: translateX(10px) rotate(2deg); }
}
.panel-head {
  position: relative; overflow: hidden; color: #fff; padding: 16px 18px 18px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  text-shadow: 2px 2px 0 rgba(74, 14, 60, .5);
}
.panel-head::after {
  content: "✨ ⭐ ✨"; position: absolute; right: 10px; top: 8px; font-size: 14px; animation: clignote 1.2s steps(2, start) infinite;
}
.panel-head .l1 { font-size: 15px; font-weight: 700; }
.panel-head .l2 { font-family: "Lobster", cursive; font-size: 32px; line-height: 1.15; margin: 2px 0 4px; color: var(--or); }
.panel-head .l3 { font-size: 14px; }
.panel-head .l4 { font-size: 12px; opacity: .85; margin-top: 4px; }
.panel-head .l4:empty { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 8px 0; }
.tile {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; border-radius: 6px;
  background: var(--rose-pale);
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
.tile:hover img { transform: scale(1.05); }
.tile.sel img { transform: scale(.78) rotate(-4deg); }
.tile.sel { background: repeating-linear-gradient(45deg, var(--rose) 0 6px, var(--or) 6px 12px); }
.tile::after {
  content: "💖"; position: absolute; top: 2px; left: 4px; font-size: 22px;
  opacity: 0; transform: scale(.3); transition: .2s cubic-bezier(.3, 1.8, .5, 1);
}
.tile.sel::after { opacity: 1; transform: scale(1); }
.err { color: #e0005a; font-weight: 700; font-size: 14px; min-height: 20px; padding: 0 4px 6px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; border-top: 2px dotted var(--rose); padding-top: 8px; }
.icons { display: flex; gap: 2px; }
.icon-btn { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; display: grid; place-items: center; transition: transform .2s; }
.icon-btn:hover { background: var(--rose-pale); transform: rotate(20deg) scale(1.15); }
.verify {
  border: 3px solid var(--encre); border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 16px;
  color: var(--encre); background: linear-gradient(180deg, #fff6a8, var(--or) 50%, var(--or-fonce));
  box-shadow: 0 4px 0 var(--encre); transition: transform .1s;
}
.verify:hover { transform: translateY(-2px) scale(1.04); }
.verify:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px) scale(.8);
  background: var(--rose); color: #fff; padding: 12px 18px; border-radius: 16px; border: 3px solid var(--or);
  font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.3, 1.6, .5, 1);
  z-index: 50; max-width: calc(100% - 32px); text-align: center; box-shadow: 4px 4px 0 var(--violet);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- Paillettes du curseur ---------- */
.paillette {
  position: fixed; pointer-events: none; z-index: 100; font-size: 14px; line-height: 1;
  animation: paillette 900ms ease-out forwards;
}
@keyframes paillette {
  to { transform: translate(var(--dx), 40px) rotate(180deg) scale(.2); opacity: 0; }
}

/* =========================================================
   LA FÊTE
   ========================================================= */
.page-fete {
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 110%, #ff2e93 0%, transparent 55%),
    radial-gradient(ellipse at 10% 0%, #6a5cff 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, #00b3ff 0%, transparent 45%),
    #2a0845;
  background-attachment: fixed;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.balloons { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.balloon {
  position: absolute; bottom: -160px; font-size: 64px; line-height: 1;
  animation: monte linear infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
@keyframes monte {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  50%  { transform: translate(30px, -60vh) rotate(8deg); }
  100% { transform: translate(-10px, -130vh) rotate(-8deg); }
}
.marquee-fete { position: sticky; top: 0; }

.music {
  position: fixed; right: 12px; bottom: 12px; z-index: 30;
  border: 3px solid #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--violet)); box-shadow: 0 0 20px rgba(255, 46, 147, .8);
  animation: pulse 1.6s ease-in-out infinite;
}
.music[aria-pressed="true"] { background: linear-gradient(135deg, #00c853, #00e5ff); }
@keyframes pulse { 50% { scale: 1.08; } }

.fete {
  position: relative; z-index: 3; min-height: calc(100vh - 40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 90px; text-align: center;
}
.spinners { display: flex; gap: 28px; font-size: 42px; margin-bottom: 6px; }
.spinners span { display: inline-block; animation: tourne 3s linear infinite; }
.spinners span:nth-child(2) { animation: rebond .8s ease-in-out infinite alternate; }
.spinners span:nth-child(3) { animation-direction: reverse; }
@keyframes rebond { to { transform: translateY(-14px) scale(1.15); } }

.kicker {
  font-family: "Monoton", cursive; font-size: clamp(13px, 3.2vw, 20px); letter-spacing: .08em; color: var(--vert);
  text-shadow: 0 0 8px var(--vert), 0 0 18px var(--vert);
  animation: neon 2.5s infinite, pop .8s .2s both;
}
@keyframes neon { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .35; } }

.title {
  font-family: "Lobster", cursive; font-weight: 400;
  font-size: clamp(40px, 14vw, 150px); line-height: 1.1; margin: 6px 0 0; padding: 0 .1em .1em;
  color: var(--or);
  text-shadow:
    1px 1px 0 #ff9a00, 2px 2px 0 #ff7a00, 3px 3px 0 #ff5a00, 4px 4px 0 #ff2e93,
    5px 5px 0 #e0007a, 6px 6px 0 #b0006a, 7px 7px 0 #7a005a, 8px 8px 0 #4a0e3c,
    10px 14px 20px rgba(0,0,0,.5), 0 0 40px rgba(255, 215, 0, .7);
  transform: rotate(-4deg);
  animation: pop .9s .4s both, ondule 3s ease-in-out 1.3s infinite;
  user-select: none;
}
@keyframes ondule { 50% { transform: rotate(3deg) scale(1.04); } }
/* scale/rotate indépendants : ne pas écraser les transform propres à chaque élément */
@keyframes pop {
  from { opacity: 0; scale: .3; rotate: -30deg; }
  70%  { scale: 1.1; rotate: 4deg; }
  to   { opacity: 1; scale: 1; rotate: 0deg; }
}
.name {
  font-family: "Bungee Shade", cursive; font-size: clamp(30px, 8vw, 64px);
  background: var(--arc-en-ciel); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pop .8s .8s both, degrade-x 2.5s linear infinite;
}
.baby { margin-top: 8px; font-size: clamp(20px, 5vw, 30px); font-weight: 700; text-shadow: 2px 2px 0 var(--rose); animation: pop .8s 1s both; }
.baby b { color: var(--or); font-family: "Lobster", cursive; font-weight: 400; font-size: 1.3em; }
.wiggle { display: inline-block; animation: wiggle 1s ease-in-out infinite; }
@keyframes wiggle { 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }

.card {
  position: relative; margin: 34px auto 0; max-width: 580px; padding: 26px 30px;
  color: var(--encre); background: #fff8fd; border-radius: 26px;
  font-size: 19px; font-weight: 700; line-height: 1.5;
  border: 6px dashed var(--rose);
  box-shadow: 0 0 0 6px var(--or), 0 0 0 12px var(--turquoise), 0 0 50px rgba(255, 215, 0, .6);
  animation: pop .8s 1.2s both;
  transform: rotate(-1deg);
}
.card p { margin: 0; }
.card .sig { margin-top: 12px; font-family: "Lobster", cursive; font-weight: 400; font-size: 24px; color: var(--rose); }
.corner { position: absolute; font-size: 30px; animation: tourne 5s linear infinite; }
.corner.tl { top: -20px; left: -20px; } .corner.tr { top: -20px; right: -20px; }
.corner.bl { bottom: -20px; left: -20px; } .corner.br { bottom: -20px; right: -20px; }

.gifts-label {
  margin: 44px 0 16px; font-family: "Bungee Shade", cursive; font-size: clamp(22px, 5vw, 32px); color: var(--or);
  animation: pop .8s 1.4s both;
}
.gifts { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; width: 100%; max-width: 660px; }
.gift {
  position: relative; flex: 1 1 260px; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 22px; border-radius: 20px; text-decoration: none; color: var(--encre);
  background: linear-gradient(180deg, #fff6a8 0%, var(--or) 45%, var(--or-fonce) 100%);
  border: 4px solid #fff; box-shadow: 0 6px 0 var(--or-fonce), 0 0 30px rgba(255, 215, 0, .8);
  animation: pop .8s both, pulse 1.8s ease-in-out 2.5s infinite;
  transition: transform .15s;
}
.gift:nth-child(1) { animation-delay: 1.6s, 2.5s; }
.gift:nth-child(2) {
  animation-delay: 1.8s, 2.9s;
  background: linear-gradient(180deg, #ffe0f4 0%, #ff8fcf 45%, var(--rose) 100%);
  box-shadow: 0 6px 0 #b0006a, 0 0 30px rgba(255, 46, 147, .8);
}
.gift:hover { transform: translateY(-4px) rotate(-2deg) scale(1.05); }
.gift-emoji { font-size: 44px; line-height: 1; animation: wiggle 1.2s ease-in-out infinite; }
.gift-text strong { display: block; font-size: 21px; }
.gift-text small { font-size: 15px; font-weight: 700; }
.gift-star {
  position: absolute; top: -18px; right: -12px; width: 64px; height: 64px; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff; background: #e0005a;
  clip-path: polygon(50% 0%, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 57%, 98% 77%, 75% 79%, 70% 100%, 50% 88%, 30% 100%, 25% 79%, 2% 77%, 15% 57%, 0% 40%, 20% 32%, 18% 10%, 39% 18%);
  animation: tourne 4s linear infinite;
}
.counter {
  margin-top: 40px; font-size: 14px; padding: 6px 12px; background: #000; border: 2px inset #888; color: var(--vert);
  font-family: "Courier New", monospace; max-width: 100%;
}
.counter span { background: #222; padding: 0 4px; letter-spacing: 2px; }
.hint { margin-top: 14px; font-size: 14px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .balloon, .paillette { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
