/* MEDIA SYSTEM CLOUD MANAGER — feuille de style unique, mobile-first (§38). */
:root {
  --brand: #0b5fff;
  --brand-dark: #0847c2;
  --brand-soft: #e8f0ff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6fa;
  --card: #ffffff;
  --green: #047857; --green-bg: #d1fae5;
  --amber: #92400e; --amber-bg: #fef3c7;
  --red: #b91c1c; --red-bg: #fee2e2;
  --blue: #1d4ed8; --blue-bg: #dbeafe;
  --gray: #4b5563; --gray-bg: #f3f4f6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, .mono { font-family: Consolas, "Courier New", monospace; font-size: .92em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .nowrap { white-space: nowrap; }
.text-right { text-align: right; } .text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* Grilles */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2-1 { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 1.02rem; font-weight: 600; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-title { padding: 16px 20px 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; text-decoration: none !important; line-height: 1.2; white-space: nowrap; background: var(--gray-bg); color: var(--ink); }
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .84rem; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-height: 42px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field { margin-bottom: 14px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: inline; }

/* Alertes */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #a7f3d0; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #fecaca; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #bfdbfe; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #fde68a; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); } .badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); } .badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }

/* Tableaux (défilement horizontal sur mobile) */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 600; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* KPI */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 1.35rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .78rem; color: var(--muted); }
.kpi.warn .value { color: var(--red); }

/* Graphiques SVG */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 10px; fill: var(--muted); font-family: var(--font); }
.bar-list { list-style: none; margin: 0; padding: 0; }
.bar-list li { margin-bottom: 10px; font-size: .88rem; }
.bar-list .bar { height: 8px; background: var(--brand-soft); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.bar-list .bar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* Définitions */
dl.props { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 14px; margin: 0; font-size: .93rem; }
dl.props dt { color: var(--muted); } dl.props dd { margin: 0; word-break: break-word; }

/* En-tête de page */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 150px; flex: 1 1 150px; max-width: 280px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.pagination { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: .88rem; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Messages ticket */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.msg.staff { background: var(--brand-soft); border-color: #c7d7fe; }
.msg.internal { background: var(--amber-bg); border-color: #fde68a; }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.msg .body { white-space: pre-wrap; word-break: break-word; }

/* ───────── Portail public ───────── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none !important; }
.brand img { max-height: 38px; }
.brand .logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.site-nav { display: none; gap: 4px; align-items: center; }
.site-nav a { padding: 8px 12px; color: var(--ink-2); font-weight: 600; border-radius: 8px; font-size: .93rem; text-decoration: none; }
.site-nav a:hover { background: var(--gray-bg); }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 1.1rem; cursor: pointer; }
.site-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 960px) { .site-nav { display: flex; } .nav-toggle { display: none; } }
.cart-count { background: var(--brand); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; margin-left: 4px; }

.hero { background: linear-gradient(135deg, var(--brand) 0%, #0a2e7a 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; font-size: 1.9rem; margin-bottom: .4em; }
.hero p.lead { font-size: 1.08rem; opacity: .92; max-width: 640px; }
@media (min-width: 720px) { .hero h1 { font-size: 2.5rem; } }
.domain-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; max-width: 720px; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin-top: 22px; flex-wrap: wrap; }
.domain-search input { border: 0; font-size: 1.05rem; flex: 1 1 220px; min-width: 0; }
.domain-search input:focus { outline: none; }
.tld-strip { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; opacity: .95; }
.tld-strip b { font-size: 1rem; }
.section { padding: 52px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.plans { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 12px 30px rgba(11,95,255,.14); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h3 { margin-bottom: 2px; }
.plan .price { font-size: 1.9rem; font-weight: 800; margin: 12px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 10px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .95rem; }
.testimonial .who { margin-top: 10px; font-weight: 600; font-size: .88rem; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.site-footer { background: #0b1324; color: #cbd5e1; padding: 40px 0 24px; font-size: .9rem; }
.site-footer a { color: #e2e8f0; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer .copy { border-top: 1px solid #1e293b; margin-top: 24px; padding-top: 16px; font-size: .82rem; color: #94a3b8; }

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.result-row:last-child { border-bottom: 0; }
.result-row .dn { font-weight: 700; font-size: 1.02rem; word-break: break-all; }
.result-row.requested { background: #f8fbff; }
.result-row .price { font-weight: 700; }

.summary-line { display: flex; justify-content: space-between; padding: 6px 0; gap: 10px; }
.summary-total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.auth-box { max-width: 440px; margin: 40px auto; }

/* ───────── Back-office & espace client ───────── */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: #0f172a; color: #cbd5e1; overflow-y: auto; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
.sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
.sidebar .brand { color: #fff; padding: 16px 18px; border-bottom: 1px solid #1e293b; }
.sidebar nav { padding: 10px 8px 30px; }
.sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 14px 12px 6px; font-weight: 700; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #cbd5e1; font-size: .92rem; text-decoration: none; }
.sidebar a:hover { background: #1e293b; color: #fff; }
.sidebar a.active { background: var(--brand); color: #fff; }
.sidebar a .count { margin-left: auto; background: #ef4444; color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 7px; }
.main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 10px; position: sticky; top: 0; z-index: 20; }
.topbar .who { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.content { padding: 20px 16px 40px; max-width: 1280px; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; }
.overlay.open { display: block; }
@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .main { margin-left: 250px; }
  .topbar .nav-toggle { display: none; }
  .content { padding: 24px 28px 48px; }
}
.client-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.client-nav a { padding: 12px 12px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.client-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Impression facture */
.invoice-doc { background: #fff; max-width: 860px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.invoice-doc .head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.invoice-doc h1 { font-size: 1.5rem; }
.stamp { display: inline-block; border: 2px solid; padding: 4px 12px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.stamp.paid { color: var(--green); } .stamp.unpaid { color: var(--red); }
@media print {
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .site-header, .site-footer, .client-nav { display: none !important; }
  .main { margin: 0 !important; } .content { padding: 0 !important; }
  .invoice-doc { border: 0; padding: 0; }
}

/* Petits écrans : en-têtes allégés */
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .site-header .brand span:last-child { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .who { gap: 6px; }
  .page-head h1 { font-size: 1.3rem; }
  .content { padding: 16px 12px 32px; }
}

/* Détail du pack sous une ligne de facture */
.line-detail { font-size: .8rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ───── Facture imprimable (modèle type WHMCS) ───── */
.inv { background: #fff; max-width: 860px; margin: 0 auto; padding: 36px 40px; border: 1px solid var(--line); font-size: 13.5px; color: #333; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.inv-top .brand img { max-height: 60px; }
.inv-status { font-size: 1.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: right; line-height: 1; }
.inv-status.unpaid { color: #cc0000; } .inv-status.paid { color: #779500; } .inv-status.cancelled, .inv-status.refunded, .inv-status.draft { color: #888; }
.inv-status.accepted { color: #779500; }
.inv-title { background: #efefef; border: 1px solid #ddd; padding: 12px 16px; margin-bottom: 22px; }
.inv-title h2 { margin: 0 0 4px; font-size: 1.25rem; color: #333; }
.inv-title .dates { font-size: .9rem; color: #555; }
.inv-parties { display: flex; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.inv-parties > div { flex: 1 1 240px; }
.inv-parties h4 { margin: 0 0 6px; font-size: .95rem; color: #333; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.inv-parties address { font-style: normal; line-height: 1.5; }
.inv table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.inv th { background: #efefef; border: 1px solid #ccc; padding: 8px 10px; text-align: left; font-size: .85rem; }
.inv td { border: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
.inv td.amt, .inv th.amt { text-align: right; white-space: nowrap; width: 160px; }
.inv tr.sum td { background: #f7f7f7; font-weight: 600; text-align: right; }
.inv tr.total td { background: #efefef; font-weight: 800; font-size: 1.05rem; }
.inv h3 { font-size: 1rem; margin: 0 0 8px; color: #333; }
.inv .foot { margin-top: 26px; font-size: .8rem; color: #777; text-align: center; border-top: 1px solid #ddd; padding-top: 10px; }
@media print { .inv { border: 0; padding: 0; max-width: none; } .inv th, .inv tr.sum td, .inv tr.total td, .inv-title { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Illustrations vectorielles (views/illustrations) : couleurs reprises de la marque */
.illu { display: block; width: 100%; height: auto; }
.illu .il-glow { fill: var(--brand-soft); }
.illu .il-soft { fill: var(--brand-soft); }
.illu .il-brand { fill: var(--brand); }
.illu .il-brand-text { fill: var(--brand); }
.illu .il-mid { fill: color-mix(in srgb, var(--brand) 45%, #fff); }
.illu .il-mid-text { fill: color-mix(in srgb, var(--brand) 55%, #fff); }
.illu .il-navy { fill: var(--navy, #0a1a4a); }
.illu .il-navy2 { fill: color-mix(in srgb, var(--navy, #0a1a4a) 80%, #fff); }
.illu .il-stroke, .illu .il-brand-stroke { stroke: var(--brand); }
.illu .il-line { stroke: color-mix(in srgb, var(--brand) 60%, #fff); }
/* Pages de connexion illustrées */
.auth-split { display: grid; gap: 0; max-width: 980px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.auth-split .auth-art { display: none; background: var(--brand-soft); padding: 34px; }
.auth-split .auth-art p { color: var(--ink-2); margin: 10px 0 0; }
.auth-split .auth-form { padding: 32px 28px; }
@media (min-width: 860px) { .auth-split { grid-template-columns: 1.05fr 1fr; } .auth-split .auth-art { display: flex; flex-direction: column; justify-content: center; } }
.auth-box:has(.auth-split) { max-width: 980px; margin-top: 7vh; }
.auth-box .auth-split { margin: 0; }
/* Texte des articles de la base de connaissances (vitrine + aperçu back-office) */
.kb-body { line-height: 1.7; font-size: 1.02rem; }
.kb-body h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.kb-body h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
.kb-body ul, .kb-body ol { padding-left: 1.4em; }
.kb-body li { margin: .3em 0; }
.kb-body code { background: var(--gray-bg); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.kb-body pre { background: #0b1437; color: #e2e8f0; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.kb-body pre code { background: none; padding: 0; color: inherit; }
/* Annonces */
.pin-bar { display: block; text-align: center; background: #f59e0b; color: #1f1400 !important; font-weight: 600; font-size: .9rem; padding: 8px 16px; text-decoration: none !important; }
.pin-bar span { margin-left: 6px; }
.ann-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.ann-item strong { font-size: 1.12rem; }
.ann-item:hover strong { color: var(--brand); }
.ann-date { font-size: .82rem; color: var(--muted); }
/* Statut des services */
.status-banner { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 10px; font-weight: 600; margin: 14px 0 18px; }
.status-banner.st-ok { background: #dcfce7; color: #166534; } .status-banner.st-warn { background: #fef3c7; color: #92400e; }
.status-banner.st-maint { background: #dbeafe; color: #1e40af; } .status-banner.st-down { background: #fee2e2; color: #991b1b; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-pill.st-ok { background: #dcfce7; color: #166534; } .st-pill.st-warn { background: #fef3c7; color: #92400e; }
.st-pill.st-maint { background: #dbeafe; color: #1e40af; } .st-pill.st-down { background: #fee2e2; color: #991b1b; }
.status-issue { border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.status-issue.maintenance { border-left-color: #3b82f6; }
/* Départements (nouveau ticket) */
.dep-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dep-choice { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; }
.dep-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.dep-choice small { display: block; color: var(--muted); }
/* Options configurables (commande) */
.opt-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 640px) { .opt-row { grid-template-columns: 200px 1fr; align-items: center; } .opt-row .check { grid-column: 1 / -1; } }
.opt-name { font-weight: 600; }

.pm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pm-badge { display: inline-flex; border-radius: 6px; overflow: hidden; background: #fff; line-height: 0; box-shadow: 0 0 0 1px #e3e8f4; }
.pm-badge svg { display: block; width: 52px; height: 33px; }

.seo-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.serp { font-family: Arial, sans-serif; max-width: 600px; }
.serp-url { color: #202124; font-size: 13px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 3px 0; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.5; }

/* Bandeau d'aide « Un problème sur votre propre site ? » */
.help-banner { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #0f172a; color: #fff; border-radius: 14px; padding: 22px 26px; }
.help-banner strong { font-size: 1.12rem; }
.help-banner p { margin: 6px 0 0; color: rgba(255,255,255,.82); max-width: 640px; line-height: 1.6; }
.help-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.help-banner .btn { padding: 11px 20px; font-weight: 600; border-radius: 8px; }
.help-banner .help-banner-main { background: #22c55e; color: #052e16 !important; border: 1px solid #22c55e; }
.help-banner .help-banner-main:hover { background: #16a34a; }
.help-banner .help-banner-alt { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.help-banner .help-banner-alt:hover { background: rgba(255,255,255,.1); }
/* Statut : services et disponibilité sur 90 jours */
.st-list { padding: 0; }
.st-row { padding: 16px 18px; border-bottom: 1px solid var(--line, #e5e7eb); }
.st-row:last-child { border-bottom: 0; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-bars { display: flex; gap: 2px; margin-top: 10px; height: 28px; }
.st-bar { flex: 1; border-radius: 2px; background: #22c55e; min-width: 2px; }
.st-bar.is-inc { background: #f59e0b; }
.st-foot { display: flex; justify-content: space-between; margin-top: 4px; }
.st-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .9rem; }
.st-sub .st-pill { padding: 0; }
@media (max-width: 600px) { .st-bars { height: 22px; gap: 1px; } .st-foot span:first-child, .st-foot span:last-child { display: none; } }

/* Sélecteur de langue par drapeaux */
.lang-flags { display: inline-flex; gap: 6px; align-items: center; }
.lang-flag { display: inline-flex; line-height: 0; border-radius: 3px; opacity: .45; filter: grayscale(.6); transition: opacity .15s, filter .15s, transform .15s; outline-offset: 2px; }
.lang-flag svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lang-flag:hover, .lang-flag:focus-visible { opacity: 1; filter: none; transform: translateY(-1px); }
.lang-flag.is-active { opacity: 1; filter: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.lang-cur { margin-left: 8px; opacity: .85; }
