/* Elevora CRM — css/afaire.css  [V32] 13/10/2026 (document 2 de Célian, §30 « À faire de votre côté »)
   La page « À faire de votre côté » de l'espace client et son résumé en haut de la Vue d'ensemble. Jetons de couleur seulement (mode jour et nuit) :
   texte --text / --text2, aplat --accent-fill, badges .badge (client.html), aucun trait de couleur sur le côté d'un bloc, aucune taille de texte
   sous --fs-min (css/commun.css). Mouvement réduit respecté. Serveur : inc/afaire.php ; logique d'écran : client.html (« af… »). */

.af-resume{display:flex;flex-direction:column;gap:12px}
.af-resume-tete{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.af-pct{margin:0;font-size:clamp(19px,2.6vw,24px);font-weight:700;letter-spacing:-.4px;line-height:1.25}
.af-pct b{font-variant-numeric:tabular-nums}
.af-jauge{height:10px;border-radius:999px;background:var(--bg4);overflow:hidden}
.af-jauge-val{display:block;height:100%;border-radius:inherit;background:var(--accent-fill)}
@media (prefers-reduced-motion:no-preference){.af-jauge-val{transition:width .5s ease}}
.af-note{margin:0;font-size:13.5px;color:var(--text2);line-height:1.55}
.af-envoye{margin:0;padding:10px 12px;border-radius:var(--r);background:var(--bg3);border:1px solid var(--border);font-size:13.5px;line-height:1.5}

.af-section-t{margin:20px 0 10px;font-size:15px;font-weight:700;letter-spacing:-.2px}
.af-liste,.af-ok-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.af-elt{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.af-elt-tete{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.af-elt-titre{margin:0;font-size:14.5px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;flex:1 1 220px}
.af-comm{margin:0;padding:10px 12px;border-radius:var(--r);background:var(--bg3);border:1px solid var(--border2);font-size:13.5px;line-height:1.55;overflow-wrap:anywhere}
.af-comm b{font-weight:700}
.af-aide{margin:0;font-size:var(--fs-min);color:var(--text2);line-height:1.5}

/* Dépôt : glisser-déposer, ou « Parcourir » */
.af-depot{display:flex;gap:10px 14px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1.5px dashed var(--border-input);border-radius:var(--r);padding:14px;background:var(--bg3);min-height:64px}
@media (prefers-reduced-motion:no-preference){.af-depot{transition:border-color .15s ease,background-color .15s ease}}
.af-depot.af-survol{border-color:var(--accent);background:var(--glow)}
.af-depot-txt{margin:0;font-size:13.5px;color:var(--text2);line-height:1.5;flex:1 1 200px}
.af-pieces{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.af-pieces:empty{display:none}
.af-piece{display:inline-flex;align-items:center;gap:6px;background:var(--bg3);border:1px solid var(--border2);border-radius:999px;padding:3px 12px;font-size:13px;max-width:100%}
.af-piece span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.af-saisie{display:flex;flex-direction:column;gap:8px}
.af-saisie textarea{min-height:84px;resize:vertical;line-height:1.5}
.af-saisie-barre{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.af-occupe{font-size:13px;color:var(--text2)}

/* Déjà fourni */
.af-ok{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--border);border-radius:var(--r);background:var(--bg2);font-size:14px}
.af-ok span:first-child{overflow-wrap:anywhere;flex:1 1 200px}

/* Envoi pour validation */
.af-envoi{margin-top:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}

@media (max-width:640px){.af-elt{padding:12px}.af-depot{padding:12px}}
@media (pointer:coarse){.af-depot .btn,.af-saisie .btn,.af-envoi .btn{min-height:44px}}

/* ══ Le suivi de la fiche client (index.html, onglet Cahier des charges) ══ */
.afa-suivi{display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.55;margin:0 0 14px}
.afa-termine{padding:8px 12px;border-radius:var(--r);background:var(--bg3);border:1px solid var(--border2)}
.afa-liste{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px}
.afa-elt{background:var(--bg3);border:1px solid var(--border);border-radius:var(--r);padding:12px 14px;display:flex;flex-direction:column;gap:7px;font-size:13px}
.afa-retire{border-style:dashed}
.afa-retire .afa-elt-titre{text-decoration:line-through}
.afa-elt-tete{display:flex;gap:6px 8px;align-items:center;flex-wrap:wrap}
.afa-elt-titre{overflow-wrap:anywhere;font-weight:600}
.afa-comm,.afa-recu{line-height:1.5;overflow-wrap:anywhere}
.afa-valeur{white-space:pre-wrap}
.afa-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}
.afa-pied{align-items:center}
