/* Styles généraux */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
  background-image: url(../img/background.jpg);
  background-repeat: no-repeat; /* Ajouté ici */
  background-size: cover; /* Pour que l'image couvre tout l'écran */
}

/* Conteneur du bouton de déconnexion */
.logout-container {
  position: relative;
  top: 0px;
  z-index: 1000;
  text-align: right;
  margin-bottom: 20px;
}




h1 {
  color: #002f6c;
  text-align: center;
  margin: 20px 0;
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 1px;
}
#details {
  background: #f2f2f2;
}
/* Conteneur principal */
#app {
  max-width: 100%;
  margin: 50px auto;
  padding: 25px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  border-left: 6px solid #f2a900;
  border-top: 6px solid #002f6c;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  #app {
    max-width: 700px;
  }
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 1.2rem;
  font-weight: bold;
}

input {
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #002f6c;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 47, 108, 0.3);
}

button {
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  background: #002f6c;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #f2a900;
  transform: scale(1.05);
}

button:active {
  transform: scale(1.02);
}

/* Erreur */
.error {
  color: #d32f2f;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Détails du colis */
.details {
  text-align: left;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #555;
}

.details strong {
  color: #002f6c;
  font-weight: bold;
}

.details p {
  margin: 10px 0;
}

/* Suivi visuel */
.tracking {
  margin-top: 30px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.marker {
  width: 20px;
  height: 20px;
  background-color: #e0e0e0;
  border: 3px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
}

.step.completed .marker {
  background-color: #f2a900;
  border-color: #f2a900;
}

.step.current .marker {
  background-color: #002f6c;
  border-color: #002f6c;
}

.step p {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

.step small {
  color: #777;
}

/* Lignes reliant les étapes */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 29px;
  height: 100%;
  width: 2px;
  background-color: #e0e0e0;
  z-index: -1;
}

.step.completed ~ .timeline::before {
  background-color: #f2a900;
}

/* Barre de progression */
.progress-bar {
  width: 100%;
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.progress {
  height: 100%;
  background-color: #f2a900;
  transition: width 0.5s;
  border-radius: 12px 0 0 12px;
}

/* Pied de page */
footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  letter-spacing: 0.5px;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Ajuster la taille de la police et les espacements */
  h1 {
    font-size: 2em;
  }

  /* Ajouter un espacement entre la carte et les éléments du formulaire */
  #app {
    padding: 15px;
    margin: 20px auto;
  }

  /* Rendre le formulaire plus compact */
  form {
    gap: 15px;
  }

  input,
  button {
    padding: 12px;
    font-size: 1rem;
  }

  .details p {
    font-size: 1rem;
  }

  #map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  /* Réduire encore les espacements et la taille des éléments pour les petits écrans */
  h1 {
    font-size: 1.8em;
  }

  .details {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  #map {
    height: 250px;
  }
}
