/* 
Nom du fichier       : style_pages.css
Projet               : Helvetrek - Site pour débutants en randonnée
Description          : Ce fichier contient les styles principaux pour les pages du site Helvetrek (sauf le menu)
Auteur               : Victor Limat
Dernière modification : 20.01.2025
Version              : 1.0
*/
header {
  margin: auto;
}

nav {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
}

#logo {
  width: 120px;
  margin-top: 40px;
}

.container {
  display: flex;
  justify-content: space-between;
  margin-left: 50px;
  align-items: center;
  top: 20px;
  gap: 10px;
}

.container_navigation {
  display: flex;
  gap: 50px;
  margin-top: 30px;
  margin-right: 20px;
  font-size: 1.2em;
}

.container_navigation a {
  text-decoration: none;
  color: black;
}

.container_navigation a:hover {
  text-decoration: underline;
  /* lorsque la souris passe dessus */
}

.container_navigation a.active {
  text-decoration: underline;
  /* Souligner le lien après l'avoir visité (cliqué) */
}

.navbar {
  display: none;
  overflow: hidden;
  font-family: Arial;
}

/* LIens dans le navbar */
.navbar a {
  float: right;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.dropdown {
  float: right;
  overflow: hidden;
}

/* Bouton */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: black;
  font-family: inherit;
  margin: 0;
  border-radius: 5px;
}

/* Fond couleur lorsque sur le bouton */
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: red;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.container_img_page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.panneau_container {
  position: relative;
  width: 30%;
  height: auto;
  justify-content: center;
}

#panneau_navigation {
  width: 100%;
  height: auto;
}

.face {
  position: absolute;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 1%;
  border-radius: 5px;
  font-size: 150%;
  text-align: center;
  white-space: nowrap;
}

.face_droite {
  top: 30%;
  left: 25%;
  transform: rotate(1deg);
}

.face_gauche {
  top: 10%;
  right: 25%;
  transform: rotate(-1deg);
}

.face:hover {
  color: rgb(255, 196, 0);
  cursor: pointer;
}

.image_page {
  width: 50%;
  height: auto;
  border-radius: 40px;
}

main {
  font-family: 'Roboto', sans-serif;
}

main h1 {
  text-align: center;
}

.sommaire_navigation {
  position: sticky;
  top: 20px;
  left: 20px;
  width: 400px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  list-style: none;
  margin: 0%;
  margin-top: 23px;
}

.sommaire_navigation a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px;
}

.sommaire_navigation a:hover {
  font-weight: bold;
}

.sommaire_navigation li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.sommaire_navigation li:last-child {
  border-bottom: none;
  /* Pas de ligne après le dernier lien */
}

.sommaire_navigation li::after {
  content: '';
  position: absolute;
  right: 20px;
  transform: translateY(-20px) rotate(-45deg);
  /* Aligne la flèche et applique une rotation */
  width: 8px;
  height: 8px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.container_main {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.encadre_pratique {
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
}



footer {
  display: flex;
  background-color: black;
  padding: 1%;
  justify-content: space-between;
  color: white;
  align-items: center;
  font-size: 1.2em;
}

#annee_texte {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

body {
  margin: 0;
  padding: 0;
}

@media (min-width: 1700px) {

  .container_main,
  nav {
    margin: 0 200px;
    /* Espace à gauche et à droite */
  }

}


@media (min-width: 1900px) {

  .container_main,
  nav {
    margin: 0 300px;
    /* Espace à gauche et à droite */
  }
}

@media (max-width: 1300px) {
  .face {
    font-size: 80%;
  }

  footer {
    flex-direction: column;
    align-items: center;
  }

  .texte_pied_de_page {
    text-align: center;
    margin-top: 5px;
  }
}

@media (max-width: 700px) {
  .panneau_container {
    display: none;
  }

  .image_page {
    width: 100%;
  }

  #logo {
    width: 60px;
    margin-top: 0px;
    position: absolute;
    top: 0;
    left: 0;
  }

  .sommaire_navigation {
    position: relative;
    top: 0px;
    left: 0px;
    padding: 0%;
    margin: 0 auto;
    margin-bottom: 23px;
    width: 350px;
  }

  .navbar {
    display: block;
  }

  .container_navigation {
    display: none;
  }

  .container_main {
    display: block;
  }

  main {
    margin: 10px;
  }

  footer {
    flex-direction: column;
  }

  .texte_pied_de_page {
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
  }
}