/* ==========================================================================
   DIGITAL SENTINEL - SECTION MISSION : SCANNER BIOMÉTRIQUE & MATRICE CYBER/DROIT
   ========================================================================== */

.mission-section {
  position: relative;
  background-color: #08080a !important;
  padding: 50px 0 85px 0 !important;
  color: #ffffff !important;
  overflow: hidden;
}

/* Lueur d'ambiance d'arrière-plan */
.mission-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, rgba(0, 255, 255, 0.05) 50%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

.mission-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 60px !important;
  position: relative;
  z-index: 1;
}

/* ==========================================
   COLONNE GAUCHE : TEXTE & MISSION
   ========================================== */
.mission-content {
  flex: 1 !important;
  max-width: 560px !important;
  text-align: left !important;
  order: 1 !important; /* Texte à gauche */
}

.mission-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #ffc107 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  padding: 6px 14px !important;
  background: rgba(255, 193, 7, 0.08) !important;
  border: 1px solid rgba(255, 193, 7, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.1) !important;
}

.mission-badge .line {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107;
}

.mission-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.55rem !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  letter-spacing: -0.5px;
}

.mission-title .highlight {
  color: #ffc107 !important;
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.mission-text {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #ffffff !important;
  margin-bottom: 18px !important;
}

.mission-text.font-accent {
  color: #ffffff !important;
}

.mission-text .bold-yellow {
  color: #FFB800 !important;
  font-weight: 700 !important;
}

.mission-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: 2px solid #ffc107 !important;
  background: rgba(255, 193, 7, 0.04) !important;
  color: #ffc107 !important;
  padding: 13px 28px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 1px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 12px !important;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.15) !important;
}

.mission-btn:hover {
  background: #ffc107 !important;
  color: #0b0b0b !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.45) !important;
}

.mission-btn i {
  transition: transform 0.3s ease;
}

.mission-btn:hover i {
  transform: translateX(4px);
}

/* ==========================================
   COLONNE DROITE : BOUCLIER HAUTE TECHNOLOGIE
   ========================================== */
.mission-image-wrapper {
  flex: 1.1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  order: 2 !important; /* Bouclier à droite */
}

.main-logo-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   HUB PRINCIPAL DU SCANNER
   ========================================================================== */
.cyber-scanner-hub {
  position: relative;
  width: 520px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Grille & Réticules en arrière-plan */
.scanner-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cyber-target-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.target-c1 {
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(255, 193, 7, 0.22);
  animation: rotateTargetClockwise 32s linear infinite;
}

.target-c2 {
  width: 430px;
  height: 430px;
  border: 1px solid rgba(0, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.05) inset;
  animation: rotateTargetCounter 48s linear infinite;
}

.grid-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, rgba(0, 255, 255, 0.04) 50%, transparent 70%);
  animation: pulseRadarAura 4s ease-in-out infinite alternate;
}

/* CADRE HUD DE VISÉE CYBER (COINS TACTIQUES) */
.cyber-hud-frame {
  position: absolute;
  top: 25px;
  left: 35px;
  right: 35px;
  bottom: 25px;
  pointer-events: none;
  z-index: 5;
}

.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #ffc107;
  border-style: solid;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.6));
}

.corner-tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.corner-tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.corner-br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.hud-status-bar {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', monospace;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
}

.top-status {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: #00ffff;
  background: rgba(4, 14, 24, 0.88);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  white-space: nowrap;
}

.top-status .hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 8px #00ffff, 0 0 14px #00ffff;
  animation: blinkDot 1s infinite alternate;
}

.bottom-status {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(10, 10, 15, 0.88);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  white-space: nowrap;
}

.bottom-status .hud-badge-status {
  color: #ffc107;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 7px;
  background: rgba(255, 193, 7, 0.18);
  border-radius: 4px;
}

/* ==========================================================================
   FAISCEAU LASER DE SCANNAGE BIOMÉTRIQUE (EFFET WAOUH DEMANDÉ)
   Balayage dynamique latéral traversant le logo
   ========================================================================== */
.scanner-beam-container {
  position: absolute;
  top: 45px;
  left: 45px;
  right: 45px;
  bottom: 45px;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  z-index: 4;
}

/* Faisceau laser vertical balayant horizontalement */
.scanner-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 255, 255, 0.6) 15%, 
    #ffffff 50%, 
    rgba(255, 193, 7, 0.8) 85%, 
    transparent 100%);
  box-shadow: 
    0 0 10px #ffffff,
    0 0 20px #00ffff,
    0 0 35px #ffc107,
    0 0 50px rgba(0, 255, 255, 0.5);
  animation: lateralScanBeam 3.6s ease-in-out infinite alternate;
}

/* Points lumineux éclatants aux extrémités du laser */
.laser-glow-point {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  box-shadow: 0 0 12px #00ffff, 0 0 20px #00ffff;
}

.laser-glow-point.point-top {
  top: 4px;
}

.laser-glow-point.point-bottom {
  bottom: 4px;
}

/* Nappe de lumière traçante accompagnant le laser (Sweep wave) */
.scanner-light-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 255, 255, 0.04) 40%, 
    rgba(255, 193, 7, 0.12) 80%, 
    rgba(255, 255, 255, 0.25) 100%);
  filter: blur(4px);
  animation: lateralSweepAura 3.6s ease-in-out infinite alternate;
}

/* Grille de lignes d'empreinte digitale raster (Scanlines) */
.scanner-beam-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(0, 255, 255, 0.03) 4px,
    rgba(0, 255, 255, 0.03) 5px
  );
  pointer-events: none;
}

/* ==========================================================================
   LOGO BOUCLIER CENTRAL
   ========================================================================== */
.scanner-logo-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.cyber-scanner-hub:hover .scanner-logo-wrapper {
  transform: scale(1.04);
}

.scanner-logo-wrapper .mission-img {
  width: 270px !important;
  max-width: 100% !important;
  height: auto !important;
  filter: drop-shadow(0 10px 25px rgba(255, 193, 7, 0.25)) drop-shadow(0 0 40px rgba(0, 255, 255, 0.15)) !important;
  animation: logoBiometricBreath 4s ease-in-out infinite alternate;
}

.hologram-shield-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.18) 0%, rgba(0, 255, 255, 0.08) 50%, transparent 75%);
  filter: blur(25px);
  z-index: -1;
  animation: pulseGlowAura 3s infinite alternate;
}

/* ==========================================================================
   MATRICE SATELLITE DROIT & NUMÉRIQUE (Icônes interactives)
   Symboles : Marteau, Balance, Empreinte, Puce, Cadenas, Bouclier
   ========================================================================== */
.forensic-matrix-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.matrix-node {
  position: absolute;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  cursor: pointer;
}

.matrix-node:hover {
  transform: scale(1.15) !important;
  z-index: 10;
  animation-play-state: paused !important;
}

/* Maintien strict du centrage vertical des 2 icônes du milieu (Conformité & Loi Cyber) sans aucun décalage brusque */
.matrix-node.node-law-shield:hover,
.matrix-node.node-law-gavel:hover {
  transform: translateY(-50%) scale(1.15) !important;
}

/* Badges cybernétiques haute visibilité */
.node-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.node-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.3s ease;
}

.node-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Thème Doré (Justice & Droit) */
.badge-gold {
  background: rgba(18, 16, 10, 0.92);
  border: 1.5px solid rgba(255, 193, 7, 0.65);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2), inset 0 0 10px rgba(255, 193, 7, 0.1);
}

.badge-gold .node-icon-box {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.7));
}

.badge-gold .node-label {
  color: #ffc107;
}

.matrix-node:hover .badge-gold {
  background: rgba(35, 28, 10, 0.98);
  border-color: #ffc107;
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.65), inset 0 0 15px rgba(255, 193, 7, 0.25);
}

.matrix-node:hover .badge-gold .node-icon-box {
  background: #ffc107;
  color: #111111;
  transform: scale(1.1);
}

/* Thème Cyan (Numérique & Cyber) */
.badge-cyan {
  background: rgba(8, 18, 24, 0.92);
  border: 1.5px solid rgba(0, 255, 255, 0.65);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.badge-cyan .node-icon-box {
  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #00ffff;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.7));
}

.badge-cyan .node-label {
  color: #00ffff;
}

.matrix-node:hover .badge-cyan {
  background: rgba(10, 32, 45, 0.98);
  border-color: #00ffff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.65), inset 0 0 15px rgba(0, 255, 255, 0.25);
}

.matrix-node:hover .badge-cyan .node-icon-box {
  background: #00ffff;
  color: #111111;
  transform: scale(1.1);
}

/* Positionnement des 6 nœuds autour du bouclier */
/* 1. Droit : Balance de Justice (Haut-Gauche) */
.node-law-balance {
  top: 15px;
  left: 20px;
  animation: floatNode1 4.5s ease-in-out infinite alternate;
}

/* 2. Numérique : Empreinte Digitale (Haut-Droite) */
.node-cyber-fingerprint {
  top: 15px;
  right: 20px;
  animation: floatNode2 5s ease-in-out infinite alternate;
}

/* 3. Droit & Cybersécurité : Bouclier / Conformité (Milieu-Gauche) */
.node-law-shield {
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  animation: floatNode3 5.4s ease-in-out infinite alternate-reverse;
}

/* 4. Droit : Marteau du Juge (Milieu-Droite) */
.node-law-gavel {
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  animation: floatNode3 4.2s ease-in-out infinite alternate;
}

/* 5. Numérique : Cadenas / Chiffrement (Bas-Gauche) */
.node-cyber-lock {
  bottom: 18px;
  left: 25px;
  animation: floatNode2 4.8s ease-in-out infinite alternate-reverse;
}

/* 6. Numérique : Puce Électronique / IA (Bas-Droite) */
.node-cyber-chip {
  bottom: 18px;
  right: 25px;
  animation: floatNode1 5.2s ease-in-out infinite alternate-reverse;
}

/* ==========================================================================
   ANIMATIONS KEYFRAMES CYBERNÉTIQUES
   ========================================================================== */

/* 1. Balayage laser latéral (de gauche à droite et retour) */
@keyframes lateralScanBeam {
  0% {
    left: 4%;
    opacity: 0.85;
  }
  48% {
    opacity: 1;
  }
  52% {
    opacity: 1;
  }
  100% {
    left: 96%;
    opacity: 0.85;
  }
}

@keyframes lateralSweepAura {
  0% {
    left: -15px;
    opacity: 0.45;
  }
  100% {
    left: calc(100% - 75px);
    opacity: 0.85;
  }
}

/* 2. Respiration & aura biométrique du logo */
@keyframes logoBiometricBreath {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 10px 25px rgba(255, 193, 7, 0.25)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.15));
  }
  100% {
    transform: scale(1.025);
    filter: drop-shadow(0 12px 35px rgba(255, 193, 7, 0.45)) drop-shadow(0 0 50px rgba(0, 255, 255, 0.3));
  }
}

@keyframes pulseGlowAura {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

@keyframes pulseRadarAura {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.8; }
}

@keyframes rotateTargetClockwise {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateTargetCounter {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* Flottements asynchrones des nœuds satellites */
@keyframes floatNode1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(-1.5deg); }
}

@keyframes floatNode2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes floatNode3 {
  0% { transform: translateY(-50%) translateX(0px); }
  100% { transform: translateY(-50%) translateX(-4px); }
}

/* ==========================================================================
   RESPONSIVE : TABLETTES & MOBILES
   ========================================================================== */
@media (max-width: 992px) {
  .mission-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 50px !important;
    padding: 70px 20px !important;
  }

  .mission-content {
    order: 1 !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .mission-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mission-image-wrapper {
    order: 2 !important;
    width: 100% !important;
  }

  .cyber-scanner-hub {
    width: 440px;
    height: 440px;
  }

  .scanner-logo-wrapper .mission-img {
    width: 220px !important;
  }

  .target-c1 { width: 280px; height: 280px; }
  .target-c2 { width: 370px; height: 370px; }
}

@media (max-width: 576px) {
  .mission-section {
    padding: 60px 0 !important;
  }

  .mission-title {
    font-size: 1.85rem !important;
  }

  .mission-text {
    font-size: 0.96rem !important;
  }

  .cyber-scanner-hub {
    width: 320px;
    height: 330px;
  }

  .scanner-logo-wrapper .mission-img {
    width: 165px !important;
  }

  .node-badge {
    padding: 5px 8px;
  }

  .node-icon-box {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .node-label {
    font-size: 0.58rem;
  }

  .node-law-gavel { right: -5px; }
  .node-law-shield { left: -5px; }
  .node-law-balance { top: 6px; left: 6px; }
  .node-cyber-fingerprint { top: 6px; right: 6px; }
  .node-cyber-chip { bottom: 6px; right: 6px; }
  .node-cyber-lock { bottom: 6px; left: 6px; }

  .hud-status-bar {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .top-status {
    top: 2px;
  }

  .bottom-status {
    bottom: 2px;
  }

  .target-c1 { width: 220px; height: 220px; }
  .target-c2 { width: 290px; height: 290px; }
}
