/* Bodyactive – administration */
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gabarito'; src: url('../fonts/gabarito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F7F4EE;
  --card: #FFFFFF;
  --ink: #23211F;
  --muted: #5C5752;
  --line: #E6DFD3;
  --brand: #2F5D50;
  --brand-ink: #FFFFFF;
  --warn-bg: #FBE3CF;
  --warn-ink: #7A3A0E;
  --ok-bg: #DCEBE3;
  --ok-ink: #1E4A3D;
  --danger: #A3321F;
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Figtree', system-ui, sans-serif; }
a { color: var(--brand); }
h1, h2 { font-family: 'Gabarito', sans-serif; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 28px; margin: 0; }
h2 { font-size: 19px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Structure */
.admin { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: #23211F; color: #EDE8E0; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 0 8px; }
.brand img { background: #fff; border-radius: 50%; }
.brand span { font-family: 'Gabarito', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.1; display: flex; flex-direction: column; }
.brand small { font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 12px; color: #B9B2A8; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .sidebar-foot a { color: #EDE8E0; text-decoration: none; padding: 9px 10px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.sidebar nav a:hover, .sidebar-foot a:hover { background: #34312D; }
.sidebar nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav-group { margin: 14px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #9C958B; }
.count { background: #F6D7C3; color: #23211F; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #3A3632; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot .btn-link { color: #EDE8E0; padding: 9px 10px; text-align: left; width: 100%; }
.who { font-size: 13px; color: #9C958B; margin: 8px 10px 0; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.content { max-width: 1100px; margin: 0 auto; padding: 32px 28px 64px; display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #23211F; color: #fff; position: sticky; top: 0; z-index: 10; }
  .menu-toggle { background: #3A3632; color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600; min-height: 44px; }
  .topbar-title { font-family: 'Gabarito', sans-serif; font-weight: 700; }
  .content { padding: 20px 16px 48px; }
}

/* Éléments */
.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
.page-head p { margin: 4px 0 0; flex-basis: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card.empty { text-align: center; padding: 40px 22px; }
.table-card { padding: 16px 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.help-block { margin: 0; color: var(--muted); max-width: 60em; }
.alert { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: #F7D9D3; color: #7C2416; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #CFC6B8; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #264D42; border-color: #264D42; }
.btn-danger { background: #fff; border-color: #E8B7AD; color: var(--danger); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.actions form { margin: 0; }

.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #EEE8DE; color: var(--ink); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag-danger { background: #F7D9D3; color: #7C2416; }
.details .inline-form { margin-top: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }
.thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td, .table tbody th { padding: 10px; border-bottom: 1px solid #F0EBE3; vertical-align: middle; text-align: left; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.row-actions { text-align: right; width: 1%; white-space: nowrap; }

.session-list, .plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.session-list li.is-cancelled { color: var(--muted); }
.session-list li.is-cancelled strong { text-decoration: line-through; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.message-body { margin-top: 18px; padding: 16px; background: var(--bg); border-radius: 12px; white-space: normal; }

.segmented { display: inline-flex; background: #EEE8DE; border-radius: 999px; padding: 3px; }
.segmented a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.segmented a.active { background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 18px; }
.card.form { gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field legend, .stack label { font-weight: 600; font-size: 15px; }
.field-i18n { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-i18n legend { margin-bottom: 6px; padding: 0; }
.i18n-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.i18n-col { display: flex; flex-direction: column; gap: 6px; background: #FBF9F5; border: 1px solid #EFE9DF; border-radius: 12px; padding: 12px; }
.i18n-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.i18n-head .btn-link { font-size: 13px; }
.lang-tag { display: inline-block; background: var(--ink); color: #fff; border-radius: 6px; font-size: 11px; padding: 1px 6px; margin-right: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #DCD4C7; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
input[type=color] { width: 56px; height: 44px; padding: 3px; border: 1.5px solid #DCD4C7; border-radius: 10px; background: #fff; }
.field-check label, label.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.help { margin: 0; font-size: 14px; color: var(--muted); }
.error { margin: 0; font-size: 14px; color: #A3321F; font-weight: 600; }
.req { color: #A3321F; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); cursor: pointer; }
.image-current { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.image-current img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.danger-zone { display: flex; justify-content: flex-end; }
.hours-table input[type=time] { max-width: 140px; }
.pw-row { display: flex; gap: 10px; }
.pw-row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Listes sur téléphone */
.only-narrow { display: none; }
.mob-label { display: none; }
.tap-list { list-style: none; margin: 0 -8px; padding: 0; }
.tap-list li + li { border-top: 1px solid #F0EBE3; }
.tap-list a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; min-height: 56px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.tap-list a:active { background: #F6F2EC; }
.tap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tap-title { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tap-second { font-weight: 500; }
.tap-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tap-sep { color: #C9C1B4; }
.tap-chev { font-size: 26px; line-height: 1; color: #B9B0A2; }
.tap-list .thumb { width: 56px; height: 40px; }

/* Tableaux simples empilés sur téléphone */
@media (max-width: 640px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .table-card { padding: 14px 16px; }
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr { display: block; width: 100%; }
  .table-stack tr { padding: 10px 0; border-bottom: 1px solid #F0EBE3; }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td, .table-stack tbody th { display: block; padding: 2px 0; border: 0; }
  .table-stack td.muted { font-size: 14px; }
  .hours-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: center; }
  .hours-table tbody th { grid-column: 1 / -1; }
  .hours-table td:last-child { grid-column: 1 / -1; }
  .hours-table input[type=time] { max-width: none; }
  .mob-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
  h1 { font-size: 24px; }
  .page-head .btn-link { order: 3; }
}
/* Cibles tactiles */
.i18n-head .btn-link { padding: 8px 0; }
.field-check label, label.inline { min-height: 44px; }
.swatch { width: 36px; height: 36px; }
.segmented a { padding: 10px 16px; }
.card-head .btn-link, .page-head .btn-link, .form-actions .btn-link { padding: 10px 0; }

/* Connexion */
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.login-box h1 { margin: 0; }
.login-box p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.login-box.wizard { max-width: 520px; }
.wizard-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wizard-group legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.stack label { display: flex; flex-direction: column; gap: 6px; }

/* Choix de la langue de l'admin */
.lang-toggle { display: inline-flex; gap: 2px; background: #34312D; border-radius: 999px; padding: 3px; margin: 0 0 8px 6px; align-self: flex-start; }
.lang-toggle a { padding: 6px 12px !important; border-radius: 999px; font-size: 13px; font-weight: 700; color: #B9B2A8 !important; text-decoration: none; min-height: 0 !important; }
.lang-toggle a.is-current { background: #fff; color: #23211F !important; }
.lang-toggle.is-light { background: #EEE8DE; margin: 0; }
.lang-toggle.is-light a { color: var(--muted) !important; padding: 8px 14px !important; }
.lang-toggle.is-light a.is-current { background: var(--brand); color: #fff !important; }
.login-top { display: flex; justify-content: space-between; align-items: flex-start; }

/* Guide d'utilisation */
.help-link { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-bottom: -6px; }
.help-link span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.help-link:hover { border-color: #CFC6B8; }
.nav-help { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; opacity: .8; }
.welcome-card { background: #EAF2EE; border-color: #CFE2D8; }
.welcome-card h2 { font-size: 22px; }
.welcome-card p + p { margin-top: 12px; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.guide-toc { position: sticky; top: 18px; padding: 18px; }
.guide-toc h2 { font-size: 16px; margin-bottom: 10px; }
.guide-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.guide-toc a { text-decoration: none; color: var(--ink); display: block; padding: 3px 0; }
.guide-toc a:hover { color: var(--brand); text-decoration: underline; }
.guide { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.guide-section { scroll-margin-top: 16px; max-width: 820px; }
.guide-section h2 { font-size: 22px; margin-bottom: 14px; }
.guide-section p { margin: 0 0 12px; }
.guide-section p strong:only-child { display: inline-block; margin-top: 4px; }
.guide-steps, .guide-list { margin: 0 0 14px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.guide-steps > li::marker { font-weight: 700; color: var(--brand); }
.guide-steps ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide-note { background: #FBF3E6; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.guide-section code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: #F2EEE6; padding: 1px 6px; border-radius: 6px; }
.guide-top { display: inline-block; font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .help-link { align-self: stretch; justify-content: center; margin-bottom: 0; }
}
@media (max-width: 860px) { .guide-section, .guide-toc { scroll-margin-top: 80px; } }

[hidden] { display: none !important; }

/* Choix du pictogramme d'un cours */
.field-icons { border: 0; padding: 0; margin: 0; }
.field-icons legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.icon-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line, #DDD5C8); background: #fff; cursor: pointer; text-align: center; font-size: 13px; line-height: 1.2; }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:has(input:checked) { border-color: #2F5D50; box-shadow: 0 0 0 2px #2F5D50; background: #F6FAF8; }
.icon-opt:has(input:focus-visible) { outline: 2px solid #2F5D50; outline-offset: 2px; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: #EDE6DA; display: flex; align-items: center; justify-content: center; }
.icon-none { font-size: 20px; color: #5C5752; }
.icon-svg { width: 34px; height: 34px; fill: none; stroke: #23211F; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-svg .f { fill: #fff; }
.dot-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; margin-right: 10px; vertical-align: middle; }
.dot-icon .icon-svg { width: 22px; height: 22px; stroke-width: 2.6; }

/* Tableau de bord : avant la mise en ligne */
.launch-card { margin-bottom: 20px; border-left: 4px solid #D99A2B; }
.launch-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.launch-list li { display: flex; gap: 10px; align-items: flex-start; }
.launch-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D8D1C4; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.launch-list li.is-done .launch-mark { background: #2F5D50; border-color: #2F5D50; }
.launch-list li.is-done span:not(.launch-mark) { color: #5C5752; text-decoration: line-through; }

/* ---------- Statistiques ---------- */
.week-visits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; text-decoration: none; color: var(--ink); margin-bottom: 18px; }
.week-visits b { font-family: 'Gabarito', sans-serif; font-size: 34px; line-height: 1; }
.week-visits em, .kpi-delta { font-style: normal; font-weight: 700; }
.week-visits em.up, .kpi-delta.up { color: var(--brand); }
.week-visits em.down, .kpi-delta.down { color: var(--muted); }
.week-visits-link { margin-left: auto; color: var(--brand); font-weight: 600; }
.week-visits:hover { border-color: #CFC6B8; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); font-weight: 500; }
.alert-info { background: #EEE8DE; color: var(--ink); font-weight: 400; }
.alert a { color: inherit; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline-form input[type=text] { width: auto; min-width: 180px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.chip:hover { border-color: #CFC6B8; }
.chip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpis > *, .stats-grid > * { min-width: 0; }
.kpi { position: relative; display: grid; gap: 2px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi-val { font-family: 'Gabarito', sans-serif; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; white-space: nowrap; }
.kpi-hint { font-size: 13px; color: var(--muted); }
/* Valeurs longues (« 1 min 45 s ») : plus petites, et à la ligne plutôt que de déborder */
.kpi-val.is-long { font-size: clamp(22px, 1.9vw, 28px); white-space: normal; overflow-wrap: anywhere; }
.kpi-delta { position: absolute; top: 14px; right: 14px; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-sec { font-size: 17px; color: var(--muted); margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1.5px solid var(--line); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-ax { fill: var(--muted); font-size: 12px; font-family: 'Figtree', sans-serif; }
.chart-bar path { fill: var(--brand); transition: fill .12s; }
.chart-bar:hover path { fill: var(--ink); }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); }
.chart-sm { display: none; }
@media (max-width: 700px) { .chart-lg { display: none; } .chart-sm { display: block; } .page-head .chips { width: 100%; } }
.hbars { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.hbars li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 10px; min-width: 0; }
.hbars-bar { position: absolute; inset: 0 auto 0 0; background: #DCEBE3; border-radius: 6px; }
.hbars-label { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars-label a { color: var(--ink); text-decoration: none; }
.hbars-label a:hover { text-decoration: underline; }
.hbars-val { position: relative; flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbars-val small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.trio h3, .card > h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 1000px) { .trio { grid-template-columns: 1fr; gap: 10px; } }
.geo-setup { background: #FBF9F5; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; justify-items: start; }
.geo-setup p { margin: 0; max-width: 760px; }
.geo-setup form, .geo-mini { margin: 0; }
.geo-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-now { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 24px; }
@media (max-width: 900px) { .ex-now { grid-template-columns: 1fr; } }
.ex-box { background: #FBF9F5; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.ex-box form, .ex-box p { margin: 0; }
.ex-ip { font-size: 18px; word-break: break-all; }
.ex-state { font-weight: 600; }
.ex-state.ok::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.ex-table { width: 100%; border-collapse: collapse; }
.ex-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.ex-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ex-table .num { text-align: right; white-space: nowrap; }
.ex-table tr.is-me td { background: #F2F8F5; }
.ex-table form { margin: 0; }
.ex-rename { display: flex; gap: 8px; align-items: center; }
.ex-rename input { margin: 0; min-width: 140px; padding: 6px 9px; min-height: 0; }
.ex-add { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.ex-add label { margin: 0; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 700px) { .ex-add { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px 14px; } .kpi-delta { position: static; justify-self: start; } }
.danger-link { color: var(--danger); }
.table-wrap { overflow-x: auto; }

/* Bandeau du site de test */
.test-banner { background: #A3321F; color: #fff; padding: 10px 20px; font-size: 15px; line-height: 1.45; }
.test-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.login-box .test-banner { border-radius: 12px; margin-bottom: 16px; }

/* Cadrage des photos */
.field-focus .field-label { font-weight: 600; margin: 0 0 6px; }
.focus-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.focus-pick { position: relative; display: inline-block; cursor: crosshair; border-radius: 10px; overflow: hidden; line-height: 0; max-width: 100%; }
.focus-pick:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.focus-pick img { display: block; max-width: min(420px, 100%); max-height: 320px; width: auto; height: auto; }
.focus-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand), 0 2px 8px rgba(0,0,0,.35); background: rgba(47,93,80,.35); pointer-events: none; }
.focus-previews { display: grid; grid-template-columns: auto auto auto; gap: 8px; align-items: end; }
.focus-previews .help, .focus-previews .btn-link { grid-column: 1 / -1; margin: 0; justify-self: start; }
.focus-prev { border-radius: 8px; overflow: hidden; background: #EEE8DE; }
.focus-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-prev.is-wide { width: 128px; height: 72px; }
.focus-prev.is-tall { width: 60px; height: 80px; }
.focus-prev.is-square { width: 72px; height: 72px; }

/* Tableau de bord : à regarder */
.todo-card h2 { margin-bottom: 8px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #F4EFE7; }
.todo-list li.is-warn { background: var(--warn-bg); }
.todo-list a { color: inherit; }
.todo-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: #fff; color: var(--brand); margin-top: 1px; }
.is-warn .todo-mark { color: var(--warn-ink); }

/* Réponses aux messages */
.reply-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reply-list li { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; }
.reply-meta, .reply-subject { margin: 0; }
.reply-subject { font-weight: 600; }
.reply-list details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-top: 4px; }
textarea.reply-body { font-family: inherit; line-height: 1.5; min-height: 320px; }
