/* Nathan Ruffieux, 29.01.2024, véhicules.css */

/* arrière-plan/base de la page */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  position: relative;
  height: 100vh;
}

/* arrière-plan de la page */
body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url(../image/Véhicules.jpg);
  background-size: cover;
  z-index: -1;
}
.imageC {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* rectangle texte + images */
.blurred-rectangle {
  position: relative;
  width: 60%;
  max-width: 1300px;
  height: 50vh;
  max-height: 650px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-top: 5vh;
  z-index: 2;
  overflow: auto; /* scrollbar */
  box-sizing: border-box; /* bordure */
}

/* texte dans le rectangle */
.text {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 10px;
  width: 90%;
  word-wrap: break-word;
  max-height: 1050%; /* taille max du texte */
  overflow-y: auto; /* scrollbar */
  box-sizing: border-box;
  margin-top: 50px;
}

/* Barre de navigation */
#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  color: #333;
}

/* tableau qui contient le texte dans le rectangle */
#tableau {
  width: 80%;
  height: 500px;
  padding: 20px;
  overflow: auto;
  font-size: 24px; /* unité ajoutée */
}

/* LES PROCHAINES LIGNES SERVENT A AJUSTER LA TAILLE ET
LA DISPOSITION DES ELEMENTS PRECEDENTS EN FONCTION DU
FORMAT DE L'ECRAN */
#left-menu {
  width: 150px;
  background-color: #333;
  border: #000000;
  border-style: ridge;
  height: 90vh;
  position: fixed;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  padding-top: 20px;
  transition: width 0.3s;
  z-index: 3;
}

#left-menu.closed {
  width: 0;
}

#left-menu.horizontal {
  width: 100%;
  height: 60px; /* navbar horizontale */
  padding-top: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

#left-menu.horizontal a {
  padding: 15px; /* navbar horizontale */
}

#left-menu a {
  padding: 28px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  transition: 0.3s;
}

#content {
  margin-left: 150px;
  padding: 20px;
  z-index: 2;
}

#left-menu a.active {
  background-color: #000000;
}

@media (max-width: 768px) {
  #left-menu {
    width: 100%;
    height: 60px; /* Adjuster la taille */
    padding-top: 0;
    bottom: 0;
  }

  #left-menu a {
    padding: 15px; /* Adjuster le padding */
  }

  #content {
    margin-left: 0;
  }

  .blurred-rectangle,
  .text {
    width: 90%;
  }

  #left-menu.horizontal {
    height: 60px; /* Maintenir la taille ajuter */
  }
}

@media (max-width: 600px) {
  #left-menu {
    width: 100%;
    height: 200px;
    padding-top: 0;
    bottom: 0;
  }

  #left-menu a {
    padding: 10px;
  }

  #content {
    margin-left: 0;
  }

  .blurred-rectangle,
  .text {
    width: 90%;
  }

  #left-menu.horizontal {
    height: 40px; /* Maintenir la nouvelle taille de la navbar */
  }
}
