/*
		Auteur: Luca Meirino
		Description: page css paperRex
    Date de la dernière version: 8.01.2025
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #1f0000;
  color: #ffffff;
  line-height: 25px;
}
/*Style du conteneur d'en-tête*/
header {
  background-color: #1f0000;
  display: flex;
  height: 230px;
  justify-content: space-around;
}
header img {
  width: 50%;
}

/*barre nav--------------------------------------------------------------------barre nav--------------------------------------------------------------barre nav-----------------------------------------*/

/* Style du conteneur de navigation */
nav {
  background-color: #1f0000;
  padding: 10px 0;
}

/* Style des éléments de la liste de navigation */
nav ul {
  display: flex;
  justify-content: space-around; /* Disposer les éléments de manière équitable sur la page */
  list-style-type: none;
}

nav li {
  margin: 0 20px; /* Espacement entre les éléments */
  border: solid white;
  border-width: 2px;
  border-radius: 10px;
  padding: 25px;
}

/* Style des liens */
nav a {
  text-decoration: none; /* Supprimer le soulignement */
  color: white; /* Couleur du texte */
  font-size: 22px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

/* Effet de survol (hover) */
nav a:hover {
  background-color: #8f0000; /* Couleur de fond au survol */
  transform: translateY(-5px); /* Légère remontée du bouton */
}

/* Effet au focus (pour l'accessibilité) */
nav a:focus {
  outline: none;
  background-color: #777;
}

nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/*classes et ID--------------------------------------------------------------------classes et ID--------------------------------------------------------------classes et ID-----------------------------------------*/

/*Retour au menu principal*/
#Retour {
  font-weight: bold;
  font-style: italic;
}

/*Style italic*/
.italic {
  font-style: italic;
}

/*Rajoute une marge en dessus*/
#petiteMarge {
  margin-top: 8px;
}

/*main--------------------------------------------------------------------main--------------------------------------------------------------main-----------------------------------------*/

main h1 {
  text-align: center;
  font-size: 65px;
  margin-top: 35px;
  font-style: italic;
}

main h2 {
  text-align: center;
  font-size: 50px;
  margin-top: 40px;
}

main h3 {
  margin-left: 10%;
  font-size: 35px;
  margin-top: 35px;
}

main article h5 {
  justify-content: center;
  text-align: center;
  font-size: 20px;
  margin-left: 20%;
  margin-right: 20%;
  border: solid white;
  border-width: 2px;
  border-radius: 10px; /*Arrondit les coins*/
  padding: 25px; /*Espace entre les bordures et le texte*/
}

main article ul {
  text-align: left;
}

main table {
  margin-left: 5%;
  margin-right: 5%;
}

main table tr td aside img {
  width: 500px;
  border: solid white;
  border-width: 2px;
  border-radius: 10px;
  padding: 25px;
  cursor: pointer; /* Ajoute un curseur de souris pointer pour indiquer que l'image est cliquable */
  transition: transform 0.3s ease; /* Effet de transition pour l'agrandissement */
}

main table tr td aside img:hover {
  transform: scale(1.1); /* Agrandit l'image de 10% au survol */
}

/*Vidéo*/
iframe {
  height: 600px;
  border: solid white;
  border-width: 2px;
  border-radius: 2px;
  padding: 25px;
  display: block;
  width: 65%;
  margin: 0 auto 35px auto;
}

/*pied de page--------------------------------------------------------------------pied de page--------------------------------------------------------------pied de page-----------------------------------------*/

footer {
  margin-top: 20px;
  font-size: small;
  font-style: italic;
  text-align: center;
}

hr {
  margin-left: 10%;
  margin-right: 10%;
}
/*Modification pour écran--------------------------------------------------------------------Modification pour écran--------------------------------------------------------------Modification pour écran-----------------------------------------*/

@media screen and (max-width: 700px) {
  header {
    display: none;
  }
  nav ul {
    flex-direction: column; /* Disposition verticale sur petits écrans */
    align-items: center;
    text-align: center;
  }

  nav li {
    margin: 20px 0; /* Espacement vertical entre les éléments */
  }

  main h1 {
    line-height: 65px;
  }

  main article h5 {
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    margin-left: 20%;
    margin-right: 20%;
    border: solid white;
    border-width: 2px;
    border-radius: 10px;
    padding: 25px;
    line-height: 35px;
  }
  main table tr td aside img {
    display: none;
  }
  main article h5 {
    justify-content: center;
    text-align: center;
    font-size: 20px;
    margin-left: 10%;
    margin-right: 10%;
    border: solid white;
    border-width: 2px;
    border-radius: 10px; /*Arrondit les coins*/
    padding: 25px; /*Espace entre les bordures et le texte*/
  }
}

@media (max-width: 950px) {
  #EnleveImage {
    display: none;
  }
  header img {
    width: 100%;
  }
  nav ul {
    flex-direction: column; /* Disposition verticale sur petits écrans */
    align-items: center;
    text-align: center;
  }

  nav li {
    margin: 20px 0; /* Espacement vertical entre les éléments */
  }

  main h1 {
    line-height: 65px;
  }
  
  main h2 {
    line-height: 60px;
  }
  main article h5 {
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    margin-left: 20%;
    margin-right: 20%;
    border: solid white;
    border-width: 2px;
    border-radius: 10px;
    padding: 25px;
    line-height: 30px;
  }
  main table tr td aside img {
    display: none;
  }
}

@media (max-width: 1500px) {
  #EnleveImage {
    display: none;
  }
  header img {
    width: 100%;
  }
  main table tr td aside img {
    display: none;
  }
}
