/* =========================================================
   🌸 SAINT-VALENTIN MINI SITE — One-file (HTML/CSS/JS)
   - Design moderne, minimaliste, romantique
   - Responsive (mobile + desktop)
   - Animations fluides
   ========================================================= */

.hidden {
  display: none !important;
}

:root {
  --bg1: #fff1f6;
  --bg2: #ffe4ec;
  --bg3: #ffd1e1;

  --rose: #ff4d88;
  --rose-dark: #e6326f;
  --red: #ff2f55;
  --white: #ffffff;

  --text: #2a0f18;
  --muted: rgba(42, 15, 24, 0.7);

  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 77, 136, 0.18);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 30px rgba(255, 77, 136, 0.20);

  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  overflow-x: hidden;
  /* Dégradé animé (bonus) */
  background: radial-gradient(1200px 800px at 20% 10%, var(--bg1), transparent 60%),
    radial-gradient(900px 700px at 85% 15%, var(--bg2), transparent 60%),
    radial-gradient(900px 700px at 55% 95%, var(--bg3), transparent 60%),
    linear-gradient(135deg, #fff, #ffeef5);
  position: relative;
}

/* Couche animée subtile */
.animated-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  filter: blur(0px);
}

/* “Bokeh” doux */
.bokeh {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 77, 136, 0.25) 55%, rgba(255, 47, 85, 0.08) 70%, transparent 75%);
  opacity: 0.65;
  animation: floaty 10s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes floaty {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(30px, -40px, 0) scale(1.08);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Un petit voile scintillant */
.sparkle {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%,
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.10),
      rgba(255, 77, 136, 0.10),
      rgba(255, 255, 255, 0.00));
  animation: spin 16s linear infinite;
  opacity: 0.55;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Layout
   ========================================================= */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 34px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transform: translateY(0);
  animation: popIn 700ms cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 136, 0.10);
  border: 1px solid rgba(255, 77, 136, 0.18);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.title {
  font-family: 'Dancing Script', cursive;
  color: #d63384;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);

}

.subtitle {
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 52ch;
}

.buttons-area {
  /* Zone où le bouton "Non" peut se déplacer (dans les limites) */
  position: relative;
  width: min(520px, 100%);
  height: 140px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-yes {
  background: linear-gradient(135deg, var(--rose), var(--red));
  color: var(--white);
}

.btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 47, 85, 0.24);
}

.btn-no {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(42, 15, 24, 0.10);
  /* Initially in flow */
  position: relative;
  transition: transform 160ms ease;
}

.btn-no:hover {
  filter: brightness(1.02);
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(42, 15, 24, 0.55);
}

/* =========================================================
   Success state
   ========================================================= */
.success {
  margin-top: 18px;
  display: none;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 77, 136, 0.22);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(255, 47, 85, 0.14);
}

.success.show {
  display: block;
  animation: loveReveal 600ms cubic-bezier(.2, .9, .2, 1) both;
  transform-origin: center;
}

@keyframes loveReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success h2 {
  margin: 0;
  font-size: clamp(18px, 2.7vw, 22px);
  color: var(--text);
}

.success p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   Hearts overlay (Oui click)
   ========================================================= */
.hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.heart {
  position: absolute;
  font-size: 22px;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: fall 1800ms ease-in forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 12px rgba(255, 47, 85, 0.18));
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(18deg) scale(1.05);
  }
}

/* =========================================================
   Small footer
   ========================================================= */
.footer {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(42, 15, 24, 0.45);
}

/* =========================================================
   Accessibility / Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Login Section Styles
   ========================================================= */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
  width: 100%;
}

.input-field {
  padding: 16px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255, 77, 136, 0.25);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 20px;
  font-family: inherit;
  font-weight: 600;
  color: var(--rose-dark);
  outline: none;
  width: 100%;
  max-width: 260px;
  text-align: center;
  letter-spacing: 3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 2px 4px rgba(255, 77, 136, 0.05);
}

.input-field::placeholder {
  color: rgba(255, 77, 136, 0.4);
  letter-spacing: 1.5px;
  font-size: 16px;
  font-weight: 400;
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--rose);
  box-shadow: 0 8px 18px rgba(255, 77, 136, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

/* Shake animation for error or generic use */
.error-msg {
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 47, 85, 0.15);
  color: var(--red);
  margin-top: 12px;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* =========================================================
   Quiz Section Styles
   ========================================================= */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.question-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--rose-dark);
  margin-bottom: 8px;
  min-height: 60px;
  /* avoid layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-input {
  padding: 14px 20px;
  border-radius: 18px;
  border: 2px solid var(--card-border);
  background: #fff;
  font-size: 16px;
  width: 100%;
  max-width: 350px;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}

.quiz-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 77, 136, 0.1);
}

.quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.btn-skip {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 16px;
  font-size: 14px;
}

.btn-skip:hover {
  background: rgba(255, 47, 85, 0.05);
}

.progress-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 77, 136, 0.2);
  transition: all 0.3s;
}

.dot.active {
  background: var(--rose);
  transform: scale(1.3);
}

@keyframes shake-input {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

.shake-input {
  animation: shake-input 0.3s ease-in-out;
  border-color: var(--red) !important;
}