/* Aide de chat gpt pour les éléments */
/* Début */

.background-code {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.background-code span {
  position: absolute;
  color: rgba(221, 221, 221, 0.287);
  font-family: monospace;
  animation: move 15s linear infinite;
}

/* Positions initiales aléatoires */
.background-code span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.background-code span:nth-child(2) { top: 80%; left: 40%; animation-delay: 3s; }
.background-code span:nth-child(3) { top: 50%; left: 70%; animation-delay: 6s; }
.background-code span:nth-child(4) { top: 20%; left: 90%; animation-delay: 9s; }
.background-code span:nth-child(5) { top: 60%; left: 10%; animation-delay: 12s; }
.background-code span:nth-child(6) { top: 30%; left: 50%; animation-delay: 15s; }
.background-code span:nth-child(7) { top: 70%; left: 80%; animation-delay: 18s; }

/* Animation générique : se déplace et disparaît */
@keyframes move {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  50% { opacity: 0.7; }
  100% {
    transform: translate(
      calc((50 - random(100)) * 1vw),
      calc((50 - random(100)) * 1vh)
    ) rotate(360deg);
    opacity: 0;
  }
}
/* Fin de l'aide */

.title{
  text-align: center;
  color: white;
  font-size: 41px;
}

.title__fac{
  text-align: center;
  font-size: 41px;
  margin-top: 80px;
  color: white;
}

.title__cri{
  color: white;
  margin: 80px 10px 0px 10px;
  font-size: 41px;
  text-align: center;
}

.subtitle{
  color: white;
  font-size: 26px;
}

body{
  font-family: 'IBM Plex Mono', monospace;
  background: linear-gradient(to bottom, #2D1569 0%, #531D5B 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  margin: 0;
  padding: 0;
}

body.special-font {
  font-family: 'Arial', sans-serif;
}

body.special-bg {
  background: linear-gradient(to bottom, #a8c0cc, #3f6e7c);
  background-repeat: no-repeat;
  background-size: cover;
}

.menu, section{
  margin: 25px;
}

.menu__btn{
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background-color: white;
  color: #000000;
  border-radius: 5px;
  border: none;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
}

.menu__link{
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
}

.menu__link.active {
  color: #ffffff;  
  font-weight: bold;  
  border-bottom: 2px solid #ffffff;
}

a:hover {
  background-color: #ffffff33;
}

.menu__liste {
  list-style: none;
  margin: 0;
  position: fixed;
  top: 0;
  left: -350px; 
  width: 150px;
  height: 100%;
  background-color: #000000;
  padding: 80px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.menu.menu--open .menu__liste {
  display: block;
  left: 0;
}

.menu__item{
  margin-top: 15px;
  margin-bottom: 15px;
}

.talents__item{
  color: white;
}

p, .p__footer{
  color: white;
  font-size: 16px;
}

section {
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

/* Début d'aide de chatgpt*/
/* Ligne principale */
body.special-lines section::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #531D5B);
  margin-top: 20px;
  border-radius: 2px;
}

/* Petites lignes en pointillés pour effet console */
body.special-lines section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #ffffff 0,
    #ffffff 5px,
    transparent 5px,
    transparent 10px
  );
  margin-bottom: 10px;
}
/* Fin de l'aide de chatgpt */

.p__footer{
  text-align: center;
  margin: 0;
}

footer{
  background-color: black;
  padding: 20px;
  margin: 0;
}

.p__footer-link {
  color: white;
  text-decoration: none;
}

.p__footer-link:hover {
  color: #ff48da;
  text-decoration: underline;
}

body.credit-page {
  margin: 0;
  padding: 0;
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #2D1569 0%, #531D5B 100%);
  color: white;
  font-family: 'IBM Plex Mono', monospace;
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px; 
  gap: 10px;
}

.retours {
  display: flex;
  justify-content: center;
  gap: 15px; 
  padding: 10px; 
  background-color: rgba(0,0,0,0.5);
}

.retours a {
  color: white;
  text-decoration: none;
  font-size: 14px; 
  padding: 6px 10px;
  border-radius: 5px;
}

.retours a:hover {
  background-color: rgba(255,255,255,0.2);
}

.qui__content {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.qui__img img {
  width: 100%; 
  max-width: 250px; 
  border-radius: 10px;
}

/* Aide de chatgpt pour la taille de la vidéo */
/* Début */
.video__container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px 0;
}

.video__container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Fin */

/* Tablette */
@media (min-width: 601px) {
   
  .menu__btn {
    display: none; 
  }
  .menu__liste {
    position: static;    
    display: flex;
    flex-direction: row;  
    background: transparent;
    height: auto;
    padding: 0;
    gap: 30px;
    width: 100%;
    justify-content: center;
  }
  .menu__el {
    border: none;
  }
  .title{
    font-size: 46px;
  }
  .subtitle{
    font-size: 29px;
  }
  p, .p__footer{
    font-size: 19px;
  }
  section{
    margin: 30px 100px;
  }
  .menu__item, .talents__item{
    font-size: 21px;
  }
  .text {
    padding: 20px;
    gap: 20px;
  }
  .retours {
    gap: 30px;
    padding: 20px;
  }
  .retours a {
    font-size: 16px;
    padding: 8px 12px;
  }
  .qui__content {
    flex-direction: row; 
    align-items: center;
    gap: 30px;
  }
  .qui__text {
    flex: 1; 
  }
  .qui__img img {
    width: auto;
    max-width: 200px; 
    height: auto;
  }
}

/* Dekstop */
@media (min-width: 961px) {

  .menu__btn {
    display: none; /* cacher le btn */
  }
  .menu__liste {
    display: flex;
    gap: 30px;
  }
  .menu__el {
    border: none;
  }
  .title{
    font-size: 54px;
  }
  .subtitle{
    font-size: 34px;
  }
  p, .p__footer{
    font-size: 21px;
  }
  section{
    margin: 30px 200px;
  }
  .menu__item, .talents__item{
    font-size: 23px;
  }
  body.credit-page {
    min-height: 100vh; 
  }
  .text {
    padding: 20px;
    gap: 20px;
  }
  .retours {
    gap: 30px;
    padding: 20px;
  }
  .retours a {
    font-size: 16px;
    padding: 8px 12px;
  }
  .qui__img img {
    max-width: 300px; 
  }
  .video__container {
    max-width: 800px; 
    margin: 30px auto;
  }
}

/* Dekstop plus grand */
@media (min-width: 1281px) {
  .title{
    font-size: 58px;
  }
  .subtitle{
    font-size: 38px;
  }
  p, .p__footer{
    font-size: 21px;
  }
  section{
    margin: 60px 270px;
  } 
  .menu__item, .talents__item{
    font-size: 21px;
  } 
  .qui__img img {
    max-width: 400px; 
  }
}
