/* =========================
   RESET + BASE GLOBALE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Orbitron', sans-serif;
  color: white;
  background-color: #050816;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================
   FORMULAIRE / ECRAN D'ACCUEIL
========================= */

.form-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background-image: url("../images/background-form.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Boutons session */
.session-button {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.session-button button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  color: black;
  cursor: pointer;
  transition: 0.2s;
}

.session-button button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Bloc principal formulaire */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;

  padding: 40px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 16px;
  backdrop-filter: blur(8px);

  color: white;
}

.form-box {
  width: 300px;
}

.recap {
  width: 250px;
}

#playerForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input,
select {
  padding: 10px;
  border-radius: 6px;
  border: none;
}

button[type="submit"] {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;

  background-color: #2ecc71;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button[type="submit"]:hover {
  background-color: #297147;
}

.hidden{
  display: none;
}


/* =========================
   SCENES - STRUCTURE COMMUNE
========================= */

#game {
  width: 100%;
  min-height: 100vh;
}

/* Classe commune à toutes les scènes */
.scene-page {
  min-height: 100vh;
  width: 100%;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fonds spécifiques par scène */
.scene1 {
  background-image: url("../images/vue epave ou station.png");
}

.scene2 {
  background-image: url("../images/scene2.png");
}

.scene3 {
  background-image: url("../images/scene3.png");
}

.scene4 {
  background-image: url("../images/scene\ astéroide.png");
}

.scene5 {
  background-image: url("../images/vue\ sur\ petite\ epave\ et\ planete.png ");
}

.scene6 {
  background-image: url("../images/scene\ frappé\ par\ l\'astéroide.png");
}

.scene7 {
  padding-bottom: -300px;
  background-image: url("../images/scene7.png");
}

.scene8 {
  background-image: url("../images/vue\ planete.png");
}

.scene9 {
  background-image: url("../images/scanner_planete.png");
}

.scene10 {
  background-image: url("../images/les\ robots\ qui\ nous\ fixe.png");
}

.scene11 {
  background-image: url("../images/vue\ avec\ les\ aliens.png");
}

.end-screen-container {
  padding: 80px 0;
  background: url("../images/scene_de_base.png");
}

/* Header de scène */
.game-header {
  width: 100%;
  text-align: center;
  padding: 24px 20px 12px;

  background: rgba(5, 10, 20, 0.45);
  backdrop-filter: blur(4px);
}

.game-title {
  font-size: 3rem;
  color: #6fdcff;
  text-shadow: 0 0 10px rgba(111, 220, 255, 0.5);
}

.game-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 6px;
}

/* Contenu général de scène */
.scene {
  width: 100%;
  max-width: 900px;
  padding: 30px 20px 120px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Bloc texte */
.scene-content {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
}

.scene-title {
  margin-bottom: 10px;
  color: #facc15;
  font-size: 2rem;
}

.scene-text {
  position: relative;
  padding: 18px 20px;
  border-radius: 6px;

  background: #0a1622;
  border: 1px solid #2b4c66;

  color: #d6e2ee;
  font-size: 1.05rem;
  line-height: 1.65;

  font-family: "Consolas", "Courier New", monospace;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 30px rgba(0,0,0,0.6);
}

.scene-text::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 4px
    );

  opacity: 0.3;
  pointer-events: none;
}


/* =========================
   CARTE INTERACTIVE / POINTS CLIQUABLES
========================= */

.scene-map {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 420px;
}

.choice-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6ff6ff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 8px #6ff6ff,
    0 0 20px rgba(111, 246, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-dot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow:
    0 0 12px #ffffff,
    0 0 30px rgba(111, 246, 255, 1);
}

.choice-dot::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(111, 246, 255, 0.5);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
/* Objets boutons */

.choice-dot-object {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fb7f26;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 8px #ff7418,
    0 0 20px rgba(231, 115, 20, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-dot-object:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow:
    0 0 12px #ff981a,
    0 0 30px rgb(255, 81, 62);
}

.choice-dot-object::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgb(226, 118, 56);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.choix-container {
  display: flex;
  flex-direction: column;
  gap: 18px;

  /* centrage horizontal */
  align-items: center;

  /* centrage global dans la page (optionnel) */
  justify-content: center;
}

/* Boutons choix */
.btn-choix {
  position: relative;
  padding: 16px 22px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.75);
  color: #e0f7ff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.15),
    inset 0 0 12px rgba(0, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.btn-choix::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0, 255, 255, 0.35),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-choix:hover::before {
  left: 120%;
}

.btn-choix:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 255, 255, 0.75);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.35),
    0 0 30px rgba(0, 128, 255, 0.2),
    inset 0 0 14px rgba(0, 255, 255, 0.1);
}

.btn-choix:active {
  transform: scale(0.98);
}

.btn-choix:focus {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(0, 255, 255, 0.25),
    0 0 20px rgba(0, 255, 255, 0.35);
}

/* Bouton Scan */

.scan-action {
  position: fixed; /* 🔥 important */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999; /* au-dessus de tout */
}

.scan-btn {
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  border: 1px solid rgba(86, 220, 255, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 25, 45, 0.95), rgba(3, 12, 24, 0.98));
  color: #dffcff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(64, 220, 255, 0.45),
    inset 0 0 12px rgba(64, 220, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.scan-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 18px rgba(64, 220, 255, 0.7),
    0 0 30px rgba(64, 220, 255, 0.25),
    inset 0 0 16px rgba(64, 220, 255, 0.2);
  border-color: #7cecff;
}

.scan-btn:active {
  transform: scale(0.98);
}

.scan-btn__text {
  position: relative;
  z-index: 3;
}

.scan-btn__core {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 247, 255, 0.12), transparent 60%),
    linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.06), transparent);
  animation: pulse-core 2.4s infinite ease-in-out;
  z-index: 1;
}

.scan-btn__shine {
  position: absolute;
  top: 0;
  left: -35%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: scan-shine 2.8s infinite linear;
  z-index: 2;
}

.scan-btn::before,
.scan-btn::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #7cecff;
  opacity: 0.85;
}

.scan-btn::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.scan-btn::after {
  right: 6px;
  bottom: 6px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.scan-btn.scanning {
  animation: active-engine 0.8s infinite alternate;
}

@keyframes pulse-core {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes scan-shine {
  0% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}

@keyframes active-engine {
  from {
    box-shadow:
      0 0 14px rgba(64, 220, 255, 0.6),
      0 0 28px rgba(64, 220, 255, 0.2),
      inset 0 0 12px rgba(64, 220, 255, 0.2);
  }
  to {
    box-shadow:
      0 0 22px rgba(64, 220, 255, 0.95),
      0 0 44px rgba(64, 220, 255, 0.35),
      inset 0 0 18px rgba(64, 220, 255, 0.3);
  }
}

/*BOutons pour entrer en contact avec les aliens*/

#contact-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00bcd4, #4dd0e1);
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

#contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.35);
}

#contact-btn:disabled {
  opacity: 0.7;
  cursor: default;
}


/* Positions des boutons sur chaques scenes */
.epave {
  top: 20%;
  left: 5%;
}

.station {
  top: 0%;
  left: 83%;
}

.ramasser-batterie {
  top: 55%;
  left: 10%;
}

.ramasser-carte{
  top:55%;
  left:92%;
}

.ramasser-scanner {
  top: 55%;
  left: 107%;
}

.ramasser-kit{
  top:55%;
  left:-5%;
}

.planete{
  top:10%;
  left:88%;
}

.epave2 {
  top: 20%;
  left: 5%;
}

.ramasser-cle {
  top:85%;
  left:10%;
}

.ramasser-batterie2{
  top: 65%;
  left: 100%;
}

.atterir-planete {
  top: 30%;
  left: 65%;
}

.scanner-planete {
  top:50%;
  left:0%;
}


/* Positions des labels sur chaque scenes */
.choice-label {
  position: absolute;
  color: white;
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.label-epave {
  top: 25%;
  left: 5%;
  transform: translateX(-50%);
}

.label-station {
  top: 5%;
  left: 83%;
  transform: translateX(-50%);
}

.label-carte {
  top: 60%;
  left: 92%;
  transform: translateX(-50%);
}

.label-batterie {
  top: 60%;
  left: 10%;
  transform: translateX(-50%);
}

.label-scanner {
  top: 60%;
  left: 107%;
  transform: translateX(-50%);
}

.label-kit {
  top: 60%;
  left: -5%;
  transform: translateX(-50%);
}

.label-planete {
  top: 15%;
  left: 90%;
  transform: translateX(-50%);
}


.label-epave2 {
  top: 25%;
  left: 5%;
  transform: translateX(-50%);
}

.label-ramasser-cle {
  top: 88%;
  left: 10%;
  transform: translateX(-50%);
}

.label-ramasser-batterie {
  top: 70%;
  left: 100%;
  transform: translateX(-50%);
}

.label-scanner-planete {
  top: 55%;
  left: 0%;
  transform: translateX(-50%);
}

.label-atterir-planete {
  top: 35%;
  left: 65%;
  transform: translateX(-50%);
}



@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* =========================
   MESSAGE USER
========================= */

.game-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;

  border-radius: 8px;
  font-size: 14px;

  z-index: 1000;

  opacity: 0;
  transition: opacity 0.3s;
}


/* =========================
   MESSAGE scan cokpit
========================= */

.cockpit-message {
      position: fixed;
      bottom: 100px;
      right: 24px;
      width: 390px;
      padding: 18px 20px 20px;
      background: rgba(5, 18, 30, 0.84);
      border: 1px solid rgba(0, 220, 255, 0.45);
      border-radius: 14px;
      box-shadow:
        0 0 12px rgba(0, 220, 255, 0.25),
        inset 0 0 18px rgba(0, 180, 255, 0.08),
        0 0 40px rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(8px);
      overflow: hidden;
    }

    .cockpit-message::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, transparent 0%, rgba(0,255,255,0.07) 50%, transparent 100%),
        repeating-linear-gradient(
          180deg,
          rgba(0, 255, 255, 0.04) 0px,
          rgba(0, 255, 255, 0.04) 1px,
          transparent 1px,
          transparent 6px
        );
      opacity: 0.45;
      pointer-events: none;
    }

    .cockpit-header,
    .cockpit-body,
    .progress-wrapper,
    .cockpit-footer {
      position: relative;
      z-index: 1;
    }

    .cockpit-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .cockpit-title {
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #7eeeff;
      text-shadow: 0 0 6px rgba(0, 255, 255, 0.7);
    }

    .cockpit-status {
      font-size: 11px;
      color: #9bffb0;
      padding: 4px 8px;
      border: 1px solid rgba(155, 255, 176, 0.35);
      border-radius: 999px;
      background: rgba(155, 255, 176, 0.08);
      box-shadow: 0 0 8px rgba(155, 255, 176, 0.2);
    }

    .cockpit-label {
      font-size: 10px;
      letter-spacing: 1.8px;
      text-transform: uppercase;
      color: rgba(126, 238, 255, 0.7);
      margin-bottom: 8px;
    }

    .cockpit-text {
      min-height: 96px;
      font-size: 15px;
      line-height: 1.55;
      color: #e6fdff;
      text-shadow: 0 0 8px rgba(0, 255, 255, 0.18);
      white-space: pre-line;
    }

    .cursor {
      display: inline-block;
      margin-left: 2px;
      color: #00f0ff;
      animation: blink 0.8s infinite;
    }

    .progress-wrapper {
      margin-top: 14px;
      margin-bottom: 12px;
    }

    .progress-top {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: rgba(223, 252, 255, 0.75);
      margin-bottom: 6px;
      letter-spacing: 1px;
    }

    .progress-bar {
      width: 100%;
      height: 12px;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid rgba(0, 220, 255, 0.35);
      background: rgba(0, 255, 255, 0.06);
      box-shadow: inset 0 0 10px rgba(0, 200, 255, 0.08);
    }

    .progress-fill {
      width: 0%;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #00bcd4, #00f0ff, #7affd4);
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
      transition: width 0.12s linear;
      position: relative;
    }

    .progress-fill::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.35) 50%,
        transparent 100%
      );
      animation: shimmer 1.4s infinite linear;
    }

    .cockpit-footer {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      color: rgba(223, 252, 255, 0.68);
      letter-spacing: 1px;
    }

    .cockpit-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #00f0ff;
      box-shadow: 0 0 10px #00f0ff;
      animation: pulse 1.3s infinite;
    }

    .scan-result {
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 13px;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-weight: 600;
      animation: fadeIn 0.4s ease;
    }

    .scan-success {
      color: #7affd4;
      border: 1px solid rgba(122, 255, 212, 0.7);
      background: rgba(0, 255, 180, 0.08);
      box-shadow: 
        0 0 10px rgba(0, 255, 180, 0.35),
        inset 0 0 8px rgba(0, 255, 180, 0.1);
    }

    .scan-fail {
      color: #ff6b6b;
      border: 1px solid rgba(255, 80, 80, 0.7);
      background: rgba(255, 50, 50, 0.08);
      box-shadow: 
        0 0 10px rgba(255, 50, 50, 0.35),
        inset 0 0 8px rgba(255, 50, 50, 0.1);
    }

    @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

    .corner {
      position: absolute;
      width: 18px;
      height: 18px;
      border-color: rgba(0, 220, 255, 0.9);
      z-index: 1;
    }

    .corner.tl {
      top: 8px;
      left: 8px;
      border-top: 2px solid;
      border-left: 2px solid;
    }

    .corner.br {
      bottom: 8px;
      right: 8px;
      border-bottom: 2px solid;
      border-right: 2px solid;
    }

    @keyframes blink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

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

    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

/* =========================
  MESSAGE traductuion allien
========================= */
.alien-panel {
  width: 540px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid rgba(90, 255, 220, 0.35);
  border-radius: 16px;
  background: rgba(5, 15, 30, 0.88);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.15);
  color: #d9fff6;
}

.alien-status {
  color: #7fffd4;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.alien-text,
.translation-text {
  min-height: 70px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.alien-text {
  color: #8ffff1;
  text-shadow: 0 0 8px rgba(100, 255, 240, 0.35);
}

.translation-text {
  color: #ffffff;
}

.decision-text.success {
  color: #8affb1;
  font-weight: bold;
}

.decision-text.fail {
  color: #ff7f7f;
  font-weight: bold;
}

.glitch {
  animation: glitchEffect 0.15s linear 8;
}

@keyframes glitchEffect {
  0% { transform: translate(0); opacity: 1; }
  25% { transform: translate(-2px, 1px); opacity: 0.8; }
  50% { transform: translate(2px, -1px); opacity: 1; }
  75% { transform: translate(-1px, -1px); opacity: 0.85; }
  100% { transform: translate(0); opacity: 1; }
}

    /* Petit encadrés pour les rôles */
  .player-role {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 240px;
    padding: 14px 16px;
    border-radius: 12px;

    background: linear-gradient(
      180deg,
      rgba(8, 25, 45, 0.95),
      rgba(2, 10, 20, 0.98)
    );

    border: 1px solid rgba(90, 220, 255, 0.4);

    box-shadow:
      0 0 15px rgba(0, 200, 255, 0.25),
      inset 0 0 12px rgba(0, 200, 255, 0.1);

    backdrop-filter: blur(6px);

    color: #d9faff;
    font-family: 'Orbitron', sans-serif;

    z-index: 9999;
  }

/* coins futuristes */

.player-role::before,
.player-role::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #66eaff;
}

.player-role::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.player-role::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* header */
.role-header {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #7cecff;
  margin-bottom: 6px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* body */
.role-body {
  display: flex;
  gap: 6px;
  font-size: 0.95rem;
}

.role-label {
  opacity: 0.6;
}

/* petit effet pulsation */
.player-role {
  animation: roleGlow 2.5s infinite ease-in-out;
}

@keyframes roleGlow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(0, 200, 255, 0.2),
      inset 0 0 10px rgba(0, 200, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 18px rgba(0, 200, 255, 0.35),
      inset 0 0 14px rgba(0, 200, 255, 0.15);
  }
}

/* =========================
   INVENTAIRE
========================= */

#inventaire-barre {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px;
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

#inventaire-slots {
  display: flex;
  gap: 8px;
}

.slot {
  width: 64px;
  height: 64px;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);

  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: bold;

  transition: 0.15s;
}

.slot:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: scale(1.05);
}

.slot.vide {
  opacity: 0.5;
}

.slot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

.mission-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 260px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 1px solid #666;
  border-radius: 10px;
  font-size: 14px;
  z-index: 999;
}

.mission-status strong {
  display: block;
  margin-bottom: 6px;
}

/* =========================
   SCENE FIN
========================= */

.fin-scene {
  text-align: center;
  padding: 50px 25px;
  max-width: 500px;
  margin: 50px auto;
  background: linear-gradient(135deg, #1e1e2f, #2c2c54);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.fin-scene h2 {
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}

.fin-scene p {
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 16px;
  color: #dcdde1;
}

.fin-scene button {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fin-scene button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.5);
}

.fin-scene button:active {
  transform: scale(0.95);
}

.fin-scene

/* =========================
   TEMPLATE
========================= */

template {
  display: none !important;
}