/**
 * INDA Premium - Interactive Styles
 * CSS pour les fonctionnalités JavaScript
 */

/* =============================================================================
   NAVIGATION STYLES
   ============================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #00A693;
  background: rgba(0, 166, 147, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00A693, #00BFA5);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 80%;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #00A693;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line:nth-child(2) {
  margin: 4px 0;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  padding: 1rem 2rem;
}

/* =============================================================================
   ANIMATION STYLES
   ============================================================================= */

/* Reveal Animations */
.reveal-fadeIn {
  animation: revealFadeIn 0.8s ease forwards;
}

.reveal-slideUp {
  animation: revealSlideUp 0.8s ease forwards;
}

.reveal-slideLeft {
  animation: revealSlideLeft 0.8s ease forwards;
}

.reveal-slideRight {
  animation: revealSlideRight 0.8s ease forwards;
}

.reveal-scale {
  animation: revealScale 0.8s ease forwards;
}

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

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

@keyframes revealSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealSlideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Counter Animations */
[data-counter] {
  font-weight: bold;
  color: #00A693;
}

[data-counter].animated {
  animation: counterGlow 0.3s ease;
}

@keyframes counterGlow {
  0% {
    text-shadow: 0 0 0 rgba(0, 166, 147, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 166, 147, 0.6);
  }
  100% {
    text-shadow: 0 0 0 rgba(0, 166, 147, 0);
  }
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

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

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0, 166, 147, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #00A693;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.1);
}

.form-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.error-message {
  position: absolute;
  top: 100%;
  left: 0;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-button {
  background: linear-gradient(135deg, #00A693, #00BFA5);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 147, 0.3);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Message Notifications */
.message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
}

.message.show {
  transform: translateX(0);
}

.message-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.message-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.message-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* =============================================================================
   UI COMPONENTS
   ============================================================================= */

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-controls:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #00A693;
  transform: scale(1.2);
}

/* Tabs */
.tab-list {
  display: flex;
  border-bottom: 2px solid rgba(0, 166, 147, 0.1);
  margin-bottom: 2rem;
}

.tab-trigger {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  position: relative;
  transition: all 0.3s ease;
}

.tab-trigger.active {
  color: #00A693;
}

.tab-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00A693;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-trigger.active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

/* Accordion */
.accordion-item {
  border: 1px solid rgba(0, 166, 147, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.accordion-trigger:hover {
  background: rgba(0, 166, 147, 0.05);
}

.accordion-trigger::after {
  content: '+';
  font-size: 1.5rem;
  color: #00A693;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-trigger::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 1.5rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Dark Mode */
.dark-mode-toggle {
  width: 60px;
  height: 30px;
  background: #e2e8f0;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.dark-mode-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .dark-mode-toggle {
  background: #00A693;
}

.dark .dark-mode-toggle::after {
  transform: translateX(30px);
}

/* Cookie Consent */
#cookie-consent {
  position: fixed;
  bottom: -100px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 166, 147, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: all 0.3s ease;
}

#cookie-consent.show {
  bottom: 20px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: #00A693;
  color: white;
}

.cookie-btn.decline {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

@media (max-width: 768px) {
  .mobile-menu .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
  
  .carousel-controls {
    width: 40px;
    height: 40px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .tab-list {
    flex-wrap: wrap;
  }
  
  .tab-trigger {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  #cookie-consent {
    left: 10px;
    right: 10px;
    bottom: -100px;
  }
  
  #cookie-consent.show {
    bottom: 10px;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .message {
    right: 10px;
    left: 10px;
    transform: translateY(-400px);
  }
  
  .message.show {
    transform: translateY(0);
  }
}
