/* 
Nom du fichier       : style_index.css
Projet               : Helvetrek - Site pour débutants en randonnée
Description          : Ce fichier contient les styles principaux pour le menu du site Helvetrek.
Auteur               : Victor Limat
Dernière modification : 20.01.2025
Version              : 1.0
*/

/* J'enleve le marge de la page car mon image est dans le nav et il a donc 
une marge blanche a cause du body */
body {
  margin: 0%;
  background-image: linear-gradient(to bottom right, #2C6E49, #4F9F67);
}

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

header {
  margin: 0;
  height: 100vh;
  background-image: url('../images/image_menu.jpg');
  /* Lien vers ton image */
  background-size: cover;
  /* L'image couvre toute la page sans être déformée */
  background-position: center;
  /* Centrer l'image */
  background-repeat: no-repeat;
  /* Eviter que l'image se répète */
}


#logo {
  width: 120px;
  /* Largeur du logo */
  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;
}

#helvetrek,
#slogan {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: white;
}

#helvetrek {
  text-align: center;
  font-size: 3em;
  margin-top: 50px;
  font-family: 'Lora', serif;
  position: relative;
  bottom: 1vh;
}

#slogan {
  text-align: center;
  font-size: 4em;
  font-family: 'Lora', serif;
  position: relative;
  bottom: 1vh;
}

/*création de la zone cliquable pour l'utilisateur et affiche les éléments (texte et autres éléments visuels)*/
.mysuperbbutton {
  padding-top: 60px;
  bottom: 20vh;
  position: absolute;
  left: 47.5%;
  z-index: 2;
  display: inline-block;
  -webkit-transform: translate(0, -50%);
  transform: translateX(-50%);
  color: #fff;
  font-size: 20px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: opacity .3s;
  opacity: 1;
  text-align: center;
}

/* carré transparent sous le bouton interractif*/
.mysuperbbutton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: -1;
}

/* Effet lorsque l'on va avec la souris dessus le bouton */
.mysuperbbutton:hover,
.mysuperbbutton:focus {
  opacity: 0.5;
  color: #fff
}

/* Créer le triangle visuel */
.mysuperbbutton span {
  position: absolute;
  top: 0;
  left: 60%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  box-sizing: border-box;
  animation: bounce 1s infinite ease-in-out;
  /* animation qui permet au triangle de bouger (relier au keyframes) */
}

/*animation triangle*/
@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  50% {
    transform: translate(-50%, 10px) rotate(-45deg);
  }
}


#contenu_menu {
  font-family: 'Roboto', sans-serif;
  text-align: left;
  max-width: 80%;
  /* Limite la largeur du texte pour ne pas le rendre trop large */
  line-height: 1.6;
  /* Améliore l'espacement entre les lignes */
  font-size: 1.5em;
  padding: 20px;
  box-sizing: border-box;
  /* Prend en compte le padding dans la largeur */
  margin-left: 30%;
  margin-right: 30%;
  margin-top: 10%;
  margin-bottom: 20%;
  color: black;
  position: relative;
  /* Permet au pseudo-élément d'être positionné par rapport à cet élément */
}

#contenu_menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-color: rgba(250, 250, 250, 0.05);
  border-radius: 8px;
  z-index: -1;
}

#annee_texte {
  display: flex;
}

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;
}




@media (max-width: 1300px) {
  footer {
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 900px) {
  .navbar {
    display: block;
  }

  .container_navigation {
    display: none;
  }

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

@media (max-width: 768px) {



  #helvetrek {
    font-size: 2em;
    margin-top: 30px;
  }

  #slogan {
    font-size: 2.5em;
    margin-top: 10px;
  }

  .mysuperbbutton {
    font-size: 18px;
    bottom: 15vh;
    padding-top: 40px;
  }

  #contenu_menu {
    margin-left: 10%;
    margin-right: 10%;
    font-size: 1.2em;
    line-height: 1.4;
  }

  footer {
    flex-direction: column;
  }

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