/* =========================
   RESET & BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}



body {
  /*background: #0b0f14;*/
  color: #b5c157;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* =========================
   SECTIONS
========================= */

.section {
  position: fixed;
  inset: 0;
  width: 100%;
  display: none;
  justify-content: center;
  overflow-y: auto;
}

#archives {
  justify-content: flex-start;
}

#archives .content {
  padding-top: 80px;
  padding-bottom: 160px;
}


.section.active {
  display: flex;
}

.content {
  text-align: center;
  max-width: 900px;
  padding: 40px;
  z-index: 2;
}

/* =========================
   TYPOGRAPHIE
========================= */

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.intro {
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.85;
}

/* =========================
   HALL – LUMIÈRE
========================= */

.light-column {
  position: absolute;
  top: 0;
  width: 220px;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(107,183,214,0.18),
    transparent 70%
  );
  animation: lightPulse 8s infinite ease-in-out;
}

@keyframes lightPulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* =========================
   BOUTONS GÉNÉRAUX
========================= */

button {
  margin-top: 40px;
  padding: 12px 30px;
  background: transparent;
  border: 1px solid #6bb7d6;
  color: #6bb7d6;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
}

button:hover {
  background: #6bb7d6;
  color: #0b0f14;
  box-shadow: 0 0 25px rgba(107,183,214,0.6);
}

/* =========================
   CODE JEDI – APPARITION
========================= */

.code-content {
  max-width: 700px;
}

.code-line {
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}

.code-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.code-line span {
  display: block;
  font-size: 1.1rem;
  color: #7fb77e;
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(127,183,126,0.4);
}

.code-line em {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* =========================
   NAVIGATION MYSTIQUE
========================= */

#temple-nav {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

#temple-nav button {
  background: #b5c157;
  border: none;
  /*color: rgba(230,230,230,0.6);*/
  color: aliceblue;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#temple-nav button:hover {
  color: #7fb77e;
  text-shadow: 0 0 15px rgba(127,183,126,0.6);
}

/* =========================
   ARCHIVES JEDI
========================= */

.jedi-archives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.jedi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(127,183,126,0.25);
  padding: 25px;
  text-align: left;
  transition: all 0.4s ease;
}

.jedi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(127,183,126,0.25);
}

.jedi-card h3 {
  margin-bottom: 6px;
}

.affinity {
  display: block;
  font-size: 0.8rem;
  color: #7fb77e;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.jedi-card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.jedi-card em {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =========================
   RITUEL DU CRISTAL
========================= */

.crystal-circle {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.crystal {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 22px;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.5s ease;
}

.crystal:hover {
  box-shadow: 0 0 25px rgba(255,255,255,0.35);
}

/* Couleurs cristaux */
.crystal.blue { color: #7fb7ff; }
.crystal.green { color: #7fb77e; }
.crystal.violet { color: #b18cff; }
.crystal.white { color: #f5f5f5; }

.crystal-result {
  margin-top: 40px;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.crystal-result.visible {
  opacity: 1;
}
/* =========================
   SABRE LASER
========================= */

.saber-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

/* Lame éteinte par défaut */
#blade {
  transition: height 0.8s ease, fill 0.4s ease;
  filter: none;
}

/* Couleurs + glow */
.blade-blue {
  fill: #7fb7ff;
  filter: drop-shadow(0 0 15px rgba(127,183,255,0.9))
          drop-shadow(0 0 35px rgba(127,183,255,0.7));
}

.blade-green {
  fill: #7fb77e;
  filter: drop-shadow(0 0 15px rgba(127,183,126,0.9))
          drop-shadow(0 0 35px rgba(127,183,126,0.7));
}

.blade-violet {
  fill: #b18cff;
  filter: drop-shadow(0 0 15px rgba(177,140,255,0.9))
          drop-shadow(0 0 35px rgba(177,140,255,0.7));
}

.blade-white {
  fill: #f5f5f5;
  filter: drop-shadow(0 0 15px rgba(245,245,245,0.9))
          drop-shadow(0 0 35px rgba(245,245,245,0.8));
}

#archives {
  align-items: flex-start;
}

#archives .content {
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
}
.jedi-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.jedi-card.visible {
  opacity: 1;
  transform: translateY(0);
}

