/* CSS Document */
/* Structure base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0px;
  min-width: 375px;
  font-size: 20px;
}
header {
  padding: 1.5rem 0;
  text-align: center;
  background-color: #e4f5de;
  width: 100%;
  min-width: 375px;
  border-bottom: 1px solid #c0e1b5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
header .logo-container {
  width: 100%;
  max-width: 600px;
  height: 50px;
  background-image: url(../images/logo-svg.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right 15px center;
  margin-left: auto;
  margin-right: auto;
}
main {
  flex: 1;
  width: calc(100% - 40px);
  max-width: 600px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
main a {
  color: #333;
}
footer {
  background-color: #3A3A3A;
  padding: 8px;
  font-size: 12px;
  color: #A0A0A0;
  width: calc(100% - 16px);
  text-align: center;
}
footer a {
  color: #A0A0A0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
legend {
  background: #000000;
  padding: 3px;
  padding-left: 15px;
  padding-right: 15px;
  color: #ffffff;
  border-radius: 8px;
}
fieldset {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  border: 1px solid #CBCBCB;
}
fieldset .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border-top: 1px dashed #CBCBCB;
  border-bottom: 1px dashed #CBCBCB;
  padding-top: 5px;
  padding-bottom: 5px;
}
fieldset .item + .item {
  border-top: none;
}
/* Bar infos */
.bar-card {
  display: flex;
  align-items: center;
  background-color: #EDEDED;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: calc(100% - 40px);
}
.bar-logo {
  width: 128px;
  height: 128px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  background-color: #fff;
  flex-shrink: 0;
  margin-right: 1rem;
}
.bar-info {
  width: 100%;
}
.bar-info h2 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  color: #222;
}
.bar-info p {
  margin: 0;
  color: #555;
  line-height: 1.4;
}
#upload-label {
  display: block;
  background-color: #c5c5c5;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}
#photo {
  display: none;
}
#photo-preview {
  margin-bottom: 30px;
}
/* HTML éléments */
h1 {
  margin: 0.5rem;
  font-size: 28px;
}
h2 {
  margin: 0.5rem;
  font-size: 20px;
}
form {
  max-width: 400px;
  width: 100%;
}
main input, main select, main button {
  width: calc(100% - 1.5rem);
  padding: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}
main textarea {
  width: 100%;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}
main button {
  background-color: #305b21;
  color: white;
  border: none;
  cursor: pointer;
}
main button:hover {
  background-color: #305b21;
}
/* Classes */
.erreur {
  color: red;
  margin-bottom: 1rem;
}
.social-links {
  margin-top: 5px;
}
.social-links img {
  height: 30px;
  width: 30px;
  margin: 4px;
}
.commande-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.commande-table th, .commande-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ccc; /* Bordure gris clair entre les cases */
}
.commande-table th {
  background-color: #444; /* Fond gris foncé pour le titre */
  color: white; /* Texte blanc */
  text-align: center;
}
.commande-table td.quantite {
  text-align: right; /* Aligner la quantité à droite */
}
.commande-table tr:nth-child(even) {
  background-color: #f9f9f9; /* Fond légèrement gris pour les lignes paires */
}
.commande-table tr:hover {
  background-color: #f1f1f1; /* Fond plus clair lors du survol */
}
/* Style pour les lignes sélectionnées */
.commande-table tr.selected {
  background-color: #e4f5de; /* Vert pour la ligne sélectionnée */
}
#panier-bandeau {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #e4f5de;
  border-top: 1px solid #c0e1b5;
  padding: 0.8rem;
  text-align: center;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#container_panier {
  border-top: 1px solid #c0e1b5;
}
div#container_panier p {
  margin: 2px;
  font-size: 12px;
}
div#container_panier a {
  margin-left: 6px;
  margin-right: 6px;
}
/* Login */
.login-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 260px;
  margin-top: 30px;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 25px;
}
.login-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
.login-container .input-wrapper {
  position: relative;
}
.login-container input[type="text"], .login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}
.login-container .checkbox-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
  font-size: 0.9em;
}
.login-container .checkbox-container input {
  margin-right: 8px;
}
.login-container .toggle-password {
  position: absolute;
  right: 10px;
  top: 25px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #888;
}
.login-container button {
  width: 100%;
}