/* Style global */
html, body {
  margin: 0;
  padding: 5px;
  height: 100%;
  overflow: hidden; /* empêche le scroll vertical */
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

/* Conteneur principal en colonne */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}
/* Conteneur visuel du bas */
#bottom {
  padding: 1em;
  margin-top: 10px;
  background-color:#14477a;/* dodgerblue;*/
  border-top: 2px solid #1e90ff;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  font-size: 1em;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.05);
  color: #fff;
}

/* Zone éditable */
#saisieLibre {
  min-height: 70px;
  max-height: 30vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-left: 4px solid #ffe606;
  border-radius: 6px;
  background-color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder custom */
#saisieLibre:empty::before {
  content: "Saisissez votre message ici...";
  color: #999;
  pointer-events: none;
}

/* Au focus */
#saisieLibre:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 5px #1e90ff;
}

/* Radio + select ligne du haut */
#bottom label {
  margin-right: 1em;
  font-weight: 500;
  cursor: pointer;
}

#bottom input[type="radio"] {
  margin-right: 0.3em;
}

/* Select déroulant */
#saisieTemplate {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-left: 4px solid #5bc0de;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
}

/* Bouton Envoyer */
#btnEnvoyer, #btnCopyAll {
  align-self: flex-end;
  padding: 5px 10px;
  font-size: 1rem;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

#btnEnvoyer:hover, #btnCopyAll:hover {
  background-color: #0d70d1;
}

.chip {
  display: inline-flex;
  align-items: center;
  background-color: #fff200;
  color: #333;
  padding: 4px 10px;
  margin: 2px 2px 0 0;
  border-radius: 16px;
  font-size: 0.8em;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chip-close {
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  margin-left: 8px;
  cursor: pointer;
  line-height: 16px;
  padding: 0;
}

.chip-close:hover {
  background: #c9302c;
}

.drop-zone {
  background-color: #fbfabb;
  border: 1px dashed #778e06;
  color: #827263;
  padding: 1em 2em;
  border-radius: 12px;
  font-weight: bold;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.drop-zone.active {
  opacity: 1;
  pointer-events: auto;
  background-color: #f7f32b;
  border-color: #000000;
}
.boutons-zone {
      display: flex;
    align-content: center;
    align-items: flex-start;
}