/* ══════════════════════════════════════════════════════════════════════════
   Fiches clients — même charte que la Box : celle de l'accès client FISCALITY
   (17/11/2026, demande de Joseph). Posée par-dessus fiches.css : seul le style change.
   Les points et liserés vert / ambre / rouge gardent leur sens (à jour, en attente, manquant).
   Retour arrière : retirer la ligne fiches-fiscality.css de fiches.html.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Onest"; src: url(/assets/fonts/onest-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --nuit: #0b1224; --orange: #f17e01; --orange-2: #ffa63d; --papier: #f3f5fa; --encre: #131a2b; --gris: #5b657a; --filet: #e3e7f0;
  --degrade-orange: linear-gradient(135deg, #f17e01, #ff9a2a);
  --degrade-nuit: linear-gradient(120deg, #0b1224 0%, #1b2b5e 60%, #3a2a66 100%);
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bg: #f3f5fa; --surface: #fff; --text: #131a2b; --muted: #5b657a; --border: #e3e7f0; --border-l: #edf0f6;
  --primary: #f17e01; --primary-l: #fff8ee; --hover: #fff8ee;
  --vert: #0f9d6b; --vert-f: #e3f6ee; --ambre: #b86a00; --ambre-f: #fff1dc; --rouge: #c8362c; --rouge-f: #fde8e6; --gris-f: #f3f5fa;
}
body { background: var(--papier); color: var(--encre); }
a { color: #2f5bd8; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; border-radius: 8px; }

/* Bandeau : bleu nuit, halos, pastille orange */
.fc-top { background: var(--nuit); padding: 12px 22px; overflow: hidden; }
.fc-top::before { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, #2f52d6, transparent 65%); opacity: .45; filter: blur(60px); pointer-events: none; }
.fc-top::after { content: ""; position: absolute; width: 360px; height: 360px; right: 8%; top: -250px; border-radius: 50%; background: radial-gradient(circle, var(--orange), transparent 65%); opacity: .28; filter: blur(60px); pointer-events: none; }
.fc-top > * { position: relative; z-index: 1; }
.fc-marque { font-weight: 700; letter-spacing: -.02em; }
.fc-marque small { color: #c9d2e6; }
.fc-logo { color: #fff; border: 0; border-radius: 12px; background: var(--degrade-orange); box-shadow: 0 10px 22px -10px rgba(241,126,1,.9); }
.fc-top-droite label { color: #c9d2e6; }
.fc-top-droite select { border-radius: 999px; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); padding: 6px 12px; }
.fc-top-droite a { color: #c9d2e6; border-radius: 999px; border-color: rgba(255,255,255,.25); padding: 6px 14px; }
.fc-top-droite a:hover { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }

/* Liste des clients */
.fc-liste { border-radius: 24px; box-shadow: none; }
.fc-recherche { background: #fff; border-bottom: 1px solid var(--filet); }
.fc-recherche input { border-radius: 999px; padding: 9px 16px; }
.fc-recherche input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241,126,1,.14); }
.fc-filtres button { border-color: var(--filet); color: var(--gris); }
.fc-filtres button.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
#fc-dossiers li.sel { background: #fff8ee; box-shadow: inset 3px 0 0 var(--orange); }

/* Fiche */
.fc-vide { border-radius: 24px; border: 2px dashed #b9c3d8; }
.fc-tete { border-radius: 26px; background: var(--degrade-nuit); box-shadow: 0 30px 60px -36px rgba(11,18,36,.9); position: relative; overflow: hidden; }
.fc-tete::before { content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(241,126,1,.6), transparent 65%); filter: blur(30px); pointer-events: none; }
.fc-tete > * { position: relative; }
.fc-tete h1 { font-weight: 700; letter-spacing: -.03em; }
.fc-tete h1 small { color: #c3cce0; }
.fc-code { background: var(--degrade-orange); border: 0; box-shadow: 0 12px 24px -14px rgba(241,126,1,.9); }
.fc-actions button { border-radius: 999px; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); padding: 7px 14px; }
.fc-etat div { border-radius: 18px; }
.fc-etat small { letter-spacing: .1em; }
.fc-carte { border-radius: 22px; box-shadow: none; }
.fc-carte h2, .fc-carte h3 { letter-spacing: -.02em; }
.fc-puce { border-radius: 999px; }

/* Liste des clients : les points de couleur deviennent deux étiquettes « LM » et « RBE » (17/11/2026, demande de Joseph).
   Vert = fait, orange = en cours, rouge = manquant, gris = non suivi ou sans objet. */
.fc-pts { gap: 4px; }
.fc-pt { width: auto; height: auto; border-radius: 999px; padding: 2px 7px; font: 700 10px/1.4 var(--font); font-style: normal; letter-spacing: .04em; background: #f3f5fa; color: #8b94a8; }
.fc-pt.ok { background: #e3f6ee; color: #0f9d6b; }
.fc-pt.att { background: #fff1dc; color: #b86a00; }
.fc-pt.ko { background: #fde8e6; color: #c8362c; }
#fc-dossiers li { grid-template-columns: 58px minmax(0, 1fr) auto; }


/* Documents à générer (18/11/2026) */
.fc-docs { margin: 14px 0 4px; padding: 18px 20px; background: #fff; border: 1px solid #e3e7f0; border-left: 4px solid #f17e01; border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,60,.05); }
.fc-docs[hidden] { display: none; }
.fc-docs h2 { margin: 0 0 12px; font: 700 15px var(--display, inherit); color: #131a2b; }
.fc-docs h2 small { font: 500 12px var(--font, inherit); color: #5b657a; margin-left: 8px; }
.fc-docs-choix { display: flex; align-items: center; gap: 10px; font: 600 13px var(--font, inherit); color: #131a2b; }
.fc-docs select, .fc-docs input, .fc-docs textarea { font: 400 13.5px var(--font, inherit); color: #131a2b; background: #fff; border: 1px solid #cfd5e2; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
.fc-docs-choix select { max-width: 560px; }
.fc-docs select:focus, .fc-docs input:focus, .fc-docs textarea:focus { outline: 2px solid #f17e01; outline-offset: 1px; border-color: #f17e01; }
.fc-docs-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; margin-top: 16px; }
.fc-docs-grille label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fc-docs-grille label.large { grid-column: 1 / -1; }
.fc-docs-grille label span { font: 600 12px var(--font, inherit); color: #5b657a; }
.fc-docs-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.fc-docs-bas button { font: 700 13.5px var(--font, inherit); color: #fff; background: #f17e01; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.fc-docs-bas button:hover { background: #d96f00; }
.fc-docs-bas button:disabled { opacity: .6; cursor: default; }
.fc-docs-bas span, .fc-docs-info { font: 400 12.5px var(--font, inherit); color: #5b657a; margin: 0; }
.fc-docs-erreur, .fc-docs-alerte { font: 600 13px var(--font, inherit); color: #b42318; margin: 12px 0 0; }
.fc-docs-alerte { margin: 0 0 12px; color: #9a5b00; }
@media print { .fc-docs { display: none !important; } }


/* Téléchargements directs, pièces d'identité, véhicules (18/11/2026) */
.fc-dl { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px var(--font, inherit); color: #b85c00 !important; background: #fff4e6; border: 1px solid #ffd9a8; border-radius: 999px; padding: 3px 10px; text-decoration: none !important; white-space: nowrap; }
.fc-dl:hover { background: #f17e01; border-color: #f17e01; color: #fff !important; }
.fc-l b .fc-dl { margin-left: 8px; }
.fc-t th.fc-pi, .fc-t td.fc-pi { text-align: right; white-space: nowrap; width: 1%; }
.fc-pi-oui { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; margin-left: 4px; border-radius: 7px; background: #eef1f7; border: 1px solid #d7dcea; color: #3a4256; }
.fc-pi-oui svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fc-pi-oui.ok { background: #e8f7ee; border-color: #b5e2c6; color: #157347; }
.fc-pi-oui:hover { background: #f17e01; border-color: #f17e01; color: #fff; }
.fc-pi-oui:focus-visible, .fc-dl:focus-visible { outline: 2px solid #f17e01; outline-offset: 2px; }
.fc-pi-non { color: #a3abbd; }
.fc-veh { margin-top: 10px; }
@media print { .fc-dl, .fc-pi-oui { display: none !important; } }


/* Juridique PDF (18/11/2026) */
.fc-jur ul { list-style: none; margin: 0 0 10px; padding: 0; }
.fc-jur li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef1f7; }
.fc-jur li span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 400 13.5px var(--font, inherit); color: #131a2b; }
.fc-jur li small { color: #5b657a; font-size: 12px; }


/* Envoi par mail d'un document (18/11/2026) */
.fc-dl-groupe { display: inline-flex; align-items: center; gap: 6px; }
.fc-env { font: 400 13px/1 var(--font, inherit); color: #3a4256; background: #eef1f7; border: 1px solid #d7dcea; border-radius: 999px; width: 26px; height: 22px; margin-left: 5px; padding: 0; cursor: pointer; vertical-align: middle; }
.fc-env:hover { background: #131a2b; border-color: #131a2b; color: #fff; }
.fc-env:focus-visible { outline: 2px solid #f17e01; outline-offset: 2px; }
.fc-envoi { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11,18,36,.55); }
.fc-envoi[hidden] { display: none; }
.fc-envoi-boite { width: min(520px, 100%); background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(11,18,36,.35); }
.fc-envoi-boite h2 { margin: 0 0 4px; font: 800 18px var(--display, inherit); color: #131a2b; }
.fc-envoi-doc { margin: 0 0 16px; font: 500 13.5px var(--font, inherit); color: #5b657a; }
.fc-envoi-boite label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fc-envoi-boite label span { font: 600 12px var(--font, inherit); color: #5b657a; }
.fc-envoi-boite input, .fc-envoi-boite textarea { font: 400 14px var(--font, inherit); color: #131a2b; border: 1px solid #cfd5e2; border-radius: 8px; padding: 9px 11px; width: 100%; }
.fc-envoi-boite input:focus, .fc-envoi-boite textarea:focus { outline: 2px solid #f17e01; outline-offset: 1px; border-color: #f17e01; }
.fc-envoi-bas { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.fc-envoi-bas button { font: 700 13.5px var(--font, inherit); border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 1px solid #cfd5e2; background: #fff; color: #131a2b; }
.fc-envoi-bas button[type=submit] { background: #f17e01; border-color: #f17e01; color: #fff; }
.fc-envoi-bas button:disabled { opacity: .6; cursor: default; }
@media print { .fc-env, .fc-envoi { display: none !important; } }


/* Signature électronique des documents générés (18/11/2026) */
.fc-docs-bas button.secondaire { background: #131a2b; }
.fc-docs-bas button.secondaire:hover { background: #26304a; }
.fc-envoi-qui { margin: 0 0 8px; font: 500 13.5px var(--font, inherit); color: #131a2b; }
.fc-envoi-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.fc-envoi-liste li { padding: 8px 12px; margin-bottom: 6px; background: #f3f5fa; border-radius: 8px; font: 400 13.5px var(--font, inherit); color: #131a2b; }
.fc-envoi-liste small { color: #5b657a; }
.fc-envoi-bas button.plein { background: #f17e01; border-color: #f17e01; color: #fff; }
#fc-docs-suivi h3 { margin: 18px 0 4px; font: 700 13px var(--display, inherit); color: #131a2b; }


/* Choix du signataire du cabinet (18/11/2026) */
.fc-docs-sign { margin-top: 10px; }
.fc-docs-sign select { max-width: 360px; }
p.fc-docs-sign { margin: 10px 0 0; }
.fc-docs-signataire-seul { font-weight: 700; color: #131a2b; background: #f3f5fa; border: 1px solid #e3e7f0; border-radius: 8px; padding: 7px 12px; }


/* Bloc « Espace client » de la fiche (18/11/2026) */
.fc-ec-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.fc-ec-form span { font: 600 12.5px var(--font, inherit); color: #5b657a; }
.fc-ec-form input { font: 400 13.5px var(--font, inherit); color: #131a2b; border: 1px solid #cfd5e2; border-radius: 8px; padding: 7px 10px; flex: 1 1 200px; min-width: 0; }
.fc-ec-form input:focus { outline: 2px solid #f17e01; outline-offset: 1px; border-color: #f17e01; }
.fc-ec-form button { font: 700 12.5px var(--font, inherit); color: #fff; background: #f17e01; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.fc-ec-form button:disabled { opacity: .6; cursor: default; }
.fc-ec-note { font: 400 12px var(--font, inherit); color: #5b657a; margin: 6px 0 0; }
.fc-ec-ok { font: 600 13px var(--font, inherit); color: #157347; margin: 10px 0 0; }
.fc-ec-titre { margin: 18px 0 6px; font: 700 13px var(--display, inherit); color: #131a2b; }
.fc-ec-titre small { font: 500 11.5px var(--font, inherit); color: #5b657a; margin-left: 6px; }
@media print { .fc-ec-form, .fc-ec-note { display: none !important; } }

/* Rôle d'administrateur de l'espace client (18/11/2026) */
.fc-ec-admin { font: 600 11.5px var(--font, inherit); color: #3a4256; background: #eef1f7; border: 1px solid #d7dcea; border-radius: 999px; padding: 4px 11px; cursor: pointer; white-space: nowrap; }
.fc-ec-admin:hover { background: #131a2b; border-color: #131a2b; color: #fff; }
.fc-ec-admin.confirme { background: #f17e01; border-color: #f17e01; color: #fff; white-space: normal; }
