/* ==========================
   RESET
========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ==========================
   THEME GLOBAL (gris / cyan / rouge)
========================== */
:root {
  --bg-1: #1a1a1a;
  --bg-2: #2a2a2a;
  --txt: #e0e0e0;
  --cyan: #00b7eb;
  --red: #ff2e2e;
  --shadow-cyan: rgba(0, 183, 235, 0.7);
}

body {
  font-family: 'Fira Code', monospace;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Scan glitch */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 183, 235, 0.05),
    rgba(0, 183, 235, 0.05) 1px,
    transparent 1px,
    transparent 20px
  );
  z-index: -1;
  animation: glitchScan 5s infinite linear;
  pointer-events: none;
}
@keyframes glitchScan {
  0% { transform: translateY(-100%); opacity: 0.4; }
  50% { opacity: 0.6; }
  100% { transform: translateY(100%); opacity: 0.4; }
}

/* ==========================
   NAVIGATION
========================== */
.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(26, 26, 26, 0.9);
  padding: 16px 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--cyan);
  backdrop-filter: blur(8px);
}
.menu_bouton {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 40px;
  width: 40px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: #222;
}
.menu_bouton img { height: 22px; width: 22px; }

.menu_links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
}
.menu a {
  color: var(--txt);
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 500;
  transition: all 0.25s ease;
  border-radius: 8px;
}
.menu a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--shadow-cyan);
  transform: translateY(-1px);
  background: rgba(0,0,0,0.2);
}

/* ==========================
   ENTÊTE
========================== */
.header {
  padding: 56px 20px 40px;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 3px solid var(--cyan);
}
.dream-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--txt);
  text-shadow: 0 0 15px var(--cyan), 0 0 30px var(--red);
  animation: cyberGlow 3s infinite alternate;
  margin: 0;
}
@keyframes cyberGlow {
  0% { text-shadow: 0 0 15px var(--cyan), 0 0 30px var(--red); }
  100% { text-shadow: 0 0 25px var(--cyan), 0 0 40px var(--red); }
}
.intro-text {
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
  margin-top: 14px;
}

/* ==========================
   GALERIE
========================== */
.gallery-section {
  padding: 56px 20px 70px;
  max-width: 1300px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-section.visible { opacity: 1; transform: translateY(0); }

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--cyan);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 260px;
  cursor: pointer;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 0 22px rgba(0, 183, 235, 0.35); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.6), rgba(0, 183, 235, 0.35));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; opacity: 0; transition: opacity 0.25s ease;
  padding: 12px;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay h3 { color: var(--cyan); margin: 0; font-size: 1.4rem; }
.overlay p { color: var(--txt); opacity: 0.9; margin: 0; }

/* ==========================
   MODALES
========================== */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1200;
  justify-content: center; align-items: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }

.modal-content {
  position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  padding: 28px 24px;
  border: 2px solid var(--cyan);
  border-radius: 16px;
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 22px rgba(0, 183, 235, 0.3);
  transform: translateY(6px);
  animation: popIn 220ms ease-out forwards;
}
@keyframes popIn { to { transform: translateY(0); } }

.close {
  position: absolute; top: 10px; right: 14px;
  color: var(--red); font-size: 28px; line-height: 1; cursor: pointer; user-select: none;
  border: 1px solid var(--red); border-radius: 8px; padding: 4px 8px;
  background: rgba(0,0,0,0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.close:hover { transform: scale(1.05); filter: brightness(1.1); }

.modal-content h2 {
  color: var(--cyan);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  font-size: 1.6rem;
}
.modal-content p, .modal-content ul { color: var(--txt); }
.modal-content ul { padding-left: 1.1rem; }
.modal-content li { margin: 0.4rem 0; }

.show-images-button {
  margin-top: 14px;
  background: linear-gradient(45deg, var(--cyan), var(--red));
  color: #111;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.show-images-button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 183, 235, 0.35); }

/* ==========================
   PIED DE PAGE
========================== */
.footer {
  background: rgba(26, 26, 26, 0.9);
  padding: 36px 20px;
  text-align: center;
  border-top: 2px solid var(--cyan);
  backdrop-filter: blur(8px);
  margin-top: 40px;
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { display: inline-block; }
.footer-links img { width: 50px; height: 50px; object-fit: contain; transition: transform 0.25s ease, filter 0.25s ease; }
.footer-links a:hover img { transform: scale(1.12); filter: brightness(1.25); }

.legal-links { margin: 10px 0 0; }
.legal-links a {
  color: var(--red);
  text-decoration: none;
  margin: 0 10px;
  font-size: 1rem;
  transition: color 0.25s ease;
}
.legal-links a:hover { color: var(--cyan); }

.footer p { margin-top: 16px; color: var(--cyan); font-size: 0.98rem; }

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 860px) {
  .menu { justify-content: space-between; padding: 12px 14px; }
  .menu_bouton { display: flex; }
  .menu_links { display: none; flex-direction: column; width: 100%; gap: 0; margin-top: 12px; }
  .menu_links a { display: block; padding: 12px; border-radius: 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .menu.menu_open .menu_links { display: flex; }
}
