/* Fiches clients (16/11/2026) — charte « Verre » de la Box : mêmes couleurs, mêmes polices, même bandeau. */
:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --bg: #eef0f4; --surface: #fff; --text: #1c2230; --muted: #566072; --border: #d7dbe3; --border-l: #e4e7ed;
  --primary: #2f5bd8; --primary-l: #e8eefc; --hover: #eef3ff;
  --vert: #0f7d55; --vert-f: #e3f6ee; --ambre: #a05c00; --ambre-f: #fff1dc; --rouge: #c8362c; --rouge-f: #fde8e6; --gris-f: #f1f3f7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--primary); }
[hidden] { display: none !important; }

.fc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 20px; color: #fff; background: linear-gradient(90deg, #0a246a, #3a6ea5); }
.fc-marque { display: flex; align-items: center; gap: 12px; font: 800 18px/1.15 var(--display); letter-spacing: -.01em; }
.fc-marque small { display: block; font: 400 12px var(--font); color: #d6e2fb; }
.fc-logo { width: 40px; height: 40px; border-radius: 30%; display: grid; place-items: center; color: hsl(168 78% 22%); border: 1px solid rgba(255,255,255,.85);
  background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.32)), radial-gradient(circle at 34% 36%, hsl(168 85% 75%) 0, hsl(168 72% 42%) 42%, transparent 43%), linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75));
  box-shadow: 0 4px 12px -4px rgba(20,30,60,.45); }
.fc-logo svg { width: 22px; height: 22px; stroke-width: 2; }
.fc-top-droite { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.fc-top-droite label { display: flex; align-items: center; gap: 8px; color: #d6e2fb; }
.fc-top-droite select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: #fff; }
.fc-top-droite select option { color: var(--text); }
.fc-top-droite a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); }
.fc-top-droite a:hover { background: rgba(255,255,255,.14); }

.fc-page { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; padding: 16px 20px 40px; align-items: start; }
.fc-liste { position: sticky; top: 76px; display: flex; flex-direction: column; max-height: calc(100vh - 92px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,30,60,.05); }
.fc-recherche { padding: 12px; border-bottom: 1px solid var(--border); background: #f4f6fa; }
.fc-recherche input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.fc-recherche input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,91,216,.18); }
.fc-filtres { display: flex; gap: 4px; margin-top: 8px; }
.fc-filtres button { flex: 1; font: 600 12px var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px; cursor: pointer; white-space: nowrap; }
.fc-filtres button.actif { background: var(--primary); border-color: var(--primary); color: #fff; }
.fc-compte { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
#fc-dossiers { list-style: none; margin: 0; padding: 0; overflow: auto; }
#fc-dossiers li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-l); cursor: pointer; }
#fc-dossiers li:hover { background: var(--hover); }
#fc-dossiers li.sel { background: var(--primary-l); box-shadow: inset 3px 0 0 var(--primary); }
#fc-dossiers .code { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
#fc-dossiers .nom { min-width: 0; }
#fc-dossiers .nom b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fc-dossiers .nom small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-pts { display: flex; gap: 3px; }
.fc-pt { width: 9px; height: 9px; border-radius: 50%; background: #cfd5df; }
.fc-pt.ok { background: #1aa672; } .fc-pt.att { background: #e69a1f; } .fc-pt.ko { background: #d9483d; }
.fc-rien { padding: 24px 12px; text-align: center; color: var(--muted); cursor: default !important; display: block !important; }

.fc-fiche { min-width: 0; display: grid; gap: 14px; }
.fc-vide { padding: 70px 30px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.fc-vide b { display: block; font: 700 18px var(--display); color: var(--text); margin-bottom: 6px; }
.fc-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 22px; border-radius: 14px; color: #fff; background: linear-gradient(110deg, #0a246a, #3a6ea5); box-shadow: 0 10px 30px -18px rgba(10,36,106,.9); }
.fc-tete h1 { margin: 0; font: 800 24px/1.15 var(--display); letter-spacing: -.02em; flex: 1 1 320px; }
.fc-tete h1 small { display: block; font: 500 13px var(--font); color: #d6e2fb; margin-top: 4px; letter-spacing: 0; }
.fc-code { font: 800 15px var(--display); padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); white-space: nowrap; }
.fc-actions { display: flex; gap: 8px; }
.fc-actions button { font: 600 12.5px var(--font); color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.fc-actions button:hover { background: rgba(255,255,255,.26); }

.fc-etat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fc-etat div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; border-left-width: 4px; }
.fc-etat small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fc-etat b { font: 700 14px var(--display); }
.fc-etat .ok { border-left-color: #1aa672; } .fc-etat .att { border-left-color: #e69a1f; } .fc-etat .ko { border-left-color: #d9483d; } .fc-etat .nul { border-left-color: #cfd5df; }
.fc-etat .nul b { color: var(--muted); font-weight: 600; }

.fc-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fc-carte { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; min-width: 0; box-shadow: 0 1px 2px rgba(20,30,60,.05); }
.fc-carte.large { grid-column: 1 / -1; }
.fc-carte h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font: 700 14px var(--display); }
.fc-carte h2 a { font: 600 11.5px var(--font); text-decoration: none; white-space: nowrap; }
.fc-carte h2 a:hover { text-decoration: underline; }
.fc-l { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border-l); font-size: 13px; }
.fc-l:last-child { border-bottom: 0; }
.fc-l span { color: var(--muted); }
.fc-l b { font-weight: 500; overflow-wrap: anywhere; }
.fc-rienc { color: var(--muted); font-size: 13px; }
.fc-puce { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 11.5px var(--font); white-space: nowrap; background: var(--gris-f); color: var(--muted); }
.fc-puce.ok { background: var(--vert-f); color: var(--vert); } .fc-puce.att { background: var(--ambre-f); color: var(--ambre); } .fc-puce.ko { background: var(--rouge-f); color: var(--rouge); }
table.fc-t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.fc-t th { text-align: left; font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.fc-t td { padding: 7px 8px; border-bottom: 1px solid var(--border-l); vertical-align: top; }
table.fc-t tr:last-child td { border-bottom: 0; }
table.fc-t td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.fc-t small { color: var(--muted); display: block; }
.fc-notes { white-space: pre-wrap; font-size: 13px; color: var(--text); margin: 0; }
.fc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

@media (max-width: 1000px) {
  .fc-page { grid-template-columns: 1fr; }
  .fc-liste { position: static; max-height: 320px; }
  .fc-grille { grid-template-columns: 1fr; }
}
@media print {
  .fc-top, .fc-liste, .fc-actions { display: none !important; }
  .fc-page { display: block; padding: 0; }
  body { background: #fff; }
  .fc-tete { color: #000; background: none; box-shadow: none; border: 1px solid #000; }
  .fc-tete h1 small { color: #333; } .fc-code { border-color: #000; }
  .fc-carte, .fc-etat div { break-inside: avoid; box-shadow: none; }
}

/* Téléphone */
@media (max-width: 640px) {
  .fc-top { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .fc-top-droite { flex-wrap: wrap; gap: 8px; width: 100%; }
  .fc-top-droite label { flex: 1; } .fc-top-droite select { flex: 1; min-width: 0; }
  #fc-qui { display: none; }
  .fc-page { padding: 10px 10px 30px; }
  .fc-liste { top: 0; }
  .fc-l { grid-template-columns: 110px minmax(0, 1fr); }
  .fc-carte { overflow-x: auto; padding: 14px; }
  .fc-tete { padding: 14px 16px; } .fc-tete h1 { font-size: 19px; flex-basis: 100%; }
  .fc-etat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
