/* ============================================
   GAM Transmission - Styles personnalises
   ============================================ */

/* Separateurs */
.wave-separator {
  width: 100%;
  height: 80px;
  display: block;
  line-height: 0;
}
.wave-separator svg { width: 100%; height: 100%; }

/* Animations au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.fade-left { transform: translateX(-30px); }
.animate-on-scroll.fade-right { transform: translateX(30px); }
.animate-on-scroll.scale-in { transform: scale(0.9); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.9) 0%, rgba(61, 90, 128, 0.75) 100%);
}

/* Cartes */
.service-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27, 42, 74, 0.12);
}
.service-card.border-navy { border-top-color: #1B2A4A; }
.service-card.border-gold { border-top-color: #C9A84C; }
.service-card.border-steel { border-top-color: #3D5A80; }

/* Navbar */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A84C;
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(27, 42, 74, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Boutons */
.btn-primary {
  background: #C9A84C;
  color: #1B2A4A;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #B8953F;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}
.btn-outline {
  background: transparent;
  color: #1B2A4A;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 2px solid #1B2A4A;
  cursor: pointer;
}
.btn-outline:hover {
  background: #1B2A4A;
  color: white;
}

/* Compteurs */
.counter-value { font-variant-numeric: tabular-nums; }

/* Onglets outil IA */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}
.tab-btn.active {
  border-bottom-color: #C9A84C;
  color: #1B2A4A;
  font-weight: 600;
}

/* Jauge de score */
.gauge-track {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
}
.gauge-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Streaming */
.streaming-text { white-space: pre-wrap; }
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #C9A84C;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 400px; }

/* Smooth scroll */
html { scroll-behavior: smooth; }
::selection { background: rgba(201, 168, 76, 0.3); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .streaming-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* Valeur cards */
.value-card {
  transition: transform 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
}

/* Entreprise cards */
.entreprise-card {
  transition: all 0.4s ease;
}
.entreprise-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}
