/* === LIGHTBOX / FICHE — VERSION HOLOGRAMME NOCTUA === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 30, 50, 0.35), rgba(0,0,0,0.88)),
    rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.01) 50%,
      rgba(255,255,255,0.03) 100%
    );
  background-size: 100% 6px;
  opacity: 0.18;
  pointer-events: none;
  animation: noctuaScanlines 8s linear infinite;
}

.lightbox::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(111,243,255,0.08), transparent 45%);
  pointer-events: none;
}

.lightbox-content {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,14,24,0.96), rgba(10,10,18,0.96));
  color: #eee;
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  overflow-y: auto;

  border: 1px solid rgba(111,243,255,0.22);
  box-shadow:
    0 0 30px rgba(111,243,255,0.12),
    0 0 80px rgba(0,0,0,0.65),
    inset 0 0 18px rgba(111,243,255,0.04);

  animation: ficheHoloIn 0.45s cubic-bezier(.2,.9,.2,1);
}

.lightbox-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(111,243,255,0.05),
      transparent
    );
  transform: translateX(-100%);
  animation: holoSweep 1.2s ease-out 1;
}

.lightbox-content::after {
  content: "NOCTUA — ARCHIVE VISUELLE";
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(111,243,255,0.65);
  opacity: 0.85;
  pointer-events: none;
}

.lightbox-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow:
    0 0 24px rgba(111,243,255,0.1),
    0 10px 24px rgba(0,0,0,0.45);
  animation: holoImageIn 0.6s ease-out;
}

.lightbox-content h3 {
  color: #dffcff;
  text-shadow: 0 0 12px rgba(111,243,255,0.18);
}

.lightbox-content ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.lightbox-content li {
  margin: 6px 0;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}

/* cache les boutons UI derrière / pendant l’ouverture */
body.lightbox-open #mobile-console-btn,
body.lightbox-open #language-selector,
body.lightbox-open .music-btn {
  opacity: 0;
  pointer-events: none;
}

/* animations */
@keyframes ficheHoloIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(14px);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: scale(1.01) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes holoImageIn {
  0% {
    opacity: 0;
    transform: scale(1.03);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes holoSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes noctuaScanlines {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}

/* === ARCHIVES SECRÈTES === */


.secret-item .caption {
  letter-spacing: 2px;
  opacity: 0.7;
}

#toggle-secret.active {
  background: #7a1d1d;
  color: #fff;
}

.secret-item {
  position: relative;
}
.secret-item img {
  filter: grayscale(1) blur(1px) contrast(1.2);
}

.secret-item::after {
  content: "ARCHIVE CLASSIFIÉE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  
  color: rgba(220,40,40,0.95);
  
  text-shadow:
    0 0 6px rgba(220, 40, 40, 0.8),
    0 0 14px rgba(120, 0, 0, 0.8);

  background: linear-gradient(
    rgba(120, 0, 0, 0.15),
    rgba(120, 0, 0, 0.15)
  );
  
  pointer-events: none;
}

#archive-btn.active {
  background: #7a1d1d;
  color: #fff;
}


/* === FOND GLOBAL ÉQUINOXE === */
body {
  margin: 0;
  background:url("images/Background/fond-equinoxe.png") no-repeat center center fixed;
  background-size: cover;
  color: #eaeaea;
  transition: background 0.8s ease;
}

/* === FOND DIÉGÉTIQUE (CHANGE SELON LE MODE) 🔒 Quand les archives secrètes sont actives  === */
body.archives-active {
  background: url("images/Background/fond-archives.png") no-repeat center center fixed;
  background-size: cover;
}


/* === EFFET D’INSTABILITÉ === */
@keyframes archive-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.secret-item::after {
  animation: archive-flicker 1.8s infinite;
}

/* === BOUTON MUSIQUE dans illustrations === */
.music-btn {
  position: absolute;
  bottom: 24px;
  right: 20px;
  background: rgba(20,20,30,0.85);
  color: #eaeaea;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  z-index: 2000;
  transition: all 0.3s ease;
}

.music-btn.active {
  background: #7a1d1d;
  color: #fff;
  box-shadow: 0 0 12px rgba(220,40,40,0.5);
}

/* === Entete en mode projeter === */
.equinoxe-title {
  text-align: center;
  margin: 10px 0 5px;
  line-height: 1.1;
  position: relative;
}

.equinoxe-title .main {
  display: block;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 6px;
  font-weight: 700;
  color: #eaeaea;

  text-shadow:
    0 0 10px rgba(255,255,255,0.08),
    0 0 22px rgba(120,120,160,0.15);
}

.equinoxe-title .sub {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(200,200,210,0.65);
}

/* === 🔒EN TETE MODE ARCHIVES SECRÈTES (ALTÉRATION VISUELLE) === */
body.archives-active .equinoxe-title .main {
  color: rgba(220,40,40,0.9);
  text-shadow:
    0 0 6px rgba(220,40,40,0.8),
    0 0 14px rgba(120,0,0,0.9);
  letter-spacing: 8px;
}

body.archives-active .equinoxe-title .sub {
  color: rgba(255,120,120,0.7);
}

/* === EN TETE Glitch discret (très léger) === */
@keyframes title-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

body.archives-active .equinoxe-title {
  animation: title-flicker 3s infinite;
}

/* === EN TETE Ligne d’archive (très élégante SCAN) === */
.equinoxe-title::after {
  content: "";
  display: block;
  margin: 18px auto 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(200,200,200,0.6),
    transparent
  );
}

/* === EN TETE en mode archives === */
body.archives-active .equinoxe-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(220,40,40,0.9),
    transparent
  );
}


/* === EN TETE Un micro-glitch sur la ligne uniquement === */
@keyframes scan-jitter {
  0%, 100% { width: 180px; }
  50% { width: 160px; }
}

body.archives-active .equinoxe-title::after {
  animation: scan-jitter 2.6s infinite;
}


/* === EN TETE VARIABLES RÉACTIVES === */
.equinoxe-title {
  --pulse: 1;
  --opacity: 1;

  transform: scale(var(--pulse));
  opacity: var(--opacity);
  transition: transform 0.12s linear, opacity 0.12s linear;
}


/* === EN TETE variables de désynchronisation === */
.equinoxe-title .sub {
  --drift-x: 0px;
  --drift-y: 0px;
  --blur: 0px;
  --opacity-sub: 0.85;

  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  opacity: var(--opacity-sub);

  transform: translate(var(--drift-x), var(--drift-y));
  filter: blur(var(--blur));

  transition:
    transform 0.18s linear,
    filter 0.18s linear,
    opacity 0.25s ease;
}


/* === FOOTER ÉQUINOXE === */
.equinoxe-footer {
  margin-top: 50px;
  padding: 20px 15px;
  text-align: center;
  font-size: 0.85rem;
  background: rgba(10,10,20,0.85);
  color: #d9faff;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 100;
}

.equinoxe-footer a {
  color: #6ff3ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.equinoxe-footer a:hover {
  color: #ff6f6f;
  text-shadow: 0 0 6px rgba(255,100,100,0.6);
}

body.archives-active .equinoxe-footer {
  background: rgba(20,0,0,0.85);
  color: rgba(255,120,120,0.8);
  border-top: 1px solid rgba(220,40,40,0.7);
}

body.archives-active .equinoxe-footer a {
  color: rgba(220,40,40,0.9);
}

body.archives-active .equinoxe-footer a:hover {
  color: #ff6f6f;
  text-shadow: 0 0 8px rgba(220,40,40,0.7);
}

/* micro-glitch subtil sur footer archives */
@keyframes footer-flicker {
  0%,100% {opacity:1;}
  50% {opacity:0.88;}
}

body.archives-active .equinoxe-footer {
  animation: footer-flicker 3s infinite;
}

.footer-links {
  margin-top: 8px;
  font-size: 0.78em;
}
.footer-links a {
  color: rgba(111,243,255,0.55);
  text-decoration: none;
  margin: 0 10px;
  transition: color .18s;
}
.footer-links a:hover {
  color: #6ff3ff;
  text-shadow: none;
  text-decoration: underline;
}
body.archives-active .footer-links a {
  color: rgba(220,40,40,0.7);
}
body.archives-active .footer-links a:hover {
  color: #ff6f6f;
} 

/* === Bouton musique au-dessus du footer === */
.music-btn.above-footer {
  bottom: calc(var(--footer-height) + 20px);
}


/* ===== SELECTEUR DE LANGUE — POSITION DROITE ===== */
#language-selector {
  position:absolute;
  top: 20px;
  right: 20px;          /* 👉 À DROITE */
  z-index: 3000;

  background: rgba(0, 20, 40, 0.6);
  border: 1px solid #0af;
  border-radius: 8px;
  padding: 2px 6px;
  box-shadow: 0 0 8px #0af;
  backdrop-filter: blur(4px);

  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
}

#langSelect {
  background: transparent;
  color: #6ff3ff;
  border: none;
  outline: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  padding: 0;
  margin: 0;
}


/* ===== Ajustement mobile pour selecteur de langue ===== */
@media (max-width: 768px) {
  #language-selector {
    position: absolute;
	top: 139px;
    right: 1px;
    transform: scale(0.7);
	padding: 1px 1px;
	}
	
	#langSelect {
    font-size: 10px;
  }
}



/* =========================
   CONSOLE IA — MOBILE HEADER
   ========================= */

#mobile-console-btn{
  display: none !important;
}

/* MOBILE UNIQUEMENT */
@media (max-width: 900px){
  #mobile-console-btn{
    display: block !important;
    position: absolute;
    top: 101px;
    left: 142px;
    z-index: 4000;

    background: rgba(0,20,40,0.75);
    border: 1px solid #0af;
    color: #6ff3ff;
    padding: 2px 2px;
    border-radius: 10px;

    font-family: Orbitron, sans-serif;
    letter-spacing: 1.5px;
    font-size: 8px;

    box-shadow: 0 0 10px rgba(0,200,255,0.5);
  }

  /* pulsation IA subtile */
  #mobile-console-btn{
    animation:consolePulse 2.5s infinite;
  }

  @keyframes consolePulse{
    0%,100%{box-shadow:0 0 6px rgba(0,200,255,0.3);}
    50%{box-shadow:0 0 16px rgba(0,255,255,0.8);}
  }

  /* transformation du nav en console */
  nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.96);
    backdrop-filter:blur(6px);
    transform:translateY(100%);
    transition:transform 0.35s ease;
    z-index:3500;

    display:flex;
    flex-direction:column;
    align-items:center;
    padding:30px 0;
  }

  nav.open{
    transform:translateY(0);
  }

  nav a{
    font-size:20px;
    margin:12px 0;
    letter-spacing:2px;
  }
}

body {
  margin: 0;
  position: relative;
  background:url("images/Background/fond-equinoxe.png") no-repeat center center fixed;
  background-size: cover;
  color: #eaeaea;
  transition: background 0.8s ease;
}


  /* pour le positionnement des images de vignettes dans illustrations */
.gallery .item {
  overflow: hidden;
  position: relative;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 CRUCIAL */
  display: block;
}


