 /* ===== STRUCTURE GLOBALE ===== */
body {
  font-family: Arial, sans-serif;
  background: #030c1a;
  color: #cfe8ff;
  margin: 0;
  padding: 0;
}

header, nav {
  background: rgba(0, 40, 80, 0.3);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 15px;
}

nav a {
  color: #8cd8ff;
  margin-right: 20px;
  text-decoration: none;
  font-weight: bold;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0, 20, 40, 0.3);
  border: 1px solid #0af;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

/* ==========================================================
   LECTEUR AUDIO FUTURISTE BLEU ÉQUINOXE 2830
   ========================================================== */

.audio-player {
  width: 100%;
  max-width: 480px;
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid #0af;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px #0af;
}

.audio-player.locked {
  opacity: 0.45;
  pointer-events: none;
  display: none;
  filter: grayscale(0.2);
}

.audio-player.unlocked {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  filter: none;
}

.audio-player.locked::after {
  content: "🔒 Décryptez la question pour activer l'audio";
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #8cd8ff;
  font-size: 12px;
  text-shadow: 0 0 6px #0af;
}

.play-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #0af;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: 0.25s;
  box-shadow: 0 0 10px #0af;
}

.play-btn::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #0af;
  transition: 0.3s;
}

.play-btn.pause::before {
  left: 8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: none;
  background: linear-gradient(90deg, #0af 40%, transparent 40%),
              linear-gradient(90deg, #0af 40%, transparent 40%);
  background-size: 40% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 50, 80, 0.3);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #05f, #0ff);
  box-shadow: 0 0 10px #0af;
  transition: width 0.1s linear;
}

.time {
  color: #6fdcff;
  font-family: monospace;
  font-size: 14px;
  text-shadow: 0 0 6px #0af;
}

/* ==========================================================
   TEXTE HOLOGRAMME BLEU – ÉQUINOXE 2830
   ========================================================== */

.secret-holo {
  font-family: "Courier New", monospace;
  font-size: 19px;
  line-height: 1.7;
  color: #8cd8ff;
  white-space: pre-line;
  position: relative;
  padding-left: 12px;

  text-shadow:
    0 0 4px #4dccff,
    0 0 8px #1ea7ff,
    0 0 18px #009dff,
    0 0 28px #00cfff;

  animation: holoFlicker 2.2s infinite alternate ease-in-out;
}

@keyframes holoFlicker {
  0%   { opacity: 0.82; filter: blur(0.4px); }
  50%  { opacity: 1;    filter: blur(0px); }
  100% { opacity: 0.88; filter: blur(0.3px); }
}

.secret-holo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  height: 100%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #7ce6ff 40%,
    #00c2ff 50%,
    #7ce6ff 60%,
    transparent 100%
  );
  animation: holoScan 6s infinite linear;
  opacity: 0.7;
}

@keyframes holoScan {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(120%); }
}

/* ===== CARTES D’EXTRAITS ===== */

.extrait-card {
  background: rgba(0, 30, 60, 0.35);
  border: 1px solid #0af;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 12px #0af7;
}

.extrait-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 20px;
  cursor: pointer;
  background: rgba(0, 50, 100, 0.5);
  text-shadow: 0 0 6px #0af;
  border-bottom: 1px solid #0af5;
}

.extrait-title:hover {
  background: rgba(0, 80, 150, 0.5);
}

.extrait-content {
  padding: 20px;
  display: none;
}

.extrait-card.active .extrait-content {
  display: block;
}

/* ===== BOX DECRYPTAGE ===== */

.decrypt-box {
  background: rgba(0, 40, 80, 0.35);
  border: 1px solid #0af;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px #0af6;
}

.decrypt-box label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  color: #9bdcff;
}

.decrypt-input {
  width: calc(100% - 20px); /* évite débordement */
  margin-right: 20px; /* décale vers la droite */
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #0af8;
  background: rgba(0, 20, 40, 0.4);
  color: #8cd8ff;
  font-size: 15px;
}

.decrypt-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #0af;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #001527;
  box-shadow: 0 0 10px #0af;
}

.decrypt-error {
  color: #ff6f6f;
  margin-top: 8px;
  font-size: 14px;
}

/* ===== IMAGE DE FOND ===== */
body {
  font-family: Arial, sans-serif;
  background: url('images/Background/sphere de connaissance.png') no-repeat center center fixed;
  background-size: cover;
  color: #cfe8ff;
  margin: 0;
  padding: 0;
}


/* pour le pied de page */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 8px 0 6px;
    background: rgba(0,0,0,0.7);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px #00ffff;
    z-index: 50;
}
.footer-links {
    margin-top: 4px;
    font-size: 0.72em;
    font-family: 'Orbitron', sans-serif;
}
.footer-links a {
    color: rgba(0,255,255,0.5);
    text-decoration: none;
    margin: 0 10px;
    transition: color .18s;
}
.footer-links a:hover {
    color: #00ffff;
    text-decoration: underline;
}

/* ===== BOUTON AMBIANCE GLOBALE ===== */
.music-btn {
  position: fixed;
  bottom: 60px;
  right: 16px;
  padding: 10px 5px;
  border-radius: 20px;
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid #0af;
  color: #8cd8ff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 0 12px #0af;
  transition: all 0.3s ease;
  z-index: 100;
}

.music-btn.active {
  background: #0af;
  color: #001527;
  box-shadow: 0 0 20px #0af;
}

/* ===== selecteur de langue ===== */
 #language-selector {
    position: fixed;
    top: 20px;
    right: 16px;
    z-index: 101;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid #0af;
    border-radius: 5px;
    padding: 3px 3px;
    box-shadow: 0 0 6px #0af;
    backdrop-filter: blur(4px);
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
  }

  #language-selector select {
    background: transparent;
    color: #00ffff;
    border: none;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 6px;
    cursor: pointer;
    text-shadow:
      0 0 4px #4dccff,
      0 0 8px #1ea7ff,
      0 0 12px #00cfff;
  }

  /* Hover / effet néon dynamique */
  #language-selector select:hover {
    text-shadow:
      0 0 6px #4dccff,
      0 0 10px #1ea7ff,
      0 0 20px #00cfff;
    transform: scale(1.05);
    transition: all 0.25s ease-in-out;
  }

  /* Effet sur le container du select */
  #language-selector:hover {
    box-shadow: 0 0 20px #0af, 0 0 40px #05f, 0 0 60px #0ff;
    transition: all 0.3s ease-in-out;
  }
  
  header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header h1 {
  width: 100%;
  text-align: center;

  text-shadow:
    0 0 6px #4dccff,
    0 0 12px #1ea7ff,
    0 0 24px #00cfff;

  letter-spacing: 2px;
}



/* ===== AJUSTEMENT MOBILE AUDIO ===== */
@media (max-width: 768px) {
  .audio-player {
    transform: translateX(-10px);
  }
}

