/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fira Code', monospace;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
}

@keyframes glitchScan {
  0% { transform: translateY(-100%); opacity: 0.4; }
  50% { opacity: 0.6; }
  100% { transform: translateY(100%); opacity: 0.4; }
}

/* Navigation */
.menu {
  display: flex;
  justify-content: center;
  background: rgba(26, 26, 26, 0.9);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #00b7eb;
  backdrop-filter: blur(8px);
}

.menu a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 12px 30px;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #00b7eb;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.7);
  transform: scale(1.05);
}

.menu_bouton {
  display: none;
}

.menu_links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Header */
.header {
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-bottom: 3px solid #00b7eb;
}

.dream-title {
  font-family: 'Fira Code', monospace;
  font-size: 3.5em;
  color: #e0e0e0;
  text-shadow: 0 0 15px #00b7eb, 0 0 30px #ff2e2e;
  animation: cyberGlow 3s infinite alternate;
}

@keyframes cyberGlow {
  0% { text-shadow: 0 0 15px #00b7eb, 0 0 30px #ff2e2e; }
  100% { text-shadow: 0 0 25px #00b7eb, 0 0 40px #ff2e2e; }
}

.intro-text {
  font-family: 'Fira Code', monospace;
  font-size: 1.4em;
  color: #ff2e2e;
  text-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
  margin-top: 20px;
}

/* Dream Cards */
.dream-cards {
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  perspective: 1200px;
  height: 450px;
  position: relative;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
}

.card-front {
  background: rgba(26, 26, 26, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #00b7eb;
}

.card-front img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #ff2e2e;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card-front img {
  transform: scale(1.1);
  filter: brightness(110%) contrast(120%);
}

.card-back {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px solid #ff2e2e;
}

.card-title {
  font-family: 'Fira Code', monospace;
  font-size: 2em;
  color: #00b7eb;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  margin-bottom: 20px;
  border-bottom: 2px solid #ff2e2e;
  padding-bottom: 10px;
}

.card-back p {
  font-family: 'Fira Code', monospace;
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.4;
}

/* Footer */
.footer {
  background: rgba(26, 26, 26, 0.9);
  padding: 40px;
  text-align: center;
  border-top: 2px solid #00b7eb;
  backdrop-filter: blur(8px);
}

.footer-links img {
  width: 50px;
  margin: 0 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-links img:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.legal-links a {
  color: #ff2e2e;
  text-decoration: none;
  margin: 0 10px;
  font-family: 'Fira Code', monospace;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #00b7eb;
}

.footer p {
  margin-top: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 1em;
  color: #00b7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .dream-title { font-size: 3em; }
  .intro-text { font-size: 1.2em; }
  .card { height: 400px; }
  .card-title { font-size: 1.8em; }

  .menu_bouton {
    display: flex;
    align-items: start;
    cursor: pointer;
    position: relative;
    z-index: 100;
  }

  .menu_bouton img {
    height: 30px;
    width: 30px;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
  }

  #menu_close {
    display: none;
    position: absolute;
  }

  .menu_links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu_links a {
    display: block;
    padding: 10px;
    text-align: center;
  }

  .menu_active {
    display: flex;
  }
}

@media (max-width: 480px) {
  .dream-title { font-size: 2.5em; }
  .menu a { padding: 10px 20px; font-size: 0.9em; }
  .card { height: 350px; }
  .card-title { font-size: 1.5em; }
  .card-back p { font-size: 1em; }
}