/* ============================================
   CORRECTIONS FINALES - ESTHÉTIQUE
   ============================================ */

/* HERO SECTION - Hauteur FIXE 100vh sur desktop, auto sur mobile */
@media (min-width: 769px) {
  .hero-booking-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .sd-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
  }

  .sd-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
  }

  .sd-hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

  .hero-booking-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* Mobile - Pas de hauteur fixe, le formulaire prend tout l'espace */
@media (max-width: 768px) {
  .hero-booking-container {
    background: transparent !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .sd-booking-widget {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}

/* RÉCAPITULATIF/PAIEMENT - Ultra compact */

/* Options de paiement compactes */

.sd-payment-option {
  margin-bottom: 0.25rem;
}

.sd-payment-option-header {
  padding: 0.4rem 0.5rem;
}

.sd-payment-option-title {
  font-size: 0.7rem;
}

.sd-payment-option-content {
  padding: 0.4rem 0.5rem;
}

/* Input Stripe CB - Fix interaction COMPLET */
.sd-card-element-wrapper {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.sd-card-element-wrapper .sd-form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.sd-card-element,
#sdCardElement {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px;
  cursor: text;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.sd-card-element:focus-within,
#sdCardElement:focus-within {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* L'iframe Stripe doit être cliquable */

/* S'assurer que rien ne bloque l'iframe */
#sdCardElement > *,
.sd-card-element > * {
  pointer-events: auto !important;
}

/* Supprimer tout overlay qui pourrait bloquer */
.sd-card-element::before,
.sd-card-element::after,
#sdCardElement::before,
#sdCardElement::after {
  display: none !important;
  content: none !important;
}

/* S'assurer que le parent ne bloque pas */
.sd-payment-option-content {
  pointer-events: auto !important;
  position: relative;
}

/* Erreurs carte */
.sd-card-errors {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  color: #dc3545;
  min-height: 1rem;
}

/* ============================================
   ACCORDEONS RÉCAPITULATIF - Compact
   ============================================ */
.sd-accordion {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  margin-bottom: 0.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.sd-accordion-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s ease;
  user-select: none;
}

.sd-accordion-header:hover {
  background: rgba(212, 175, 55, 0.1);
}

.sd-accordion-header svg:first-child {
  color: #d4af37;
  flex-shrink: 0;
}

.sd-accordion-header span:not(.sd-accordion-price) {
  flex: 1;
  font-size: 0.7rem;
  font-weight: 600;
  color: black;
}

.sd-accordion-price {
  font-size: 0.65rem;
  font-weight: 600;
  color: #d4af37;
  margin-left: auto;
  margin-right: 0.3rem;
}

.sd-accordion-chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sd-accordion.open .sd-accordion-chevron {
  transform: rotate(180deg);
}

.sd-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 0.6rem;
}

.sd-accordion.open .sd-accordion-content {
  max-height: 300px;
  padding: 0.4rem 0.6rem;
}

/* Lignes du récap dans accordéon */
.sd-accordion .sd-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.15rem 0;
  font-size: 0.62rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sd-accordion .sd-summary-row:last-child {
  border-bottom: none;
}

.sd-accordion .sd-summary-label {
  color: rgba(8, 8, 8, 0.6);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.sd-accordion .sd-summary-value {
  color: black;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.sd-accordion .sd-summary-value--truncate {
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-accordion .sd-summary-subsection {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================
   OPTIONS DE PAIEMENT - Minimaliste & Sobre
   ============================================ */
.sd-payment-option {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  margin-bottom: 0.4rem !important;
  background: transparent !important;
}

.sd-payment-option:hover {
  border-color: rgba(212, 175, 55, 0.15) !important;
  background: rgba(255, 255, 255, 0.01) !important;
}

.sd-payment-option-header {
  padding: 0.5rem 0.6rem !important;
}

.sd-payment-option-radio label {
  gap: 0.5rem !important;
}

.sd-radio-dot {
  width: 14px !important;
  height: 14px !important;
  border-width: 1.5px !important;
}

.sd-radio-dot::after {
  width: 6px !important;
  height: 6px !important;
}

.sd-payment-option-title {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}

.sd-payment-cards {
  display: none !important; /* Masquer les logos pour plus de sobriété */
}

.sd-payment-option-content {
  padding: 0.5rem 0.6rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

.sd-payment-divider {
  margin: 0.4rem 0 !important;
  font-size: 0.6rem !important;
}

.sd-payment-divider span {
  padding: 0 0.5rem !important;
}

.sd-payment-onsite-info {
  font-size: 0.62rem !important;
  padding: 0.4rem !important;
  margin-bottom: 0.4rem !important;
}

.sd-payment-onsite-info svg {
  width: 12px !important;
  height: 12px !important;
}

/* Boutons paiement compacts */
.sd-btn--pay,
.sd-btn--onsite {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.sd-btn--pay svg,
.sd-btn--onsite svg {
  width: 14px !important;
  height: 14px !important;
}

/* Prix total compact */
.sd-payment-total {
  padding: 0.4rem 0.5rem !important;
  margin: 0.3rem 0 !important;
  border-radius: 6px !important;
}

.sd-payment-total-label {
  font-size: 0.65rem !important;
}

.sd-payment-total-value {
  font-size: 0.95rem !important;
}

/* Sécurité badge minimaliste */

/* ============================================
   CONFIRMATION - Moderne, Minimaliste, Accordéon
   ============================================ */
.sd-confirmation {
  text-align: center;
  padding: 0.5rem 0.4rem;
}

.sd-confirmation h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 0.4rem 0 0.2rem;
  letter-spacing: 0.02em;
}

.sd-confirmation > p {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sd-confirmation-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-confirmation-icon svg {
  width: 18px;
  height: 18px;
  color: #d4af37;
}

.sd-confirmation-details {
  text-align: left;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Utiliser le style accordéon pour la confirmation */
.sd-confirmation-details .sd-accordion {
  background: rgba(255, 255, 255, 0.02);
}

.sd-confirmation-details .sd-accordion-header {
  background: rgba(212, 175, 55, 0.03);
  padding: 0.4rem 0.5rem;
}

.sd-confirmation-details .sd-accordion-header:hover {
  background: rgba(212, 175, 55, 0.06);
}

.sd-confirmation-details .sd-accordion-header span:not(.sd-accordion-price) {
  font-size: 0.65rem;
}

.sd-confirmation-details .sd-accordion-content {
  padding: 0 0.5rem;
}

.sd-confirmation-details .sd-accordion.open .sd-accordion-content {
  padding: 0.3rem 0.5rem;
}

.sd-confirmation-details .sd-summary-row {
  padding: 0.12rem 0;
  font-size: 0.58rem;
}

.sd-confirmation-details .sd-summary-label {
  color: rgba(255, 255, 255, 0.5);
}

.sd-confirmation-details .sd-summary-value {
  color: #fff;
  font-size: 0.6rem;
}

.sd-amount-warning {
  color: #d4af37 !important;
  font-weight: 600 !important;
}

.sd-payment-reminder {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.3rem 0.4rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 5px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.sd-payment-reminder svg {
  width: 12px;
  height: 12px;
  color: #d4af37;
  flex-shrink: 0;
}

/* Bouton nouvelle réservation */
.sd-confirmation .sd-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.68rem;
}

/* 1. SD-DURATION-INPUT - Style élégant */
.sd-duration-inputs {
  display: flex;
  gap: 0.75rem;
}

.sd-duration-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s ease;
}

.sd-duration-input:focus-within {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.sd-duration-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #0a0a0a;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  width: 50px;
  padding: 0;
  -moz-appearance: textfield;
}

.sd-duration-input input::-webkit-outer-spin-button,
.sd-duration-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sd-duration-input input:focus {
  outline: none;
}

.sd-duration-input input::placeholder {
  color: #999;
}

.sd-duration-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

/* 2. IMAGES NOS SERVICES - Responsive correct */
.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  max-height: 400px;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .service-card {
    min-height: 240px;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .service-card {
    min-height: 200px;
    max-height: 260px;
  }
}

/* 3. IMAGE COURSES HERO - En HTML pour SEO */
.courses-hero {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.75) 100%
  ) !important;
}

.courses-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

/* 5. BANDEAU COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: #d4af37;
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #d4af37;
  color: #0a0a0a;
  border: none;
}

.cookie-btn-accept:hover {
  background: #e8c968;
  transform: translateY(-1px);
}

.cookie-btn-refuse {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-refuse:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.875rem 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-text {
    min-width: auto;
  }

  .cookie-text p {
    font-size: 0.8rem;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 140px;
  }
}
