/* ===== PAGE DEVIS / RENDEZ-VOUS ===== */

body.rdv-page {
  overflow-y: auto !important; /* autorise le scroll vertical */
  height: auto !important;
  min-height: 100vh;
}

/* ===== SECTION PRINCIPALE ===== */
.rdv-section {
  position: relative;
  z-index: 5;
  color: white;
  padding-top: 170px;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* ===== CONTAINER FORMULAIRE ===== */
.rdv-container {
  background: rgba(12, 22, 45, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 35px;
  padding: 60px 80px;
  max-width: 700px;
  width: 85%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  margin: 0 auto;
}

.rdv-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TITRES ===== */
.rdv-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.rdv-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #d9d9d9;
}

/* ===== FORMULAIRE ===== */
.rdv-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #e8e8e8;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  outline: none;
  background-color: #f5f5f5;
  font-size: 1rem;
  color: #0a1429;
  font-family: "Cormorant Garamond", serif;
}

/* Champ honeypot invisible */
.honeypot {
  display: none !important;
}

/* ===== BOUTON ===== */
.cta-devis {
  display: inline-block;
  align-self: center;
  margin-top: 30px;
  padding: 15px 40px;
  color: #0a1429;
  background-color: #f5f5f5;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}

.cta-devis:hover {
  background-color: rgba(10, 20, 41, 1);
  color: white;
  transform: translateY(-3px);
}

/* ===== CALENDLY CONTAINER ===== */
.rdv-calendly {
  background: rgba(10, 20, 41, 0.85); /* bleu foncé avec opacité */
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 3rem auto 0 auto;
  max-width: 900px;
  padding-bottom: 30px;
  height: 750px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  overflow: hidden; /* évite les débordements de l’iframe */
  margin-top: 0px;
}

.rdv-calendly.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Titre Calendly */
.rdv-calendly h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Texte sous le titre Calendly */
.rdv-calendly p {
  color: #d9d9d9;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Iframe Calendly intégré harmonieusement */
.rdv-calendly iframe {
  width: 100%;
  height: 650px;
  border: none;
  border-radius: 16px; /* coins arrondis sur le calendrier */
  overflow: hidden;
}

/* ===== ANIMATIONS GLOBALES ===== */
.rdv-container,
.rdv-title,
.rdv-form,
.rdv-calendly {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

.rdv-container.visible,
.rdv-title.visible,
.rdv-form.visible,
.rdv-calendly.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .rdv-container {
    padding: 40px 30px;
    border-radius: 25px;
  }

  .rdv-calendly {
    max-width: 95%;
    height: auto;
  }

  .rdv-calendly iframe {
    height: 600px;
  }
}

@media (max-width: 600px) {
  .rdv-container {
    padding: 30px 20px;
  }

  .rdv-title {
    font-size: 1.8rem;
  }

  .rdv-subtitle {
    font-size: 1rem;
  }

  .cta-devis {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .rdv-calendly {
    padding: 1.5rem;
    border-radius: 15px;
  }
}