/*
	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 d'en-tête*/
header {
  background-color: #1f0000;
  display: flex;
  height: 230px;
  justify-content: space-around;
}

header img {
  width: 50%;
}

/*Retour au menu*/
#Retour {
  font-weight: bold;
  font-style: italic;
}

/*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-----------------------------------------*/

.image-cliquable {
  height: auto;
  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 */
}

/* Effet d'agrandissement au survol */
.image-cliquable:hover {
  transform: scale(1.1); /* Agrandit l'image de 10% au survol */
}

main .image-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrer les éléments dans la colonne */
  justify-content: center; /* Centrer verticalement */
}

.reseau {
  display: none;
}

main .mobile2 {
  display: none;
}

.italic {
  font-style: italic;
}

.ArialBordure {
  font-family: Arial, Helvetica, sans-serif;
  border: solid white;
  border-width: 2px;
  border-radius: 10px;
  padding: 25px;
  margin-top: 10px; /* Espacer le texte sous l'image */
  font-family: Arial, sans-serif; /* Utiliser la police Arial pour l'ID ArialBordure */
  font-weight: bold; /* Mettre le texte en gras */
}

#Media {
  display: none;
}

.Icon {
  width: 35px;
  height: 35px;
  border: none;
}

/*main--------------------------------------------------------------------main--------------------------------------------------------------main-----------------------------------------*/
main h1 {
  text-align: center;
  font-size: 65px;
  margin-top: 35px;
  font-style: italic;
}

main h2 {
  text-align: center;
  font-size: 45px;
  margin-top: 35px;
  font-style: italic;
}

main article {
  justify-content: center;
  text-align: center;
  font-size: 20px;
  margin-left: 18%;
  margin-right: 18%;
  margin-top: 50px;
  border: solid white;
  border-width: 2px;
  border-radius: 10px;
  padding: 25px;
}

main table {
  margin-top: 40px;
  width: 100%; /* Utiliser toute la largeur disponible */
}

main table td {
  text-align: center; /* Centrer tout le contenu des cellules */
}

main table img {
  width: 200px;
  height: 320px;
  border: solid white;
  border-width: 2px;
  border-radius: 10px;
  margin-top: 40px;
}

/*pied de page--------------------------------------------------------------------pied de page--------------------------------------------------------------pied de page-----------------------------------------*/

footer {
  margin-top: 20px;
  font-size: small;
  font-style: italic;
  text-align: center;
}

/*Personalisation de la barre*/
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 article {
    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;
  }
}

@media screen and (max-width: 950px) {
  .mobile {
    display: none;
  }

  .millieu {
    width: 100%;
  }

  .reseau {
    display: flex;
    flex-direction: row;
    align-items: center; /* Centrer les éléments dans la colonne */
    justify-content: center; /* Centrer verticalement */
  }

  main .mobile2 {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer les éléments dans la colonne */
    justify-content: center; /* Centrer verticalement */
  }

  #EnleveImage {
    display: none;
  }

  #Media {
    display: block;
  }

  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: 50px;
  }

  main h2 {
    line-height: 50px;
  }

  main article {
    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;
  }
}

@media (max-width: 1500px) {
  #EnleveImage {
    display: none;
  }

  header img {
    width: 100%;
  }
}
