/* ===========================
   LA BOUM — VERSION GARDEN PARTY
   Inspiré des affiches du film (1980)
   Fond crème, couleurs vives, typo ronde
   =========================== */

:root {
  --red: #E63946;
  --blue: #457B9D;
  --blue-light: #7EB8DA;
  --green: #5FAD56;
  --yellow: #F4D35E;
  --pink: #F28DAA;
  --orange: #F4A261;
  --cream: #FDF6EC;
  --cream-dark: #F5EBDA;
  --text: #3D2B1F;
  --text-muted: #7A6B5D;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   CONFETTI CANVAS
   =========================== */

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

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.deco-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Disco Ball */
.disco-ball {
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 20px rgba(242, 141, 170, 0.2));
}

@keyframes facetShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.facet.f1  { animation: facetShimmer 2s ease-in-out infinite; }
.facet.f2  { animation: facetShimmer 2.3s ease-in-out infinite 0.3s; }
.facet.f3  { animation: facetShimmer 1.8s ease-in-out infinite 0.6s; }
.facet.f4  { animation: facetShimmer 2.5s ease-in-out infinite 0.9s; }
.facet.f5  { animation: facetShimmer 2.1s ease-in-out infinite 0.2s; }
.facet.f6  { animation: facetShimmer 1.9s ease-in-out infinite 0.5s; }
.facet.f7  { animation: facetShimmer 2.4s ease-in-out infinite 0.8s; }
.facet.f8  { animation: facetShimmer 2.2s ease-in-out infinite 0.1s; }
.facet.f9  { animation: facetShimmer 2s ease-in-out infinite 0.7s; }
.facet.f10 { animation: facetShimmer 2.3s ease-in-out infinite 0.4s; }
.facet.f11 { animation: facetShimmer 1.7s ease-in-out infinite 1s; }
.facet.f12 { animation: facetShimmer 2.1s ease-in-out infinite 0.15s; }

/* Title — each letter a different color */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.hero__title span { display: inline-block; }
.hero__title .space { width: 0.3em; }
.hero__title .l1 { color: var(--red); }
.hero__title .l2 { color: var(--blue); }
.hero__title .l3 { color: var(--green); }
.hero__title .l4 { color: var(--yellow); }
.hero__title .l5 { color: var(--pink); }
.hero__title .l6 { color: var(--orange); }

.hero__version {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.countdown__block { text-align: center; }

.countdown__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.countdown__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.countdown__sep {
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-top: -1rem;
}

.hero__date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hero__subtitle span {
  font-weight: 700;
  color: var(--red);
}

.hero__tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero__description {
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.scroll-indicator {
  display: block;
  margin: 0 auto;
}

@keyframes scrollBounce {
  0%, 100% { cy: 16; }
  50% { cy: 28; }
}

.scroll-dot { animation: scrollBounce 1.5s ease-in-out infinite; }

/* ===========================
   SECTION TITLES
   =========================== */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ===========================
   PROGRAMME
   =========================== */

.programme {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.programme__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.programme__card {
  background: #fff;
  border: 2px solid var(--cream-dark);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.programme__card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.08);
}

.card-icon { display: block; margin: 0 auto 1.2rem; }

.programme__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.programme__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.programme__card:nth-child(1) { border-top: 3px solid var(--red); }
.programme__card:nth-child(2) { border-top: 3px solid var(--yellow); }
.programme__card:nth-child(3) { border-top: 3px solid var(--blue); }
.programme__card:nth-child(4) { border-top: 3px solid var(--green); }
.programme__card:nth-child(5) { border-top: 3px solid var(--pink); }

/* SVG micro-animations */
@keyframes smoke {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50% { transform: translateY(-6px) translateX(2px); opacity: 0.15; }
}
.smoke-1 { animation: smoke 2.5s ease-in-out infinite; }
.smoke-2 { animation: smoke 3s ease-in-out infinite 0.5s; }
.smoke-3 { animation: smoke 2.8s ease-in-out infinite 1s; }

@keyframes floatNote {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-8px); opacity: 0.25; }
}
.note-1 { animation: floatNote 2s ease-in-out infinite; }
.note-2 { animation: floatNote 2.5s ease-in-out infinite 0.8s; }

@keyframes bubble {
  0% { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(-15px); opacity: 0; }
}
.b1 { animation: bubble 2s ease-out infinite; }
.b2 { animation: bubble 2.5s ease-out infinite 0.7s; }
.b3 { animation: bubble 1.8s ease-out infinite 1.2s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(0.6); }
}
.sp1 { animation: sparkle 1.5s ease-in-out infinite; }
.sp2 { animation: sparkle 2s ease-in-out infinite 0.5s; }

/* ===========================
   INFOS / BON À SAVOIR
   =========================== */

.infos {
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.infos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.infos__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 2px solid var(--cream-dark);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  opacity: 0;
  transform: translateY(20px);
}

.infos__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.infos__item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.infos__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===========================
   LIEU
   =========================== */

.lieu {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--cream-dark);
}

.lieu__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lieu__pin {
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(230, 57, 70, 0.2));
}

.lieu__text { text-align: left; }

.lieu__address {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.lieu__city {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lieu__link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.lieu__link:hover { color: var(--blue); }

/* ===========================
   PLAYLIST
   =========================== */

.playlist {
  padding: 4rem 2rem;
  text-align: center;
}

.playlist__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.playlist__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: #1DB954;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.3s;
}

.playlist__btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(29, 185, 84, 0.3);
}

.playlist__btn svg { flex-shrink: 0; }

/* ===========================
   RSVP
   =========================== */

.rsvp {
  padding: 5rem 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.rsvp__intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row { display: flex; gap: 1rem; }
.form-group { flex: 1; text-align: left; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder { color: #c4b8a8; }
.form-group input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(242, 141, 170, 0.15);
}

/* Guest counter */
.guest-counter {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 160px;
}

.guest-counter input {
  width: 50px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
  padding: 0.8rem 0.4rem;
}

.guest-counter input::-webkit-inner-spin-button,
.guest-counter input::-webkit-outer-spin-button { -webkit-appearance: none; }

.guest-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--cream-dark);
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.guest-btn:first-child { border-radius: 12px 0 0 12px; }
.guest-btn:last-child { border-radius: 0 12px 12px 0; }

.guest-btn:hover {
  background: var(--cream-dark);
  border-color: var(--pink);
}

.rsvp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--red);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  margin-top: 0.5rem;
}

.rsvp__btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.3);
  background: #d32f3f;
}

.rsvp__btn:active { transform: scale(0.98); }

.btn-check { display: none; }
.rsvp__btn.success .btn-check { display: block; }
.rsvp__btn.success span { display: none; }
.rsvp__btn.success { background: var(--green); }

.rsvp__success {
  display: none;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
}

.rsvp__success.visible { display: block; }

/* ===========================
   FOOTER
   =========================== */

.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 2px solid var(--cream-dark);
}

.footer p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.footer__small {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  margin-top: 0.5rem;
  color: #b5a898 !important;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 1.2rem; }
  .programme__grid { grid-template-columns: 1fr; }
  .infos__grid { grid-template-columns: 1fr; }
  .lieu__content { flex-direction: column; text-align: center; }
  .lieu__text { text-align: center; }
  .hero__title { font-size: clamp(3rem, 14vw, 5rem); }
  .countdown { gap: 0.4rem; }
  .countdown__number { font-size: clamp(1.4rem, 4vw, 2rem); }
}
