body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    color: #00ffff;
    overflow-x: hidden;
}
header {
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border-bottom: 2px solid #ff00ff;
    text-align: center;
    padding: 15px;
    box-shadow: 0 0 20px #ff00ff;
}
header h1 {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav a {
    color: #00ffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
    transition: color 0.3s;
	white-space: nowrap; /* ⬅️ empêche "A / propos" */
}
nav a:hover {
    color: #ff00ff;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    height: calc(100vh - 440px); /* Prend toute la hauteur disponible moins header si nécessaire */
    text-align: center;
    padding: 50px;
}

button {
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    text-shadow: 0 0 10px #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
    transition: all 0.3s;
}
button:hover {
    background: #ff00ff;
    color: #000;
}
#imageModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80%;
    max-width: 600px;
    height: 400px;
    background: #000;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px #00ffff;
    z-index: 30;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    border-radius: 10px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#imageModal.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.modal-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 600% 600%;
    animation: gradientMove 8s ease infinite;
    opacity: 0.2;
    z-index: 1;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.modal-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.modal-content h3 {
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}
.modal-content p {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}
.cinema-fade {
    position: fixed;
    inset: 0;
    background: #000;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s ease, visibility 0s linear 0.42s;
}

.cinema-fade.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s ease, visibility 0s linear 0s;
}

#secretsSection {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.38s ease, transform 0.38s ease;
    transform: scale(1.008);
	 padding: 20px 12px 90px;
  box-sizing: border-box;
}
#secretsSection h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-align: center;
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff;
}

#secretsSection > button {
  margin-top: 18px;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  padding: 10px 22px;
  position: relative;
  z-index: 5;
}


.video-wall {
  --wall-width: min(92vw, 600px);
  --gap: 2px;

  position: relative;
  width: var(--wall-width);
  aspect-ratio: 5 / 3;
  margin: 0 auto 18px;
  overflow: hidden;
  background: #020508;
  border-radius: 4px;
}

/* la seule vraie vidéo */
.master-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  background: #000;
  opacity: 1;
}

/* grille d'écrans au-dessus */
.wall-grid {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);

  pointer-events: none;
  background: transparent;
}

/* chaque case est un cadre transparent posé sur la vidéo */
.screen {
  position: relative;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  border: 0.5px solid rgba(0, 255, 255, 0.68);
  box-shadow:
    0 0 2px rgba(0,255,255,0.12),
    inset 0 0 1px rgba(0,180,255,0.05);
  background: rgba(0, 0, 0, 0.05);
}

/* effet "écran" plus crédible */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.01) 20%, rgba(0,0,0,0.10) 100%);
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
}

/* montants entre les écrans */
.wall-grid {
  background: transparent;
  padding: 0;
}

@media (max-width: 768px) {
  .video-wall {
    --wall-width: 92vw;
    --gap: 4px;
  }

  .screen {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(0,255,255,0.55);
  }
}

@media (max-width: 480px) {
  .video-wall {
    --wall-width: 94vw;
    --gap: 3px;
  }
}

.modal-buttons { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 20px; }

 /* Image de fond */

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    /* Image de fond */
    background-image: url('images/Background/future iu1.png'); /* Remplace par le chemin réel de ton image */
    background-size: cover;      /* Pour remplir tout l'écran */
    background-position: center; /* Centrer l'image */
    background-repeat: no-repeat;
    
    /* Overlay pour garder le style futuriste */
    background-color: rgba(10, 10, 10, 0.7); 
    background-blend-mode: overlay;
    
    color: #00ffff;
    overflow-x: hidden;
}

/* effet blur sur Image de fond */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: inherit;
    filter: blur(2px);
    z-index: -1;
}

/* pour le pied de page */
.footer {
    position: fixed;      /* Toujours en bas de la fenêtre */
    bottom: 0;            /* Collé au bas */
    left: 0;              /* Commence à gauche */
    width: 100%;          /* Prend toute la largeur */
    text-align: center;   /* Centre le texte */
    padding: 10px 0;      /* Un peu d’espace vertical */
    background: rgba(0,0,0,0.7); /* Fond semi-transparent pour lisibilité */
    color: #00ffff;       /* Texte néon */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px #00ffff; /* Petite lueur néon */
    z-index: 50;          /* Au-dessus de tout sauf warp et modals */
}

.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;
}

/* réglage mobile pour la section secrets de bonus */
#secretsSection {
  padding: 20px 12px 90px;
  box-sizing: border-box;
  overflow-y: auto;
}

#secretsSection h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-align: center;
}

#secretsSection > button {
  margin-top: 18px;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  padding: 10px 22px;
}

@media (max-width: 768px) {
  .video-wall {
    --wall-width: 92vw;
    --gap: 3px;
  }

  .screen {
    border: 0.8px solid rgba(0, 255, 255, 0.72);
    box-shadow:
      0 0 4px rgba(0,255,255,0.22),
      inset 0 0 2px rgba(0,180,255,0.08);
  }

  .footer {
    font-size: 0.72em;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  #secretsSection {
    justify-content: flex-start;
    padding-top: 28px;
  }

  .video-wall {
    --wall-width: 94vw;
    --gap: 2px;
  }

  .screen {
    border: 0.7px solid rgba(0, 255, 255, 0.68);
    box-shadow:
      0 0 3px rgba(0,255,255,0.18),
      inset 0 0 1px rgba(0,180,255,0.06);
  }

  #secretsSection > button {
    margin-top: 14px;
    padding: 9px 18px;
  }
}

