/* ============================================================
   Pour Ruth Evelda KOUDEDE — feuille de style
   Palette : nuit de fête + or, magenta, cyan, corail
============================================================ */
:root {
  --night-1: #2d1b4e;
  --night-2: #140720;
  --gold: #ffd166;
  --magenta: #ff4d9d;
  --cyan: #48d6c4;
  --coral: #ff7a59;
  --cream: #fff6e9;
  --ink: #0d0416;

  --font-script: "Great Vibes", cursive;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--night-2);
  overflow: hidden;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.screen.is-active { display: flex; }

/* ==================== ÉCRAN 1 : L'AVERTISSEMENT ==================== */
.gate {
  background:
    radial-gradient(1200px 800px at 50% -10%, #3a1d5c 0%, transparent 60%),
    radial-gradient(900px 900px at 50% 120%, #1c0a33 0%, transparent 55%),
    linear-gradient(160deg, var(--night-1), var(--night-2));
}

.gate__glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,157,.35), transparent 70%);
  filter: blur(40px);
  animation: pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.15); opacity: .85; }
}

.gate__card {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: rgba(20, 7, 32, .72);
  border: 1px solid rgba(255, 209, 102, .28);
  border-radius: 26px;
  padding: 44px 36px 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  animation: cardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.gate__seal {
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(255,209,102,.6));
  margin-bottom: 14px;
  animation: sealBlink 1.6s steps(1) infinite;
}
@keyframes sealBlink { 0%,70%{opacity:1} 71%,100%{opacity:.35} }

.gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: .3px;
}
.gate__title span {
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255,209,102,.35);
}

.gate__aside {
  font-style: italic;
  color: rgba(255,246,233,.62);
  font-size: .95rem;
  margin: 10px 0 22px;
}

.gate__body {
  font-weight: 300;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255,246,233,.92);
}
.gate__body em { color: var(--magenta); font-style: normal; font-weight: 600; }

.gate__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .5px;
  border: none;
  border-radius: 999px;
  padding: 14px 40px;
  cursor: pointer;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn--oui {
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 12px 30px rgba(255,122,89,.4);
}
.btn--oui:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px rgba(255,122,89,.55); }

.btn--non {
  background: linear-gradient(135deg, #e9e4f0, #c9bfe0);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.btn--non:hover { transform: translateY(-3px) scale(1.04); }

.gate__twist {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--magenta);
  animation: twistIn .5s ease both;
}
@keyframes twistIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: none; }
}

/* état "gate qui s'efface" avant la fête */
.gate.gate--leaving { animation: gateOut .6s ease forwards; }
@keyframes gateOut {
  to { opacity: 0; transform: scale(1.12); filter: blur(6px); }
}

/* ==================== ÉCRAN 2 : LA FÊTE ==================== */
.party {
  background:
    radial-gradient(1000px 700px at 20% 10%, #3b1361 0%, transparent 55%),
    radial-gradient(1000px 700px at 85% 90%, #6a1049 0%, transparent 55%),
    linear-gradient(160deg, #1b0836, #0b0418);
}
.party.is-active { display: flex; }
.party.party--enter { animation: partyIn 1s ease both; }
@keyframes partyIn { from { opacity: 0; } to { opacity: 1; } }

.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floaters, .photos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* émojis flottants */
.floater {
  position: absolute;
  bottom: -60px;
  font-size: 2rem;
  will-change: transform, opacity;
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-112vh) rotate(360deg); opacity: 0; }
}

/* ballons */
.balloon {
  position: absolute;
  bottom: -160px;
  width: 62px;
  height: 78px;
  border-radius: 50% 50% 48% 48%;
  will-change: transform;
  animation-name: floatUp;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  box-shadow: inset -10px -12px 22px rgba(0,0,0,.22);
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -46px; left: 50%;
  width: 1px; height: 46px;
  background: rgba(255,255,255,.5);
  transform: translateX(-50%);
}
.balloon::before {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 10px; height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-55vh) translateX(24px); }
  100% { transform: translateY(-120vh) translateX(-14px); }
}

/* photos qui dérivent */
.photo {
  position: absolute;
  width: clamp(130px, 20vw, 240px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  will-change: transform;
  opacity: .96;
}

/* message central */
.wish {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 620px;
  padding: 34px 26px;
  border-radius: 28px;
  background: rgba(11, 4, 24, .46);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  animation: wishPop 1s cubic-bezier(.2,.9,.2,1.1) .35s both;
}
@keyframes wishPop {
  from { opacity: 0; transform: translateY(30px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

.wish__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: .9rem;
  margin-bottom: 6px;
}
.wish__joyeux {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: .8;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255,209,102,.5);
}
.wish__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  line-height: 1.05;
  margin: 4px 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.wish__name span {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  background: linear-gradient(90deg, var(--magenta), var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wish__text {
  font-weight: 300;
  font-size: clamp(.98rem, 2.6vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255,246,233,.94);
}

.btn--boom {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(255,77,157,.4);
}
.btn--boom:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 42px rgba(72,214,196,.5); }

/* ==================== responsive ==================== */
@media (max-width: 520px) {
  .gate__card { padding: 34px 22px 32px; }
  .btn { padding: 13px 32px; }
  .wish { padding: 26px 18px; }
}

/* accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .gate__glow, .gate__seal, .floater, .balloon { animation: none; }
  .party--enter, .wish, .gate__card { animation-duration: .01ms; }
}
