/* =========================================================================
   AXION Family Business — compléments pour la version dynamique (PHP)
   Formulaires, messages, dialogues, back-office, impression.
   S'appuie sur les variables de style.css et espace-client.css.
   ========================================================================= */

/* ---------- Utilitaires ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ec-muted { color: var(--muted); font-size: 12px; }
.ec-sep { margin: 26px 0 22px; border: 0; border-top: 1px solid var(--ec-line); }
.ec-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; font-weight: 700; color: var(--ec-blue); }
.ec-back svg { width: 14px; height: 14px; transition: transform .2s; }
.ec-back:hover svg { transform: translateX(-3px); }
.ec-btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ec-btn-group form { display: inline-flex; }
.ec-btn--sm { height: 34px; padding: 0 14px; gap: 6px; font-size: 11px; }
.ec-btn--sm svg { width: 14px; height: 14px; }
.ec-btn--ghost { background: transparent; border-color: transparent; color: var(--ec-text); }
.ec-btn--ghost:hover { background: #fbeee8; color: var(--ec-red); box-shadow: none; }
.ec-btn--icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ec-ink); }
.ec-btn--icon:hover { background: var(--ec-soft); }
.ec-btn--icon svg { width: 18px; height: 18px; }
.ec-btn:disabled, .ec-btn.is-loading { opacity: .6; pointer-events: none; }
.ec-btn.is-saved { background: var(--ec-beige); border-color: var(--ec-gold); color: var(--ec-gold-dark); }
.ec-tag--gold { background: #f4ecdc; color: var(--ec-gold-dark); }
.ec-tag--red { background: #fbeae2; color: var(--ec-red); }
.ec-tag--blue { background: #e8edf4; color: var(--ec-blue); }
.ec-row.is-unread { background: #f7f9fc; border-color: #dfe6f0; }
.ec-row.is-unread strong { font-weight: 800; }
.ec-row--compact { min-height: 48px; padding: 8px 14px; }
a.ec-row:hover { background: #efeee9; }
.ec-empty.is-visible { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: 1px 5px; border-radius: 3px; background: var(--ec-soft); }

/* ---------- Toast ---------- */
.ec-toast { position: fixed; left: 50%; bottom: 90px; z-index: 300; max-width: min(440px, 90vw); padding: 14px 20px; border-radius: 10px; background: var(--ec-navy); color: #fff; font-size: 13px; line-height: 1.5; text-align: center; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; transition: .3s var(--ease); pointer-events: none; }
.ec-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ec-toast--error { background: var(--ec-red); }

/* ---------- Messages flash ---------- */
.ec-flash { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 14px 16px; border-radius: 8px; border: 1px solid; font-size: 13px; line-height: 1.5; transition: opacity .4s, transform .4s; }
.ec-flash > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ec-flash span { flex: 1; }
.ec-flash button { flex: none; display: flex; padding: 2px; border-radius: 4px; color: inherit; opacity: .7; }
.ec-flash button:hover { opacity: 1; }
.ec-flash button svg { width: 16px; height: 16px; }
.ec-flash--success { background: #eef6ec; border-color: #cfe5cb; color: var(--ec-green-dark); }
.ec-flash--error { background: #fcefe9; border-color: #f2cfbf; color: #8f3d1c; }
.ec-flash--info { background: #eef3f9; border-color: #d3deec; color: var(--ec-blue); }
.ec-flash.is-hiding { opacity: 0; transform: translateY(-6px); }
.auth__inner .ec-flash { margin: 0 0 18px; font-size: 12px; }

/* ---------- Formulaires ---------- */
.ec-form { display: flex; flex-direction: column; gap: 18px; }
.ec-form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.ec-field--full { grid-column: 1 / -1; }
.ec-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ec-field > span { font-size: 11px; font-weight: 700; color: var(--ec-ink); }
.ec-field input:not([type=checkbox]):not([type=radio]):not([type=range]), .ec-field select, .ec-field textarea,
.adm-filters input, .adm-filters select, .adm-transition input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--ec-line); background: #fff;
  font: inherit; font-size: 13px; color: var(--ec-ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.ec-field input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.ec-field input[type=file] { padding: 9px 12px; background: var(--ec-soft); cursor: pointer; }
.ec-field textarea { resize: vertical; line-height: 1.55; }
.ec-field select, .adm-filters select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2318294a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ec-field input:focus, .ec-field select:focus, .ec-field textarea:focus, .adm-filters input:focus, .adm-filters select:focus, .adm-transition input:focus { border-color: var(--ec-blue); box-shadow: 0 0 0 3px rgba(61,94,137,.14); }
.ec-field input[type=range] { accent-color: var(--ec-blue); }
.ec-field output { font-size: 12px; font-weight: 700; color: var(--ec-ink); }
.ec-field input:disabled, .ec-field select:disabled, .ec-field textarea:disabled { background: var(--ec-soft); color: var(--ec-text); }
.ec-check { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.5; color: var(--ec-text); cursor: pointer; }
.ec-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ec-blue); cursor: pointer; }
.ec-fieldset { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px 18px; border: 1px solid var(--ec-line); border-radius: 8px; }
.ec-fieldset legend { padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--ec-ink); }

/* ---------- Boîtes de dialogue ---------- */
.ec-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); margin: auto; padding: 28px; border: 0; border-radius: 10px; background: #fff; color: var(--ec-text); box-shadow: 0 40px 80px -30px rgba(24,41,74,.55); overflow: auto; }
.ec-dialog::backdrop { background: rgba(17,30,52,.55); backdrop-filter: blur(2px); }
.ec-dialog[open] { animation: ec-dlg .25s var(--ease); }
@keyframes ec-dlg { from { opacity: 0; transform: translateY(12px); } }
.ec-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.ec-dialog__head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--ec-ink); }
.ec-dialog__head button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ec-ink); }
.ec-dialog__head button:hover { background: var(--ec-soft); }
.ec-dialog__head svg { width: 18px; height: 18px; }
.ec-dialog__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ec-dialog .ec-form { gap: 16px; }

/* ---------- Sélecteur de famille ---------- */
.ec-family-wrap { position: relative; }
.ec-family:disabled { cursor: default; }
.ec-family svg { transition: transform .2s; }
.ec-family-wrap.is-open .ec-family svg { transform: rotate(180deg); }
.ec-family__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: none; flex-direction: column; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); }
.ec-family-wrap.is-open .ec-family__menu { display: flex; }
.ec-family__menu button { padding: 10px 12px; border-radius: 6px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ec-ink); }
.ec-family__menu button:hover { background: var(--ec-soft); }
.ec-family__menu button[aria-current] { color: var(--ec-blue); background: #eef3f9; }
.ec-notif__empty { padding: 26px 16px; text-align: center; font-size: 12px; color: var(--muted); }
.ec-user .ec-menu form button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }

/* ---------- Mon patrimoine ---------- */
.pt-mass > summary { list-style: none; cursor: pointer; }
.pt-mass > summary::-webkit-details-marker { display: none; }
.pt-mass[open] > summary { background: #efeee9; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pt-mass__list { display: none; flex-direction: column; padding: 4px 16px 10px 70px; border: 1px solid #ecebe8; border-top: 0; border-radius: 0 0 6px 6px; background: #fff; }
.pt-mass[open] .pt-mass__list, .pt-mass__list--open { display: flex; }
.pt-mass__list--open { padding-left: 16px; border-top: 1px solid #ecebe8; border-radius: 6px; margin-top: 12px; }
.pt-mass__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--ec-line); font-size: 12px; color: var(--ec-text); }
.pt-mass__list li:last-child { border-bottom: 0; }
.pt-mass__list li em { font-style: normal; color: var(--muted); }
.pt-mass__list li b { flex: none; font-size: 12px; color: var(--ec-ink); }
.pt-sub { margin-top: 30px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: var(--ec-ink); }
.pt-chart.is-loading svg { opacity: .45; transition: opacity .2s; }
.pt-chart .ec-empty { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.pt-chart .ec-empty.is-visible { display: flex; }
.t-red { color: var(--ec-red); }
.t-green { color: var(--ec-green-dark); }

/* ---------- Valeur créée ---------- */
.ec-year { display: inline-flex; }
.ec-year label { gap: 8px; padding: 0 14px; }
.ec-year select { border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ec-ink); cursor: pointer; outline: none; }
.vc-entry > summary { list-style: none; cursor: pointer; }
.vc-entry > summary::-webkit-details-marker { display: none; }
.vc-entry[open] > summary { background: #efeee9; }
.vc-entry__detail { margin: 6px 0 4px; padding: 14px 18px 14px 70px; font-size: 12px; line-height: 1.6; color: var(--ec-text); }

/* ---------- Académie ---------- */
.ac-hero__bar--light { max-width: 520px; color: var(--ec-ink); }
.ac-hero__bar--light .ec-progress { background: var(--ec-line); }
.ac-modules { display: flex; flex-direction: column; gap: 14px; }
.ac-module { padding: 0; overflow: hidden; }
.ac-module > summary { display: flex; align-items: center; gap: 18px; padding: 20px 24px; list-style: none; cursor: pointer; }
.ac-module > summary::-webkit-details-marker { display: none; }
.ac-module > summary > span:nth-child(2) { flex: 1; }
.ac-module > summary strong { display: block; font-size: 15px; font-weight: 700; color: var(--ec-ink); }
.ac-module > summary small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ac-module > summary > svg { width: 16px; height: 16px; color: var(--ec-ink); transition: transform .25s; }
.ac-module[open] > summary > svg { transform: rotate(180deg); }
.ac-module__n { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ec-soft); font-family: var(--font-serif); font-size: 18px; color: var(--ec-ink); }
.ac-module.is-done .ac-module__n { background: var(--ec-green); color: #fff; }
.ac-module__n svg { width: 16px; height: 16px; }
.ac-module__body { padding: 4px 24px 26px 80px; }
.ac-module__body p { margin-bottom: 14px; font-size: 14px; line-height: 1.7; color: var(--ec-text); }
.ac-module__body form { margin-top: 8px; }
.ac-sim .ec-field { margin-top: 14px; }
.ac-sim__res { margin-top: 18px !important; padding: 14px 16px; border-radius: 6px; background: var(--ec-soft); font-size: 13px !important; line-height: 1.7 !important; }
.ac-sim__res b { color: var(--ec-ink); }

/* ---------- Recommandations ---------- */
.rc-decide { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding: 18px; border-radius: 8px; background: var(--ec-soft); }
.rc-decide__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-history { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-left: 18px; list-style: none; }
.rc-history::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--ec-line); }
.rc-history li { position: relative; font-size: 12px; line-height: 1.5; color: var(--ec-text); }
.rc-history li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ec-gold); border: 2px solid #fff; }
.rc-history b { display: block; font-size: 10px; color: var(--ec-ink); }

/* ---------- Documents / messagerie ---------- */
.dc-thread { max-height: 520px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }

/* ---------- La Boussole : article ---------- */
.bs-article { max-width: 780px; }
.bs-article__band { height: 180px; border-radius: 8px; box-shadow: var(--ec-shadow); }
.bs-article .ec-eyebrow { margin-top: 30px; }
.bs-article h1 { margin-top: 14px; font-family: var(--font-serif); font-weight: 500; font-size: 52px; line-height: 1.02; letter-spacing: -.03em; color: var(--ec-ink); }
.bs-article__lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ec-ink); }
.bs-article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ec-line); font-size: 12px; color: var(--muted); }
.bs-article__actions audio { height: 40px; max-width: 100%; }
.bs-article__body { margin-top: 26px; font-size: 15px; line-height: 1.8; color: var(--ec-text); }
.bs-article__body p { margin-bottom: 16px; }
.bs-article__body h2, .bs-article__body h3 { margin: 28px 0 10px; font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--ec-ink); }
.bs-card [data-save-form] button.is-saved { color: var(--ec-gold-dark); }
.bs-card [data-save-form] button.is-saved svg { fill: currentColor; }

/* ---------- Connexion ---------- */
.auth__resend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; }
.auth__resend .auth__alt { margin-top: 10px; }

/* ---------- Pages d'erreur ---------- */
.err { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; text-align: center; }
.err > a:first-child { margin-bottom: 30px; }
.err h1 { font-family: var(--font-serif); font-weight: 500; font-size: 56px; line-height: 1; color: var(--ec-ink); }
.err p { max-width: 480px; font-size: 14px; line-height: 1.6; color: var(--ec-text); }

/* =========================================================================
   Back-office
   ========================================================================= */
.adm-main { max-width: 1320px; }
.adm-badge { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 12px 14px; border-radius: 6px; background: rgba(201,168,98,.12); border: 1px solid rgba(201,168,98,.3); color: #fff; }
.adm-badge > svg { width: 22px; height: 22px; flex: none; color: var(--ec-gold); }
.adm-badge small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.adm-badge strong { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.ec-nav a { position: relative; }
.adm-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ec-gold); color: var(--ec-ink); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ec--admin .ec-head h1 { font-size: 54px; }

.adm-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.adm-head .ec-muted { margin-top: 6px; }
.adm-fam-head { display: flex; align-items: center; gap: 18px; }
.adm-fam-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--ec-shadow); }
.adm-fam-head h1 { margin-top: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -.03em; color: var(--ec-ink); }
.adm-tabs { display: flex; gap: 6px; margin: 26px 0 28px; padding-bottom: 0; border-bottom: 1px solid var(--ec-line); overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a { position: relative; flex: none; padding: 10px 14px 14px; font-size: 13px; color: var(--ec-text); white-space: nowrap; }
.adm-tabs a:hover { color: var(--ec-ink); }
.adm-tabs a.is-active { color: var(--ec-ink); font-weight: 700; }
.adm-tabs a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ec-gold); }
.adm-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.adm-subtabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--ec-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--ec-ink); }
.adm-subtabs a.is-active { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.adm-stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; transition: transform .2s var(--ease); }
a.adm-stat:hover { transform: translateY(-2px); }
.adm-stat small { font-size: 11px; font-weight: 600; color: var(--ec-text); }
.adm-stat strong { font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ec-ink); }
.adm-stat .adm-stat__sm { font-size: 26px; }
.adm-stat span { font-size: 11px; color: var(--muted); }

.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-filters input, .adm-filters select { width: auto; min-width: 200px; flex: 1 1 200px; }
.adm-filters .ec-btn { height: 44px; border-radius: 6px; }

.adm-table-wrap { padding: 0; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { padding: 14px 18px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fbfaf7; border-bottom: 1px solid var(--ec-line); white-space: nowrap; }
.adm-table td { padding: 14px 18px; vertical-align: middle; color: var(--ec-ink); border-bottom: 1px solid #f0efea; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: #fcfbf8; }
.adm-table td a:not(.ec-btn):not(.ec-tag) { color: var(--ec-ink); }
.adm-table td a:not(.ec-btn):not(.ec-tag):hover { color: var(--ec-blue); text-decoration: underline; }
.adm-table td small { font-size: 11px; }
.adm-actions-col { width: 1%; }
.adm-actions { white-space: nowrap; text-align: right; }
.adm-actions > * { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.adm-swatch { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 3px; border: 1px solid rgba(0,0,0,.1); }
.adm-fam-cell { display: inline-flex; align-items: center; gap: 12px; }
.adm-fam-cell img, .adm-thumb { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.adm-pager { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.adm-form { align-content: start; }
.adm-form__foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.adm-form__foot .ec-check { margin-right: auto; }
.adm-fieldset-plain { margin: 0; padding: 0; border: 0; min-width: 0; }
.adm-fieldset-plain > .ec-form--grid { display: grid; }
.adm-reco { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.adm-side-card { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.adm-side-card .ec-card__eyebrow { margin-bottom: 4px; }
.adm-transition { gap: 8px; margin-top: 6px; }
.adm-perms { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.adm-perms i { font-style: normal; }

.adm-cards { display: flex; flex-direction: column; gap: 16px; }
.adm-msg-card { display: flex; flex-direction: column; gap: 12px; }
.adm-msg-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.adm-msg-card header strong { display: block; font-size: 15px; color: var(--ec-ink); }
.adm-msg-card header span:not(.ec-tag) { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.adm-msg-card header a { color: var(--ec-blue); }
.adm-msg-card > p { font-size: 13px; line-height: 1.65; color: var(--ec-text); }
.adm-msg-card__subject { font-weight: 700; color: var(--ec-ink) !important; }
.adm-msg-card footer { padding-top: 12px; border-top: 1px solid var(--ec-line); }
.adm-small { font-size: 11px !important; }

.adm-thread { margin-top: 22px; gap: 16px; }
.adm-reply { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ec-line); }

/* =========================================================================
   Export imprimable (synthèse patrimoniale)
   ========================================================================= */
.print-doc { background: #f3f2ee; color: #2a3346; }
.print-doc main { max-width: 860px; margin: 40px auto; padding: 56px 60px; background: #fff; box-shadow: 0 30px 60px -40px rgba(24,41,74,.4); }
.print-doc__head { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 2px solid var(--ec-gold, #c9a862); }
.print-doc__head strong { display: block; text-align: right; font-family: var(--font-serif); font-weight: 500; font-size: 30px; color: #18294a; }
.print-doc__head span { display: block; margin-top: 4px; text-align: right; font-size: 12px; color: #6b7384; }
.print-doc__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.print-doc__kpis div { padding: 18px 20px; border-radius: 6px; background: #f6f5f1; }
.print-doc__kpis small { display: block; font-size: 11px; color: #6b7384; }
.print-doc__kpis b { display: block; margin-top: 8px; font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: #18294a; }
.print-doc h2 { margin: 34px 0 12px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: #18294a; }
.print-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
.print-doc th { padding: 10px 12px; text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6b7384; border-bottom: 1px solid #ddd9cf; }
.print-doc td { padding: 10px 12px; border-bottom: 1px solid #eeece6; }
.print-doc td:last-child, .print-doc th:last-child { text-align: right; }
.print-doc__note { margin-top: 34px; padding-top: 18px; border-top: 1px solid #eeece6; font-size: 10px; line-height: 1.6; color: #6b7384; }
.print-doc__actions { margin-top: 26px; text-align: center; }
@media print {
  .print-doc { background: #fff; }
  .print-doc main { margin: 0; padding: 0; box-shadow: none; max-width: none; }
  .print-doc__actions { display: none; }
  .print-doc tr { page-break-inside: avoid; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1199px) {
  .adm-reco { grid-template-columns: 1fr; }
  .adm-side-card { position: static; }
  .ec--admin .ec-head h1 { font-size: 44px; }
}
@media (max-width: 767px) {
  .ec-form--grid { grid-template-columns: 1fr; }
  .ec-dialog { padding: 22px 18px; }
  .ec-dialog__head h2 { font-size: 24px; }
  .adm-fam-head h1 { font-size: 32px; }
  .adm-fam-head img { width: 48px; height: 48px; }
  .adm-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-stat { padding: 16px; }
  .adm-stat strong { font-size: 28px; }
  .adm-filters input, .adm-filters select, .adm-filters .ec-btn { flex: 1 1 100%; min-width: 0; }
  .adm-table th, .adm-table td { padding: 12px 12px; }
  .adm-msg-card header { flex-direction: column; }
  .ec--admin .ec-head h1 { font-size: 36px; }
  .ac-module__body { padding: 0 18px 20px; }
  .ac-module > summary { padding: 16px 18px; gap: 14px; }
  .pt-mass__list { padding-left: 16px; }
  .vc-entry__detail { padding-left: 18px; }
  .bs-article h1 { font-size: 36px; }
  .bs-article__band { height: 120px; }
  .print-doc main { margin: 0; padding: 28px 20px; }
  .print-doc__kpis { grid-template-columns: 1fr; }
  .print-doc__head { flex-direction: column; align-items: flex-start; }
  .print-doc__head strong, .print-doc__head span { text-align: left; }
  .rc-decide__btns .ec-btn { width: 100%; }
}

/* Icônes en ligne dans les textes d'aide */
.ec-muted > svg, .adm-locked svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.adm-locked { display: flex; align-items: center; gap: 8px; }

/* Déconnexion (formulaire POST) dans la barre latérale : même rendu que les liens */
.ec-side__links form { display: flex; }
.ec-side__links form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; font: inherit; font-size: 14px; color: #fff; text-align: left; background: none; border: 0; cursor: pointer; }
.ec-side__links form button:hover { color: var(--ec-gold); }
.ec-side__links form button .rail-label { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  .ec-side__links form button { flex-direction: column; gap: 4px; font-size: 8px; justify-content: center; text-align: center; }
  .ec-side__links form button .full-label { display: none; }
  .ec-side__links form button .rail-label { display: block; }
}
.ec-menu form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--ec-ink); text-align: left; background: none; border: 0; cursor: pointer; }
.ec-menu form button:hover { background: var(--ec-soft); }

/* ---------- Assistant d'installation ---------- */
.inst { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; display: flex; flex-direction: column; gap: 22px; }
.inst__logo { align-self: center; margin-bottom: 10px; }
.inst__card h1 { margin: 10px 0 14px; font-family: var(--font-serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--ec-ink); }
.inst__card > p { margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.inst__pre { margin: 10px 0 14px; padding: 12px 14px; border-radius: 6px; background: var(--ec-navy); color: #fff; font-size: 13px; overflow-x: auto; }
.inst__list { margin: 0 0 14px 18px; list-style: disc; font-size: 14px; line-height: 1.8; }
.inst__checks { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.inst__checks li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; background: var(--ec-soft); font-size: 13px; color: var(--ec-ink); }
.inst__checks svg { width: 16px; height: 16px; }
.inst__checks .is-ok svg { color: var(--ec-green-dark); }
.inst__checks .is-ko { background: #fcefe9; }
.inst__checks .is-ko svg, .inst__checks .is-ko small { color: var(--ec-red); }
.inst__checks small { font-size: 11px; color: var(--muted); text-align: right; }
@media (max-width: 767px) { .inst__checks li { grid-template-columns: 20px 1fr; } .inst__checks small { grid-column: 2; text-align: left; } }
