:root {
  --bg: #EDEEF1;
  --surface: #FFFFFF;
  --surface-2: #F3F3F6;
  --text: #1D1A22;
  --muted: #6E6A75;
  --border: #E1E2E7;
  --accent: #2D1B30;
  --accent-text: #FFFFFF;
  --danger: #B3261E;
  --ok: #1E7A46;
  --warn: #9A6B00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 27, 22, .06), 0 4px 16px rgba(30, 27, 22, .05);
}
:root { color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* Aucun élément ne doit faire glisser la page de côté sur téléphone. */
body { overflow-x: clip; }
body { font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }

/* En-tête */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.top .row { max-width: 560px; margin: 0 auto; padding: 12px 16px 8px; display: flex; align-items: center; gap: 8px; }
header.top h1 { font-size: 17px; margin: 0; flex: 1; letter-spacing: -.01em; }
.icon-btn { border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); }
.tabs, .chips { max-width: 560px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.tab, .chip { flex: none; border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tabs { gap: 2px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab { border: 0; background: transparent; border-radius: 0; padding: 8px 12px 10px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.chips { padding-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.count { font-size: 11px; background: var(--surface-2); border-radius: 999px; padding: 0 6px; font-weight: 600; }


/* Bandeau d'état des canaux */
.banner { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; }

/* Carte post */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .name { font-weight: 600; font-size: 14px; }
.post-head .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); }
.badge.danger { color: var(--danger); }
.badge.warn { color: var(--warn); }

.slides { position: relative; background: #000; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; display: block; background: var(--surface-2); }
.pager { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.dots { display: flex; justify-content: center; gap: 4px; padding: 10px 0 0; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.dots span.on { background: var(--accent); }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 18px; display: none; }
@media (hover: hover) { .slides:hover .nav-btn { display: block; } }
.nav-btn.prev { left: 10px; } .nav-btn.next { right: 10px; }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 0; }
.thumb { flex: none; width: 64px; text-align: center; }
.thumb img { width: 64px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--border); }
.thumb .ctl { display: flex; justify-content: space-between; margin-top: 4px; }
.thumb button { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; font-size: 12px; padding: 1px 5px; }

.body { padding: 12px 14px 14px; display: grid; gap: 12px; }
label.field { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
label.field .hint { font-weight: 500; text-transform: none; letter-spacing: 0; }
textarea, input[type="text"], input[type="time"], input[type="datetime-local"], input[type="email"], input[type="password"], select {
  width: 100%; border: 1px solid var(--border); background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text);
}
textarea { resize: vertical; min-height: 120px; white-space: pre-wrap; }
textarea.short { min-height: 56px; }
textarea:focus, input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
.meter { font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.meter.over { color: var(--danger); }

.actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.btn { border: 1px solid var(--border); background: var(--surface); padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.reject-box { display: grid; gap: 8px; }

.error-box { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.feedback { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.history { font-size: 12px; color: var(--muted); }
.history summary { cursor: pointer; }
.history li { margin: 2px 0; }

/* Liste compacte (partis / refusés) */
.row-item { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-top: 10px; }
.row-item img { width: 52px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; flex: none; }
.row-item .txt { flex: 1; min-width: 0; }
.row-item .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .s { color: var(--muted); font-size: 12px; }
.row-item .fb { font-size: 12px; margin-top: 2px; }

.empty { text-align: center; color: var(--muted); padding: 60px 16px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* Connexion / réglages */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.card h2 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.login { max-width: 400px; margin: 12vh auto 0; padding: 0 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }

/* Visionneuse plein écran */
#viewer { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.94); display: flex; flex-direction: column; }
#viewer[hidden] { display: none; }
#viewer .vtrack { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
#viewer .vtrack img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
#viewer .vbar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 12px 16px; }
#viewer button { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 30; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Façon Metricool : barre d'outils, calendrier, statistiques ---------- */
.wrap.wide { max-width: 1280px; }
header.top .row, .tabs, .chips { max-width: 1280px; }
.muted { color: var(--muted); font-size: 13px; }
.mc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.mc-btn { height: 44px; padding: 0 18px; border: 1px solid #C9CAD1; background: var(--surface); border-radius: 8px; font-size: 15px; font-weight: 500; }
.mc-btn.icon { width: 48px; padding: 0; font-size: 22px; border: 0; }
.mc-btn.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.mc-range { display: flex; align-items: center; border: 1px solid #C9CAD1; border-radius: 8px; background: var(--surface); height: 44px; overflow: hidden; }
.mc-range-label { position: relative; cursor: pointer; padding: 0 16px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 100%; display: flex; align-items: center; font-size: 15px; white-space: nowrap; }
.mc-info { color: var(--muted); font-size: 14px; }
.mc-tz { margin-left: auto; color: var(--muted); font-size: 14px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-legend i.dashed { border: 1.5px dashed var(--muted); background: transparent; }

.cal-grid-wrap { margin-top: 14px; background: var(--surface); border-radius: 12px; max-height: 72vh; overflow: auto; box-shadow: var(--shadow); }
.tgrid { display: grid; grid-template-columns: 60px repeat(7, minmax(120px, 1fr)); grid-template-rows: 44px calc(var(--hours) * var(--hour)); min-width: 900px; }
.tg-head { position: sticky; top: 0; z-index: 3; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.tg-head.weekend { background: #D9DADF; border-radius: 10px 10px 0 0; }
.tg-head.today { color: var(--accent); font-weight: 700; }
.tg-corner { border-left: 0; }
.tg-hours { display: grid; grid-auto-rows: var(--hour); font-size: 13px; color: var(--muted); }
.tg-hours span { padding: 6px 0 0 8px; border-top: 1px solid var(--border); }
.tg-col { position: relative; border-left: 1px solid var(--border);
  background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px calc(var(--hour) / 2)); }
.tg-col.past { background-color: #F7F7F9; }
.tg-col .slot { position: absolute; left: 4px; right: 4px; margin: 0; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.08); background: var(--surface); }

.slot { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border-radius: 8px; border-left: 4px solid var(--acc); background: var(--surface-2); margin-top: 6px; text-decoration: none; color: inherit; font-size: 12px; line-height: 1.3; overflow: hidden; }
.slot img { width: 38px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; flex: none; }
.slot-txt { min-width: 0; display: block; }
.slot-acc { color: var(--muted); }
.slot-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .badge { display: inline-block; margin-top: 3px; font-size: 10px; padding: 1px 6px; }
.slot.pending { border-left-style: dashed; opacity: .9; }
.slot.published .badge, .slot.scheduled .badge { color: var(--ok); }

.week-list { gap: 10px; margin-top: 14px; }
.day { background: var(--surface); border-radius: 12px; padding: 12px; }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day h3 { margin: 0 0 4px; font-size: 14px; }
.day .none { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.mc-range-label input { position: absolute; inset: 0; opacity: 0; width: 100%; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; cursor: pointer; }
.seg2 { display: inline-flex; border: 1px solid #C9CAD1; border-radius: 8px; overflow: hidden; background: var(--surface); height: 44px; }
.seg2 button { border: 0; background: transparent; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg2 button + button { border-left: 1px solid var(--border); }
.seg2 button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.cal-legend b { color: var(--text); font-weight: 600; }
.week-list { display: grid; }

/* Vue mois */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 780px; }
.mg-head { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: center; font-weight: 500; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mg-head.weekend { background: #D9DADF; }
.mg-cell { min-height: 118px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 5px 6px; display: flex; flex-direction: column; gap: 3px; }
.mg-cell.out { background: #F7F7F9; }
.mg-cell.out .mg-day { color: #B5B3BA; }
.mg-cell.today .mg-day { background: var(--accent); color: var(--accent-text); }
.mg-day { align-self: flex-start; border: 0; background: transparent; font-size: 13px; font-weight: 600; min-width: 26px; height: 26px; border-radius: 13px; padding: 0 6px; }
.mg-day:hover { background: var(--surface-2); }
.mg-head .short { display: none; }
.mslot { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; border-left: 3px solid var(--acc); background: var(--surface-2); color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mslot.pending { border-left-style: dashed; }
.mg-more { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: left; padding: 0 6px; }

@media (max-width: 899px) {
  .mc-tz { margin-left: 0; }
  .mc-btn, .seg2, .mc-range { height: 42px; }
  .mc-btn { padding: 0 12px; font-size: 14px; }
  /* Calendrier sur téléphone : raccourcis, période, puis les deux sélecteurs, chacun sur toute la largeur. */
  .mc-toolbar.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mc-toolbar.cal .mc-range { grid-column: 1 / -1; }
  .mc-toolbar.cal .mc-range-label { flex: 1; min-width: 0; justify-content: center; font-size: 15px; padding: 0 8px; }
  .mc-toolbar.cal .mc-range-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mc-toolbar.cal .seg2 { width: 100%; }
  .mc-toolbar.cal .seg2 button { flex: 1; padding: 0 6px; }
  .mc-toolbar.cal .mc-tz { display: none; }
  .cal-legend { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .cal-legend::-webkit-scrollbar { display: none; }
  .day { padding: 12px 14px; }
  /* Vue mois sur téléphone : 7 colonnes dans la largeur, chaque post devient une pastille à sa couleur. */
  .mgrid { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mg-head { font-size: 12px; padding: 8px 0; }
  .mg-head .long { display: none; }
  .mg-head .short { display: inline; }
  .mg-cell { min-height: 74px; padding: 3px 2px 4px; gap: 2px; }
  .mg-day { font-size: 12px; min-width: 22px; height: 22px; padding: 0 4px; align-self: center; }
  .mslot { padding: 2px 3px; font-size: 10px; border-left-width: 3px; text-align: center; }
  .mslot span { display: none; }
  .mg-more { font-size: 10px; padding: 0; text-align: center; }
}

/* Statistiques */
.mc-title { font-size: 26px; font-weight: 500; margin: 26px 0 0; letter-spacing: -.01em; }
.mc-card { background: var(--surface); border-radius: 14px; padding: 26px 28px; margin-top: 18px; box-shadow: var(--shadow); }
.mc-card h2 { margin: 0; font-size: 22px; font-weight: 500; }
.mc-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--c); border: 0; border-radius: 10px; padding: 14px 10px; text-align: center; color: #241B26; min-height: 104px; display: grid; align-content: center; gap: 2px; transition: box-shadow .15s; }
.tile.on { box-shadow: inset 0 0 0 2px rgba(36, 27, 38, .55); }
.tile b { font-size: 34px; font-weight: 400; line-height: 1.1; }
.tile span { font-size: 15px; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart text { font-size: 13px; fill: var(--muted); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.mc-table-wrap { overflow-x: auto; margin-top: 14px; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mc-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mc-table td.pub a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; max-width: 360px; }
.mc-table td.pub img { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; flex: none; }
.mc-table td.pub span { overflow: hidden; text-overflow: ellipsis; }
.mc-table td.pub i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 899px) {
  .mc-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile.wide { grid-column: 1 / -1; }
  .tile b { font-size: 26px; }
  .tile span { font-size: 13px; }
  .mc-card { padding: 18px 16px; }
}

/* Réponses automatiques */
.hint-line { margin: 0; font-size: 13px; color: var(--muted); }
.section-title { font-size: 15px; margin: 24px 0 0; }

/* Messages privés */
.row-item.conv { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.row-item.conv .s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item.conv .t { display: block; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px 0; }
.msg { align-self: flex-start; max-width: 80%; background: var(--surface-2); border-radius: 16px 16px 16px 4px; padding: 8px 12px; display: grid; gap: 4px; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-radius: 16px 16px 4px 16px; }
.msg a { color: inherit; text-decoration: underline; font-size: 13px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.msg-at { font-size: 11px; opacity: .7; }
.dm-reply { display: grid; gap: 8px; }

/* ---------- Couverture ---------- */
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.cov-card { background: var(--surface); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); border-top: 4px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cov-card.bad { border-top-color: var(--danger, #C0392B); }
.cov-card.warn { border-top-color: #E0A100; }
.cov-card.ok { border-top-color: var(--ok, #2E8B57); }
.cov-head { display: flex; align-items: center; gap: 10px; }
.cov-head .dot { width: 12px; height: 12px; border-radius: 6px; flex: none; }
.cov-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cov-name b, .cov-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov-net { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.net { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.net.tiktok { background: #111; color: #fff; }
.net.instagram { background: #F3E3F0; color: #8A2A7A; }
.net.youtube { background: #FFE5E5; color: #C4161C; }
.cov-big { font-size: 15px; }
.cov-big b { font-size: 22px; }
.cov-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.cov-dl dt { color: var(--muted); }
.cov-dl dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cov-err { font-size: 13px; color: var(--danger, #C0392B); background: #FBEAEA; border-radius: 8px; padding: 6px 8px; }
.cov-pend { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.danger-txt { color: var(--danger, #C0392B); }

/* ---------- Langue et vue par format ---------- */
.langbar { margin: 10px auto 0; max-width: 1280px; display: flex; width: fit-content; height: 36px; }
.langbar button { font-size: 13px; }
.fmt-table th[scope=row] { text-align: left; white-space: nowrap; vertical-align: top; }
.fmt-table td { vertical-align: top; min-width: 260px; }
.fmt-net { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; }
.fmt-net + .fmt-net { border-top: 1px dashed var(--border); }
.fmt-none { color: var(--muted); font-style: italic; font-size: 13px; }

/* ---------- Onglet Formats ---------- */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.fc-card { background: var(--surface); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.fc-card h2 { margin: 0 0 10px; font-size: 16px; }
.fc-halves { display: grid; gap: 8px; }
.fc-half { display: block; text-align: left; border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; min-width: 0; border-top: 3px solid var(--border); }
.fc-half:hover { border-color: var(--text); }
.fc-half.bad { border-top-color: var(--danger); }
.fc-half.warn { border-top-color: #E0A100; }
.fc-half.ok { border-top-color: var(--ok); }
.fc-half.empty-half { cursor: default; border-style: dashed; background: transparent; }
.fc-lang { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-lines { list-style: none; margin: 0; padding: 0; font-size: 12.5px; display: grid; gap: 4px; }
.fc-lines b { font-weight: 600; }
.fc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex: none; }
.fc-dot.bad { background: var(--danger); }
.fc-dot.warn { background: #E0A100; }
.fc-dot.ok { background: var(--ok); }
.fc-foot { font-size: 11.5px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-lines li { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.fc-lines .fc-dot { align-self: center; }
