/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background: #1a0010;
  color: #fff;
  overflow-x: hidden;
}

/* ===== COEURS FLOTTANTS EN FOND ===== */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  font-size: 1.5rem;
  animation: floatUp linear infinite;
  opacity: 0.6;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, #5c0030 0%, #1a0010 70%);
  padding: 2rem;
}

.hero-content {
  animation: fadeInUp 1.2s ease forwards;
}

.big-heart {
  font-size: 6rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px #ff4d88);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.15); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.12); }
  56%       { transform: scale(1); }
}

.title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 30px #ff4d88;
  margin-bottom: 1rem;
}

.name {
  color: #ff80ab;
  font-style: italic;
  text-shadow: 0 0 40px #ff4d88, 0 0 80px #ff80ab;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #ffb3cc;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-love {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ff4d88, #ff80ab);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 0 25px #ff4d8880, 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: glowPulse 2s ease-in-out infinite;
}

.btn-love:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 0 40px #ff4d88, 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 25px #ff4d8880, 0 4px 15px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 45px #ff4d88, 0 4px 15px rgba(0,0,0,0.3); }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  font-size: 2rem;
  animation: bounce 1.5s infinite;
  opacity: 0.7;
  color: #ff80ab;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ===== MESSAGE SECTION ===== */
.message-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #1a0010 0%, #2d0020 50%, #1a0010 100%);
}

/* Enveloppe animée */
.envelope {
  width: 100px;
  height: 70px;
  position: relative;
  margin-bottom: 2rem;
  cursor: pointer;
  animation: envelopeFloat 3s ease-in-out infinite;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 35px solid #ff4d88;
  transform-origin: top center;
  animation: openFlap 2s ease-in-out 1s forwards;
  z-index: 2;
}

@keyframes openFlap {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}

.envelope-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 65px;
  background: linear-gradient(135deg, #cc3366, #ff4d88);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Carte message */
.message-card {
  max-width: 600px;
  background: linear-gradient(135deg, rgba(255,77,136,0.15), rgba(255,128,171,0.1));
  border: 1px solid rgba(255,77,136,0.4);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(255,77,136,0.2), inset 0 0 40px rgba(255,77,136,0.05);
  animation: fadeInUp 1s ease 2.5s both;
}

.message-card h2 {
  font-size: 1.8rem;
  color: #ff80ab;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px #ff4d88;
}

.message-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffd6e8;
  margin-bottom: 1.2rem;
}

.signature {
  font-style: italic;
  color: #ff80ab !important;
  font-size: 1rem !important;
  margin-top: 1.5rem !important;
}

/* ===== RAISONS SECTION ===== */
.reasons-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: radial-gradient(ellipse at center, #2d0020 0%, #1a0010 70%);
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ff80ab;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px #ff4d88;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.reason-card {
  background: linear-gradient(135deg, rgba(255,77,136,0.1), rgba(255,128,171,0.05));
  border: 1px solid rgba(255,77,136,0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.reason-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255,77,136,0.3);
  border-color: rgba(255,77,136,0.8);
}

.reason-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
  animation: iconPop 3s ease-in-out infinite;
}

.reason-card:nth-child(2) .reason-icon { animation-delay: 0.3s; }
.reason-card:nth-child(3) .reason-icon { animation-delay: 0.6s; }
.reason-card:nth-child(4) .reason-icon { animation-delay: 0.9s; }
.reason-card:nth-child(5) .reason-icon { animation-delay: 1.2s; }
.reason-card:nth-child(6) .reason-icon { animation-delay: 1.5s; }

@keyframes iconPop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.reason-card p {
  font-size: 0.95rem;
  color: #ffd6e8;
  line-height: 1.5;
}

/* ===== COMPTEUR SECTION ===== */
.counter-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #1a0010 0%, #0d0008 100%);
  text-align: center;
}

.counter-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ff80ab;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px #ff4d88;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.counter-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: bold;
  color: #ff4d88;
  text-shadow: 0 0 20px #ff4d88;
  font-family: 'Courier New', monospace;
}

.counter-label {
  font-size: 1rem;
  color: #ffb3cc;
  opacity: 0.8;
}

/* ===== FINAL SECTION ===== */
.final-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at center, #5c0030 0%, #1a0010 70%);
}

.final-hearts {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.final-hearts span {
  animation: heartbeat 1.5s ease-in-out infinite;
}
.final-hearts span:nth-child(2) { animation-delay: 0.2s; }
.final-hearts span:nth-child(3) { animation-delay: 0.4s; }
.final-hearts span:nth-child(4) { animation-delay: 0.6s; }
.final-hearts span:nth-child(5) { animation-delay: 0.8s; }

.final-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.2;
  text-shadow: 0 0 40px #ff4d88;
  margin-bottom: 1.5rem;
}

.final-sub {
  font-size: 1.3rem;
  color: #ffb3cc;
  margin-bottom: 3rem;
  font-style: italic;
}

.pulse-heart {
  font-size: 5rem;
  animation: pulseHeart 1s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #ff0055);
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px #ff0055); }
  50%       { transform: scale(1.3); filter: drop-shadow(0 0 40px #ff0055); }
}

/* ===== ANIMATIONS GÉNÉRALES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Observer animation au scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .message-card {
    padding: 2rem 1.5rem;
  }
  .counters {
    gap: 2rem;
  }
  .final-hearts {
    font-size: 1.8rem;
    gap: 0.5rem;
  }
}
