/**
 * VERSION 5.3 COMPLETE
 * Toutes les améliorations et corrections
 */

/* ============================================
   1. VIDÉO HERO - DESKTOP ET MOBILE
   ============================================ */

.hero-video {
  display: block !important;
}

@media (max-width: 768px) {
  .hero-video {
    display: block !important;
    object-fit: cover;
  }
  
  .hero-video-overlay {
    background: rgba(0, 31, 63, 0.7) !important;
  }
}

/* ============================================
   2. MENU MOBILE AMÉLIORÉ
   ============================================ */

@media (max-width: 768px) {
  /* Nouveau fond menu mobile */
  .mobile-menu-content {
    background: linear-gradient(135deg, 
      rgba(0, 31, 63, 0.98) 0%, 
      rgba(0, 61, 92, 0.98) 50%,
      rgba(0, 31, 63, 0.98) 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
  }
  
  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  /* Bouton X fonctionnel */
  .mobile-menu-close {
    z-index: 10000 !important;
    pointer-events: all !important;
  }
}

/* ============================================
   3. TOGGLE THÉMATIQUE (BURGER MÉTAL)
   ============================================ */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(160, 160, 160, 0.1)) !important;
    border: 2px solid rgba(192, 192, 192, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }
  
  .hamburger-line {
    background: linear-gradient(90deg, #d0d0d0, #a0a0a0, #d0d0d0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  }
  
  /* Langue harmonisée */
  .language-button {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(160, 160, 160, 0.1)) !important;
    border: 2px solid rgba(192, 192, 192, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }
}

/* ============================================
   4. CONSTRUCTION VISIBLE
   ============================================ */

@media (max-width: 768px) {
  .company-tagline-pro {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 9px !important;
    color: #d4af37 !important;
  }
}

/* ============================================
   5. CARDS FULL-WIDTH MOBILE
   ============================================ */

@media (max-width: 768px) {
  /* Vision/Mission cards */
  .vision-mission-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .vision-card,
  .mission-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 25px 20px !important;
  }
  
  /* Expertise cards */
  .expertise-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .expertise-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 25px 20px !important;
  }
  
  .expertise-card img {
    height: 180px !important;
  }
}

/* ============================================
   6. BACKGROUNDS SOPHISTIQUÉS
   ============================================ */

/* Section À Propos */
#about {
  position: relative;
  background: linear-gradient(135deg, #001f3f 0%, #003d5c 100%);
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(192, 192, 192, 0.02) 10px,
      rgba(192, 192, 192, 0.02) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(160, 160, 160, 0.02) 10px,
      rgba(160, 160, 160, 0.02) 20px
    );
  opacity: 0.5;
  z-index: 0;
}

#about > * {
  position: relative;
  z-index: 1;
}

/* Section Vision/Mission */
#vision {
  position: relative;
  background: linear-gradient(135deg, #002a4d 0%, #004d7a 100%);
}

#vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(192, 192, 192, 0.05) 0%, transparent 50%);
  z-index: 0;
}

#vision > * {
  position: relative;
  z-index: 1;
}

/* Section Expertise */
#expertise {
  position: relative;
  background: linear-gradient(135deg, #001a33 0%, #003366 100%);
}

#expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(192, 192, 192, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(192, 192, 192, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: 0;
}

#expertise > * {
  position: relative;
  z-index: 1;
}

/* Section Contact */
#contact {
  position: relative;
  background: linear-gradient(135deg, #001f3f 0%, #002a4d 100%);
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.05) 2px,
      rgba(212, 175, 55, 0.05) 4px
    );
  z-index: 0;
}

#contact > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   7. CARROUSEL CLIENTS
   ============================================ */

.clients-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.clients-carousel {
  display: flex;
  animation: scroll-infinite 30s linear infinite;
  width: fit-content;
}

.clients-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  margin: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.client-logo-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.3s ease;
}

.client-logo-item:hover img {
  filter: grayscale(0%) brightness(1);
}

@media (max-width: 768px) {
  .client-logo-item {
    width: 150px;
    height: 90px;
    margin: 0 15px;
    padding: 15px;
  }
  
  .clients-carousel {
    animation-duration: 20s;
  }
}

/* ============================================
   8. FOOTER CRÉDIT WG
   ============================================ */

.footer-credit-wg {
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 40px;
}

.footer-credit-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.heart-beat {
  color: #ff0000;
  font-size: 18px;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.2);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.wg-link {
  color: #d4af37;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.wg-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.wg-link:hover {
  color: #ffffff;
}

.wg-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer-credit-text {
    font-size: 12px;
  }
  
  .heart-beat {
    font-size: 16px;
  }
}
