/* ==========================================================================
   BODY - ACCUEIL
   ========================================================================== */
body {
  background-color: #1b2333 !important;
}

/* ==========================================================================
   HERO SECTION - ACCUEIL
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  margin-top: 0;
  display: flex;
  align-items: center;
  /* WebP avec fallback PNG pour vieux navigateurs */
  background: url("../images/header-index4.webp");
  background: image-set(
    url("../images/header-index4.webp") type("image/webp"),
    url("../images/header-index4.png") type("image/png")
  );
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80vh;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

/* Sous-titre du hero (déplace les styles inline ici) */
.hero-content .hero-subtitle-animated {
  color: #cccccc;
  max-width: 600px;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 2rem auto;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #9fc9ff;
  background: rgba(77, 177, 255, 0.08);
  border: 1px solid rgba(77, 177, 255, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Réduction d'animations si l'utilisateur préfère moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  .particles .particle {
    animation: none !important;
  }
}

/* Réduction des particules sur mobile pour de meilleures performances */
@media (max-width: 768px) {
  .particles {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }
  /* Sous-titre centré sur mobile */
  .hero-content .hero-subtitle-animated {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   TITRE PRINCIPAL HERO - STYLE FUTURISTE
   ========================================================================== */
.hero-title,
.formations-title,
.display-2.formations-title {
  font-family: "Orbitron", sans-serif !important;
  font-size: clamp(2.5rem, 6vw, 4rem) !important; /* Taille augmentée */
  font-weight: 900 !important; /* Épaisseur maximale */
  margin-bottom: 2rem !important;
  color: #ffffff !important;
  /* Effet lumineux turquoise intense */
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.6),
    0 0 30px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.2) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  /* Animation subtile au survol */
  transition: all 0.3s ease !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Effet de survol pour renforcer la luminosité */
.hero-title:hover,
.formations-title:hover,
.display-2.formations-title:hover {
  text-shadow: 0 0 15px rgba(0, 240, 255, 1), 0 0 25px rgba(0, 240, 255, 0.8),
    0 0 35px rgba(0, 240, 255, 0.6), 0 0 45px rgba(0, 240, 255, 0.4) !important;
  transform: scale(1.02) !important;
}

/* ==========================================================================
   DIVIDER FUTURISTE SOUS LE TITRE
   ========================================================================== */
.divider {
  width: 200px;
  height: 4px;
  margin: 0 auto 2rem auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #00f0ff 20%,
    #00e5ff 50%,
    #00d4ff 80%,
    transparent 100%
  );
  border-radius: 2px;
  /* Effet de lueur */
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4),
    0 0 30px rgba(0, 240, 255, 0.2);
  /* Animation pulsante */
  animation: dividerGlow 2s ease-in-out infinite alternate;
}

@keyframes dividerGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.4),
      0 0 30px rgba(0, 240, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.6),
      0 0 35px rgba(0, 240, 255, 0.4);
  }
}

.hero-cta,
.hero-cta-animated {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.hero-cta-animated {
  animation: vrCTAFade 1.5s ease-out 1.5s both;
}
.hero-cta a.btn {
  max-width: 100%;
  width: auto;
  white-space: nowrap;
}

@keyframes vrCTAFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
     BOUTONS
     ========================================================================== */
/* Bouton VR stylé compact */
.btn-vr {
  color: #000;
  background: #00e5ff; /* turquoise plus doux */
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  border: 2px solid #00e5ff;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4); /* glow plus subtil */
  transition: all 0.3s ease;
}

.btn-vr::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.25) 0%,
    /* halo plus visible */ transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn-vr:hover {
  background: #00e5ff;
  color: #fff; /* texte blanc pour contraste */
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6); /* glow plus léger */
  transform: scale(1.03); /* zoom plus doux */
}

.btn-vr:hover::before {
  opacity: 1;
}

.solutions-preview-card-custom .btn-vr {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal; /* autoriser le retour à la ligne si le texte est long */
  overflow-wrap: anywhere; /* éviter tout dépassement horizontal */
  /* ombre plus douce à l'intérieur des cartes pour éviter l'effet de débordement */
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.btn-vr::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #00f0ff;
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  animation: blink 1.2s infinite;
}
/* Bouton principal effet glow */
.btn-primary-glow {
  background: transparent;
  border: 2px solid var(--primary-color);
  padding: 13px 28px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 1;
}
.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  transition: all 0.3s;
  z-index: -1;
  border-radius: 50px;
}
.btn-primary-glow:hover {
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}
.btn-primary-glow:hover::before {
  width: 100%;
}

/* ==========================================================================
   SECTIONS STYLES BACKGROUNDS
   ========================================================================== */

/* Section avec gradient alternatif - désactive le pseudo-élément */
.section-gradient-alt::after {
  display: none !important;
}
.section-standard,
.section-accent,
.section-dark {
  position: relative;
  padding: 5rem 0;
  background: transparent;
  overflow: hidden;
  z-index: 1;
}

.section-standard::after,
.section-accent::after,
.section-dark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(35, 45, 65, 0.8);
  z-index: -1;
  pointer-events: none;
}

.section-standard::before,
.section-accent::before,
.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 240, 255, 0.5),
    transparent
  );
}

.section-container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(35, 45, 65, 0.8);
  transition: all 0.3s ease;
}

.section-container:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.1);
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.section-header p {
  color: #b0b0b0;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
     PARTICLES HEADER
     ========================================================================== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 6s infinite linear;
  opacity: 0.8;
  box-shadow: 0 0 6px var(--primary-color);
}
.particle:nth-child(2n) {
  background: var(--secondary-color);
  animation-duration: 8s;
  box-shadow: 0 0 6px var(--secondary-color);
}
.particle:nth-child(3n) {
  animation-duration: 10s;
  width: 2px;
  height: 2px;
}
.particle:nth-child(4n) {
  animation-duration: 12s;
  width: 3px;
  height: 3px;
  opacity: 0.6;
}
.particle:nth-child(5n) {
  animation-duration: 7s;
  width: 5px;
  height: 5px;
  opacity: 0.5;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.8),
      0 0 40px rgba(255, 45, 117, 0.3);
  }
}
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ==========================================================================
     "Pourquoi choisir un scanner 3D
     ========================================================================== */
/* Animation keyframes pour l'effet de contour flash */
@keyframes flashBorder {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
  }
  25% {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3),
      inset 0 0 15px rgba(0, 240, 255, 0.1);
  }
  50% {
    border-color: rgba(255, 45, 117, 0.6);
    box-shadow: 0 0 20px rgba(255, 45, 117, 0.4),
      inset 0 0 20px rgba(255, 45, 117, 0.1);
  }
  75% {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3),
      inset 0 0 15px rgba(0, 240, 255, 0.1);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
}

.solutions-preview {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(35, 45, 65, 0.9) 0%,
    rgba(35, 45, 65, 0.8) 50%,
    rgba(35, 45, 65, 0.9) 100%
  );
  position: relative;
}

.solutions-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.solutions-preview-card-custom {
  background: rgba(15, 25, 40, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  /* Animation de contour en flash permanent */
  animation: flashBorder 6s ease-in-out infinite;
}

.solutions-preview-card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 240, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.solutions-preview-card-custom:hover::before {
  transform: translateX(100%);
}

.solutions-preview-card-custom:hover {
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2); /* Ombrage au hover */
  border-color: var(--primary-color); /* Contour coloré au hover */
}

.solutions-preview-card-custom .solution-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color); /* Icônes dans la couleur principale */
}

.solutions-preview-card-custom h3 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.75rem;
  color: var(--light-color);
}

.solutions-preview-card-custom p {
  color: var(--gray-color);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin-top: 29px;
}

.solution-features li {
  position: relative;
  margin-bottom: 16px;
  color: #cde7f5; /* exemple, à adapter */
  font-size: 1.02em;
}

.solution-features li::before {
  content: none; /* suppression de la puce */
}

/* ========================================================================== 
     SECTION APPLICATIONS CONCRÈTES : PUCE ET LISTE
   ========================================================================== */
#applications .solution-preview-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

#applications .solution-preview-card ul li {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

#applications .solution-preview-card ul li:before {
  content: "\2022"; /* Utilisation d'un cercle personnalisé */
  position: absolute;
  left: 10px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

#applications .solution-preview-card {
  background: rgba(15, 25, 40, 0.8);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

#applications .solution-preview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

#applications .solution-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

#applications .solution-preview-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  color: var(--light-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center;
}

/* ==========================================================================
     SECTION Demandez votre démo
     ========================================================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1),
    rgba(255, 45, 117, 0.1)
  );
  text-align: center;
  position: relative;
  z-index: 10;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,240,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem !important;
  margin-bottom: 1rem;
  color: var(--light-color);
}
.cta-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Nouveau style spécifique pour le formulaire de contact */
.contact-form-card {
  background: rgba(255, 255, 255, 0.15); /* Fond plus clair */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
