/* Démo de l'application artisan — mobile d'abord ; sur un grand écran, le téléphone est posé à côté des commandes. */
:root {
  --fond: #F4F2EE;
  --surface: #FFFFFF;
  --surface-2: #FAF9F7;
  --encre: #17191C;
  --encre-2: #3C4047;
  --pale: #737882;
  --trait: #E7E3DC;
  --bleu: #2453E6;
  --bleu-pale: #EAF0FF;
  --rouge: #E0383E;
  --rouge-pale: #FDECEC;
  --ambre: #C77800;
  --ambre-pale: #FFF4E0;
  --vert: #1F9D5C;
  --vert-pale: #E6F6EE;
  --rayon: 18px;
  --rayon-s: 12px;
  --ombre: 0 1px 2px rgba(23, 25, 28, .05), 0 4px 14px rgba(23, 25, 28, .05);
  --ombre-forte: 0 10px 40px rgba(23, 25, 28, .18);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
  --ressort: cubic-bezier(.2, .9, .25, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--encre); font-family: var(--police);
  font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--bleu); text-decoration: none; }

/* ---------- la scène : sur grand écran, commandes à gauche + téléphone ---------- */
.scene { height: 100%; }
.cote { display: none; }
.telephone { height: 100%; }
.app { position: relative; height: 100%; overflow: hidden; background: var(--fond); }

@media (min-width: 900px) {
  body { background: radial-gradient(1200px 700px at 70% 30%, #ECE8E1, #DEDAD2); }
  .scene { display: flex; align-items: center; justify-content: center; gap: 64px; padding: 32px; min-height: 100%; }
  .cote { display: block; width: 360px; color: var(--encre-2); }
  .cote h1 { font-size: 28px; line-height: 1.15; margin: 14px 0 10px; color: var(--encre); letter-spacing: -.02em; }
  .cote h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--pale); margin: 0 0 10px; }
  .cote p { margin: 0; font-size: 15px; }
  .cote-bloc { margin-top: 28px; }
  .cote .aide { font-size: 13px; color: var(--pale); margin-top: 8px; }
  .liste-diff { margin: 0; padding-left: 18px; font-size: 14px; }
  .liste-diff li { margin-bottom: 6px; }
  .telephone { width: 393px; height: 852px; max-height: calc(100vh - 64px); border-radius: 54px; padding: 12px;
    background: #111; box-shadow: 0 40px 80px rgba(0, 0, 0, .25), inset 0 0 0 2px #333; flex: none; }
  .app { border-radius: 42px; --haut: 44px; --bas: 20px; }
}
.pastille-demo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ambre);
  background: var(--ambre-pale); padding: 4px 8px; border-radius: 999px; }

/* ---------- écrans d'onglet ---------- */
.ecrans { position: absolute; inset: 0; bottom: calc(64px + var(--bas)); overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; }
.ecran { padding: calc(var(--haut) + 14px) 16px 28px; animation: apparait .25s var(--ressort); }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.entete h1 { font-size: 32px; letter-spacing: -.025em; line-height: 1.05; margin: 0; font-weight: 750; }
.entete .sous { color: var(--pale); font-size: 14px; margin-top: 4px; }
.bouton-rond { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--ombre);
  display: grid; place-items: center; flex: none; transition: transform .15s; }
.bouton-rond:active { transform: scale(.92); }
.bouton-rond svg { width: 20px; height: 20px; }

/* tuiles chiffrées du Suivi */
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.tuile { background: var(--surface); border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); }
.tuile .valeur { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.tuile .libelle { font-size: 13px; color: var(--pale); display: flex; align-items: center; gap: 6px; }
.point { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.point.jaune { background: #E9B000; } .point.vert { background: var(--vert); } .point.rouge { background: var(--rouge); }
.point.bleu { background: var(--bleu); }

.titre-section { font-size: 13px; font-weight: 650; color: var(--pale); text-transform: uppercase; letter-spacing: .05em;
  margin: 22px 4px 8px; display: flex; justify-content: space-between; }
.groupe { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--trait); transition: background .15s; }
.ligne:last-child { border-bottom: 0; }
.ligne:active { background: var(--surface-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  flex: none; background: var(--bleu-pale); color: var(--bleu); position: relative; }
.avatar.urgent { background: var(--rouge-pale); color: var(--rouge); }
.avatar.vert { background: var(--vert-pale); color: var(--vert); }
.avatar .pastille { position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bleu); border: 2px solid var(--surface); }
.ligne .corps { flex: 1; min-width: 0; }
.ligne .nom { font-weight: 650; font-size: 16px; display: flex; gap: 6px; align-items: center; }
.ligne .objet { color: var(--encre-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne .suite { font-size: 13px; color: var(--pale); margin-top: 3px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.ligne .suite span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ligne .droite { text-align: right; font-size: 13px; color: var(--pale); flex: none; }
.chevron { width: 8px; height: 13px; flex: none; opacity: .35; }
.puce { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 8px;
  border-radius: 999px; background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
.puce.rouge { background: var(--rouge-pale); color: var(--rouge); }
.puce.ambre { background: var(--ambre-pale); color: var(--ambre); }
.puce.vert { background: var(--vert-pale); color: var(--vert); }
.vide { text-align: center; color: var(--pale); padding: 28px 18px; font-size: 15px; }
.vide .grand { font-size: 34px; margin-bottom: 6px; }

/* cartes de demande */
.carte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; margin-bottom: 12px;
  animation: apparait .3s var(--ressort); }
.carte.urgente { box-shadow: inset 0 0 0 2px var(--rouge), var(--ombre); }
.bandeau-urgent { display: flex; align-items: center; gap: 8px; color: var(--rouge); font-weight: 700; font-size: 14px;
  margin-bottom: 10px; }
.carte .haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.carte .qui { font-weight: 700; font-size: 17px; }
.carte .quand { color: var(--pale); font-size: 13px; }
.carte .titre { font-size: 18px; font-weight: 650; margin: 8px 0 6px; letter-spacing: -.01em; line-height: 1.25; }
.carte .texte { color: var(--encre-2); font-size: 15px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions > * { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: 14px; font-weight: 650; font-size: 16px; transition: transform .12s, background .15s, opacity .15s;
  background: var(--surface-2); color: var(--encre); width: 100%; }
.btn:active { transform: scale(.97); }
.btn-plein { background: var(--bleu); color: #fff; }
.btn-plein:active { background: #1B44C4; }
.btn-vert { background: var(--vert); color: #fff; }
.btn-rouge { background: var(--rouge-pale); color: var(--rouge); }
.btn-doux { background: var(--bleu-pale); color: var(--bleu); }
.btn-lien { background: transparent; color: var(--pale); min-height: 40px; font-weight: 550; }
.btn-demo { background: transparent; color: var(--ambre); border: 1.5px dashed #E8C98F; font-size: 14px; min-height: 42px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* qualification en cours */
.arrivee { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--rayon);
  box-shadow: var(--ombre); margin-bottom: 12px; color: var(--encre-2); font-size: 15px; }
.points-attente { display: inline-flex; gap: 4px; }
.points-attente i { width: 6px; height: 6px; border-radius: 50%; background: var(--bleu); animation: saute 1.2s infinite; }
.points-attente i:nth-child(2) { animation-delay: .15s; } .points-attente i:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* filtres */
.segments { display: flex; background: #E9E6E0; border-radius: 12px; padding: 3px; margin-bottom: 6px; }
.segments button { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--encre-2); }
.segments button.actif { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); color: var(--encre); }

/* ---------- barre d'onglets ---------- */
.onglets { position: absolute; left: 0; right: 0; bottom: 0; height: calc(64px + var(--bas)); padding-bottom: var(--bas);
  display: flex; background: rgba(250, 249, 247, .88); backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--trait); z-index: 5; }
.onglets button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--pale); position: relative; }
.onglets button svg { width: 25px; height: 25px; }
.onglets button.actif { color: var(--bleu); }
.onglets .badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  animation: pop .3s var(--ressort); }
@keyframes pop { from { transform: scale(.4); } to { transform: none; } }

/* ---------- la fiche chantier (poussée de droite) ---------- */
.pousse { position: absolute; inset: 0; background: var(--fond); z-index: 10; transform: translateX(100%);
  transition: transform .38s var(--ressort); display: flex; flex-direction: column; }
.pousse.ouverte { transform: none; }
.barre-haut { padding: calc(var(--haut) + 6px) 8px 8px; display: flex; align-items: center; gap: 4px;
  background: rgba(244, 242, 238, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 2; }
.retour { display: flex; align-items: center; gap: 2px; color: var(--bleu); font-size: 17px; padding: 8px; }
.retour svg { width: 12px; height: 20px; }
.barre-haut .titre-barre { flex: 1; text-align: center; font-weight: 650; font-size: 16px; opacity: 0; transition: opacity .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 60px; }
.barre-haut.defile .titre-barre { opacity: 1; }
.defilant { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 24px; overscroll-behavior: contain; }
.tete-chantier { padding: 4px 4px 14px; }
.tete-chantier h2 { font-size: 26px; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.tete-chantier .objet { font-size: 17px; color: var(--encre-2); margin-top: 6px; }
.tete-chantier .meta { color: var(--pale); font-size: 14px; margin-top: 6px; }
.raccourcis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 16px; }
.raccourci { background: var(--surface); border-radius: 14px; box-shadow: var(--ombre); padding: 10px 6px; display: flex;
  flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bleu); }
.raccourci svg { width: 22px; height: 22px; }
.raccourci[aria-disabled="true"] { color: var(--pale); opacity: .5; }

.etapes { display: flex; gap: 4px; margin: 0 0 16px; }
.etape { flex: 1; }
.etape .barre { height: 4px; border-radius: 2px; background: #E2DED6; }
.etape.faite .barre { background: var(--bleu); }
.etape.ici .barre { background: linear-gradient(90deg, var(--bleu) 50%, #E2DED6 50%); }
.etape span { display: block; font-size: 11px; color: var(--pale); margin-top: 5px; font-weight: 600; }
.etape.ici span { color: var(--bleu); }

.carte-action { background: var(--surface); border-radius: var(--rayon); padding: 16px; box-shadow: var(--ombre), inset 0 0 0 1.5px var(--bleu-pale);
  margin-bottom: 16px; }
.carte-action .etiquette { font-size: 12px; font-weight: 700; color: var(--bleu); text-transform: uppercase; letter-spacing: .06em; }
.carte-action h3 { font-size: 19px; margin: 6px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
.carte-action p, .carte-action .texte-action { margin: 0 0 12px; color: var(--encre-2); font-size: 15px; }
.grille-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grille-actions .large { grid-column: 1 / -1; }
.choix-reponses { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.choix-reponses .btn { width: auto; flex: 1; }
.attente-ligne { display: flex; align-items: center; gap: 10px; color: var(--encre-2); }
.roue { width: 20px; height: 20px; border: 2.5px solid var(--bleu-pale); border-top-color: var(--bleu); border-radius: 50%;
  animation: tourne .8s linear infinite; flex: none; }
@keyframes tourne { to { transform: rotate(360deg); } }
.erreur { background: var(--rouge-pale); color: var(--rouge); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-top: 10px; }

.bloc { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 4px 16px; margin-bottom: 14px; }
.bloc h4 { margin: 12px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--pale); font-weight: 650;
  display: flex; justify-content: space-between; align-items: center; }
.info { padding: 9px 0; border-bottom: 1px solid var(--trait); font-size: 15px; }
.info:last-child { border-bottom: 0; }
.info .k { color: var(--pale); font-size: 13px; }
.manque { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 12px; }
.note { padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 15px; display: flex; gap: 10px; }
.note:last-child { border-bottom: 0; }

/* bulles d'échange */
.fil { padding: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.bulle { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; }
.bulle.client { align-self: flex-start; background: #ECEAE6; border-bottom-left-radius: 6px; }
.bulle.systeme { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 6px; }
.bulle.artisan { align-self: flex-end; background: var(--vert); color: #fff; border-bottom-right-radius: 6px; }
.bulle .de { display: block; font-size: 11px; opacity: .65; margin-bottom: 2px; font-weight: 600; }
.fil .silence { align-self: center; font-size: 13px; color: var(--pale); font-style: italic; }

/* le devis */
.devis-tete { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; }
.devis-tete .num { color: var(--pale); font-size: 13px; }
.devis-section { padding: 8px 0; border-bottom: 1px solid var(--trait); }
.devis-section .st { display: flex; justify-content: space-between; font-weight: 650; font-size: 15px; padding: 4px 0; }
.devis-ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--encre-2); padding: 4px 0; }
.devis-ligne .q { color: var(--pale); white-space: nowrap; }
.devis-ligne .lib { flex: 1; }
.devis-ligne .m { white-space: nowrap; font-variant-numeric: tabular-nums; }
.totaux { padding: 10px 0 14px; }
.totaux div { display: flex; justify-content: space-between; font-size: 15px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.totaux .ttc { font-size: 20px; font-weight: 750; padding-top: 6px; }
.totaux .acompte { color: var(--bleu); font-weight: 600; }
.replie .devis-ligne { display: none; }

/* compositeur en bas de la fiche */
.compositeur { padding: 8px 10px calc(8px + var(--bas)); background: rgba(250, 249, 247, .94); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--trait); display: flex; gap: 8px; align-items: flex-end; }
.compositeur textarea { flex: 1; resize: none; border: 1px solid var(--trait); background: var(--surface); border-radius: 22px;
  padding: 11px 16px; min-height: 44px; max-height: 120px; font-size: 16px; outline: none; line-height: 1.3; }
.compositeur textarea:focus { border-color: #BFCDF8; }
.micro { width: 48px; height: 48px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center;
  flex: none; box-shadow: 0 4px 14px rgba(36, 83, 230, .35); transition: transform .12s; }
.micro:active { transform: scale(.92); }
.micro svg { width: 22px; height: 22px; }
.micro.envoi { background: var(--encre); box-shadow: none; }

/* enregistrement */
.enregistrement { position: absolute; inset: 0; z-index: 40; background: rgba(23, 25, 28, .55); display: none; align-items: flex-end; }
.enregistrement.ouvert { display: flex; animation: fondu .2s; }
@keyframes fondu { from { opacity: 0; } }
.panneau-enr { width: 100%; background: var(--surface); border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + var(--bas));
  text-align: center; animation: monte .35s var(--ressort); }
@keyframes monte { from { transform: translateY(100%); } }
.panneau-enr .pour { color: var(--pale); font-size: 14px; }
.panneau-enr .chrono { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 12px; letter-spacing: -.02em; }
.ondes { display: flex; justify-content: center; align-items: center; gap: 4px; height: 56px; margin-bottom: 18px; }
.ondes i { width: 4px; border-radius: 2px; background: var(--rouge); height: 6px; transition: height .08s; }
.panneau-enr .boutons { display: flex; justify-content: center; align-items: center; gap: 36px; }
.stop { width: 76px; height: 76px; border-radius: 50%; background: var(--rouge); display: grid; place-items: center;
  box-shadow: 0 0 0 8px var(--rouge-pale); animation: respire 1.6s infinite; }
.stop i { width: 26px; height: 26px; border-radius: 7px; background: #fff; }
@keyframes respire { 50% { box-shadow: 0 0 0 14px var(--rouge-pale); } }
.annuler { color: var(--pale); font-weight: 600; width: 76px; }

/* feuille montante (échange, chantier pour un message) */
.voile { position: absolute; inset: 0; background: rgba(23, 25, 28, .35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.feuille { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; background: var(--fond); z-index: 21;
  border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .38s var(--ressort); display: flex;
  flex-direction: column; box-shadow: var(--ombre-forte); }
.feuille.ouverte { transform: none; }
.feuille .poignee { width: 38px; height: 5px; border-radius: 3px; background: #CFCAC1; margin: 8px auto 4px; flex: none; }
.feuille .tete-feuille { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 10px; }
.feuille .tete-feuille h3 { margin: 0; font-size: 18px; }
.feuille .contenu { overflow-y: auto; padding: 0 16px calc(20px + var(--bas)); }

/* bannière de notification (en haut) et toast */
.banniere { position: absolute; top: calc(var(--haut) + 6px); left: 8px; right: 8px; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; box-shadow: var(--ombre-forte);
  padding: 12px 14px; display: flex; gap: 12px; align-items: center; transform: translateY(-160%); transition: transform .45s var(--ressort), visibility .45s;
  cursor: pointer; visibility: hidden; }
.banniere.ouverte { transform: none; visibility: visible; }
.banniere .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bleu); color: #fff; display: grid; place-items: center; flex: none; }
.banniere .ic svg { width: 20px; height: 20px; }
.banniere .ic.urgent { background: var(--rouge); }
.banniere .t { font-weight: 700; font-size: 14px; }
.banniere .x { font-size: 14px; color: var(--encre-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(80px + var(--bas)); z-index: 45; background: var(--encre); color: #fff;
  border-radius: 14px; padding: 12px 14px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; }
.toast.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.toast .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.toast .btns button { background: rgba(255, 255, 255, .14); padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.citation { font-size: 17px; line-height: 1.4; color: var(--encre); background: var(--surface-2); border-left: 3px solid var(--ambre);
  padding: 10px 12px; border-radius: 4px 12px 12px 4px; margin: 8px 0 12px; }
.puces .puce { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.tete-chantier .objet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte .texte { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.compositeur.occupe { opacity: .55; }
.micro[disabled] { opacity: .5; pointer-events: none; }

/* achats et marge */
.marge { padding: 6px 0 10px; }
.marge-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.marge-chiffres div { display: flex; flex-direction: column; }
.marge-chiffres b { font-size: 17px; font-variant-numeric: tabular-nums; }
.marge-chiffres b.neg, .montant.neg { color: var(--rouge); }
.marge-chiffres small { color: var(--pale); font-size: 12px; }
.k { color: var(--pale); font-size: 12px; }
.jauge { position: relative; height: 8px; border-radius: 4px; background: #ECE8E1; margin-bottom: 6px; }
.jauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--vert); }
.jauge i.haut { background: var(--ambre); }
.jauge span { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--encre-2); opacity: .5; }
.alerte { background: var(--ambre-pale); color: #8A5300; border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 6px 0; }
.docs { margin: 4px -16px 8px; border-top: 1px solid var(--trait); }
.ligne.doc { padding: 11px 16px; }
.ligne.doc .droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.montant { font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums; }
.ajout-achat { margin: 6px 0 12px; cursor: pointer; }
.roue.mini { width: 11px; height: 11px; border-width: 2px; margin-right: 4px; }
.apercu { width: 100%; border-radius: 14px; margin: 4px 0 12px; box-shadow: var(--ombre); }
.saisie { width: 100%; border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; font-size: 17px; margin-bottom: 10px; background: var(--surface); }
.case { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--encre-2); margin-bottom: 12px; }

/* argent, avenants, feuilles de l'étape 3 */
.etape span { font-size: 10px; }
.ligne-montant { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; margin: 3px 0; }
.lien-doc { display: flex; gap: 10px; align-items: center; color: var(--encre); }
.lien-doc span:nth-child(2) { flex: 1; } .lien-doc svg { width: 18px; height: 18px; color: var(--bleu); }
.choix { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.choix input { margin-top: 4px; } .choix small { color: var(--pale); }

.connexion { padding-top: calc(var(--haut) + 60px); text-align: center; }
.connexion h1 { font-size: 30px; margin: 14px 0 6px; } .connexion p { color: var(--encre-2); margin: 0 0 18px; }
.connexion .logo { width: 64px; height: 64px; border-radius: 18px; background: var(--bleu); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.connexion .logo svg { width: 34px; height: 34px; } .connexion .saisie { text-align: center; }
.saisie.code { font-size: 28px; letter-spacing: 10px; font-variant-numeric: tabular-nums; }
