/* Réseau des anciens natif Le Fil (js/reseau-anciens/) : « Mon réseau » (liens, anneaux, cercles, listes), fiche d'une personne, appels, entraide, notifications, modération, réembauche,
   « Diffuser dans le réseau », panneau d'anneaux du Vivier, confirmation d'un lien. Remplace css/reseau-anciens.css (classes ra-*, supprimé). Préfixe fan-, jetons --f-* de css/fil.css seulement ;
   s'ajoute à css/fil-budget.css (cartes, boutons, champs, puces) et css/fil-formulaire.css. Filets plutôt qu'ombres, cibles >= 44 px, Inter. */
.fan-pile { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fan-pile > :empty, .fan-liens > :empty { display: none; }
.fan-liens, .fan-fiche { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fan-section { min-width: 0; }
.fan-section > .fb-carte-ligne { margin-bottom: 4px; }
.fan-section .fb-vide { padding: 8px 0 0; }
.fan [hidden] { display: none !important; }

/* Textes */
.fan-meta { margin: 4px 0 0; color: var(--f-encre-2); font: 400 14px/1.45 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.fan-texte { margin: 6px 0 0; font: 400 14px/1.5 Inter, system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.fan-kpi { margin: 6px 0; font: 600 24px/1.25 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fan-signaletique { color: var(--f-encre-2); font: 400 14px/1.4 Inter, system-ui, sans-serif; }
.fan-reco { margin: 4px 0 0; color: var(--f-fait); font: 500 14px/1.45 Inter, system-ui, sans-serif; }
.fan-signature { font-size: 12px; }
.fan-confirmer { margin: 0; flex: 1 1 220px; font: 500 16px/1.4 Inter, system-ui, sans-serif; }
.fan-recherche-statut { min-height: 1.2em; }

/* Lignes (personnes, demandes, résultats, fils) */
.fan-liste, .fan-liste-lignes, .fan-personnes, .fan-anciens, .fan-notifs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.fan-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--f-filet); min-width: 0; }
.fan-ligne:first-child { border-top: 0; }
.fan-ligne-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.fan-nom-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fan-nom { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1.3 Inter, system-ui, sans-serif; color: var(--f-encre); text-decoration: none; }
.fan-nom:hover { text-decoration: underline; text-underline-offset: 3px; }
.fan-fils { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.fan-envoyees .fan-ligne { opacity: .85; }
.fan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.fan-actions--fiche { margin-left: 0; }
.fan-actions .fb-saisie { width: auto; min-width: 0; flex: 1 1 180px; }
.fan-fiche-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.fan-fiche-signaletique { margin: 2px 0 0; }
.fan-fil { align-items: flex-start; }
.fan-fil-texte { flex: 1 1 auto; min-width: 0; font: 400 14px/1.5 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.fan-anciens li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--f-filet); }
.fan-anciens li:first-child { border-top: 0; }

/* Blocs à filet dans une carte (cercle, appel, réponse, suggestion) */
.fan-bloc { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 10px; padding: 12px 14px; background: var(--f-surface-2); border: 1px solid var(--f-filet); border-radius: 18px; overflow-wrap: anywhere; }
.fan-bloc > .fb-puce { align-self: flex-start; }
.fan-bloc .fan-actions { margin-left: 0; }
.fan-cercle-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fan-cercle-tete > strong { font: 600 16px/1.3 Inter, system-ui, sans-serif; }
.fan-cercle-tete > .fb-bouton { margin-left: auto; }
.fan-appel.est-clos { opacity: .7; }
.fan-reponse.est-retenue { border-color: var(--f-fait); }
.fan-question { text-decoration: none; color: var(--f-encre); flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.fan-question:hover { border-color: var(--f-encre-3); }
.fan-suggestion { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fan-inviter, .fan-reco-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.fan-lien { flex: 1 1 220px; width: auto; min-width: 0; }
.fan-signaler { width: auto; max-width: 200px; }
.fan-suggestions { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }

/* Anneaux */
.fan-anneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin-top: 10px; }
.fan-anneau { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 72px; padding: 12px 14px; text-align: left; color: var(--f-encre); background: var(--f-surface); border: 1px solid var(--f-filet); border-radius: 18px; font: inherit; cursor: pointer; }
.fan-anneau:hover { background: var(--f-surface-2); }
.fan-anneau.est-actif { border-color: var(--f-encre); background: var(--f-surface-2); }
.fan-anneau-num { color: var(--f-encre-3); font: 500 12px/1.3 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.fan-anneau-nom { font: 600 16px/1.3 Inter, system-ui, sans-serif; }
.fan-anneau-cpt { color: var(--f-encre-2); font: 400 14px/1.4 Inter, system-ui, sans-serif; }
.fan-anneau-aide { color: var(--f-encre-3); font: 400 12px/1.4 Inter, system-ui, sans-serif; }
.fan-anneaux--compact .fan-anneau { cursor: default; min-height: 0; }
.fan-anneaux--compact .fan-anneau:hover { background: var(--f-surface); }
.fan-vivier { padding-bottom: 0; }
.fan-vivier .fan-actions { margin: 10px 0 0; }
.fan-anneau-detail:empty { display: none; }

/* Formulaires */
.fan-form { margin-top: 10px; }
.fan-form > .fan-actions, .fan-form > .ffo-message, .fan-form > .fan-suggestions { grid-column: 1 / -1; margin-left: 0; }
.fan-form-ligne { margin-top: 12px; }
.fan-reglages { margin-bottom: 8px; }
.fan-recherche { margin-top: 10px; }

/* Notifications */
.fan-notif { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--f-filet); }
.fan-notif:first-child { border-top: 0; }
.fan-notif a { display: inline-flex; align-items: center; min-height: 44px; flex: 1 1 200px; min-width: 0; color: var(--f-encre); text-decoration: none; overflow-wrap: anywhere; }
.fan-notif.est-nouvelle a { font-weight: 600; }
.fan-notif.est-nouvelle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f-encre); flex: none; }

/* Réembauche, confirmation, diffusion */
.fan-table { min-width: 420px; }
.fan-confirmation { max-width: 560px; }
.fan-confirmation .fan-actions { margin: 12px 0 0; }
.fan-diffusion .fb-champ { margin-top: 10px; }
.fan-diffusion .fb-saisie { margin-top: 8px; }
.fan-apercu { margin-top: 10px; }
