/* ============ ZenCloud — thème néon gaming ============ */
:root {
  --bg: #050510;
  --bg-2: #0a0a1c;
  --panel: rgba(18, 18, 40, .72);
  --panel-solid: #101024;
  --panel-2: #16162e;
  --border: rgba(139, 92, 246, .18);
  --border-strong: rgba(139, 92, 246, .45);
  --text: #eeeefc;
  --muted: #9a9cc0;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --gradient: linear-gradient(120deg, #22d3ee, #a855f7 55%, #ec4899);
  --glow-violet: 0 0 28px rgba(168, 85, 247, .35);
  --glow-cyan: 0 0 24px rgba(34, 211, 238, .3);
  --danger: #fb7185;
  --warning: #fbbf24;
  --ok: #34d399;
  --radius: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.65; min-height: 100vh; overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: var(--font-head); }
a { color: var(--cyan); text-decoration: none; transition: .18s; }
a:hover { color: #7de8f8; }
img { max-width: 100%; }
code { font-family: var(--font-mono); font-size: .86em; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .18); padding: .05rem .4rem; border-radius: 6px; color: #8be9f8; }

/* Fond animé : orbes + grille */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(139, 92, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: rgba(168, 85, 247, .35); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: rgba(34, 211, 238, .28); top: -100px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: rgba(236, 72, 153, .22); top: 45%; left: 55%; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }

/* ============ Navigation publique ============ */
.announce { background: var(--gradient); color: #050510; text-align: center; padding: .45rem 1rem; font-size: .85rem; font-weight: 700; letter-spacing: .01em; }
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(5, 5, 16, .72); border-bottom: 1px solid var(--border); }
.site-nav .inner { display: flex; align-items: center; flex-wrap: wrap; row-gap: .6rem; gap: 1.2rem; padding: .9rem 1.4rem; max-width: 1180px; margin: 0 auto; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .45rem; }
.logo .zap { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .8)); }
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; row-gap: .5rem; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gradient); transition: right .25s; border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { display: flex; gap: .6rem; align-items: center; margin-left: auto; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: 12px; font-size: .92rem; font-weight: 600;
  border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .08);
  color: var(--text); cursor: pointer; font-family: inherit; transition: .18s;
}
.btn:hover { background: rgba(139, 92, 246, .16); box-shadow: var(--glow-violet); color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #050510; border: none; box-shadow: 0 0 18px rgba(168, 85, 247, .35); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(168, 85, 247, .55), var(--glow-cyan); filter: brightness(1.08); color: #050510; }
.btn-danger { background: rgba(251, 113, 133, .1); color: var(--danger); border-color: rgba(251, 113, 133, .4); }
.btn-danger:hover { background: rgba(251, 113, 133, .2); box-shadow: 0 0 20px rgba(251, 113, 133, .3); color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); box-shadow: none; background: rgba(139, 92, 246, .1); }
.btn-sm { padding: .35rem .8rem; font-size: .82rem; border-radius: 9px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ Hero ============ */
.hero { text-align: center; padding: 6.5rem 1.4rem 5rem; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 99px;
  border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .08);
  color: var(--cyan); font-size: .82rem; font-weight: 600; margin-bottom: 1.6rem;
  box-shadow: inset 0 0 20px rgba(139, 92, 246, .08);
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(168, 85, 247, .45)); }
.hero p { color: var(--muted); max-width: 640px; margin: 1.5rem auto 2.4rem; font-size: 1.12rem; }
.hero .actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero .actions .btn { padding: .8rem 1.7rem; font-size: 1rem; }
.hero .badges { margin-top: 3rem; display: flex; gap: 2rem; justify-content: center; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.hero .badges span { display: inline-flex; align-items: center; gap: .4rem; }

/* ============ Sections ============ */
.section { padding: 4.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.section-head h2::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gradient); margin: .9rem auto 0; border-radius: 3px; box-shadow: 0 0 12px rgba(168, 85, 247, .6); }
.section-head p { color: var(--muted); margin-top: .9rem; }
.group-label { font-size: 1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem;
  transition: .22s; position: relative;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(139, 92, 246, .12); }
.card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card .icon { font-size: 1.9rem; margin-bottom: .9rem; display: inline-block; filter: drop-shadow(0 0 12px rgba(34, 211, 238, .5)); }

/* Tarifs */
.plan-card { display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--border-strong); box-shadow: 0 0 46px rgba(168, 85, 247, .18), inset 0 0 40px rgba(139, 92, 246, .04); }
.plan-card.featured:hover { box-shadow: 0 0 60px rgba(168, 85, 247, .3); }
.plan-card .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #050510; font-size: .72rem; font-weight: 800; padding: .2rem .95rem; border-radius: 99px; white-space: nowrap; box-shadow: 0 0 16px rgba(168, 85, 247, .5); }
.plan-card .price { font-size: 2.3rem; font-weight: 800; margin: .9rem 0; font-family: var(--font-head); letter-spacing: -.03em; }
.plan-card .price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; margin: 0 0 1.5rem; flex: 1; }
.plan-card li { padding: .38rem 0; color: var(--muted); font-size: .92rem; border-bottom: 1px solid rgba(139, 92, 246, .08); }
.plan-card li::before { content: '◆  '; color: var(--cyan); font-size: .7rem; }

/* FAQ / étapes / CTA */
.faq-item { border: 1px solid var(--border); border-radius: 13px; margin-bottom: .8rem; background: var(--panel); transition: .18s; }
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { padding: 1.05rem 1.3rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--cyan); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item div { padding: 0 1.3rem 1.1rem; color: var(--muted); font-size: .94rem; }

.step { text-align: center; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 16px; background: var(--gradient);
  color: #050510; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-family: var(--font-head); box-shadow: 0 0 22px rgba(168, 85, 247, .4); transform: rotate(-4deg);
}
.step h3 { font-size: 1.02rem; }

.cta-band {
  background: linear-gradient(120deg, rgba(34, 211, 238, .09), rgba(168, 85, 247, .12), rgba(236, 72, 153, .09));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 3.4rem 2rem; text-align: center;
  box-shadow: inset 0 0 80px rgba(139, 92, 246, .06);
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin-bottom: 1.7rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 3rem 0 2rem; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: var(--text); font-size: .95rem; margin-bottom: .8rem; font-family: var(--font-head); }
.site-footer a { display: block; color: var(--muted); padding: .18rem 0; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .bottom-line { border-top: 1px solid var(--border); padding-top: 1.4rem; text-align: center; font-size: .84rem; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ============ Formulaires ============ */
.form-group { margin-bottom: 1.15rem; }
label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .4rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: .65rem .9rem; background: rgba(5, 5, 16, .6); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px; font-family: inherit; font-size: .95rem; transition: .18s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12), var(--glow-cyan); }
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--panel-solid); }
.hint { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.checkbox { display: flex; gap: .55rem; align-items: center; }
.checkbox input { width: auto; accent-color: var(--violet); }
.checkbox label { margin: 0; }
.error { color: var(--danger); font-size: .84rem; margin-top: .35rem; }
.alert { padding: .85rem 1.15rem; border-radius: 12px; margin-bottom: 1.3rem; font-size: .92rem; backdrop-filter: blur(8px); }
.alert-success { background: rgba(52, 211, 153, .1); color: var(--ok); border: 1px solid rgba(52, 211, 153, .35); box-shadow: 0 0 20px rgba(52, 211, 153, .08); }
.alert-error { background: rgba(251, 113, 133, .08); color: var(--danger); border: 1px solid rgba(251, 113, 133, .35); }

.auth-box { max-width: 440px; margin: 5.5rem auto; }
.auth-box .card { padding: 2.3rem; }
.auth-box .card:hover { transform: none; }
.auth-box h1 { font-size: 1.5rem; margin-bottom: 1.6rem; text-align: center; }
.auth-box .alt { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: .9rem; }

/* ============ Panel (client + admin) ============ */
.panel { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px; flex-shrink: 0; background: rgba(8, 8, 22, .85); backdrop-filter: blur(16px);
  border-right: 1px solid var(--border); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .15rem;
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
}
.sidebar .logo { margin-bottom: 1.8rem; padding: 0 .6rem; }
.sidebar a.item {
  display: flex; align-items: center; gap: .6rem; padding: .58rem .85rem; border-radius: 10px;
  color: var(--muted); font-size: .92rem; font-weight: 500; border: 1px solid transparent;
}
.sidebar a.item:hover { background: rgba(139, 92, 246, .08); color: var(--text); }
.sidebar a.item.active {
  background: linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(168, 85, 247, .12));
  color: var(--text); border-color: var(--border-strong); box-shadow: inset 0 0 18px rgba(139, 92, 246, .08);
}
.sidebar .sep { margin: 1.1rem .6rem .45rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(154, 156, 192, .6); font-weight: 700; }
.sidebar .bottom { margin-top: auto; padding-top: 1rem; }
.main { flex: 1; padding: 2.2rem 2.4rem; min-width: 0; }
.main h1 { font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.main .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.main .topbar h1 { margin: 0; }
.subtitle { font-size: 1.08rem !important; margin: 1.8rem 0 .9rem !important; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; margin-bottom: 1.7rem; }
.stat {
  background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.15rem 1.3rem; position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient); opacity: .7; }
.stat .label { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; font-family: var(--font-head); margin-top: .15rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); backdrop-filter: blur(10px); font-size: .9rem; }
table.data th { text-align: left; padding: .75rem 1.05rem; background: rgba(5, 5, 16, .55); color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
table.data td { padding: .75rem 1.05rem; border-top: 1px solid rgba(139, 92, 246, .1); }
table.data tr:hover td { background: rgba(139, 92, 246, .04); }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .68rem; border-radius: 99px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-ok, .badge-active, .badge-running, .badge-paid, .badge-completed { background: rgba(52, 211, 153, .12); color: var(--ok); border-color: rgba(52, 211, 153, .3); }
.badge-warn, .badge-provisioning, .badge-installing, .badge-starting, .badge-stopping, .badge-pending, .badge-creating, .badge-answered { background: rgba(251, 191, 36, .12); color: var(--warning); border-color: rgba(251, 191, 36, .3); }
.badge-danger, .badge-suspended, .badge-terminated, .badge-error, .badge-cancelled, .badge-failed, .badge-high { background: rgba(251, 113, 133, .12); color: var(--danger); border-color: rgba(251, 113, 133, .3); }
.badge-muted, .badge-offline, .badge-closed, .badge-low { background: rgba(154, 156, 192, .1); color: var(--muted); border-color: rgba(154, 156, 192, .25); }
.badge-admin, .badge-open, .badge-normal { background: rgba(168, 85, 247, .14); color: #c084fc; border-color: rgba(168, 85, 247, .35); }

/* ============ Panel serveur : en-tête + onglets ============ */
.server-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.server-head .title { flex: 1; min-width: 230px; }
.server-head .title h1 { margin: 0; }
.server-head .title .sub { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.power-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs button {
  padding: .6rem 1.15rem; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: var(--font-head); font-size: .93rem; font-weight: 600; cursor: pointer; transition: .18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--violet); text-shadow: 0 0 18px rgba(168, 85, 247, .6); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* Console */
.console {
  background: #030309; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem;
  height: 400px; overflow-y: auto; font-family: var(--font-mono); font-size: .8rem; line-height: 1.6;
  box-shadow: inset 0 0 60px rgba(139, 92, 246, .04);
}
.console::-webkit-scrollbar { width: 8px; }
.console::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, .3); border-radius: 4px; }
.console .line-daemon { color: var(--warning); }
.console .line-command { color: var(--cyan); }
.console .line-output { color: #a8b2d8; }
.console-input { display: flex; gap: .6rem; margin-top: .9rem; }
.console-input input { font-family: var(--font-mono); }

.meter { background: rgba(5, 5, 16, .8); border-radius: 99px; height: 7px; overflow: hidden; margin-top: .55rem; }
.meter div { height: 100%; background: var(--gradient); border-radius: 99px; transition: width .5s; box-shadow: 0 0 10px rgba(168, 85, 247, .6); }

/* Gestionnaire de fichiers */
.file-toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: .9rem; flex-wrap: wrap; }
.file-toolbar .crumb { font-family: var(--font-mono); font-size: .85rem; color: var(--cyan); flex: 1; min-width: 180px; }
.file-list { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); }
.file-row { display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem; border-top: 1px solid rgba(139, 92, 246, .08); font-size: .9rem; cursor: default; }
.file-row:first-child { border-top: none; }
.file-row:hover { background: rgba(139, 92, 246, .06); }
.file-row .fname { flex: 1; font-family: var(--font-mono); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fname.dir { color: var(--cyan); cursor: pointer; font-weight: 600; }
.file-row .fname.editable { cursor: pointer; }
.file-row .fname.editable:hover { color: var(--text); text-decoration: underline; }
.file-row .fsize { color: var(--muted); font-size: .78rem; width: 90px; text-align: right; }
.file-editor textarea { min-height: 380px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.55; }

.actions-inline { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
form.inline { display: inline; }

.pagination { display: flex; gap: .4rem; margin-top: 1.3rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .38rem .8rem; border: 1px solid var(--border); border-radius: 9px; font-size: .85rem; color: var(--muted); }
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .active span { background: rgba(139, 92, 246, .15); color: var(--text); border-color: var(--border-strong); }

.empty { text-align: center; color: var(--muted); padding: 3.2rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: rgba(139, 92, 246, .03); }

/* Statut */
.status-hero { text-align: center; padding: 4rem 1rem 2.5rem; }
.status-hero .indicator { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 700; font-family: var(--font-head); }
.pulse { width: 14px; height: 14px; border-radius: 50%; position: relative; }
.pulse.ok { background: var(--ok); box-shadow: 0 0 16px var(--ok); }
.pulse.ko { background: var(--danger); box-shadow: 0 0 16px var(--danger); }
.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.8s ease-out infinite; color: inherit; }
.pulse.ok::after { color: var(--ok); }
.pulse.ko::after { color: var(--danger); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Tickets */
.msg { border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; background: var(--panel); }
.msg.staff { border-color: var(--border-strong); background: linear-gradient(120deg, rgba(34, 211, 238, .05), rgba(168, 85, 247, .07)); }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; display: flex; gap: .6rem; align-items: center; }
.msg .body { white-space: pre-wrap; font-size: .94rem; }

/* Facture imprimable */
.invoice-doc { background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; max-width: 760px; }
.invoice-doc .head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.invoice-doc table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.invoice-doc th, .invoice-doc td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--border); font-size: .93rem; }
.invoice-doc .total { text-align: right; font-size: 1.3rem; font-weight: 700; font-family: var(--font-head); }
@media print {
  body { background: #fff; color: #111; }
  .bg-fx, .sidebar, .no-print { display: none !important; }
  .main { padding: 0; }
  .invoice-doc { border: none; background: #fff; color: #111; max-width: none; }
  .invoice-doc th, .invoice-doc td { border-color: #ddd; }
}

@media (max-width: 880px) {
  .panel { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; position: static; max-height: none; }
  .sidebar .logo { margin: 0 1rem 0 0; }
  .sidebar .bottom { margin: 0 0 0 auto; padding: 0; }
  .sidebar .sep { display: none; }
  .main { padding: 1.5rem 1.15rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
