/* ============================================
   INTRO STYLES
   ============================================ */

/* Conteneur principal */
#intro-screens {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: none;
}

body.intro-hidden #intro-screens {
  opacity: 0;
  pointer-events: none;
}

/* Écrans */
.intro-screen {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-screen.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* ============================================
   LANDING SCREEN
   ============================================ */

.intro-screen.landing {
  background: #000;
}

.landing-content {
  text-align: center;
  color: white;
}

.landing-content p {
  margin-bottom: 30px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.start-btn {
  padding: 15px 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  animation: neonGlowSubtle 3s ease-in-out infinite;
}

@keyframes neonGlowSubtle {
  0%, 100% {
    box-shadow:
      0 0 5px rgba(255, 255, 255, 0.3),
      0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.6),
      0 0 25px rgba(255, 255, 255, 0.4),
      0 0 35px rgba(255, 255, 255, 0.2);
  }
}

.start-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 1);
}

/* ============================================
   MAP SCREEN - STYLE SOMBRE ET SUBTIL
   ============================================ */

.intro-screen.map {
  background: #181818 !important;
}

.map-inner {
  width: 100% !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  transition: opacity 1.2s ease 0.4s;
}

.map-inner svg {
  height: 100vh !important;
  width: 100% !important;
  display: block !important;
  margin: auto !important;
  object-fit: contain;
}

/* ============================================
   SVG ELEMENTS - STYLE MAP-DEMO
   ============================================ */

/* Image de fond (carte du monde) */
svg image {
  opacity: 0.55 !important;
  filter: grayscale(1) contrast(0.95) drop-shadow(0 0 0.3px rgba(255,255,255,0.15)) !important;
}

/* Routes subtiles */
.route {
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 0.14 !important;
  stroke-dasharray: 1 1.8 !important;
  opacity: 0.35 !important;
}

/* Dots blancs (points animés) */
.dot {
  fill: #fff !important;
  r: 0.35 !important;
  opacity: 0.8 !important;
}

/* Pins bleus */
.pin {
  fill: #5B8DB8 !important;
  r: 0.55 !important;
  opacity: 0.85 !important;
}

/* Lueur autour des pins */
.pin-glow {
  fill: #5B8DB8 !important;
  r: 1.2 !important;
  opacity: 0 !important;
  animation: pulse 3s ease-in-out infinite !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.3);
  }
}

/* Labels très subtils */
.label {
  fill: #fff !important;
  font-size: 2.2px !important;
  letter-spacing: 0.3em !important;
  opacity: 0.35 !important;
  animation: shimmer 4s ease-in-out infinite !important;
}

.label.paris {
  font-size: 2.8px !important;
  opacity: 0.6 !important;
  animation: shimmer-paris 3.5s ease-in-out infinite !important;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

@keyframes shimmer-paris {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.95; }
}

/* Traînées lumineuses */
.trail {
  fill: #5B8DB8 !important;
  r: 0.35 !important;
  opacity: 0.8 !important;
  filter: blur(0.5px);
}

/* ============================================
   NAVIGATION HINTS
   ============================================ */

.map-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  font-family: "Lato", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: auto !important;
}

.map-hint:hover {
  opacity: 1;
}

.map-hint.top {
  top: 40px;
  animation: floatUpBlock 2s ease-in-out infinite;
}

.map-hint.bottom {
  bottom: 40px;
  animation: floatDownBlock 2s ease-in-out infinite;
}

.map-hint .arrow-icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@keyframes floatUpBlock {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes floatDownBlock {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BOUTON SON
   ============================================ */

.sound-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.sound-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.sound-btn svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   CACHER LE SITE PRINCIPAL
   ============================================ */

#myContainer,
#menu-toggle,
.swipe-indicator-top,
.swipe-indicator-bottom {
  display: none !important;
}

body.intro-hidden #myContainer,
body.intro-hidden #menu-toggle,
body.intro-hidden .swipe-indicator-top,
body.intro-hidden .swipe-indicator-bottom {
  display: block !important;
}

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

@media (max-width: 768px) {
  .map-inner svg {
    height: 80vh !important;
  }
}


/* Forcer les marges cachées pendant l'intro */
#ml_top, #ml_bottom, #ml_left, #ml_right {
  display: none ;
}

body.intro-hidden #ml_top,
body.intro-hidden #ml_bottom,
body.intro-hidden #ml_left,
body.intro-hidden #ml_right {
  display: block !important;
}

body.intro-hidden .map-hint {
  display: none !important;
  pointer-events: none !important;
}
