/**
 * Théraform Latepoint Integration - Custom CSS
 * Version: 1.0.0
 * Description: Styles personnalisés pour intégrer le design Théraform avec Latepoint
 */

/* ==== RESET & BASE ==== */
.theraform-booking-wrapper * {
  box-sizing: border-box;
}

.theraform-booking-wrapper {
  font-family: 'Inter', sans-serif;
  color: #2D2D2D;
  background-color: #FFF9F2;
  background: linear-gradient(180deg, #FFF9F2 0%, #F0EDE3 100%);
  padding: 60px 20px;
}

/* ==== SECTION PRINCIPALE ==== */
.section-rdv-full {
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #FFF9F2 0%, #F0EDE3 100%);
}

/* ==== EN-TÊTE ==== */
.thera-header {
  font-family: 'Inter', sans-serif;
  position: relative;
  height: 65vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.thera-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28, 71, 35, 0.7) 0%, rgba(62, 72, 80, 0.5) 100%);
  z-index: 1;
}

.thera-header .breadcrumb,
.thera-header .thera-title {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 13px;
  color: #F0EDE3;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.95;
}

.breadcrumb span {
  color: #C1A264;
  font-weight: 600;
}

.thera-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  padding: 0 20px;
}

/* ==== WIDGET DE RÉSERVATION ==== */
.widget-rdv {
  background: transparent;
  padding: 80px 40px;
  border-radius: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-widget h2 {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #1C4723;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro-widget p {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  text-align: center;
  color: #3E4850;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.highlight {
  font-family: 'Inter', sans-serif;
  color: white;
  background: linear-gradient(120deg, #C1A264 0%, #E19314 100%);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(193, 162, 100, 0.3);
}

/* ==== AVANTAGES ==== */
.avantages-detail {
  font-family: 'Inter', sans-serif;
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 1000px;
  font-size: 16px;
  line-height: 1.7;
  display: grid;
  gap: 25px;
}

.avantages-detail li {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F7F5 100%);
  border-left: 5px solid #7A9C43;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(28, 71, 35, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.avantages-detail li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #7A9C43 0%, #1C4723 100%);
  transition: width 0.3s ease;
}

.avantages-detail li:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(28, 71, 35, 0.15);
}

.avantages-detail li:hover::before {
  width: 100%;
  opacity: 0.05;
}

/* ==== CERTIFICATIONS ==== */
.certifications-centre {
  font-family: 'Inter', sans-serif;
  max-width: 800px;
  margin: 60px auto;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F2 100%);
  border-radius: 20px;
  padding: 40px 45px;
  box-shadow: 0 8px 30px rgba(28, 71, 35, 0.1);
  border: 2px solid #F0EDE3;
  color: #1C4723;
  position: relative;
}

.certifications-centre::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #C1A264, #7A9C43);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.certifications-centre h3 {
  font-family: 'Inter', sans-serif;
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  color: #1C4723;
}

.certifications-centre ul {
  list-style: none;
  padding: 0;
}

.certifications-centre ul li {
  padding: 12px 0;
  font-size: 17px;
  color: #3E4850;
  line-height: 1.6;
}

/* ==== ÉTAPES ==== */
.etapes-widget {
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  margin: 60px 0 50px;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.etapes-widget::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #A5C2A6 0%, #7A9C43 50%, #A5C2A6 100%);
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.3;
}

.etape {
  font-family: 'Inter', sans-serif;
  padding: 14px 28px;
  background: white;
  border: 2px solid #F0EDE3;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  color: #3E4850;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.etape:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(28, 71, 35, 0.15);
}

.etape.active {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1C4723 0%, #7A9C43 100%);
  color: #fff;
  font-weight: 600;
  border-color: #1C4723;
  box-shadow: 0 4px 20px rgba(28, 71, 35, 0.3);
  transform: scale(1.05);
}

.choix-title {
  font-family: 'Inter', sans-serif;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #1C4723;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.choix-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #C1A264 0%, #7A9C43 100%);
  border-radius: 2px;
}

/* ==== STEPS ==== */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* ==== THÉRAPEUTES ==== */
.therapeutes {
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
  margin: 50px 0;
}

.card {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F7F5 100%);
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(28, 71, 35, 0.1);
  padding: 35px 30px;
  text-align: center;
  width: 200px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #7A9C43 0%, #1C4723 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 0.05;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 40px rgba(28, 71, 35, 0.2);
  border-color: #C1A264;
}

.card img {
  font-family: 'Inter', sans-serif;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: auto;
  border-radius: 50%;
  border: 4px solid #F0EDE3;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.card:hover img {
  border-color: #C1A264;
  transform: scale(1.1);
}

.card h4 {
  font-family: 'Inter', sans-serif;
  margin-top: 20px;
  color: #1C4723;
  font-weight: 600;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

/* ==== CALENDRIER ==== */
.calendar-container {
  max-width: 900px;
  margin: 30px auto;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.date-card {
  background: white;
  border: 2px solid #F0EDE3;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-card:hover {
  border-color: #C1A264;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(28, 71, 35, 0.1);
}

.date-card.selected {
  background: linear-gradient(135deg, #1C4723 0%, #7A9C43 100%);
  border-color: #1C4723;
  color: white;
}

.date-card .jour {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 5px;
}

.date-card .date-numero {
  font-size: 24px;
  font-weight: 700;
  margin: 5px 0;
}

.date-card .mois {
  font-size: 14px;
  opacity: 0.8;
}

/* ==== HORAIRES ==== */
.horaires-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.horaire-btn {
  background: white;
  border: 2px solid #F0EDE3;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #3E4850;
  cursor: pointer;
  transition: all 0.3s ease;
}

.horaire-btn:hover {
  border-color: #C1A264;
  background: #FFF9F2;
  transform: scale(1.05);
}

.horaire-btn.selected {
  background: linear-gradient(135deg, #C1A264 0%, #E19314 100%);
  border-color: #C1A264;
  color: white;
  box-shadow: 0 4px 15px rgba(193, 162, 100, 0.3);
}

/* ==== FORMULAIRE ==== */
.form-container {
  max-width: 600px;
  margin: 30px auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(28, 71, 35, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1C4723;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #F0EDE3;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #7A9C43;
  box-shadow: 0 0 0 3px rgba(122, 156, 67, 0.1);
}

.form-group input.valid {
  border-color: #7A9C43;
  background: rgba(122, 156, 67, 0.05);
}

.form-group input.invalid {
  border-color: #c33;
  background: rgba(204, 51, 51, 0.05);
}

.field-error {
  color: #c33;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

.field-success {
  color: #7A9C43;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.field-success.show {
  display: block;
}

/* ==== BOUTONS ==== */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #1C4723 0%, #7A9C43 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(28, 71, 35, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 71, 35, 0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #3E4850;
  border: 2px solid #F0EDE3;
}

.btn-secondary:hover {
  background: #F7F7F5;
  border-color: #C1A264;
}

/* ==== BARRE DE PROGRESSION ==== */
.progress-bar-container {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #F0EDE3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1C4723 0%, #7A9C43 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(122, 156, 67, 0.5);
}

.progress-text {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #3E4850;
  font-weight: 600;
}

/* ==== MESSAGES ==== */
.message {
  padding: 15px 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 14px;
  display: none;
}

.message.error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
  display: block;
}

.message.success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
  display: block;
}

/* ==== LOADING ==== */
.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  border: 4px solid #F0EDE3;
  border-top: 4px solid #7A9C43;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
  .intro-widget h2 {
    font-size: 36px;
  }

  .thera-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .thera-title {
    font-size: 28px;
    padding: 0 30px;
  }

  .widget-rdv {
    padding: 50px 25px;
  }

  .intro-widget h2 {
    font-size: 32px;
  }

  .intro-widget p {
    font-size: 18px;
    padding: 0 10px;
  }

  .therapeutes {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .card {
    width: 100%;
    max-width: 280px;
  }

  .etapes-widget::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .thera-title {
    font-size: 24px;
  }

  .intro-widget h2 {
    font-size: 28px;
  }

  .intro-widget p {
    font-size: 16px;
  }

  .choix-title {
    font-size: 22px;
  }
}

/* ==== INTÉGRATION LATEPOINT ==== */

/* Override Latepoint styles */
.latepoint-booking-form-element .theraform-booking-wrapper {
  font-family: 'Inter', sans-serif !important;
}

/* Latepoint buttons */
.latepoint .latepoint-btn,
.latepoint-btn-primary {
  background: linear-gradient(135deg, #1C4723 0%, #7A9C43 100%) !important;
  border: none !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(28, 71, 35, 0.25) !important;
  transition: all 0.3s ease !important;
  font-family: 'Inter', sans-serif !important;
}

.latepoint .latepoint-btn:hover,
.latepoint-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(28, 71, 35, 0.35) !important;
}

/* Latepoint form fields */
.latepoint input[type="text"],
.latepoint input[type="email"],
.latepoint input[type="tel"],
.latepoint select,
.latepoint textarea {
  border: 2px solid #F0EDE3 !important;
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
}

.latepoint input:focus,
.latepoint select:focus,
.latepoint textarea:focus {
  border-color: #7A9C43 !important;
  box-shadow: 0 0 0 3px rgba(122, 156, 67, 0.1) !important;
}

/* Latepoint timeslots */
.latepoint-available-time {
  background: white !important;
  border: 2px solid #F0EDE3 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.latepoint-available-time:hover {
  border-color: #C1A264 !important;
  transform: scale(1.05) !important;
}

.latepoint-available-time.selected {
  background: linear-gradient(135deg, #C1A264 0%, #E19314 100%) !important;
  border-color: #C1A264 !important;
  color: white !important;
}
