/* Guichet HNC, design 1 « Une demande à la fois » (maquette du 30/11/2026). */
* { box-sizing: border-box; min-width: 0; }
html, body { height: 100%; margin: 0; background: #ffffff; }
body {
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.ecran {
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.tete {
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ligne { display: flex; justify-content: space-between; align-items: center; }
.titre { font-size: 22px; font-weight: 700; }
.compteur { font-size: 15px; color: #5f6368; font-weight: 500; }
.barre { height: 4px; background: #ececec; border-radius: 2px; overflow: hidden; }
.barre-pleine { width: 0; height: 4px; background: #111111; transition: width .25s ease; }
.piles { display: flex; gap: 8px; flex-wrap: wrap; }
.lien-pile {
  border: none;
  background: #f4f4f5;
  color: #3c4043;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}
.lien-pile.notif { background: #111111; color: #ffffff; }

.corps {
  flex: 1 1 auto;
  padding: 8px 20px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chargement { color: #5f6368; font-size: 15px; padding-top: 24px; }

.demande { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; }
.bandeau {
  background: #fdf0e6;
  color: #7a3b00;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.bandeau.erreur { background: #fdecec; color: #8a1414; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pastille {
  background: #e8f1ea;
  color: #1f5131;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.origine { font-size: 13px; color: #5f6368; }
.client { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.message {
  background: #f4f4f5;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #2b2b2b;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.traduction {
  font-size: 14px;
  line-height: 1.45;
  color: #5f6368;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-top: -6px;
}
.traduction::before { content: "Traduction : "; font-weight: 600; }
.pieces { font-size: 13px; color: #3c4043; overflow-wrap: anywhere; }
.etiquette { font-size: 13px; font-weight: 600; color: #5f6368; margin-top: 4px; }
.reponse {
  font-size: 15px;
  line-height: 1.5;
  color: #111111;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.reponse.vide { color: #5f6368; font-style: italic; }
.sources { font-size: 12px; color: #5f6368; }

.vide { padding-top: 72px; text-align: center; }
.vide-titre { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.vide-texte { font-size: 15px; line-height: 1.5; color: #5f6368; max-width: 300px; margin: 0 auto; }

.pied {
  padding: 16px 20px calc(28px + env(safe-area-inset-bottom, 0px) * .5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}
.boutons { display: flex; gap: 10px; }
.bouton {
  flex: 1 1 0;
  height: 54px;
  border: none;
  border-radius: 16px;
  font: 600 17px Inter, system-ui, sans-serif;
}
.bouton.gris { background: #f1f1f2; color: #111111; }
.bouton.noir { background: #111111; color: #ffffff; }
.bouton:disabled { opacity: .35; cursor: default; }
.bouton.petit { flex: 0 0 auto; height: 46px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.bouton.large { width: 100%; flex: none; }
.plus-tard {
  align-self: center;
  height: 44px;
  border: none;
  background: transparent;
  color: #5f6368;
  font: 500 15px Inter, system-ui, sans-serif;
}

.pile-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 12px; }
.pile-titre { font-size: 18px; font-weight: 700; }
.retour, .archiver, .fermer {
  border: none;
  background: transparent;
  color: #5f6368;
  font-size: 15px;
  font-weight: 500;
  height: 40px;
  padding: 0 4px;
}
.archiver { color: #111111; font-weight: 600; }
.pile-liste { list-style: none; margin: 0; padding: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pile-element {
  background: #f4f4f5;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pile-qui { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pile-resume { font-size: 14px; color: #3c4043; line-height: 1.4; overflow-wrap: anywhere; }
.pile-element .remettre {
  align-self: flex-start;
  border: none;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
}

.voile { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 10; }
.feuille {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  max-height: 92%;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 11;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
}
.feuille-poignee { width: 40px; height: 5px; border-radius: 3px; background: #dadce0; align-self: center; }
.feuille-tete { display: flex; justify-content: space-between; align-items: center; }
.feuille-titre { font-size: 17px; font-weight: 700; }
.texte {
  width: 100%;
  min-height: 220px;
  flex: 1 1 auto;
  border: 1px solid #e3e3e6;
  border-radius: 14px;
  padding: 12px 14px;
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  color: #111111;
  resize: none;
}
.consigne-ligne { display: flex; gap: 8px; }
.consigne {
  flex: 1 1 auto;
  height: 46px;
  border: 1px solid #e3e3e6;
  border-radius: 12px;
  padding: 0 14px;
  font: 400 16px Inter, system-ui, sans-serif;
}
.feuille-etat { font-size: 13px; color: #5f6368; }

@media (min-width: 700px) {
  body { background: #f4f4f5; }
  .ecran { margin: 24px auto; height: calc(100% - 48px); border-radius: 24px; box-shadow: 0 4px 24px rgba(0, 0, 0, .06); overflow: hidden; }
}

/* Connexion : mot de passe choisi à la première connexion, en plus du code reçu par mail. */
.connexion { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 360px; margin: 0 auto; padding-top: 48px; }
.connexion[hidden] { display: none; }
.connexion-icone { width: 76px; height: 76px; border-radius: 18px; align-self: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.08); }
.connexion-titre { font-size: 24px; font-weight: 700; text-align: center; margin-top: 8px; }
.connexion-texte { font-size: 15px; line-height: 1.5; color: #5f6368; text-align: center; }
.connexion-email { font-size: 15px; font-weight: 600; text-align: center; padding: 12px; background: #f1f1f2; border-radius: 12px; overflow-wrap: anywhere; }
.champ { height: 54px; padding: 0 16px; font: inherit; font-size: 17px; border: 1px solid #d5d7db; border-radius: 14px; background: #ffffff; color: #111111; }
.champ:focus { outline: none; border-color: #111111; }
.connexion-erreur { font-size: 15px; color: #c5221f; text-align: center; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.champ-code { letter-spacing: .3em; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.connexion-info { font-size: 15px; color: #1e7e34; text-align: center; }
.lien-discret { background: none; border: 0; padding: 8px; font: inherit; font-size: 15px; color: #5f6368; text-decoration: underline; cursor: pointer; }
.lien-discret[hidden], .champ[hidden], .connexion-info[hidden] { display: none; }
.champ-code::placeholder { letter-spacing: normal; font-size: 17px; }
