body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

/* Styles pour l'en-tête et le menu */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1976D2;
  padding: 10px 20px;
  color: white;
}
.navbar .logo {
  font-size: 1.5em;
  text-decoration: none;
  color: white;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
/* Bouton menu pour mobile */
.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}
/* Styles Responsive pour le menu */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #1976D2;
    width: 50%;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
}

h1 {
  text-align: center;
}
form {
  max-width: 400px;
  margin: auto;
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}
label {
  margin-bottom: 5px;
  display: block;
  font-weight: bold;
}
label[for="cameraSelect"] {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
select {
  padding: 8px;
  margin-bottom: 10px;
  font-size: 1em;
}
input, textarea, button {
  width: 100%;
  margin-bottom: 15px;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
}
button {
  background: #1976D2;
  color: #fff;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #1565C0;
}

#cameraContainer, #fallbackContainer {
  max-width: 480px;
  margin: auto;
  margin-bottom: 20px;
}
video, canvas {
  width: 100%;
  max-width: 480px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#captureButton {
  padding: 10px 20px;
  font-size: 1rem;
  margin-top: 10px;
  cursor: pointer;
}
#permissionMessage {
  color: red;
  margin-top: 10px;
}




