/**
 * Styles pour le système de réservation
 * Group New Mak Corporation
 * Développé par Yves NSIMBA
 */

/* ===========================================
   VARIABLES DE COULEURS (COHÉRENTES AVEC INDEX.HTML)
   =========================================== */

:root {
  --bs-primary: #215C5C;
  --bs-primary-rgb: 33, 92, 92;
  --bs-primary-hover: #144B4B;
  --bs-primary-hover-rgb: 20, 75, 75;
  --bs-secondary: #CCE8C9;
  --bs-secondary-rgb: 204, 232, 201;
  --bs-heading-color: #16181B;
  --bs-body-color: #494B5B;
  --bs-body-bg: #ffffff;
  --nav-bg: #ffffff;
  --nav-color: #fff;
  --nav-hover-color: #1f6bff;
  --dropdown-bg: #ffffff;
  --dropdown-color: #1f6bff;
  --dropdown-hover-bg: #f7f7f7;
  --nav-inverse: #000000;
  --nav-inverse-alt: #ffffff;
}

/* ===========================================
   STYLES NAVBAR (UTILISE LES STYLES D'INDEX.HTML)
   =========================================== */

/* La navbar utilise maintenant les styles d'index.html via style.css */

/* ===========================================
   STYLES GÉNÉRAUX DE RÉSERVATION
   =========================================== */

.hero__booking {
  background: 
    radial-gradient(circle at 30% 70%, rgba(var(--bs-primary-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(var(--bs-secondary-rgb), 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.02) 0%, rgba(var(--bs-secondary-rgb), 0.04) 100%);
  color: var(--bs-heading-color);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero__booking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bookingGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(33,92,92,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bookingGrid)"/></svg>');
  opacity: 0.6;
  z-index: 1;
  animation: subtleFloat 25s ease-in-out infinite;
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.hero__booking .container {
  position: relative;
  z-index: 2;
}

.hero__booking .hero-subtitle {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  color: white;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 25px rgba(var(--bs-primary-rgb), 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__booking .hero-subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.hero__booking .hero-subtitle:hover::before {
  left: 100%;
}

.hero__booking .hero-subtitle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 35px rgba(var(--bs-primary-rgb), 0.4);
}

.hero__booking .hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--bs-heading-color) 0%, var(--bs-primary) 50%, var(--bs-primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -0.02em;
}

.hero__booking .hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  border-radius: 2px;
  animation: expandLine 2s ease-out 1s both;
}

@keyframes expandLine {
  0% { width: 0; }
  100% { width: 80px; }
}

.hero__booking .hero-description {
  font-size: 1.2rem;
  color: var(--bs-body-color);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  opacity: 0.9;
}

/* ===========================================
   SECTION FORMULAIRE DE RÉSERVATION
   =========================================== */

.booking__form {
  padding: 100px 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(var(--bs-primary-rgb), 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--bs-secondary-rgb), 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.01) 0%, rgba(var(--bs-secondary-rgb), 0.02) 100%);
  position: relative;
  overflow: hidden;
}

.booking__form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bookingDots" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="0.5" fill="rgba(33,92,92,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23bookingDots)"/></svg>');
  opacity: 0.4;
  z-index: 1;
}

.booking__form .container {
  position: relative;
  z-index: 2;
}

/* ===========================================
   ÉTAPES DE RÉSERVATION
   =========================================== */

.booking-steps {
  margin-bottom: 4rem;
  position: relative;
}

.booking-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 50%, var(--bs-primary) 100%);
  z-index: 1;
  opacity: 0.3;
}

.step-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  z-index: 2;
}

.step-item.active {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  color: white;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(var(--bs-primary-rgb), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.step-item.completed {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.step-item.completed .step-number {
  background: rgba(255, 255, 255, 0.3);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===========================================
   FORMULAIRE DE RÉSERVATION
   =========================================== */

.booking-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 
    0 25px 80px rgba(var(--bs-primary-rgb), 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.booking-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 50%, var(--bs-primary-hover) 100%);
  border-radius: 30px 30px 0 0;
}

.form-step {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
  display: block;
}

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

.step-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.step-header h3 {
  color: #343a40;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-header p {
  color: #6c757d;
  margin: 0;
}

/* ===========================================
   OPTIONS DE SERVICE
   =========================================== */

.service-option {
  position: relative;
  margin-bottom: 1.5rem;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card {
  display: block;
  padding: 2.5rem;
  border: 2px solid rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.02) 0%, rgba(var(--bs-secondary-rgb), 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--bs-primary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(var(--bs-primary-rgb), 0.15),
    0 0 0 1px rgba(var(--bs-primary-rgb), 0.1);
}

.service-option input[type="radio"]:checked + .service-card {
  border-color: var(--bs-primary);
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-hover-rgb), 0.08) 100%);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(var(--bs-primary-rgb), 0.2),
    0 0 0 2px rgba(var(--bs-primary-rgb), 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(var(--bs-primary-rgb), 0.4);
}

.service-content h4 {
  color: var(--bs-heading-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
}

.service-content p {
  color: var(--bs-body-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-content ul li {
  padding: 0.25rem 0;
  color: var(--bs-body-color);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  z-index: 2;
}

.service-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* ===========================================
   CHAMPS DE FORMULAIRE
   =========================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--bs-heading-color);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 15px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 
    0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25),
    0 8px 25px rgba(var(--bs-primary-rgb), 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}


.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===========================================
   RÉCAPITULATIF
   =========================================== */

.booking-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 15px;
  padding: 2rem;
}

.booking-summary h5 {
  color: var(--bs-heading-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.booking-summary p {
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.booking-summary strong {
  color: var(--bs-heading-color);
  font-weight: 600;
}

/* ===========================================
   ACTIONS DU FORMULAIRE
   =========================================== */

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f8f9fa;
}

.btn {
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bs-primary-hover) 0%, var(--bs-primary) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
}

.btn-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-success:hover::before {
  left: 100%;
}

.btn-success:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}


.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-2px);
}

/* ===========================================
   MESSAGES DE CONFIRMATION
   =========================================== */

.booking-messages .alert {
  border-radius: 12px;
  border: none;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* ===========================================
   INFORMATIONS DE CONTACT
   =========================================== */

.contact__info {
  background: #f8f9fa;
  padding: 80px 0;
}

.contact-method {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-method:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.contact-method h5 {
  color: var(--bs-heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-method p {
  color: var(--bs-body-color);
  margin-bottom: 1.5rem;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
  .hero__booking {
    padding: 100px 0 60px;
  }
  
  .hero__booking .hero-title {
    font-size: 2.5rem;
  }
  
  .booking-form-wrapper {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .step-item {
    padding: 1rem 0.5rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero__booking .hero-title {
    font-size: 2rem;
  }
  
  .booking-form-wrapper {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .contact-method {
    padding: 1.5rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ===========================================
   ANIMATIONS ET TRANSITIONS
   =========================================== */

.service-card,
.contact-method,
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.contact-method:hover {
  transform: translateY(-5px);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ===========================================
   ÉTATS DE CHARGEMENT
   =========================================== */

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===========================================
   ACCESSIBILITÉ
   =========================================== */

.service-card:focus,
.btn:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
  outline: none;
}

/* ===========================================
   IMPRESSION
   =========================================== */

@media print {
  .booking-form-wrapper {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .form-actions,
  .btn {
    display: none;
  }
  
  .service-card {
    border: 1px solid #000;
  }
}
