
/* --- Styles existants (que tu as déjà) --- */
/* faire une police de 16 pour eviter le zoom*/

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    font-size: 22px; /* ✅ Plus lisible sur mobile */
}

h1 {
    text-align: center;
    font-size: 72px; /* ✅ Très lisible */
    margin: 20px 0;
    color: #333;
}

.frigo-status-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    cursor: pointer;
}

.frigo-description {
    flex-grow: 1;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

/* Le feu (petit rond) */
.feu {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Couleurs feu et bande */
.frigo-rouge {
    background-color: #ff4d4d;
}
.feu-rouge {
    background-color: #ff4d4d;
    box-shadow: 0 0 6px #ff4d4d;
}
.frigo-vert {
    background-color: #2ecc71;
}
.feu-vert {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}



.map-container, .bar-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#map, #minimap, #pickmap {
    width: 100%;
    min-height: 600px; /* ✅ Plus grand sur mobile */
}

/* ✅ Boutons secondaires */
button.secondary {
    background-color: #ccc;
    color: #333;
}

/* ✅ Assure que tous les boutons prennent toute la largeur */
button {
    width: 100%;
    max-width: 700px;
    padding: 25px; /* ✅ Plus grand pour les doigts */
    margin: 15px auto;
    font-size: 28px; /* ✅ Texte plus gros */
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    display: block;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.97);
}

/* ✅ Empêche les liens d'affecter les boutons */
a {
    text-decoration: none !important; /* ✅ Supprime tous les soulignements */
}

/* ✅ Corrige les boutons dans les balises <a> */
a button {
    text-decoration: none;
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 10px auto;
    font-size: 28px;
}

a button:hover {
    background-color: #0056b3;
}


.bar-button {
    position: relative; /* ✅ Nécessaire pour positionner .bar-status */
    display: flex; /* ✅ Permet d'aligner le texte et le statut */
    align-items: center; /* ✅ Centre le texte et l'icône */
    justify-content: center; /* ✅ Centre le texte horizontalement */
    width: 90%;
    max-width: 700px;
    margin: 10px auto;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

/* Prêt / Pas prêt calé à droite */
.bar-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
}

/* Couleurs selon statut */

.btn-rouge  {
    background-color: #ffd6d6;
    border-color: #ff4d4d;
    color: #a80000;
}

.btn-vert {
    background-color: #d6ffe0;
    border-color: #2ecc71;
    color: #006837;
}

.btn-bleu .bl-icon {
    font-size: 18px;
    margin-left: 8px;
}

input, textarea {
    width: 100%;
    padding: 20px;
    margin: 10px 0;
    font-size: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#deliveryModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh; /* ✅ Limite à la hauteur de l’écran */
    overflow-y: auto;  /* ✅ Permet le scroll interne */
    padding: 25px;
    background: white;
    border: 3px solid #007BFF;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
    display: none;
}


#deliveryModal input,
#deliveryModal textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

/* ✅ Ajoute un fond semi-transparent derrière le modal */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* ✅ Ajoute un effet de flou derrière */
    z-index: 999;
    display: none; /* ✅ Masqué par défaut */
}


footer {
    text-align: center;
    padding: 10px;
    background-color: #eee;
    font-size: 18px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px;
    background-color: white;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* Feu vert/rouge dans la page bar */
.frigo-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 16px;
}

.feu {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.feu-rouge {
    background-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
}

.feu-vert {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.frigo-status .description {
    font-weight: bold;
}

#comment-container {
    max-height: 600px; /* ✅ Plus haut pour éviter trop de scrolling */
    overflow-y: auto;
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.comment {
    padding: 8px 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    word-wrap: break-word;
    background-color: white;
    border: 1px solid #ddd;
}

.comment-photo {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 5px;
}


.comment-auto-green {
    background-color: #e6ffe6;
    border: 1px solid #2ecc71;
    color: #006837;
}

.comment-auto-red {
    background-color: #f7bbbb;
    border: 1px solid #cc2e2e;
    color: #ff0000;
}

.comment-manual-red {
    background-color: #ffff0086;
    border: 1px solid #ffb700;
    color: #ff9100;
}

.comment-confirm-blue {
    background-color: #e6f0ff;
    border: 1px solid #4d94ff;
    color: #003d99;
}

/* Utilitaire pour masquer (ex : cas conditionnel) */
.hidden {
    display: none;
}

/* Boutons dans l'index selon suivi frigo */
.btn-bleu {
    background-color: #007BFF;
    color: white;
}

.btn-vert {
    background-color: #2ecc71;
    color: white;
}

.btn-rouge {
    background-color: #ff4d4d;
    color: white;
}

.frigo-button {
    width: calc(100% - 20px);
    max-width: 600px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.frigo-button.btn-vert {
    background-color: #2ecc71;
    color: white;
}

.frigo-button.btn-rouge {
    background-color: #ff4d4d;
    color: white;
}

.frigo-button {
    transition: transform 0.1s ease, background-color 0.3s ease;
}
.frigo-button:active {
    transform: scale(0.97);
}

.comment-section {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }
  
  .comment-section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .comment-section textarea,
  .comment-section input,
  .comment-section button {
    width: 100%;
    font-size: 18px;
    padding: 14px;
    border-radius: 6px;
    box-sizing: border-box;
  }
/* Espacement entre les autres boutons */
.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* ✅ Espacement plus grand */
}

.button-group button {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-group form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lock-container {
    text-align: center; /* Centre le texte */
    margin: 20px 0; /* Espacement autour */
    font-size: 18px; /* Augmente un peu la taille */
}

#signatureCanvas {
    max-width: 100%;
    background-color: #fff;
    touch-action: none;
}




.lock-code {
    font-weight: bold; /* Met en gras le code */
    font-size: 20px; /* Agrandit la taille du code */
    color: #007BFF; /* Donne une couleur bleue (modifiable) */
}

.form-container {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ✅ Ajustement des contacts */
.contact-entry {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.contact-entry input {
    flex-grow: 1;
    font-size: 18px;
}

/* ✅ Bouton de suppression des contacts */
.delete-contact {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

/* ✅ Ajustement du cadenas */
.lock-container {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.lock-code {
    font-weight: bold;
    font-size: 22px;
    color: #007BFF;
}

.file-link {
    display: block;
    margin-top: 5px;
    color: #007BFF;
    text-decoration: none;
}

#deliveryModal .checkbox-row {
    display: flex;
    align-items: center; /* ✅ Aligne parfaitement la case et le texte */
    justify-content: flex-start; /* ✅ Empêche un centrage indésirable */
    gap: 10px; /* ✅ Réduit l’espace entre la case et le texte */
    width: 100%;
}

#deliveryModal .checkbox-row input[type="checkbox"] {
    width: 24px; /* ✅ Taille correcte */
    height: 24px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0; /* ✅ Empêche la case de se compresser */
}

#deliveryModal .checkbox-row label {
    font-size: 24px; /* ✅ Texte lisible */
    cursor: pointer;
    margin: 0;
    white-space: nowrap; /* ✅ Empêche le saut de ligne */
    display: flex;
    align-items: center; /* ✅ Assure que le texte est bien aligné */
}

* {
    box-sizing: border-box;
  }
  
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  select#blSelector {
    font-size: 1.1rem;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .benevole-table {
  width: 95%;
  margin: 0 auto;
  border-collapse: collapse;
  background: white;
  font-size: 18px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.benevole-table th {
  background-color: #007BFF;
  color: white;
  padding: 14px;
  text-align: left;
}

.benevole-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.benevole-table tr:hover {
  background-color: #f2f2f2;
  cursor: pointer;
}

#ficheModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4); /* fond gris transparent */
}

#ficheModal .modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
}