/* ==========================================================
   Axe Finances — back-office
   ========================================================== */
.admin-shell { display: flex; min-height: 100vh; background: #F4F5F7; font-family: Inter, system-ui, sans-serif; color: #14171C; }
.admin-sidebar { width: 252px; flex: none; background: #0B2545; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 12px 18px; }
.admin-brand > span:last-child { font-size: 10px; letter-spacing: .14em; color: #8FA3BE; padding-left: 2px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 5px; color: #C9D4E3; font-size: 14px; text-decoration: none; }
.admin-nav a .bi { font-size: 17px; width: 18px; text-align: center; opacity: .9; }
.admin-nav a:hover { background: #13315A; color: #fff; }
.admin-nav a.active { background: #13315A; color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #FB8B4F; }
.admin-nav-title { font-size: 11px; color: #8FA3BE; padding: 16px 12px 6px; letter-spacing: .1em; }
.admin-sidebar-foot { margin-top: auto; border-top: 1px solid #1F3E66; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-foot a, .admin-sidebar-foot button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #C9D4E3; font-size: 13px; background: none; border: 0; text-align: left; width: 100%; border-radius: 5px; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { background: #13315A; color: #fff; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: #fff; border-bottom: 1px solid #E3E5E8; position: sticky; top: 0; z-index: 20; }
.admin-avatar { width: 38px; height: 38px; border-radius: 50%; background: #0B2545; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px Inter; }
.admin-content { padding: 24px 28px 48px; }
@media (max-width: 991.98px) {
    .admin-sidebar { position: fixed; left: -270px; z-index: 1050; transition: left .25s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .admin-sidebar.open { left: 0; }
    .admin-content { padding: 16px; }
    .admin-topbar { padding: 10px 16px; }
}
.page-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.page-head h1 { font-family: Inter, sans-serif; font-size: 24px; font-weight: 700; margin: 0; }
.page-head .sub { font-size: 13px; color: #5B6270; }
.acard { background: #fff; border: 1px solid #E3E5E8; border-radius: 8px; }
.acard-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #E3E5E8; }
.acard-head h2, .acard-head .title { font-family: Inter, sans-serif; font-size: 16px; font-weight: 700; margin: 0; }
.acard-body { padding: 18px; }
.kpi { background: #fff; border: 1px solid #E3E5E8; border-radius: 8px; padding: 18px; display: flex; gap: 14px; align-items: center; height: 100%; }
.kpi-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.kpi-label { font-size: 13px; color: #5B6270; }
.kpi-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.ki-navy { background: #EEF2F7; color: #0B2545; } .ki-orange { background: #FFF1EA; color: #C2410C; } .ki-green { background: #E7F5EC; color: #0F7B3F; } .ki-gold { background: #FFF7DB; color: #8A5A00; }
.atable { width: 100%; border-collapse: collapse; }
.atable th { padding: 10px 14px; border-bottom: 1px solid #E3E5E8; font-size: 12px; color: #5B6270; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: #FAFBFC; white-space: nowrap; text-align: left; }
.atable td { padding: 12px 14px; border-bottom: 1px solid #E3E5E8; font-size: 14px; vertical-align: middle; }
.atable tr:hover td { background: #FAFBFC; }
.tg { font: 600 12px Inter; padding: 3px 8px; border-radius: 3px; white-space: nowrap; display: inline-block; }
.tg-free { background: #EEF2F7; color: #0B2545; } .tg-premium { background: #FFF1EA; color: #C2410C; }
.tg-pub { background: #E7F5EC; color: #0F7B3F; } .tg-draft { background: #F4F5F7; color: #5B6270; } .tg-review { background: #FFF7DB; color: #8A5A00; } .tg-sched { background: #EEF2F7; color: #0B2545; }
.atabs { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 600; }
.atabs button { background: none; border: 0; padding: 0 0 6px; border-bottom: 2px solid transparent; color: #14171C; }
.atabs button.active { color: #C2410C; border-bottom-color: #C2410C; }
.atabs .count { color: #5B6270; font-weight: 400; }
.form-label-sm { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.seg { display: grid; border: 1px solid #C9CED6; border-radius: 5px; overflow: hidden; }
.seg button { height: 40px; border: 0; border-right: 1px solid #E3E5E8; background: #fff; font: 700 14px Inter; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: #0B2545; color: #fff; }
.choice { width: 100%; text-align: left; border: 1px solid #E3E5E8; background: #fff; border-radius: 5px; padding: 12px; }
.choice.on { border: 2px solid #0B2545; background: #F4F7FB; }
.choice small { display: block; color: #5B6270; font-size: 12px; }
/* Éditeur */
.editor-title { width: 100%; border: 0; outline: 0; resize: none; font-family: "Source Serif 4", Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.15; }
.editor-lead { width: 100%; border: 0; outline: 0; resize: none; font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.5; color: #2B2F36; }
.editor-kicker { border: 0; outline: 0; font: 700 13px Inter; letter-spacing: .08em; text-transform: uppercase; color: #C2410C; width: 100%; }
#bodyEditor { min-height: 460px; font-family: "Source Serif 4", Georgia, serif; font-size: 18px; }
#bodyEditor .ql-editor { min-height: 460px; line-height: 1.7; }
.ql-toolbar.ql-snow { border-radius: 6px 6px 0 0; position: sticky; top: 63px; background: #fff; z-index: 5; }
.ql-container.ql-snow { border-radius: 0 0 6px 6px; }
.cut-preview { font-family: "Source Serif 4", Georgia, serif; font-size: 13px; color: #2B2F36; }
.cut-preview .p { padding: 6px 0; border-bottom: 1px dashed #E3E5E8; }
.cut-preview .p.hidden { opacity: .4; }
.cut-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.cut-line::before, .cut-line::after { content: ""; flex: 1; border-top: 2px dashed #C2410C; }
.cut-line span { background: #C2410C; color: #fff; font: 700 10px Inter; letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; }
/* Assistant SEO */
.seo-score { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 20px Inter; color: #fff; flex: none; }
.seo-good { background: #0F7B3F; } .seo-mid { background: #D97706; } .seo-bad { background: #B42318; }
.seo-check { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0F1F3; font-size: 13px; }
.seo-check .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 5px; }
.seo-check .dot.Good { background: #0F7B3F; } .seo-check .dot.Warning { background: #D97706; } .seo-check .dot.Bad { background: #B42318; }
.seo-check .adv { color: #5B6270; font-size: 12px; }
.serp { border: 1px solid #E3E5E8; border-radius: 8px; padding: 14px; font-family: Arial, sans-serif; }
.serp .u { font-size: 12px; color: #202124; } .serp .t { font-size: 19px; color: #1a0dab; line-height: 1.3; margin: 4px 0; } .serp .d { font-size: 13px; color: #4d5156; line-height: 1.5; }
.counter { font-size: 11px; color: #5B6270; float: right; }
.counter.warn { color: #D97706; } .counter.bad { color: #B42318; }
.upload-drop { border: 1px dashed #9AA3B0; border-radius: 6px; padding: 14px; display: flex; gap: 12px; align-items: center; font-size: 13px; position: relative; cursor: pointer; }
.upload-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-preview { background: #F4F5F7; border-radius: 6px; padding: 12px; }
.ad-preview .frame { margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #C9CED6; }
.ad-preview .frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
pre.code { background: #0F1720; color: #D6E2F0; border-radius: 6px; padding: 12px; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; margin: 0; }
.slot-row { cursor: pointer; }
.slot-row.sel td { background: #F4F7FB !important; box-shadow: inset 4px 0 0 #C2410C; }
.toast-admin { position: fixed; right: 20px; bottom: 20px; z-index: 3000; }
