:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe1ec;
  --pink-200: #ffc2d9;
  --pink-400: #ff8fab;
  --pink-600: #ff5c8a;
  --text: #4a2c3a;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #ffffff 0%, var(--pink-50) 55%, var(--pink-100) 100%);
  color: var(--text);
  font-family: 'Quicksand', system-ui, sans-serif;
  overflow-x: hidden;
}

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}
.screen.active { display: flex; }

.title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--pink-600);
  margin: 0 0 1rem;
}
.title.small { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.heart { display: inline-block; animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.taunt {
  min-height: 1.5em;
  color: var(--pink-600);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Ecran 1 : boutons --- */
.button-field {
  position: relative;
  width: min(90vw, 700px);
  height: min(60vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.btn {
  border: none;
  border-radius: 999px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, top 0.25s ease, left 0.25s ease, font-size 0.2s ease, padding 0.2s ease;
  box-shadow: 0 6px 18px rgba(255, 92, 138, 0.3);
}
.btn:active { transform: scale(0.95); }

.btn-yes {
  background: var(--pink-600);
  color: white;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

.btn-no {
  background: white;
  color: var(--pink-600);
  border: 2px solid var(--pink-400);
  padding: 1.4rem 3rem;
  font-size: 1.6rem;
  position: relative;
}
.btn-no.roaming {
  position: fixed;
}

/* --- Ecran 2 : cartes activités --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  width: min(90vw, 800px);
}

.card {
  background: white;
  border: 2px solid var(--pink-100);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.12);
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--pink-400);
  box-shadow: 0 8px 20px rgba(255, 92, 138, 0.22);
}
.card.selected {
  border-color: var(--pink-600);
  background: var(--pink-50);
}
.card .emoji { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.card .label { font-weight: 600; }

/* --- Ecran 3 : planning --- */
.chosen-activity {
  color: var(--pink-600);
  font-weight: 600;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.planning-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: min(90vw, 340px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  font-weight: 600;
}

.field input, .field select {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--pink-200);
  background: white;
  color: var(--text);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--pink-600);
}

.btn-confirm {
  background: var(--pink-600);
  color: white;
  padding: 0.9rem;
  font-size: 1.1rem;
  border-radius: 14px;
  margin-top: 0.5rem;
}

/* --- Ecran 4 : recap --- */
.recap {
  font-size: 1.2rem;
  font-weight: 600;
  background: white;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.15);
}
.subtext { color: var(--pink-600); }

/* --- Coeurs flottants en fond --- */
.floaties {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floaties span {
  position: absolute;
  bottom: -10%;
  font-size: 1.4rem;
  opacity: 0.5;
  animation: float linear infinite;
}
@keyframes float {
  to { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

.screen { z-index: 1; }

@media (max-width: 480px) {
  .btn-no { padding: 1.1rem 2.2rem; font-size: 1.3rem; }
}
