
body {
  margin: 0;
  background-color: #000;
  color: #00ffe6;
  font-family: 'Courier New', Courier, monospace;
  padding: 2em;
}

h1 {
  text-align: center;
  margin-bottom: 2em;
}

.section {
  margin-bottom: 3em;
}

h2 {
  text-align: center;
  color: #8cf3ff;
  margin-bottom: 1em;
  border-bottom: 1px dashed #00ffe6;
  padding-bottom: 0.5em;
}

.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

/* Responsive : 1 colonne sur mobile */
@media screen and (max-width: 768px) {
  .grille {
    grid-template-columns: 1fr;
  }
}

.texte-card {
  border: 1px dashed #00ffe6;
  padding: 1em;
  border-radius: 8px;
  transition: 0.3s ease;
  background: rgba(0, 255, 230, 0.05);
  cursor: pointer;
  text-align: center;
}

.texte-card:hover {
  background-color: rgba(0, 255, 230, 0.1);
  transform: scale(1.02);
}

.titre-texte {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #ffffff;
}

.vibration {
  font-style: italic;
  color: #8cf3ff;
  margin-bottom: 1em;
}

.bouton-lire {
  background-color: #00ffe6;
  color: #000;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
}

.bouton-lire:hover {
  background-color: #00ccbb;
}

/* Format carré pour les images */
.cover {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1em;
  box-shadow: 0 0 8px rgba(0,255,230,0.2);
}

/* Popup immersive */
.popup {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background-color: #111;
  color: #00ffe6;
  padding: 2em;
  border: 1px dashed #00ffe6;
  border-radius: 8px;
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0,255,230,0.4);
  opacity: 0;
  transition: all 0.3s ease;
}

.popup.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.popup .cover {
  max-width: 100%;
  margin-bottom: 1em;
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 1em;
  font-size: 2em;
  color: #00ffe6;
  cursor: pointer;
}

/* Overlay flouté */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

/* Retour */
.retour-portal {
  margin-top: 4em;
  text-align: center;
  animation: pulseGlow 4s infinite;
}

.retour-portal a {
  color: #00ffe6;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  border: 1px dashed #00ffe6;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.retour-portal a:hover {
  background-color: #00ffe6;
  color: #000;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}
