
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Comfortaa', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

body {
  flex: 1;
}

.content {
  flex: 1; /* ✅ prend tout l'espace restant */
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  text-align: center;
}


.section-main {
  margin: 2rem 0;
  text-align: center;
}


  /* Canvas*/
  canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
  }


/*----------------*/


  /* Contenu principal
.content {
    position: relative;
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    flex: 1;
  }*/


#paragraphe1{
  text-align: justify;
}



/* ménagerie cards */

.menagerie-grid {
  display: flex;
  flex-direction: column; /* une carte par ligne */
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* Style des encarts */
.pixel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid #c084f5;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 360px;
  box-shadow:
          0 0 8px #a0e9ff,
          0 0 12px #c084f5;
  text-align: center;
}

/* Image avec cadre personnalisé */
.pixel-card img {
  image-rendering: pixelated;
  width: 300px;
  height: auto;
  border: 4px double #a0e9ff;
  border-radius: 12px;
  padding: 4px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  margin-bottom: 1rem;
  box-shadow: 0 0 6px #a0e9ff, 0 0 12px #c084f5;
}

/* Texte */
.pixel-card p {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #c084f5;
  line-height: 1.5;
}




/*----------------*/




  /* Titres */
  header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }


  section {
    margin: 2rem 0;
  }

  h1, h2, h3{
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-shadow: 0 0 5px #fff, 0 0 10px #a0e9ff, 0 0 15px #c084f5;
  }

  h1{
    margin-bottom: 20px;

  }
#texte-temp{
  text-align: justify;
}

  #image-construction{
    margin: 10px;
    max-width: 120px;
  }
/*----------------*/


  
  /* Liens */
  a {
    color: #f4a9d8;
    text-decoration: underline;
  }


/*----------------*/

  /*header */

.terminal-header {
  font-family: 'Press Start 2P', monospace;
  background: rgba(179, 179, 179, 0.4);
  backdrop-filter: blur(4px);
  padding: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
  border-left: 3px solid #a0e9ff;
  border-radius: 10px;
  box-shadow: 0 0 8px #c084f5;
  text-align: left;

}

.terminal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 1rem;
  position: relative;
}

.terminal-link {
  position: relative;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #80ffee;
  text-decoration: none;
  display: inline-block;
}

#cursor {
  position: absolute;
  display: inline-block;
  color: #80ffee;
  animation: blink 0.8s steps(2, start) infinite;
  font-size: 0.8rem;
  line-height: 1;
  vertical-align: top;
  transform: translateY(-0.5rem);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/*----------------*/



/* Animation ligne par ligne */
.line {
  opacity: 0;
  animation: appear 0.3s ease forwards;
}

.line:nth-child(1) { animation-delay: 0.2s; }
.line:nth-child(2) { animation-delay: 1s; }
.line:nth-child(3) { animation-delay: 1.8s; }

@keyframes appear {
  to { opacity: 1; transform: translateX(0); }
  from { opacity: 0; transform: translateX(-10px); }
}

/*----------------*/





/* footer */

.terminal-footer {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  color: #c0fff7;
  padding: 0.8rem 1rem;
  margin-top: auto;
  border-top: 2px solid #a0e9ff;
  box-shadow: 0 -2px 6px rgba(192, 132, 245, 0.3);
  position: static;
  transition: background 0.5s ease, box-shadow 0.5s ease;
  width: 100%;
}

/* Colonnes du footer */
.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto; /* ✅ centre l'intérieur sans toucher à la largeur globale */
  width: 100%;
}

.footer-column {
  flex: 1 1 200px;
  max-width: 300px;
}

.footer-column h3 {
  font-size: 0.6rem;
  margin-bottom: 1.5rem;
  color: #c084f5;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.3rem;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.6rem;
}

.footer-column a:hover {
  color: #f4a9d8;
  text-decoration: none;
}

#logo-footer{
  width: 40px;
}



/* Icônes réseaux sociaux */
.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}


.social-icon img:hover {
  transform: scale(1.2);
}

/* Logos ESA */
.school-logos {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: #ffffff;
}

#school-logo {
  max-width: 200px;
  object-fit: contain;
}

.terminal-footer-copy {
  text-align: center;
  margin-top: 1.5rem;
  color: #c084f5;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #c084f5;
}

#logo-footer {
  width: 40px;
  height: auto;
  vertical-align: middle;
}


.terminal-footer.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -4px 12px rgba(192, 132, 245, 0.5);
}

.terminal-footer-nav a {
  color: #c084f5;
  text-decoration: none;
}

.terminal-footer-nav a:hover {
  color: #f4a9d8;
  text-decoration: underline;
}


#backToTop {
  position: fixed;
  bottom: 2.5rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid #a0e9ff;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  color: #c084f5;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(192, 132, 245, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 50;
}

#backToTop.show {
  opacity: 1;
}


/*----------------*/


/* Responsiveness tablette et gsm */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p, section p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .content {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  section {
    margin: 1.5rem 0;
  }


}

@media screen and (max-width: 600px) {
  .footer-content {
    font-size: 0.8rem;
    padding: 0.6rem;
  }

}

@media screen and (max-width: 600px) {
  .terminal-nav {
    align-items: center;
    padding-left: 0;
  }
}

  