/* ============================================================
   ALG CLUB — Mon suivi, fiche de suivi et suivi des clients (refonte v3)
   Chargé après css/v3.css.
   Maquettes validées : Suivi.dc.html (Mon suivi) et ClientFiche.dc.html
   (fiche d'un client). Sections séparées par des filets, une seule surface
   en relief par écran (le prochain appel côté client, le dernier et le
   prochain appel côté coach), beige réservé à la date du prochain appel.
   ============================================================ */

/* ---------- Communs ---------- */
#ms-root, #cl-root { display: flex; flex-direction: column; gap: 40px; }
#ms-root > .esp-loading, #cl-root > .esp-loading { padding: 48px 0; }
#ms-root .lnk, #cl-root .lnk { min-height: 44px; }
.ms-head, .fc-head-t, .cl-head-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ms-head { max-width: 68ch; }
.ms-head .esp-h1, .fc-head .esp-h1, .cl-head .esp-h1 { margin: 0; }
.ms-head .esp-p, .fc-head .esp-p, .cl-head .esp-p { max-width: 68ch; }
.fc-head .ks, .cl-head .ks { margin: 0; }
.ms-link { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.sec-sub + .fi-alloc-t, .sec-sub + .fi-qs, .sec-sub + .fi-grid { margin-top: 18px; }

/* ---------- Fiche de suivi : rubriques, questions, allocation ---------- */
.fi-sec { min-width: 0; }
.fi-sec-t { margin: 0; display: flex; align-items: baseline; gap: 12px; font-family: var(--alg-font-display); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--alg-text); }
.fi-n { flex: none; min-width: 1.4em; font-family: var(--alg-font-sans); font-size: 13px; color: var(--alg-text-3); font-variant-numeric: tabular-nums; }
.fi-intro { margin: 8px 0 0; max-width: 68ch; font-size: 14px; color: var(--alg-text-2); }
.fi-qs { margin: 12px 0 0; padding: 0; }
.fi-q { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 0; border-top: 1px solid var(--alg-border); }
.fi-q dt { margin: 0; }
.fi-q dd { margin: 0; color: var(--alg-text); max-width: 68ch; overflow-wrap: anywhere; }
.fi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.fi-alloc-t { margin: 16px 0 4px; }
.fi-alloc .row { align-items: center; }
.fi-alloc .row .bar { flex: 0 1 220px; }
.fi-alloc .row .v { min-width: 72px; }
.fi-alloc .row .v.fi-none { min-width: 0; text-align: right; }
.fi-l { display: block; }
.fi-help { display: block; font-size: 13px; color: var(--alg-text-3); }
.fi-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: -1px; padding-top: 12px; border-top: 3px double var(--alg-border-strong); }
.fi-total .num { font-family: var(--alg-font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.fi-warn { margin: 8px 0 0; font-size: 13px; color: var(--alg-warning); }
.fi-alloc + .fi-qs, .fi-total + .fi-qs, .fi-warn + .fi-qs { margin-top: 20px; }

/* ---------- Mon suivi (client) ---------- */
.ms-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 26px 30px; border-radius: 14px; background: var(--alg-surface); }
.ms-next-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ms-next-b .ks { margin: 4px 0 0; }
.ms-next-when { margin: 0; font-family: var(--alg-font-display); font-size: 32px; line-height: 1.2; color: var(--alg-gold); }
.ms-next-sub { margin: 0; color: var(--alg-text-2); }
.ms-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.ms-strat { flex: 3 1 520px; min-width: 0; }
.ms-calls { flex: 2 1 340px; min-width: 0; }
.ms-calls > .h2 { margin-bottom: 24px; }
.ms-fiche > .sec-sub { margin-bottom: 28px; }

/* Appels du client : frise verticale, date à gauche */
.ms-tl { margin: 0; padding: 0; list-style: none; }
.ms-call { position: relative; display: flex; gap: 24px; padding: 0 0 30px; }
.ms-call::before { content: ""; position: absolute; left: 47px; top: 30px; bottom: 6px; width: 1px; background: var(--alg-border-strong); }
.ms-call:last-child { padding-bottom: 0; }
.ms-call:last-child::before { display: none; }
.ms-when { flex: 0 0 96px; width: 96px; display: flex; flex-direction: column; align-items: flex-start; }
.ms-j { font-family: var(--alg-font-display); font-size: 22px; line-height: 1.1; color: var(--alg-text); }
.ms-w { font-size: 12px; color: var(--alg-text-3); }
.ms-what { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ms-call-t { margin: 0; font-weight: 400; font-size: 16px; color: var(--alg-text); }
.ms-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--alg-text-2); }
.ms-st .esp-ic { width: 13px; height: 13px; }
.ms-st.ok { color: var(--alg-mint); }
.ms-st.now { color: var(--alg-text); }
.ms-cr { margin: 0; max-width: 62ch; color: var(--alg-text); overflow-wrap: anywhere; }

/* ---------- Clients : liste (coach, admin) ---------- */
.cl-head, .fc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; }
.cl-search, .fc-switch { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cl-search .fl, .fc-switch .fl { margin: 0; }
.cl-search input { width: 280px; max-width: 100%; }
.fc-switch select { width: auto; min-width: 220px; max-width: 100%; }
.cl-sec > .h2 { margin-bottom: 8px; }
.cl-agenda { margin: 0; padding: 0; list-style: none; }
.cl-li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--alg-border); }
.cl-li-b { display: flex; flex-direction: column; min-width: 0; }
.cl-now { color: var(--alg-gold); }
.cl-sub { display: block; font-size: 13px; color: var(--alg-text-3); }
.cl-sub .lnk { font-size: 13px; }
.cl-tbl-wrap { position: relative; overflow-x: auto; margin-top: 10px; }
.cl-tbl { min-width: 680px; font-variant-numeric: tabular-nums; }
.cl-tbl tbody th { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--alg-border); font-size: 15px; font-weight: 400; color: var(--alg-text); text-align: left; background: none; }
.cl-tbl tbody tr[data-act] { cursor: pointer; }
.cl-tbl tbody tr:hover th { background: var(--alg-hover-faint); }
.cl-name { display: block; }
.cl-empty { text-align: center; padding: 24px 0; }
.cl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fiche d'un client (coach, admin) ---------- */
.fc-back { min-height: 44px; margin: 0 0 -24px; align-self: flex-start; }
.fc-tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--alg-border); scrollbar-width: none; margin-bottom: -12px; }
.fc-tabs::-webkit-scrollbar { display: none; }
.fc-tab { flex: none; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 15px; color: var(--alg-text-2); white-space: nowrap; cursor: pointer; }
.fc-tab:hover { color: var(--alg-text); }
.fc-tab[aria-selected="true"] { color: var(--alg-text); border-bottom-color: var(--alg-mint); }
.fc-panel { display: flex; flex-direction: column; gap: 40px; outline: none; }
.fc-panel > section > .h2 + .sec-sub { margin-bottom: 8px; }

/* Dernier appel (en évidence) et prochain appel */
.fc-now { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 26px 30px; border-radius: 14px; background: var(--alg-surface); }
.fc-last { flex: 3 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-last-t { margin: 0; font-family: var(--alg-font-display); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--alg-text); }
.fc-last .ks { margin: 0; }
.fc-last-notes { margin: 12px 0 0; max-width: 70ch; font-size: 16px; color: var(--alg-text); overflow-wrap: anywhere; }
.fc-last-notes.ks { font-size: 13px; }
.fc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.fc-acts:empty { display: none; }
.fc-next { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fc-next .ks { margin: 0; }
.fc-next-when { margin: 0; font-family: var(--alg-font-display); font-size: 24px; line-height: 1.25; color: var(--alg-gold); }
.fc-next-none { margin: 0 0 8px; color: var(--alg-text-2); }

.fc-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.fc-fiche { flex: 3 1 520px; min-width: 0; }
.fc-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.fc-fiche > .sec-sub { margin-bottom: 8px; }
.fc-sec { padding: 24px 0; border-top: 1px solid var(--alg-border); }
.fc-sec:last-child { padding-bottom: 0; }
.fc-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fc-sec-h .lnk { flex: none; }
.fc-sec .fc-form { margin-top: 16px; }

/* Formulaires (un appel ou une rubrique) : un seul ouvert à la fois */
.fc-form { display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--alg-border-strong); border-radius: 14px; }
.fc-form-t { margin: 0; font-weight: 400; font-size: 16px; color: var(--alg-text); }
.fc-form textarea.esp-ta { min-height: 84px; }
.fc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.fc-form-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.fc-pct { margin: 0; padding: 0; border: 0; min-width: 0; }
.fc-pct legend { padding: 0; margin-bottom: 4px; }
.fc-pct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--alg-border); }
.fc-pct-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: var(--alg-text); cursor: pointer; }
.fc-pct-in { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--alg-text-2); }
.fc-pct-in input[type=number] { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }

/* Appels du client, côté coach */
.fc-calls .sec-head + .sec-sub { margin-bottom: 8px; }
.fc-calllist { margin: 0; padding: 0; list-style: none; }
.fc-call { padding: 6px 0; border-bottom: 1px solid var(--alg-border); }
.fc-call-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.fc-call-n { flex: 0 0 64px; color: var(--alg-text); }
.fc-call-d { flex: 1 1 120px; min-width: 0; color: var(--alg-text-2); }
.fc-call-d a { display: inline-flex; align-items: center; min-height: 44px; }
.fc-call-s { font-size: 13px; color: var(--alg-text-2); }
.fc-call-s.ok { color: var(--alg-mint); }
.fc-call-notes { margin: 0 0 8px; font-size: 14px; color: var(--alg-text-2); overflow-wrap: anywhere; }
.fc-call .fc-form { margin: 8px 0 12px; }

/* Patrimoine et formation du client (lecture seule) */
.fc-rows .row:last-child { border-bottom: 1px solid var(--alg-border); }
.fc-net { margin-bottom: 8px; }
.fc-patmini .fc-net + .lnk { margin-top: 4px; }
.fc-pat-sum { max-width: 560px; }
.fc-pat-sum .fc-net { margin-bottom: 20px; }
.fc-pat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px 64px; margin-top: 12px; }
.fc-pat-cols .row .bar { flex: 0 1 120px; }
.fc-pat-cols .row .v, .fc-rows .row .v { white-space: nowrap; }
.fc-pat-h { margin: 24px 0 2px; }
.fc-pat-cols > div > .fc-pat-h:first-child { margin-top: 0; }
.fc-pat-none { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--alg-border); }

/* ---------- Équipe : rubriques et questions de la fiche ---------- */
.eqf { border-top: 1px solid var(--alg-border); padding-top: 26px; }
.eqf .sec-head { align-items: flex-end; margin-bottom: 8px; }
.eqf .sec-head .sec-sub { max-width: 72ch; }
.eqf-s { padding: 24px 0; border-top: 1px solid var(--alg-border); }
.eqf-s.off { opacity: 0.65; }
.eqf-s-t { margin: 0 0 12px; font-size: 13px; font-weight: 400; color: var(--alg-text-2); }
.eqf-s-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.eqf-title { flex: 1 1 320px; }
.eqf-intro { flex: 1 1 100%; }
.eqf .esp-check { min-height: 44px; }
.eqf .esp-check input { width: 18px; height: 18px; }
.eqf textarea.esp-ta { min-height: 64px; }
.eqf textarea.invalid { border-color: var(--alg-negative); }
.eqf-qs { margin: 16px 0; padding: 0; list-style: none; }
.eqf-q { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--alg-border); }
.eqf-q.off .eqf-fields { opacity: 0.6; }
.eqf-mv { flex: none; display: flex; flex-direction: column; gap: 4px; }
.eqf-mv .esp-iconbtn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.eqf-fields { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.eqf-label { flex: 3 1 240px; }
.eqf-help { flex: 3 1 240px; }
.eqf-kind { flex: 0 1 170px; }
.eqf-sec { flex: 0 1 210px; }
.eqf-opts { flex: 1 1 100%; }
.eqf-none { margin: 12px 0 16px; }
.eqf-foot { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--alg-border); }

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
  #ms-root, #cl-root { gap: 32px; }
  .ms-next, .fc-now { padding: 20px; }
  .ms-next .btn { width: 100%; }
  .ms-next-when { font-size: 26px; }
  .ms-call { gap: 16px; }
  .ms-call::before { left: 35px; }
  .ms-when { flex-basis: 72px; width: 72px; }
  .ms-j { font-size: 19px; }
  /* l'allocation garde sa barre, sous le libellé */
  .fi-alloc .row { flex-wrap: wrap; gap: 6px 16px; }
  .fi-alloc .row .l { flex: 1 1 0; }
  .fi-alloc .row .bar { display: flex; order: 3; flex: 1 1 100%; }
  .fi-sec-t { font-size: 20px; }
  .fc-form { padding: 16px; }
  .fc-form-act .btn { flex: 1 1 auto; }
  .fc-back { margin-bottom: -16px; }
  .fc-switch, .fc-switch select, .cl-search, .cl-search input { width: 100%; min-width: 0; }
  .eqf-q { flex-direction: column; }
  .eqf-mv { flex-direction: row; }
}

/* Notes Gemini sous un appel (résumé et prochaines étapes) */
.ai-notes { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--alg-bar); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ai-notes .ai-h { margin: 6px 0 0; font-size: 13px; color: var(--alg-text-2); }
.ai-notes .ai-h:first-child { margin-top: 0; }
.ai-notes .ai-t { margin: 0; color: var(--alg-text); }

/* ---------- Automatisations : invitation Google Agenda, propositions de l'IA ---------- */
/* Date sur toute la largeur, durée et statut côte à côte : le formulaire vit dans la colonne étroite */
.fc-grid3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fc-grid3 > :first-child { grid-column: 1 / -1; }
.fc-agenda { align-items: flex-start; gap: 10px; font-size: 15px; color: var(--alg-text); }
.fc-agenda input { margin-top: 3px; flex: none; }
.fc-agenda > span { display: flex; flex-direction: column; gap: 2px; }
.fc-form input[readonly] { color: var(--alg-text-2); }
.fc-call-inv { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.fc-call-inv svg { width: 14px; height: 14px; flex: none; color: var(--alg-mint); }
.fc-call-ia { margin-bottom: 4px; }

.fc-prop { margin: 8px 0 16px; padding-top: 20px; border-top: 1px solid var(--alg-border-strong); }
.fc-prop-t { margin: 0 0 4px; font-family: var(--alg-font-display); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--alg-text); }
.fc-prop > .ks { margin: 0 0 8px; }
.fc-prop-list { margin: 0 0 16px; padding: 0; list-style: none; }
.fc-prop-it { border-bottom: 1px solid var(--alg-border); }
.fc-prop-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; cursor: pointer; }
.fc-prop-row input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--alg-emerald-bright); }
.fc-prop-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fc-prop-q { color: var(--alg-text); }
.fc-prop-new { padding-left: 10px; border-left: 2px solid var(--alg-bar); color: var(--alg-text); overflow-wrap: anywhere; }
.fc-prop-old { font-size: 14px; color: var(--alg-text-2); overflow-wrap: anywhere; }
.fc-prop-why { font-size: 13px; }

/* ---------- Équipe : tableau en lecture, panneau de modification (retours d'ALG du 20.10) ---------- */
.eq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.eq-head .esp-p { margin: 6px 0 0; }
.eq-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.eq-list { flex: 999 1 620px; min-width: 0; margin: 0; }
.eq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--alg-border-strong); background: transparent; color: var(--alg-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.eq-chip span { color: var(--alg-text-3); font-variant-numeric: tabular-nums; }
.eq-chip[aria-pressed="true"] { border-color: var(--alg-mint); color: var(--alg-text); background: var(--alg-selected, rgba(143,202,168,0.08)); }
.eq-tools .su-search { flex: 0 1 280px; min-width: 200px; }
.eq-tbl { min-width: 560px; }
.eq-tbl .eq-who { font-weight: 400; text-align: left; }
.eq-tbl .eq-who > span { display: block; }
.eq-tbl td { white-space: nowrap; }
.eq-tbl tr.eq-sel td, .eq-tbl tr.eq-sel th { background: var(--alg-selected, rgba(143,202,168,0.08)); }
.badge.eq-b-coach { border-color: transparent; background: rgba(143,202,168,0.14); color: var(--alg-mint); }
.eq-tbl .badge { border-color: transparent; background: var(--alg-surface-2); color: var(--alg-text-2); }
.badge.eq-b-admin { border-color: transparent; background: var(--alg-surface-3); color: var(--alg-text); }
.badge.eq-b-warn { border-color: transparent; background: rgba(217,183,122,0.18); color: var(--alg-gold); }
/* Panneau de modification : un tiroir à droite, toujours à l'écran quelle que soit la largeur */
.eq-panel { position: fixed; z-index: 60; top: 16px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 22px; border-radius: 16px; background: var(--alg-surface); border: 1px solid var(--alg-border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.eq-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.35); border: 0; padding: 0; cursor: default; }
.eqp-head { display: flex; justify-content: space-between; gap: 12px; }
.eqp-head .h3 { margin: 0; font-size: 20px; }
.eqp-head .esp-meta { display: block; }
.eqp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eqp-roles { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.eqp-roles legend { padding: 0; margin-bottom: 6px; }
.eq-radio { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--alg-border); cursor: pointer; }
.eq-radio:has(input:checked) { border-color: var(--alg-mint); background: var(--alg-selected, rgba(143,202,168,0.06)); }
.eq-radio input { margin: 4px 0 0; accent-color: var(--alg-emerald-bright); }
.eq-radio > span, .eqp-switch > span { display: flex; flex-direction: column; }
.eq-radio-t { font-size: 14px; color: var(--alg-text); }
.eqp-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--alg-border); }
.eqp-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.eq-sw { appearance: none; -webkit-appearance: none; margin: 0; position: relative; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 999px; background: var(--alg-surface-3); cursor: pointer; }
.eq-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: var(--alg-text-2); transition: left .15s ease; }
.eq-sw:checked { background: var(--alg-emerald); }
.eq-sw:checked::after { left: 19px; background: #fff; }
.eqp-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .eqp-grid { grid-template-columns: 1fr; } }
/* Modèle de fiche : une rubrique repliable par ligne */
.eqf { border-top: 0; padding-top: 0; }
.eqf-s { padding: 0; }
.eqf-d > summary { list-style: none; }
.eqf-d > summary::-webkit-details-marker { display: none; }
.eqf-sum { display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; font-size: 15px; color: var(--alg-text); }
.eqf-sum::after { content: "›"; margin-left: 4px; color: var(--alg-text-3); transition: transform .15s ease; }
.eqf-d[open] > .eqf-sum::after { transform: rotate(90deg); }
.eqf-n { width: 22px; color: var(--alg-text-3); font-variant-numeric: tabular-nums; }
.eqf-st { flex: 1 1 auto; min-width: 0; }
.eqf-d[open] { padding-bottom: 24px; }

/* ---------- Événements (demande d'ALG du 20.10) ---------- */
#ev-root { display: flex; flex-direction: column; gap: 28px; }
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ev-head .esp-p { margin: 6px 0 0; }
.ev-list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ev-card { display: flex; gap: 20px; align-items: flex-start; margin: 0; }
.ev-past { opacity: .75; }
.ev-date { flex: 0 0 64px; height: 68px; border-radius: 12px; background: var(--alg-surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ev-d { font-family: var(--alg-font-display); font-size: 28px; line-height: 1; color: var(--alg-text); }
.ev-m { font-size: 12px; color: var(--alg-text-2); text-transform: lowercase; }
.ev-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-t { margin: 0; font-family: var(--alg-font-display); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--alg-text); }
.ev-when { margin: 0; color: var(--alg-gold); font-size: 14px; }
.ev-desc { margin: 6px 0 0; color: var(--alg-text-2); max-width: 72ch; overflow-wrap: anywhere; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-admin { flex: none; }
.ev-empty { margin: 10px 0 0; }
.ev-pastbox > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--alg-text-2); }
.ev-form { display: flex; flex-direction: column; gap: 14px; }
.ev-form .h3 { margin: 0; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ev-form-act { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } .ev-card { flex-direction: column; } }

/* Modèle de fiche : menus Type et Rubrique assez larges pour leur texte */
.eqf-kind { flex: 1 1 200px; }
.eqf-sec { flex: 2 1 320px; }
.eqf-help { flex: 3 1 260px; }

/* Formulaire d'appel : la planification d'abord, l'après-appel replié */
.fc-meet-info { margin: -4px 0 0; overflow-wrap: anywhere; }
.fc-after { border-top: 1px solid var(--alg-border); padding-top: 4px; }
.fc-after > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--alg-text-2); font-size: 14px; list-style: none; }
.fc-after > summary::-webkit-details-marker { display: none; }
.fc-after > summary::before { content: "›"; color: var(--alg-text-3); transition: transform .15s ease; }
.fc-after[open] > summary::before { transform: rotate(90deg); }
.fc-after-b { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

/* Recherche juste au-dessus du tableau qu'elle filtre */
.cl-all-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.cl-all-h .h2 { margin: 0; }
.cl-all-h .cl-search input { width: 300px; }
