* {
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 10px;
    background-color: #f2f1f0;
}
.container {
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center; /* Centre horizontalement *//
    text-align: center;
}



p {
    font-size: 14px;
    text-align: justify;
}


p {
    font-size: 14px;
    text-align: justify;
}

.logo {
    width: 280px; /* Taille fixe pour le logo */
    height: auto; /* Garde les proportions */
    display: block; /* Supprime l'espace blanc sous l'image */
    margin: 15px auto 20px; /* Centrage horizontal */
}

.scan-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
}


#startScan {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(58 170 53);
    color: white;
    font-size: 18px;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    transition: background 200ms;
    border-radius: 60px;
    font-size: 16px;
    min-width: 60px;
    min-height: 44px;
    width: max-content;
    height: max-content;
    padding: 20px 30px;
    gap: 8px; /* Espacement entre l'icône et le texte */
    font-weight: 600;
}

#startScan svg {
    width: 24px; /* Taille de l'icône */
    height: 24px;
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

video {
    width: 100%;
    min-height:220px ;
    max-width: 400px;
    background-color: rgba(182, 182, 182, 0.1);
}
input, button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}
button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}


.green-button {
    background-color: rgb(58, 170, 53); /* Vert lorsqu'activé */
    cursor: pointer;
    border-radius: 60px;
    padding: 20px 30px;
    color: white;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
}

.pbold {
    font-weight: 600;
    margin: 0;
}

.center {
    display: flex;
    justify-content: center;
    }

#submit {
    background-color: #e57373; /* Rouge clair */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 25px; /* Bouton arrondi */
    cursor: not-allowed;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

#submit.disabled {
    background-color: rgb(235, 138, 127); /* Rouge clair */
    cursor: not-allowed;
    border-radius: 60px;
    padding: 20px 30px;
}

#submit:not(.disabled) {
    background-color: rgb(58, 170, 53); /* Vert lorsqu'activé */
    cursor: pointer;
    border-radius: 60px;
    padding: 20px 30px;
}

#submit:not(.disabled):hover {
    background-color: rgb(58, 170, 53); /* Vert plus foncé au survol */
    border-radius: 60px;
    padding: 20px 30px;
}


#manualEntry {
    background-color: rgb(49, 91, 155);
    font-family: Poppins;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    border-radius: 60px;
    padding: 20px 30px;
    opacity: 1;
    transition: background 200ms;
    cursor: pointer;
    align-self: center;
    min-width: 60px;
    min-height: 44px;
    height: max-content;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-top: 0;
    margin-bottom: 20px;
}
#manualEntry:hover {
   
}
.manual-section {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
    margin-top: 10px;
}

input[type="text"],
input[type="email"] {
    width: 100%; /* Prend toute la largeur du conteneur */
    max-width: 100%; /* Empêche de toucher les bords */
    box-sizing: border-box; /* Assure que le padding n'affecte pas la largeur */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin: 5px 0;
}

.Manual p {
    margin: 0;
}

#pointCollecte, #email {
    margin-bottom: 20px;
}

#startScan.hidden {
    display: none !important;
}

