/* Style pour le body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    margin: 0;
    background-color: #f4f4f4;
    flex-direction: column;
}
/* Applique le même fond que ta page (modifie si nécessaire) */
#google_translate_element {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 220px;
  max-width: 90vw;
  background: #fff;
  z-index: 9999;
  padding: 2px 12px;   /* Hauteur réduite ici */
  box-shadow: 0 2px 8px #ccc;
  border: none;
  border-radius: 12px;
  display: block !important;
  margin: 0;
  text-align: center;
}
        .header {
            background-color: #4CAF50; /* Vert derrière le titre */
            padding: 20px;
            text-align: center;
            color: white;
        }
        .photo-label {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block; /* Pour que le padding soit pris en compte */
  transition: background-color 0.3s ease;
  user-select: none; /* Empêche la sélection de texte sur clic */
  border: none;
  text-align: center;
}

.photo-label:hover {
  background-color: #45a049;
}
#image-preview {
      max-width: 300px;
      border-radius: 10px;
      margin-top: 10px;
      display: none;
      box-shadow: 0 2px 8px #ccc;
    }
    #resultats {
      margin-top: 20px;
    }
#google_translate_element {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 220px;
  max-width: 90vw;
  background: #fff;
  z-index: 9999;
  padding: 2px 12px;   /* Hauteur réduite ici */
  box-shadow: 0 2px 8px #ccc;
  border: none;
  border-radius: 12px;
  display: block !important;
  margin: 0;
  text-align: center;
}
body {
  padding-top: 40px; /* Ajuste pour compenser la nouvelle hauteur */
}
/* Bandeau du titre */
.header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    width: 100%;
    padding: 25px;
    font-size: 1.3em;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
#resultats small {
  display: block;
  margin-top: -10px;
  margin-bottom: 15px;
  color: #555;
  font-size: 0.98em;
}

.header h1 {
    margin: 0;
    font-size: 36px;
}

/* Liens info */
.info-banner {
    background-color: #333;
    padding: 15px;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 90px;
    left: 0;
    z-index: 999;
}

.info-link {
    margin: 0 20px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
}

.info-link:hover {
    color: #000;
    background-color: white;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Container principal */
.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
    margin-top: 170px;
    padding: 30px 20px 100px;
    width: 100%;
}

/* Champs agrandis */
input[type="text"],
input[type="file"] {
    padding: 14px 18px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 70%;
    margin: 12px 0;
}

/* Boutons */
button, #searchButton {
    padding: 14px 24px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 12px;
    transition: background-color 0.3s, color 0.3s;
}

button:hover, #searchButton:hover {
    background-color: white;
    color: #4CAF50;
}

/* Groupes de boutons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

/* Image preview */
#image-preview {
    max-width: 350px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Résultats */
#resultats {
    display: block;
    background-color: #fff;
    padding: 25px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    font-size: 18px;
    line-height: 1.6;
}

/* Section code-barres précédents */
#scanned-barcode-list {
    margin-top: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
}

#scanned-barcode-list h3 {
    font-size: 22px;
}

#scanned-barcode-list ul {
    list-style-type: none;
    padding: 0;
    font-size: 18px;
}

#scanned-barcode-list li {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f4f4f4;
    border-radius: 5px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 1000;
}
