@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }
/* =========================================================
   PATCOM — Design system. Couleurs de la marque : NOIR et JAUNE (#ffd800, mesuré sur le logo).
   Le thème noir est le thème par défaut (quel que soit le réglage du système) ;
   l'option claire (bouton soleil / lune) garde l'en-tête, le menu et le pied de page noirs.
   ========================================================= */
:root {
  --bg: #000000; --surface: #111111; --surface-2: #171717; --surface-3: #222222; --border: #2a2a2a; --border-strong: #3d3d3d;
  --text: #ffffff; --text-2: #d4d4d4; --muted: #a3a3a3;
  --primary: #ffd800; --primary-600: #e6c200; --primary-soft: rgba(255, 216, 0, .14); --on-primary: #000000;
  --primary-ink: #ffd800; --heading: #ffd800; --accent: #ffe45c;
  --field-bg: #0a0a0a; --field-border: #3d3d3d; --placeholder: #8c8c8c;
  --success: #4ade80; --success-soft: #0f2a1a; --danger: #f87171; --danger-soft: #2e1414; --warning: #fb923c; --warning-soft: #2e1c0c;
  --pending: #fde68a; --pending-soft: #2b2408; --neutral-soft: #262626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .7);
  color-scheme: dark;
  --success-strong: #15803d; --danger-strong: #dc2626; --warning-strong: #c2410c;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 260px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Option claire : contenu clair, texte noir, jaune réservé aux fonds de boutons et aux filets */
:root[data-theme="light"] {
  --bg: #f5f5f4; --surface: #ffffff; --surface-2: #fafaf9; --surface-3: #ededeb; --border: #dcdcd8; --border-strong: #b8b8b3;
  --text: #0a0a0a; --text-2: #404040; --muted: #636363;
  --primary: #ffd800; --primary-600: #f0c800; --primary-soft: #fff3b0; --on-primary: #000000;
  --primary-ink: #6b5200; --heading: #0a0a0a; --accent: #e6c200;
  --field-bg: #ffffff; --field-border: #b8b8b3; --placeholder: #737373;
  --success: #15803d; --success-soft: #dcfce7; --danger: #b91c1c; --danger-soft: #fee2e2; --warning: #c2410c; --warning-soft: #ffedd5;
  --pending: #854d0e; --pending-soft: #fef9c3; --neutral-soft: #e7e7e4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .07); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .22);
  color-scheme: light;
}
/* Zones toujours noires (le logo jaune repose toujours sur du noir), même avec l'option claire */
:root[data-theme="light"] :is(.sidebar, .topbar, .pub-top, .pub-head, .pub-foot, .hero-slider, .page-hero, .cta-band, .stats-band, .art-box, .hero-card, .zone-card > header) {
  --bg: #000000; --surface: #111111; --surface-2: #171717; --surface-3: #222222; --border: #2a2a2a; --border-strong: #3d3d3d;
  --text: #ffffff; --text-2: #d4d4d4; --muted: #a3a3a3;
  --primary: #ffd800; --primary-600: #e6c200; --primary-soft: rgba(255, 216, 0, .14); --on-primary: #000000;
  --primary-ink: #ffd800; --heading: #ffd800; --accent: #ffe45c;
  --field-bg: #0a0a0a; --field-border: #3d3d3d; --placeholder: #8c8c8c;
  --success: #4ade80; --success-soft: #0f2a1a; --danger: #f87171; --danger-soft: #2e1414; --warning: #fb923c; --warning-soft: #2e1c0c;
  --pending: #fde68a; --pending-soft: #2b2408; --neutral-soft: #262626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .7);
  color-scheme: dark;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; }
h1, h2, h3 { color: var(--heading); }
::placeholder { color: var(--placeholder); opacity: 1; }
::selection { background: var(--primary); color: #000; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; overflow: auto; white-space: pre; max-height: 420px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.icon { flex: none; vertical-align: middle; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ---------- Layout ---------- */
.app-body { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: #080808; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand strong { display: block; letter-spacing: .06em; }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--primary); background: #000; border: 1px solid var(--primary); }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav-group { margin-top: 10px; }
.nav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.nav-link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.nav-count { margin-left: auto; min-width: 22px; padding: 0 6px; height: 20px; border-radius: 10px; background: var(--danger-strong); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 700; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--border); }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 0; font-size: .82rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.content { padding: 22px 24px 48px; max-width: 1440px; width: 100%; }
.only-mobile { display: none !important; }
.drawer-backdrop { display: none; }

.icon-btn { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger-strong); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
/* Thème noir (défaut) : icône soleil (.theme-dark) ; option claire : icône lune (.theme-light).
   :root renforce la règle : sans cela « .pub-top span { display: inline-flex } » réaffichait les deux icônes côte à côte. */
:root .theme-light { display: none; }
:root[data-theme="light"] .theme-light { display: inline; } :root[data-theme="light"] .theme-dark { display: none; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.user-meta strong { display: block; font-size: .85rem; line-height: 1.1; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--muted); font-size: .72rem; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); text-decoration: none; }

.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }

/* ---------- Cartes / KPI ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); transition: transform .12s, border-color .12s; }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.tone-primary { background: var(--primary-soft); color: var(--primary-ink); }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-pending { background: var(--pending-soft); color: var(--pending); }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: .8rem; color: var(--muted); }
.kpi-value { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.kpi-hint { font-size: .78rem; color: var(--text-2); }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.stat-list li:last-child { border-bottom: 0; }
.balance { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--heading); }
.hero-card { background: linear-gradient(135deg, #1c1c1c, #050505); color: #fff; border: 1px solid var(--primary); }
.hero-card .muted { color: rgba(255,255,255,.82); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { display: block; font-size: .8rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-pending { background: var(--pending-soft); color: var(--pending); }
.badge-neutral { background: var(--neutral-soft); color: var(--text-2); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--surface-3); color: var(--text); white-space: nowrap; transition: background .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
:root[data-theme="light"] .btn:hover { filter: brightness(.96); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-ink); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-600); filter: none; }
.btn-success { background: var(--success-strong); color: #fff; }
.btn-danger { background: var(--danger-strong); color: #fff; }
.btn-warning { background: var(--warning-strong); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--primary); filter: none; }
.btn-sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.is-disabled, .btn:disabled { opacity: .55; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); border-top-color: transparent; animation: spin .7s linear infinite; }
.btn-primary.is-loading::after { border-color: rgba(0,0,0,.75); border-top-color: transparent; }
.btn-ghost.is-loading::after, .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning).is-loading::after { border-color: var(--primary-ink); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary-ink); border-top-color: transparent; animation: spin .7s linear infinite; vertical-align: middle; }
.inline-form { display: inline; margin: 0; }

/* ---------- Formulaires ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--text-2); }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 10px; padding: 9px 12px; min-height: 40px; }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input[type="file"] { padding: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.section-title { margin-top: 1.4rem; font-size: .95rem; color: var(--text-2); }

/* ---------- Alertes / toasts ---------- */
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; border: 1px solid transparent; font-size: .9rem; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-danger, .alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--primary-soft); color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.toast-stack { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); box-shadow: var(--shadow-lg); animation: toastIn .25s ease-out; }
.toast-success { border-left-color: var(--success); } .toast-danger, .toast-error { border-left-color: var(--danger); } .toast-warning { border-left-color: var(--warning); }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Modales ---------- */
dialog.modal { border: 1px solid var(--border); border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal-sm { width: min(420px, calc(100vw - 24px)); }
dialog.modal-lg { width: min(900px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: toastIn .18s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 18px 20px; overflow: auto; max-height: calc(100vh - 200px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 18px; scrollbar-width: thin; }
.tab { padding: 10px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--heading); border-bottom-color: var(--primary); }

/* ---------- Divers ---------- */
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .icon { opacity: .5; margin-bottom: 6px; }
.empty p { margin: 0; }
.chart { width: 100%; height: auto; }
.chart-grid { stroke: var(--border); stroke-dasharray: 4 4; }
.chart-bar { fill: var(--primary); opacity: .9; }
.chart-bar:hover { opacity: 1; fill: var(--accent); }
.chart-label { fill: var(--muted); font-size: 12px; }
.chart-value { fill: var(--text-2); font-size: 11px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.progress.warn > span { background: var(--warning); } .progress.danger > span { background: var(--danger); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: .82rem; background: var(--surface); }
.chip.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip:hover { text-decoration: none; border-color: var(--primary); }
.notice-external { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--pending-soft); color: var(--text); border: 1px dashed var(--pending); font-size: .88rem; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); max-width: 92%; }
.msg.mine { align-self: flex-end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.msg.internal { border-style: dashed; border-color: var(--warning); background: var(--warning-soft); }
.msg-head { display: flex; gap: 8px; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.msg-body { white-space: pre-wrap; word-break: break-word; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4/3; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body form { margin-top: auto; display: flex; gap: 6px; }
.product-body form input { width: 76px; }
.price { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: inline-grid; place-items: center; }
.copy-box { position: relative; }
.copy-box .btn { position: absolute; top: 8px; right: 8px; }
.list-plain { margin: 0; padding-left: 18px; }
.live-status[data-state="loading"]::after { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary-ink); border-top-color: transparent; animation: spin .7s linear infinite; margin-left: 6px; vertical-align: middle; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1000px 500px at 10% -10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent), radial-gradient(800px 400px at 110% 110%, color-mix(in srgb, var(--primary) 8%, transparent), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.auth-wide { width: min(680px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; letter-spacing: .06em; }
.error-code { font-size: 3rem; margin: 0; color: var(--heading); }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 640px) { .checklist li { grid-template-columns: 20px 1fr; } .checklist li small { grid-column: 2; } }
.checklist li.ok .icon { color: var(--success); } .checklist li.ko .icon { color: var(--danger); } .checklist li.ko { background: var(--danger-soft); }

/* ---------- Impression vouchers ---------- */
.voucher-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.voucher { border: 1.5px dashed #737373; border-radius: 10px; padding: 10px; background: #fff; color: #000; break-inside: avoid; }
.voucher-title { font-weight: 800; font-size: .85rem; display: flex; justify-content: space-between; }
.voucher-code { font-family: var(--mono); font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; margin: 6px 0; }
.voucher-meta { font-size: .72rem; color: #404040; }
.voucher-brand { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 12px; background: #fff; color: #000; border-radius: 10px; border-bottom: 3px solid #ffd800; }
.voucher-brand img { display: block; height: 46px; width: auto; }
.voucher-brand strong { display: block; font-size: 1rem; } .voucher-brand small { color: #404040; }
@media print {
  .sidebar, .topbar, .page-actions, .no-print, .toast-stack { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #f2f2f2; --border: #bdbdbd; --text: #000; --text-2: #222; --muted: #404040; --heading: #000; --primary-ink: #000; color-scheme: light; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; background: #fff; }
  .voucher, .voucher-brand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .voucher-sheet { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-grid !important; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 40px; }
  .grid-2, .grid-3, .grid-main { grid-template-columns: minmax(0, 1fr); }
  .card-body .btn { white-space: normal; text-align: center; }
  .alert { overflow-wrap: anywhere; }
  .user-meta { display: none; }
  .voucher-sheet { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .kpi-value { font-size: 1.1rem; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .toolbar > * { flex: 1 1 100%; }
  /* Tables → cartes empilées */
  table.table.stack thead { display: none; }
  table.table.stack, table.table.stack tbody, table.table.stack tr, table.table.stack td { display: block; width: 100%; }
  table.table.stack tr { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  table.table.stack td { border: 0; padding: 5px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .78rem; text-align: left; }
  table.table.stack td.actions { justify-content: flex-end; }
  table.table.stack td.actions::before { content: none; }
  .topbar-title h1 { font-size: 1rem; }
}

/* Onglets connexion / inscription */
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; margin-bottom: 18px; }
.auth-switch a, .auth-switch span { text-align: center; padding: 9px 10px; border-radius: 9px; font-weight: 700; color: var(--text-2); }
.auth-switch a:hover { text-decoration: none; color: var(--text); }
.auth-switch .active { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.auth-brand .brand { color: var(--text); }
.auth-brand .brand:hover { text-decoration: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .hide-xs { display: none !important; } }

/* =========================================================
   SITE PUBLIC — style « entreprise IT » (topbar, slider, sections)
   ========================================================= */
/* --blue / .btn-pub.blue : noms historiques conservés (classes utilisées dans les vues) — la valeur est le JAUNE de la marque */
.pub { --navy: #000000; --navy-2: #141414; --blue: var(--primary); --blue-2: var(--primary-600); background: var(--bg); color: var(--text); font-size: 15px; }
:root[data-theme="light"] .pub { background: #ffffff; }
.pub .wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.pub a:hover { text-decoration: none; }
.pub-top { background: #000; color: #d4d4d4; font-size: .82rem; border-bottom: 1px solid #222; }
.pub-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.pub-top a, .pub-top span { color: #d4d4d4; display: inline-flex; gap: 6px; align-items: center; }
.pub-top a:hover { color: var(--primary); }
.pub-top .left, .pub-top .right { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pub-top .soc { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); justify-content: center; }
.pub-top .soc:hover { background: var(--primary); color: #000; }
.pub-head { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #2a2a2a; }
.pub-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.pub-logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.pub-logo .logo-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.pub-logo strong { display: block; font-size: 1.3rem; letter-spacing: .04em; line-height: 1; }
.pub-logo small { color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.pub-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pub-nav > a, .pub-nav .dd > button { white-space: nowrap; padding: 28px 8px; color: var(--text); font-weight: 600; font-size: .92rem; background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 4px; }
.pub-nav > a::after, .pub-nav .dd > button::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 20px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.pub-nav > a:hover, .pub-nav > a.on, .pub-nav .dd:hover > button { color: var(--blue); }
.pub-nav > a:hover::after, .pub-nav > a.on::after, .pub-nav .dd:hover > button::after { transform: scaleX(1); }
.pub-nav .dd { position: relative; }
.pub-nav .dd-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--surface); border-top: 3px solid var(--blue); box-shadow: 0 18px 40px rgba(0,0,0,.6); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 60; }
.pub-nav .dd:hover .dd-menu, .pub-nav .dd:focus-within .dd-menu, .pub-nav .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.pub-nav .dd-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 20px; color: var(--text); font-weight: 500; font-size: .9rem; }
.pub-nav .dd-menu a:hover { background: var(--primary-soft); color: var(--blue); padding-left: 24px; }
.pub-cta { display: flex; gap: 8px; align-items: center; }
.pub-burger { display: none; }
.btn-pub { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: .92rem; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-pub.blue { background: var(--blue); color: var(--on-primary); }
.btn-pub.blue:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,216,0,.22); }
.btn-pub.line { border-color: var(--blue); color: var(--text); background: transparent; }
.btn-pub.line:hover { background: var(--blue); color: var(--on-primary); }
.btn-pub.white { border-color: #fff; color: #fff; background: transparent; }
.btn-pub.white:hover { background: #fff; color: #000; }
.btn-pub.sm { padding: 9px 16px; font-size: .85rem; }

/* Slider */
.hero-slider { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: 580px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; background: radial-gradient(900px 500px at 85% 20%, rgba(255,216,0,.13), transparent 60%), radial-gradient(700px 500px at 10% 110%, rgba(255,216,0,.06), transparent 60%), linear-gradient(120deg, #000 0%, #121212 60%, #000 100%); background-size: cover; background-position: center; }
.slide.on { opacity: 1; visibility: visible; position: relative; min-height: 580px; }
.slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.35) 100%); }
.slide .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 0; }
.slide-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px; background: rgba(255,216,0,.12); border: 1px solid rgba(255,216,0,.55); color: #ffd800; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.slide h1 { color: #ffd800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 20px 0 16px; font-weight: 800; letter-spacing: -.01em; }
.slide p { color: #e5e5e5; font-size: 1.08rem; max-width: 560px; }
.slide .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.slide.on .slide-anim { animation: slideUp .8s ease both; }
.slide.on .slide-anim:nth-child(2) { animation-delay: .1s; } .slide.on .slide-anim:nth-child(3) { animation-delay: .2s; } .slide.on .slide-anim:nth-child(4) { animation-delay: .3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.slide-art { display: grid; place-items: center; }
.slide-art svg { width: min(420px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
/* Emblème « WiFi zone » (logo du produit, fourni par PATCOM) dans les emplacements d'illustration */
.slide-art img.art-wifi-zone, .art-box > img.art-wifi-zone { width: min(440px, 100%); height: auto; display: block; }
.wz-emblem { display: inline-block; line-height: 0; background: #000; border-radius: 14px; padding: 12px 22px; }
.wz-emblem img { display: block; height: 84px; width: auto; max-width: 100%; }
.wz-emblem.sm img { height: 60px; }
.empty .wz-emblem { margin-bottom: 10px; }
.slider-nav { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slider-nav button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: .25s; padding: 0; }
.slider-nav button.on { width: 34px; background: var(--blue); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.3rem; }
.slider-arrow:hover { background: var(--blue); border-color: var(--blue); color: #000; }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }

/* Sections */
.sec { padding: 90px 0; }
.sec.alt { background: #0b0b0b; border-block: 1px solid #1c1c1c; }
:root[data-theme="light"] .sec.alt { background: #f5f5f4; border-color: #e7e7e4; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.sec-head.left { text-align: left; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.kicker::before, .sec-head:not(.left) .kicker::after { content: ""; width: 30px; height: 2px; background: var(--blue); }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; margin: 12px 0 14px; font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.grid-3p { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.svc { position: relative; background: var(--surface); border-radius: 10px; padding: 38px 28px 30px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: .3s; overflow: hidden; display: flex; flex-direction: column; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.svc:hover::before { transform: scaleX(1); }
.svc-ic { width: 70px; height: 70px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 24px; transition: .3s; }
.svc:hover .svc-ic { background: var(--blue); color: #000; }
.svc h3 { font-size: 1.2rem; margin-bottom: 6px; }
.svc .sub { color: var(--primary-ink); font-weight: 600; font-size: .82rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: .93rem; }
.svc .more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--primary-ink); font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.art-box { position: relative; border-radius: 16px; background: radial-gradient(420px 300px at 80% 10%, rgba(255,216,0,.12), transparent 70%), linear-gradient(140deg, #050505, #1a1a1a); border: 1px solid #2a2a2a; padding: 40px; color: #fff; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.art-box > svg { width: 100%; max-width: 440px; height: auto; }
.art-badge { display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 24px; bottom: 24px; background: var(--blue); color: #000; border-radius: 10px; padding: 14px 18px; font-weight: 700; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.sol-list { display: grid; gap: 18px; margin-top: 26px; }
.sol { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); transition: .25s; }
.sol:hover { border-color: var(--blue); box-shadow: 0 12px 30px rgba(255,216,0,.08); }
.sol .n { width: 56px; height: 56px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; }
.sol h4 { margin: 2px 0 4px; font-size: 1.02rem; } .sol p { margin: 0; color: var(--muted); font-size: .9rem; }
.stats-band { background: #0b0b0b; border-block: 2px solid #ffd800; color: #fff; padding: 56px 0; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band strong { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: #ffd800; }
.stats-band span { color: #fff; font-weight: 500; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 36px 30px; text-align: center; box-shadow: var(--shadow); position: relative; transition: .3s; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); }
.price-card.hot { border: 2px solid var(--blue); box-shadow: 0 22px 50px rgba(255,216,0,.12); }
.price-card .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #000; padding: 5px 16px; border-radius: 30px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.price-card h3 { font-size: 1.15rem; }
.price-card .amount { font-size: 2.4rem; font-weight: 800; color: var(--heading); margin: 10px 0 2px; line-height: 1.1; }
.price-card .per { color: var(--muted); font-size: .88rem; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: .92rem; }
.price-card li .icon { color: var(--success); }
.price-card .btn-pub { margin-top: auto; }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.brand-tile { height: 96px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; padding: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; transition: .25s; filter: grayscale(1); }
.brand-tile:hover { filter: none; color: var(--primary-ink); border-color: var(--blue); }
.brand-tile img { max-width: 100%; max-height: 60px; object-fit: contain; }
.team-card { text-align: center; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.team-card .ph { aspect-ratio: 1/1; background: linear-gradient(140deg, #1f1f1f, #000); display: grid; place-items: center; color: #ffd800; font-size: 3rem; font-weight: 800; }
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.team-card .bd { padding: 18px; } .team-card h4 { margin: 0 0 4px; } .team-card p { margin: 0; color: var(--primary-ink); font-weight: 600; font-size: .86rem; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; }
.faq details[open] summary { color: var(--heading); } .faq details[open] summary::after { content: "−"; background: var(--blue); color: #000; }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); }
.post-card { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .3s; color: var(--text); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.post-cover { aspect-ratio: 16/10; background: linear-gradient(140deg, #1f1f1f, #000); display: grid; place-items: center; color: #ffd800; position: relative; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .date { position: absolute; left: 16px; bottom: -16px; background: var(--blue); color: #000; border-radius: 6px; padding: 6px 12px; font-size: .78rem; font-weight: 700; }
.post-body { padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body .cat { color: var(--primary-ink); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.post-body h3 { font-size: 1.08rem; line-height: 1.4; margin: 0; }
.post-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.post-body .more { margin-top: auto; color: var(--primary-ink); font-weight: 700; font-size: .86rem; }
.testi { background: var(--surface); border-radius: 12px; padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.testi::before { content: "“"; position: absolute; right: 22px; top: 6px; font-size: 5rem; color: var(--primary-soft); font-family: Georgia, serif; line-height: 1; }
.testi .stars { color: #f5a524; letter-spacing: 2px; margin-bottom: 12px; }
.testi p { color: var(--text-2); font-style: italic; }
.testi .who { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.testi .av { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #000; display: grid; place-items: center; font-weight: 700; }
.testi .who small { display: block; color: var(--muted); }
.cta-band { background: radial-gradient(700px 300px at 90% 50%, rgba(255,216,0,.16), transparent), #0b0b0b; border-block: 1px solid #2a2a2a; color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); } .cta-band p { margin: 0; color: #e5e5e5; }
.page-hero { background: radial-gradient(800px 300px at 90% 0%, rgba(255,216,0,.14), transparent), linear-gradient(120deg, #000, #141414); border-bottom: 1px solid #2a2a2a; color: #fff; padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 10px; }
.crumbs { color: #d4d4d4; font-size: .9rem; } .crumbs a { color: #fff; } .crumbs span { margin: 0 8px; }
.pub-foot { background: #000; border-top: 1px solid #2a2a2a; color: #d4d4d4; padding-top: 70px; font-size: .92rem; }
.pub-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.pub-foot h4 { color: #ffd800; font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.pub-foot h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--blue); }
.pub-foot a { color: #d4d4d4; } .pub-foot a:hover { color: #ffd800; }
.pub-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pub-foot li { display: flex; gap: 10px; align-items: flex-start; }
.pub-foot .pub-logo { color: #fff; margin-bottom: 16px; } .pub-foot .pub-logo small { color: #a3a3a3; }
.pub-foot .bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.pub-foot .socs { display: flex; gap: 10px; margin-top: 18px; }
.pub-foot .socs a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.pub-foot .socs a:hover { background: var(--blue); color: #000; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45); }
.wa-float:hover { transform: scale(1.06); }
.to-top { position: fixed; right: 20px; bottom: 88px; z-index: 70; width: 44px; height: 44px; border-radius: 8px; background: var(--blue); color: #000; border: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: .25s; }
.to-top.show { opacity: 1; visibility: visible; }
.article { max-width: 820px; margin: 0 auto; font-size: 1.02rem; line-height: 1.8; }
.article h3 { margin-top: 1.6em; } .article ul { padding-left: 22px; }
.article .cover { border-radius: 14px; overflow: hidden; margin-bottom: 28px; } .article .cover img { width: 100%; display: block; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.info-card { display: flex; gap: 16px; padding: 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; }
.info-card .svc-ic { width: 56px; height: 56px; margin: 0; flex: none; }
.info-card h4 { margin: 0 0 4px; } .info-card p { margin: 0; color: var(--muted); }
.zone-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.zone-card header { padding: 20px 22px; background: linear-gradient(120deg, #000, #1c1c1c); border-bottom: 2px solid #ffd800; color: #fff; }
.zone-card header h3 { margin: 0; } .zone-card header small { color: #d4d4d4; }
.tarif { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--border); }
.tarif strong { display: block; } .tarif small { color: var(--muted); }
.tarif .p { font-weight: 800; color: var(--heading); font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1260px) {
  .pub-burger { display: inline-grid; margin-left: auto; }
  .pub-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: #0a0a0a; border-left: 1px solid #2a2a2a; flex-direction: column; align-items: stretch; padding: 80px 18px 24px; gap: 0; transform: translateX(100%); transition: transform .25s; box-shadow: -20px 0 50px rgba(0,0,0,.2); overflow-y: auto; z-index: 80; margin: 0; }
  body.nav-open .pub-nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 75; }
  body.nav-open .pub-head { z-index: 90; }
  body.nav-open { overflow: hidden; }
  .pub-nav > a, .pub-nav .dd > button { padding: 14px 8px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .pub-nav > a::after, .pub-nav .dd > button::after { display: none; }
  .pub-nav .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 8px 8px; }
  .pub-nav .dd.open .dd-menu { display: block; }
  .pub-nav .pub-cta { margin-top: 18px; flex-direction: column; align-items: stretch; }
  .pub-nav-close { position: absolute; top: 18px; right: 18px; }
  .pub-head .pub-cta.desk { display: none; }
}
@media (max-width: 980px) {
  .slide .wrap, .split { grid-template-columns: 1fr; }
  .slide-art { display: none; }
  .grid-3p { grid-template-columns: 1fr 1fr; }
  .stats-band .wrap { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
  .hero-slider, .slide.on { min-height: 520px; }
  .slider-arrow { display: none; }
}
@media (min-width: 1261px) { .pub-nav-close, .pub-nav .pub-cta.mob { display: none; } }
@media (max-width: 620px) {
  .grid-4, .grid-3p, .pub-foot .cols { grid-template-columns: 1fr; }
  .pub-top .left span.hide-sm { display: none; }
  .pub-head .wrap { min-height: 66px; }
  .pub-logo small { display: none; }
  .art-box { min-height: 300px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .slide, .svc, .post-card, .price-card { transition: none; } .slide.on .slide-anim { animation: none; } }

.pub-logo .logo-mark { flex: none; }
.pub-logo small, .pub-logo strong { white-space: nowrap; }

.pub-head .pub-logo small { display: none; }

/* ---------- Actualisation automatique (pages live) ---------- */
.live-bar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; flex-wrap: wrap; }
.live-bar .btn { padding: 3px 10px; font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: livePulse 2s infinite; }
.live-paused .live-dot { background: var(--muted); animation: none; }
.live-loading .live-dot { background: var(--primary-ink); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- Tutoriels intégrés (aide contextuelle + guide) ---------- */
.help-summary { font-size: 1rem; color: var(--text-2, inherit); margin: 0 0 14px; }
.help-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.help-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; }
.help-steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.help-steps li strong { grid-column: 2; }
.help-steps li span { grid-column: 2; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.help-tips { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.help-tips ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.guide-toc { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow: auto; }
.guide-toc nav { display: grid; gap: 2px; }
.guide-toc a { padding: 5px 8px; border-radius: 8px; font-size: .88rem; color: inherit; text-decoration: none; }
.guide-toc a:hover { background: var(--surface-2); color: var(--primary-ink); }
.guide-toc-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin: 12px 8px 2px; }
.guide-main { display: grid; gap: 14px; min-width: 0; }
.guide-main section { scroll-margin-top: 80px; }
.guide-section { font-size: 1.05rem; margin: 14px 0 0; }
.guide-faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide-toc { position: static; max-height: none; } }

/* ---------- Logo PATCOM (image jaune, toujours posée sur du noir) ----------
   logo.png : version compacte (en-têtes) ; logo-full.png : avec la signature « Le support de toute technologie » ;
   logo-mark.png : symbole sur carré noir (nom de société personnalisé). */
.logo-img { display: inline-flex; flex: none; align-items: center; line-height: 0; --logo-h: 36px; }
.logo-img img { display: block; height: var(--logo-h); width: auto; max-width: none; }
.brand .logo-img-word { --logo-h: 36px; }
.sidebar-head .brand { min-height: 40px; min-width: 0; }
.brand:has(.logo-img-word) { gap: 8px; }
.brand .logo-img-mark, .auth-brand .logo-img-mark { --logo-h: 36px; }
.auth-brand .logo-img-word { --logo-h: 92px; }
.brand .logo-img-word + span small { font-size: .72rem; padding-left: 8px; border-left: 1px solid var(--border); white-space: nowrap; }
.pub-logo .logo-img { --logo-h: 50px; }
.pub-foot .pub-logo .logo-img-word { --logo-h: 104px; }
.pub-foot .pub-logo:has(.logo-img-word) { flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 620px) { .pub-head .pub-logo .logo-img { --logo-h: 42px; } }
/* Option claire : sur une surface claire (carte de connexion, erreurs), le logo reçoit son cartouche noir */
:root[data-theme="light"] .auth-brand .logo-img-word { background: #000; border-radius: 12px; padding: 10px 16px; }
:root[data-theme="light"] .topbar { background: rgba(0, 0, 0, .94); border-bottom-color: #2a2a2a; }

/* ---- Accueil : carrousel « Nos produits » (défilement continu type marquee) ---- */
.pmq { position: relative; }
.pmq-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.pmq-viewport.dragging { cursor: grabbing; }
.pmq-track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.pmq-card { flex: 0 0 250px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; user-select: none; }
.pmq-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 16px 34px rgba(255,216,0,.12); }
.pmq-img { position: relative; aspect-ratio: 4/3; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.pmq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; pointer-events: none; }
.pmq-card:hover .pmq-img img { transform: scale(1.06); }
.pmq-tag { position: absolute; top: 10px; left: 10px; background: var(--blue); color: #000; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.pmq-tag.out { background: #3a3a3a; color: #fff; }
.pmq-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pmq-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pmq-body h3 { font-size: 1rem; margin: 0; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pmq-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.pmq-foot strong { color: var(--heading); font-size: 1.08rem; white-space: nowrap; }
.pmq-foot form { margin: 0; }
.pmq-na { font-size: .8rem; color: var(--muted); }
.pmq-arrow { position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.pmq-arrow:hover { background: var(--blue); border-color: var(--blue); color: #000; }
.pmq-arrow.prev { left: -8px; } .pmq-arrow.next { right: -8px; }
@media (max-width: 640px) { .pmq-card { flex-basis: 210px; } .pmq-arrow { width: 38px; height: 38px; } .pmq-arrow.prev { left: 0; } .pmq-arrow.next { right: 0; } }

/* ---- Formations : compte à rebours et vidéos ---- */
.fm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fm-title { margin: 4px 0 6px; font-size: 1.05rem; }
.fm-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.fm-count-label { color: var(--muted); font-size: .85rem; }
.fm-count-value { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--heading); }
.fm-count.live { border-color: var(--success, #2fbf71); } .fm-count.ended { opacity: .7; }
.fm-lock { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fm-video { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; margin-top: 10px; }
.fm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fm-video-file { width: 100%; border-radius: 10px; margin-top: 10px; background: #000; }
.fm-videolock { display: grid; place-items: center; gap: 8px; aspect-ratio: 16/9; border-radius: 10px; margin-top: 10px; background: var(--surface-3); color: var(--muted); border: 1px dashed var(--border); }

/* ---- Revenus : barres jour par jour ---- */
.kpi4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi4 { grid-template-columns: 1fr; } }
label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.rev-days { display: grid; gap: 6px; }
.rev-day { display: grid; grid-template-columns: 90px 1fr 130px; align-items: center; gap: 10px; font-size: .9rem; }
.rev-date { color: var(--muted); }
.rev-bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.rev-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; min-width: 2px; }
.rev-bar > span.neg { background: var(--danger); }
.rev-amount { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .rev-day { grid-template-columns: 70px 1fr 100px; font-size: .82rem; } }
