/* ==================== BASE STYLES ==================== */
* {
  scroll-behavior: smooth;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== VIDEO LOADING SPINNER ==================== */
.video-wrapper {
  position: relative;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 0.75rem;
  overflow: hidden;
}

.video-wrapper.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-loading {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

/* ==================== IMAGE LOADING GRADIENT ==================== */
img.gallery-item {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.image-loading {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

.image-loaded {
  filter: blur(0);
}

/* ==================== HERO SECTION ==================== */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Video wrapper for loading indicator */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==================== CARD HOVER EFFECT ==================== */
.card-hover {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
}

/* ==================== GLASSMORPHISM ==================== */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  transition: all 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

/* ==================== COUNTERS ==================== */
.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: #064e3b;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #10b981;
  color: #10b981;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #10b981;
  color: white;
}

/* ==================== BADGES ==================== */
.badge-date {
  background: #f0fdf4;
  color: #064e3b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

/* ==================== FORM STYLES ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #064e3b;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==================== MODAL STYLES ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideInUp 0.3s ease;
}

/* Modal large pour formulaires complexes */
.modal-content.modal-lg {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: #064e3b;
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #064e3b;
}

/* ==================== SCROLL REVEAL ==================== */
.scroll-reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ==================== LOADING STATE ==================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ==================== SUCCESS MESSAGE ==================== */
.success-message {
  background: #ecfdf5;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 1.75rem;
  display: none;
  animation: slideInDown 0.3s ease;
  border: 1px solid #bbf7d0;
}

.success-message.show {
  display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .counter {
    font-size: 1.875rem;
  }

  .modal-content {
    padding: 0;
    width: 95%;
    max-width: 100%;
  }

  .modal-header-contact,
  .modal-header-quote {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-title,
  .modal-title-quote {
    font-size: 1.25rem;
  }

  .form-step {
    padding: 0 1rem;
  }

  .progress-bar-container {
    padding: 0 1rem 1rem;
  }

  /* Grid responsive pour les formulaires */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Input responsif */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* ==================== PREMIUM MODAL STYLES ==================== */
.modal-content {
  background: white;
  border-radius: 1.5rem;
  padding: 0;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.modal-contact {
  max-width: 500px;
}

.modal-content.modal-quote {
  max-width: 650px;
}

.modal-content.modal-partner {
  max-width: 700px;
}

.modal-content.learn-more-content {
  max-width: 800px;
}

.modal-header-contact,
.modal-header-quote {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.modal-title,
.modal-title-quote {
  font-size: 1.5rem;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
}

.modal-subtitle,
.modal-subtitle-quote {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #064e3b;
  transform: rotate(90deg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #10b981;
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.btn-form {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.25);
}

.btn-form:active {
  transform: translateY(0);
}

.btn-loader {
  display: none;
}

.captcha-container {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.captcha-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.captcha-challenge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: #064e3b;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  min-width: 120px;
  text-align: center;
}

.captcha-input {
  width: 70px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

/* ==================== PREMIUM QUOTE MODAL ==================== */
.modal-content.modal-quote {
  background: white;
  border-radius: 1.5rem;
  padding: 0;
  max-width: 650px;
  width: 95%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header-quote {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.modal-title-quote {
  font-size: 1.5rem;
  font-weight: 700;
  color: #064e3b;
  margin: 0;
}

.modal-subtitle-quote {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.close-btn-quote {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn-quote:hover {
  background: #f3f4f6;
  color: #064e3b;
  transform: rotate(90deg);
}

/* ==================== PROGRESS STEPS ==================== */
.progress-bar-container {
  padding: 0 1.75rem 1.25rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.progress-bar {
  height: 0.25rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #064e3b 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* ==================== FORM STEPS ==================== */
.form-step {
  display: none;
  padding: 0 1.75rem;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.form-input-premium,
.form-select-premium,
.form-textarea-premium {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.form-input-premium:focus,
.form-select-premium:focus,
.form-textarea-premium:focus {
  outline: none;
  border-color: #10b981;
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* ==================== CAPTCHA PREMIUM ==================== */
.captcha-container-premium {
  text-align: center;
  padding: 2rem 1rem;
}

.captcha-icon {
  margin-bottom: 1rem;
}

.captcha-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 0.5rem;
}

.captcha-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.captcha-challenge-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.captcha-question-premium {
  font-size: 1.5rem;
  font-weight: 700;
  color: #064e3b;
  background: #f0fdf4;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #10b981;
  min-width: 100px;
}

.captcha-equals {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6b7280;
}

.captcha-input-premium {
  width: 80px;
  padding: 0.75rem;
  border: 2px solid #10b981;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  background: #f0fdf4;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.btn-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #10b981;
  border-radius: 0.75rem;
  background: white;
  color: #064e3b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: #f0fdf4;
}

.btn-nav.hidden {
  display: none;
}

/* ==================== CUSTOM TOOLTIP ==================== */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 78, 59, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1001;
  pointer-events: none;
}

.tooltip:hover::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(6, 78, 59, 0.9);
  z-index: 1001;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
}

.lightbox.hidden {
  display: none;
}

.lightbox.active.hidden {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  color: #064e3b;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #10b981;
  color: white;
  transform: rotate(90deg);
}

/* ==================== GALLERY HOVER EFFECT ==================== */
.gallery-item {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* ==================== VIDEO MUTE BUTTON ==================== */
#mute-toggle {
  transition: opacity 0.3s ease;
}

#mute-toggle:hover {
  opacity: 1;
}
