/* Tala Agents — identité « Encre » (nuit, par défaut) et « Sauge » (jour, selon le réglage du téléphone).
   Polices de la marque Tala (Outfit, Inter, licence OFL). Un seul accent, le citron Tala adouci (#BFD27A) :
   réservé aux actions et aux états, jamais en grand aplat ni en texte long. Contrastes vérifiés AA. */
@font-face { font-family: "Outfit"; src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #121212; --surface: #1C1D1B; --surface-2: #262724; --ligne: #2C2E2A; --ligne-forte: #3A3D38;
  --texte: #F2F3EF; --doux: #A9AFAB; --tres-doux: #868C88;
  --accent: #BFD27A; --sur-accent: #121212; --accent-texte: #BFD27A; --accent-voile: rgba(191,210,122,.12);
  --refus: #F0857A; --attente: #E3BE6E;
  --galet-trait: #121212; --galet-repos: #3A3D38; --galet-repos-trait: #C9CEC9;
  --verre: rgba(18,18,18,.84); --ombre: none;
  --r: 22px; --r-petit: 14px;
  --haut: env(safe-area-inset-top); --bas: env(safe-area-inset-bottom);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --fond: #E5EBE7; --surface: #F9FAF9; --surface-2: #EEF2EF; --ligne: #D5DDD8; --ligne-forte: #C3CDC7;
    --texte: #121212; --doux: #55605A; --tres-doux: #5E6862;
    --accent: #BFD27A; --sur-accent: #121212; --accent-texte: #55641E; --accent-voile: rgba(85,100,30,.10);
    --refus: #B23A2A; --attente: #8A5A00;
    --galet-trait: #121212; --galet-repos: #D5DDD8; --galet-repos-trait: #55605A;
    --verre: rgba(229,235,231,.86); --ombre: 0 1px 0 rgba(18,18,18,.04), 0 14px 30px -20px rgba(30,52,40,.35);
    color-scheme: light;
  }
}
* { box-sizing: border-box; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--fond); color: var(--texte);
  font: 15px/1.5 "Inter", -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, .nom, .bouton, .tuile .t, .titre-g { font-family: "Outfit", "Inter", sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* barre du haut */
.barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: calc(10px + var(--haut)) 10px 8px 18px; background: var(--verre);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px); }
.titres { flex: 1; min-width: 0; }
.barre h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre p { margin: 0; font-size: 12.5px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre p:empty { display: none; }
body.accueil .barre h1, body.accueil .barre p { visibility: hidden; }
.ico-bouton { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--doux); }
.ico-bouton[hidden], [hidden] { display: none !important; }
.ico-bouton:active { background: var(--surface-2); }
.ico-bouton.actif { color: var(--accent-texte); }
#retour { margin-left: -10px; color: var(--texte); }

main { padding: 4px 18px calc(110px + var(--bas)); max-width: 720px; margin: 0 auto; animation: entree .22s ease-out; }
@keyframes entree { from { transform: translateY(6px); } to { transform: none; } }  /* sans opacité : le contenu reste visible même si l animation ne joue pas */
.section { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 10px; font: 600 19px "Outfit"; letter-spacing: -.02em; }
.section a, .section button { font: 600 13px "Inter"; color: var(--doux); background: none; border: 0; padding: 0; }

/* accueil : l'équipe */
.titre-g { font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; margin: 6px 0 0; }
.en-ligne { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--doux); }
.en-ligne b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: battement 1.6s ease-in-out infinite; }
@keyframes battement { 50% { opacity: .3; } }

.accord { margin-top: 20px; border-radius: 26px; padding: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent), var(--ombre); animation: entree .3s both; }
.accord .tete { display: flex; align-items: center; gap: 12px; }
.accord .tete .etat-l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.accord .sur { font-size: 12.5px; font-weight: 600; color: var(--accent-texte); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.accord .citation { margin: 12px 0; font-size: 14.5px; line-height: 1.5; color: var(--texte); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.accord .pj-mini { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--doux); margin-bottom: 14px; }
.nom { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.etat-l { font-size: 12.5px; font-weight: 600; color: var(--doux); display: flex; align-items: center; gap: 2px; }
.etat-l.actif { color: var(--accent-texte); }
.etat-l.attend { color: var(--accent-texte); }

.equipe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 150px; padding: 14px; border: 0; border-radius: var(--r);
  background: var(--surface); text-align: left; box-shadow: var(--ombre); animation: entree .3s both; }
.tuile:nth-child(2) { animation-delay: .04s; } .tuile:nth-child(3) { animation-delay: .08s; } .tuile:nth-child(4) { animation-delay: .12s; } .tuile:nth-child(5) { animation-delay: .16s; }
.tuile:active { transform: scale(.98); }
.tuile .t { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-top: 12px; line-height: 1.25; }
.tuile .s { font-size: 12.5px; color: var(--doux); margin-top: 3px; flex: 1; }
.tuile .etat-l { margin-top: 8px; }
.tuile.ajout { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ligne-forte); justify-content: space-between; }
.tuile.ajout .plus { width: 48px; height: 48px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; color: var(--texte); }

/* galets : l'avatar des agents (forme de l'icône Tala, deux arcs tournés selon le métier) */
.galet { position: relative; display: inline-block; flex: none; }
.galet svg { width: 100%; height: 100%; overflow: visible; display: block; }
.galet .fond-g { fill: var(--galet-repos); }
.galet .arc { fill: none; stroke: var(--galet-repos-trait); stroke-width: 4.2; stroke-linecap: round; }
.galet .badge circle { fill: var(--surface-2); stroke: var(--fond); stroke-width: 2.5; }
.galet .picto { fill: none; stroke: var(--texte); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.galet.g-travaille .fond-g, .galet.g-attend .fond-g { fill: var(--accent); }
.galet.g-travaille .arc, .galet.g-attend .arc { stroke: var(--galet-trait); }
.galet.g-travaille .a1 { animation: ecarte1 2.4s ease-in-out infinite; }
.galet.g-travaille .a2 { animation: ecarte2 2.4s ease-in-out infinite; }
.galet .onde rect { fill: var(--galet-trait); transform-box: fill-box; transform-origin: 50% 100%; animation: onde 1s ease-in-out infinite; }
.galet .onde rect:nth-child(2) { animation-delay: .18s; } .galet .onde rect:nth-child(3) { animation-delay: .36s; }
.galet.g-attend svg { animation: hop 1.8s ease-in-out infinite; }
.galet .anneau { position: absolute; inset: -5px; border-radius: 36%; border: 2.5px solid var(--accent); animation: respire 1.8s ease-in-out infinite; }
.galet.g-pause { opacity: .5; }
@keyframes ecarte1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-2.2px,2.2px); } }
@keyframes ecarte2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2.2px,-2.2px); } }
@keyframes onde { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
@keyframes respire { 0%,100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(1.06); } }
.onde-txt { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; margin-left: 5px; }
.onde-txt i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; animation: onde 1s ease-in-out infinite; }
.onde-txt i:nth-child(2) { animation-delay: .18s; } .onde-txt i:nth-child(3) { animation-delay: .36s; }

/* onglets */
.onglets { position: fixed; left: 16px; right: 16px; bottom: calc(14px + var(--bas)); z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr);
  height: 64px; max-width: 520px; margin: 0 auto; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ligne), 0 18px 40px -18px rgba(0,0,0,.45); }
.onglets button { position: relative; background: none; border: 0; font-size: 10.5px; font-weight: 600; color: var(--tres-doux);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.onglets button svg.ic { width: 22px; height: 22px; }
.onglets button.actif { color: var(--texte); }
.onglets button.actif svg.ic { color: var(--sur-accent); background: var(--accent); border-radius: 999px; width: 44px; height: 26px; padding: 3px 11px; }
.pastille { position: absolute; top: 6px; left: calc(50% + 10px); background: var(--accent); color: var(--sur-accent); border-radius: 9px;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px; }

/* listes */
.liste { display: flex; flex-direction: column; gap: 8px; }
.rangee { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-petit);
  background: var(--surface); text-align: left; box-shadow: var(--ombre); }
.rangee:active { background: var(--surface-2); }
.rangee .corps-r { flex: 1; min-width: 0; }
.rangee .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rangee .s { font-size: 13px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rangee .fin { font-size: 12px; color: var(--tres-doux); white-space: nowrap; }
.rangee .chevron, .rangee > svg.ic:last-child { color: var(--tres-doux); width: 16px; height: 16px; }
.fichier-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--doux); }
.fichier-ic svg.ic { width: 18px; height: 18px; }

/* boutons */
.bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 999px;
  padding: 0 18px; font-weight: 600; font-size: 15.5px; background: var(--accent); color: var(--sur-accent); text-decoration: none; }
.bouton:active { transform: scale(.98); }
.bouton:disabled { opacity: .45; }
.bouton svg.ic { width: 18px; height: 18px; }
.bouton.fantome { background: var(--surface-2); color: var(--texte); }
.bouton.danger { background: transparent; color: var(--refus); box-shadow: inset 0 0 0 1.5px var(--ligne-forte); }
.bouton.discret { background: none; color: var(--doux); box-shadow: inset 0 0 0 1.5px var(--ligne-forte); font-weight: 600; margin-top: 16px; }
.deux { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 16px; }

.vide { color: var(--doux); text-align: center; padding: 48px 24px; font-size: 14px; background: var(--surface); border-radius: var(--r); margin-top: 12px; }
.vide svg.ic { width: 28px; height: 28px; color: var(--accent-texte); display: block; margin: 0 auto 12px; }
.erreur { box-shadow: inset 0 0 0 1px var(--refus); color: var(--refus); border-radius: var(--r-petit); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.info { font-size: 13px; color: var(--tres-doux); margin: 10px 0 0; }

/* conversation */
.entete-agent { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.conv { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 6px; padding: 4px 18px; scrollbar-width: none; }
.conv::-webkit-scrollbar { display: none; }
.puce { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--doux); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.puce svg.ic { width: 14px; height: 14px; }
.puce.actif { color: var(--fond); background: var(--texte); }
.fil { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }
.msg { animation: entree .2s ease-out; }
.msg.moi { align-self: flex-end; max-width: 85%; background: var(--texte); color: var(--fond); padding: 10px 15px;
  border-radius: 22px 22px 8px 22px; white-space: pre-wrap; word-wrap: break-word; }
.msg.agent { align-self: stretch; }
.msg.agent .auteur { display: flex; align-items: center; gap: 8px; font: 600 13.5px "Outfit"; margin-bottom: 8px; }
.msg.agent .texte-a { white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; color: var(--texte); }
.etapes { display: flex; flex-direction: column; border-left: 2px solid var(--accent); margin: 0 0 10px 10px; padding-left: 14px; }
.etapes:empty { display: none; }
.etape { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--doux); padding: 3px 0; animation: entree .18s ease-out; }
.etape svg.ic { width: 15px; height: 15px; }
.etape .nb { color: var(--tres-doux); }
.etape.ok svg.ic { color: var(--accent-texte); } .etape.ko svg.ic { color: var(--refus); }
.etape.cours { color: var(--texte); }
.etape.cours svg.ic { animation: tourne 1s linear infinite; color: var(--accent-texte); }
@keyframes tourne { to { transform: rotate(360deg); } }
.curseur::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.saisie { position: fixed; left: 0; right: 0; bottom: calc(86px + var(--bas)); z-index: 4; padding: 14px 14px 8px;
  background: linear-gradient(to top, var(--fond) 70%, transparent); }
.champ-saisie { display: flex; align-items: flex-end; gap: 8px; max-width: 720px; margin: 0 auto; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ligne-forte), var(--ombre); border-radius: 26px; padding: 6px 6px 6px 18px; }
.saisie textarea { flex: 1; resize: none; border: 0; background: none; outline: none; min-height: 34px; max-height: 130px; padding: 7px 0; font-size: 16px; }
.saisie textarea::placeholder { color: var(--tres-doux); }
.envoyer { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--sur-accent); display: grid; place-items: center; }
.envoyer:disabled { opacity: .35; }
.envoyer svg.ic { width: 18px; height: 18px; stroke-width: 2.2; }
.saisie .info { text-align: center; margin: 0 auto; max-width: 720px; }
body.chat main { padding-bottom: calc(190px + var(--bas)); }
.ecran-boite { background: var(--surface); border-radius: var(--r-petit); margin: 6px 0 6px; overflow: hidden; }
.ecran-boite summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--doux); }
.ecran-boite summary svg.ic { width: 16px; height: 16px; }
.ecran-boite summary::-webkit-details-marker { display: none; }
.ecran-boite[open] summary { color: var(--texte); }
.ecran-boite .info { padding: 0 14px 14px; margin: 0; }
.ecran { width: 100%; display: block; background: #000; }
.terminal-liste { display: grid; gap: 8px; padding: 0 10px 10px; }
pre.terminal { margin: 0; padding: 10px 12px; border-radius: 12px; background: #0b0b0b; color: #d6dbd7; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.supprimer { margin-top: 28px; }

/* validation */
.demande { border-radius: var(--r); background: var(--surface); overflow: hidden; margin-top: 10px; box-shadow: inset 0 0 0 1.5px var(--accent), var(--ombre); }
.demande .haut { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 8px; }
.demande .haut .t { font: 600 16px/1.3 "Outfit"; letter-spacing: -.01em; flex: 1; min-width: 0; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--doux); white-space: nowrap; }
.etiquette::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tres-doux); }
.etiquette.en_attente { color: var(--accent-texte); } .etiquette.en_attente::before { background: var(--accent); }
.etiquette.executee::before, .etiquette.approuvee::before { background: var(--accent); }
.etiquette.refusee, .etiquette.echec { color: var(--refus); } .etiquette.refusee::before, .etiquette.echec::before { background: var(--refus); }
.mail { padding: 0 16px 16px; }
.mail .ligne-m { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.mail .ligne-m .k { width: 50px; flex: none; color: var(--tres-doux); }
.mail .ligne-m .v { min-width: 0; overflow-wrap: anywhere; }
.mail .texte-m { white-space: pre-wrap; font-size: 14px; line-height: 1.6; padding: 12px 0 2px; color: var(--texte); max-height: 46vh; overflow: auto; }
.pj { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px; background: var(--surface-2);
  border: 0; border-radius: var(--r-petit); text-align: left; }
.pj .corps-r { flex: 1; min-width: 0; }
.pj .t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj .s { font-size: 12px; color: var(--tres-doux); }
.pj > svg.ic { color: var(--tres-doux); width: 16px; height: 16px; }
.actions-d { padding: 0 16px 16px; }
.garantie { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--doux); margin-top: 12px; line-height: 1.45; }
.garantie svg.ic { width: 14px; height: 14px; margin-top: 2px; color: var(--accent-texte); }

/* fichiers */
.ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--tres-doux); margin: 8px 0 10px; }
.ariane button { border: 0; background: none; padding: 0; color: var(--doux); font-weight: 600; }
.ariane svg.ic { width: 12px; height: 12px; }
.apercu { width: 100%; height: 72vh; border: 0; border-radius: var(--r-petit); background: #fff; margin-top: 8px; }
.apercu-texte { white-space: pre-wrap; background: var(--surface); border-radius: var(--r-petit); padding: 14px; margin-top: 8px;
  font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }

/* formulaire */
label { display: block; font-size: 13px; font-weight: 600; color: var(--doux); margin: 18px 0 6px; }
.texte { width: 100%; border: 0; box-shadow: inset 0 0 0 1px var(--ligne-forte); background: var(--surface); border-radius: var(--r-petit); padding: 12px 14px; font-size: 16px; outline: none; }
.texte:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
textarea.texte { resize: vertical; min-height: 120px; line-height: 1.5; }
.idees { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.intro { color: var(--doux); font-size: 14px; margin: 6px 0 0; }

/* ---------- ordinateur des agents : le bureau en direct (mise en page des captures de Dom, 07/11) ---------- */
body.ordi { background: #0B0C0B; }
body.ordi .barre, body.ordi .onglets { display: none; }
body.ordi main { padding: 0; max-width: none; }
.bur { position: fixed; inset: 0; display: flex; background: #0B0C0B; color: #F2F3EF; }
.bur-liste { display: none; }
.bur-zone { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: calc(8px + var(--haut)) calc(10px + env(safe-area-inset-right)) calc(10px + var(--bas)) calc(10px + env(safe-area-inset-left)); }
.bur-haut { display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; }
.bur-rond { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: #1E201D; color: #F2F3EF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.bur-rond.grand { width: 52px; height: 52px; }
.bur-rond svg.ic { width: 21px; height: 21px; }
.bur-q { font: 600 20px "Outfit"; line-height: 1; }
.bur-qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bur-nom { display: flex; align-items: center; gap: 9px; border: 0; background: none; color: inherit; padding: 0; font: 600 18px "Outfit";
  letter-spacing: -.01em; text-align: left; cursor: pointer; min-width: 0; }
.bur-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bur-statut { font-size: 12.5px; color: #A9AFA6; margin: 1px 0 0 35px; }
.bur-statut.dom { color: #BFD27A; font-weight: 600; }
.bur-ecran { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; overscroll-behavior: contain; touch-action: none;
  border-radius: 6px; scrollbar-width: none; }
.bur-ecran.zoome { overflow: auto; }
.bur-ecran::-webkit-scrollbar { display: none; }
.bur-ecran .ordi-image { margin: auto; flex: none; max-width: none; max-height: none; object-fit: fill; display: block;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
body.a-la-main .bur-ecran .ordi-image { outline: 2px solid #BFD27A; outline-offset: 0; }
.ordi-image:not([src]) { visibility: hidden; }
.bur-ecran.ferme .ordi-image { display: none; }
.ordi-voile { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ordi-voile > * { pointer-events: auto; }
.ordi-ferme { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: #c9cec9; max-width: 290px; }
.ordi-ferme p { margin: 0; font-size: 14px; line-height: 1.45; }
.ordi-tache { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2.5px solid #BFD27A; animation: tache .6s ease-out forwards; pointer-events: none; }
@keyframes tache { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.bur-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; min-height: 52px; }
.bur-pilule { border: 0; cursor: pointer; border-radius: 999px; padding: 13px 20px; font: 600 15px "Inter"; background: #1E201D; color: #F2F3EF;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bur-pilule:disabled { opacity: .55; }
.bur-pilule.fantome { background: none; color: #BFD27A; box-shadow: inset 0 0 0 1px rgba(191,210,122,.45); }
.bur-rond:focus-visible, .bur-pilule:focus-visible, .bur-nom:focus-visible, .bur-agent:focus-visible { outline: 2px solid #BFD27A; outline-offset: 2px; }
.bur-clavier { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; font-size: 16px; }
.bur-vide { margin: auto; color: #A9AFA6; text-align: center; padding: 20px; }
.ordi-toast { position: fixed; z-index: 9; left: 50%; bottom: calc(90px + var(--bas)); transform: translateX(-50%); background: #F2F3EF; color: #121212;
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; max-width: 90vw; }
.bur-agent { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 16px; }
.bur-agent.actif { background: #1E201D; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.bur-agent .corps-r { display: flex; flex-direction: column; min-width: 0; }
.bur-agent .t { font: 600 16px "Outfit"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bur-agent .s { font-size: 13px; color: #A9AFA6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bur-liste-f { display: grid; gap: 2px; }
.bur-aide p { margin: 0 0 10px; line-height: 1.5; }
/* tablette : la liste des agents à gauche, comme sur les captures */
@media (min-width: 900px) {
  .bur-liste { display: flex; flex-direction: column; gap: 2px; width: 320px; flex: none; overflow-y: auto; background: #151614;
    padding: calc(14px + var(--haut)) 10px calc(14px + var(--bas)) calc(10px + env(safe-area-inset-left)); border-right: 1px solid rgba(255,255,255,.06); }
  .bur-nom { cursor: default; }
}
/* feuilles (menu, aide, presse-papiers, choix de l'agent) */
.feuille-fond { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.feuille { width: 100%; max-width: 560px; max-height: 82vh; overflow-y: auto; background: var(--surface); color: var(--texte);
  border-radius: 24px 24px 0 0; padding: 14px 16px calc(18px + var(--bas)); animation: monte .2s ease-out; }
.feuille-haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.feuille-titre { font: 600 17px "Outfit"; }
.feuille-corps { display: grid; gap: 10px; }
.feuille-corps textarea.texte { width: 100%; box-sizing: border-box; font-size: 16px; }
.feuille .bur-agent .s { color: var(--doux); }
.feuille .bur-agent.actif { background: var(--surface-2); }
@keyframes monte { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feuille { animation: none; } .ordi-tache { animation-duration: .01s; } }


/* Markdown des messages (repris du tableau Équipe) */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .6em; }
.md ul, .md ol { margin: .2em 0 .6em; padding-left: 1.3em; }
.md li { margin: .12em 0; }
.md li > ul, .md li > ol { margin: .1em 0; }
.md .md-titre { font: 600 1em "Outfit"; margin: .8em 0 .3em; letter-spacing: -.01em; }
.md .md-t1 { font-size: 1.15em; }
.md .md-t2 { font-size: 1.07em; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--surface-2); padding: .08em .35em; border-radius: 6px; }
.md pre { margin: .35em 0 .7em; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; font-size: .82em; white-space: pre; }
.md blockquote { margin: .35em 0 .7em; padding: 10px 12px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; }
.md hr { border: 0; border-top: 1px solid var(--ligne); margin: .8em 0; }
.md a { color: var(--accent-texte); text-decoration: underline; overflow-wrap: anywhere; }
.md .md-tableau { overflow-x: auto; margin: .35em 0 .7em; -webkit-overflow-scrolling: touch; }
.md table { border-collapse: collapse; font-size: .88em; min-width: 100%; }
.md th, .md td { border: 1px solid var(--ligne); padding: 5px 8px; vertical-align: top; text-align: left; }
.md th { background: var(--surface-2); font-weight: 700; }
.md td { overflow-wrap: normal; min-width: 4em; }
.md .md-al-center { text-align: center; } .md .md-al-right { text-align: right; }
.md.brut { white-space: pre-wrap; }
.msg.agent .texte-a.md { white-space: normal; }

/* copier une citation, un bloc de code ou un code en ligne */
.md-copiable { position: relative; }
.md-copiable > blockquote, .md-copiable > pre { padding-right: 78px; }
.md-copier { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 9px; padding: 6px 11px; font: 600 13px "Inter";
  background: var(--surface-2); color: var(--texte); box-shadow: inset 0 0 0 1px var(--ligne-forte); cursor: pointer; min-height: 32px; }
.md-copier.md-copie-ok, .md-code-copie.md-copie-ok { background: var(--accent); color: var(--sur-accent); box-shadow: none; }
.md-copier.md-copie-ko, .md-code-copie.md-copie-ko { background: #E8B4A8; color: #3A1208; box-shadow: none; }
.md-code-copie { cursor: copy; }
.md-presse { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* clés et accès d'un agent */
.cles { display: grid; gap: 14px; padding: 4px 2px 6px; }
.cle { display: grid; gap: 6px; }
.cle .t { font-weight: 600; } .cle .s { font-size: 13px; color: var(--doux); }
.cle-actions { display: flex; gap: 8px; }
.cle-actions .bouton { flex: 1; }
.cle-msg { font-size: 13px; color: var(--doux); min-height: 1em; }
.feuille .rangee .t { white-space: normal; overflow-wrap: anywhere; }
.ordi-pause { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.ordi-pause .bouton { margin-top: 4px; }
.galet.g-bloque { opacity: .45; filter: grayscale(1); }
.galet.g-demarre { opacity: .7; }
.etat-l.bloque { color: var(--refus); }

/* ---------- accueil public, connexion et compte (09/11) ---------- */
body.hors-app .barre, body.hors-app .onglets { display: none; }
body.compte-seul .barre { display: none; }
body.public main { padding: 0; }
.public-hero { min-height: 100svh; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center;
  padding: calc(40px + var(--haut)) 24px calc(32px + var(--bas)); animation: monte .5s ease-out both; }
.marque { display: flex; align-items: center; gap: 12px; font: 650 22px/1 "Outfit", sans-serif; letter-spacing: -.01em; margin-bottom: 36px; }
.public-hero h1 { font: 650 clamp(34px, 9vw, 46px)/1.04 "Outfit", sans-serif; letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.public-hero .promesse { color: var(--doux); font-size: 17px; line-height: 1.5; margin: 0 0 28px; text-wrap: pretty; }
.formulaire label { display: block; font-size: 13px; font-weight: 600; color: var(--doux); margin-bottom: 8px; }
.formulaire .texte { margin-bottom: 12px; height: 52px; }
.formulaire .info { text-align: center; }
.formulaire.envoye { animation: monte .35s ease-out both; }
.formulaire.envoye h2 { font: 650 24px/1.2 "Outfit", sans-serif; margin: 0 0 8px; }
.formulaire.envoye p { color: var(--doux); margin: 0 0 20px; overflow-wrap: anywhere; }
.formulaire.envoye p b { color: var(--texte); font-weight: 600; }
.demo-equipe { margin-top: 44px; border-top: 1px solid var(--ligne); }
.demo-l { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ligne); opacity: 0; animation: monte .45s ease-out forwards; }
.demo-l:nth-child(2) { animation-delay: .12s; } .demo-l:nth-child(3) { animation-delay: .24s; }
.demo-l .t { font: 600 15px/1.2 "Outfit", sans-serif; }
.demo-l .s { font-size: 13px; color: var(--doux); margin-top: 2px; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.public-hero > .bouton { margin-top: 4px; }
.essai-ligne { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; padding: 0; margin: 0 0 6px;
  font-size: 13px; font-weight: 600; color: var(--doux); }
.essai-ligne span { color: var(--accent-texte); }
.essai-ligne.alerte { color: var(--refus); }
.gestes-compte { display: grid; gap: 10px; margin-bottom: 12px; }
.gestes-compte:empty { display: none; }
.acces-compte .info { font-size: 13px; color: var(--doux); margin: 8px 0 10px; }
.acces-compte .bouton { width: 100%; margin-bottom: 14px; }
.mail .reponse-a { font-size: 13px; color: var(--doux); padding: 9px 0; border-bottom: 1px solid var(--ligne); line-height: 1.45; overflow-wrap: anywhere; }
.mail .garantie.outlook { margin: 4px 0 6px; padding: 10px 0; border-bottom: 1px solid var(--ligne); color: var(--texte); }
.compte { padding-top: 6px; }
.compte .liste { margin-bottom: 18px; }
.compte .rangee.fixe { cursor: default; }
.compte .rangee .t { overflow-wrap: anywhere; }
.compte .rangee .t.long { white-space: normal; font-weight: 500; line-height: 1.4; }
.suppression { margin-top: 26px; }
.suppression summary { color: var(--refus); font-weight: 600; cursor: pointer; padding: 8px 0; }
.suppression p { color: var(--doux); font-size: 14px; }
.suppression .texte { margin: 6px 0 12px; }
body.compte-seul .compte { max-width: 460px; margin: 0 auto; padding: calc(40px + var(--haut)) 24px; }
