/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: #111;
  background-color: #f5f0e6;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   VARIABLES COULEURS
   ========================================== */

:root {
  --color-cream: #f5f0e6;
  --color-black: #111;
  --color-gold: #c9a227;
  --color-gold-light: #d4b03a;
  --color-overlay: rgba(0, 0, 0, 0.5);
}

/* ==========================================
   CONTAINER
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image hero responsive */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* CTA en bas du hero */
.hero-cta {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}

/* Bouton hero */
.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--color-gold);
  color: var(--color-black);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.hero-button:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

/* ==========================================
   ANIMATIONS D'APPARITION
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.fade-in-delay-3 {
  animation: fadeInUp 1s ease-out 0.9s backwards;
}

/* ==========================================
   SECTION INFORMATIONS
   ========================================== */

.event-info {
  padding: 80px 20px;
  background-color: var(--color-cream);
}

.event-tagline {
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 60px;
  line-height: 1.8;
}

/* Grille de cartes */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Carte individuelle */
.info-card {
  background: white;
  padding: 40px 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-detail {
  font-size: 1.2rem;
  color: var(--color-black);
  line-height: 1.6;
}

/* ==========================================
   COMPTE À REBOURS
   ========================================== */

.countdown {
  padding: 80px 20px;
  background-color: var(--color-black);
  color: white;
}

.countdown h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--color-gold);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.time-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: "Arial", sans-serif;
}

.time-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  color: #ccc;
}

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

.rsvp {
  padding: 80px 20px;
  background-color: var(--color-cream);
}

.rsvp h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--color-black);
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease;
}

#guestsGroup {
  overflow: hidden;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-black);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

/* Bouton de soumission */
.submit-button {
  width: 100%;
  padding: 15px 30px;
  background-color: var(--color-gold);
  color: var(--color-black);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.submit-button:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

/* Message de succès */
.success-message {
  max-width: 600px;
  margin: 30px auto 0;
  padding: 20px;
  background-color: #4caf50;
  color: white;
  text-align: center;
  border-radius: 5px;
  font-size: 1.1rem;
}

.success-message.hidden {
  display: none;
}

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

.footer {
  padding: 40px 20px;
  background-color: var(--color-black);
  color: white;
  text-align: center;
}

.footer p {
  font-style: italic;
  font-size: 1.1rem;
  color: #ccc;
}

/* ==========================================
   ANIMATION AU SCROLL
   ========================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: unset;
    display: block;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .hero-cta {
    position: relative;
    bottom: unset;
    left: unset;
    transform: none;
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .hero-button {
    font-size: 1rem;
    padding: 12px 30px;
  }

  .event-tagline {
    font-size: 1.1rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .countdown h2 {
    font-size: 1.5rem;
  }

  .time-value {
    font-size: 2rem;
  }

  .time-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .countdown-timer {
    gap: 10px;
  }

  .time-unit {
    min-width: 60px;
  }

  .rsvp-form {
    padding: 30px 20px;
  }
}

/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   BOUTON MUSIQUE
   ========================================== */

#music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: rgba(245, 240, 230, 0.85);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#music-toggle:hover {
  transform: scale(1.1);
  background: rgba(201, 162, 39, 0.15);
}
