@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap');

body {
  font-family: 'Playfair Display', serif;
}

.menu-link {
  position: relative;
  transition: color 0.3s ease;
  color: #d4af37;
}


.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

.menu-link:hover {
  color: #000000;
}

.menu-link:hover::after {
  width: 100%;
}

.scroll-bar {
  height: 4px;
  background-color: #d4af37;
  margin: 50px auto 0;
  transition: width 0.3s ease-out;
  width: 0%;
}

.section-divider {
  height: 4px;
  background-color: #d4af37;
  margin: 100px auto;
  width: 66%;
  transition: width 0.5s ease;
}

.fade-section {
  opacity: 0;
  transition: opacity 3s ease; /* durera un peu plus longtemps */
  margin-bottom: 80px; /* ajoute un petit espace entre les div */
}

.fade-section.visible {
  opacity: 1;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem; /* plus petit pour mobile */
  color: #d4af37;
  line-height: 1;
  text-align: center;
  display: block;
}

@media (min-width: 768px) {
  .countdown-number {
    font-size: 4rem; /* grand à partir du desktop */
  }
}

.elegant-number {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.elegant-number:hover {
  transform: scale(1.05);
}

.countdown-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #6b7280; /* gris chic */
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#rsvp.fade-section {
  margin-bottom: 0;
}

.popup-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  font-weight: normal;
  color: #e6b7a9;
  text-align: center;
  font-style: italic;
}


/* Style élégant des champs */
.rsvp-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #d4af37;
  background: transparent;
  padding: 0.75rem 0;
  outline: none;
  font-family: 'Playfair Display', serif;
  color: #333;
  font-size: 1rem;
}

.rsvp-input::placeholder {
  color: #aaa;
}

/* Radio boutons stylés */
.rsvp-radio {
  accent-color: #d4af37;
}

/* Bouton ajouter une personne */
#add-person {
  margin-top: 1rem;
}

/* Champs invités supplémentaires */
.additional-person {
  background: #f9f9f9;
  border: 1px dashed #d4af37;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
}

/* Bouton supprimer une personne */
.remove-person {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #d4af37;
  font-size: 1.2rem;
  cursor: pointer;
}

/*Houppa&Soiree*/
@keyframes parentsExpandLeft {
  0% {
    opacity: 0;
    transform: scale(0.8) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(-40px);
  }
}

@keyframes parentsExpandRight {
  0% {
    opacity: 0;
    transform: scale(0.8) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(40px);
  }
}

.parent-left {
  animation: parentsExpandLeft 2.5s ease-out forwards;
}

.parent-right {
  animation: parentsExpandRight 2.5s ease-out forwards;
}

/* Optionnel : petit effet hover élégant */
.parent-left:hover, .parent-right:hover {
  color: #d4af37;
  transition: color 0.3s ease;
}

/*Loader*/ 
.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #d4af37;
  border-color: #d4af37 transparent #d4af37 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
