/* gitup — thème Terminal (spec 2026-11-14). Polices auto-hébergées, aucune ressource externe. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/static/fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/static/fonts/jetbrains-mono-500.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/static/fonts/jetbrains-mono-700.woff2) format("woff2"); }

:root {
  --bg: #0D1015; --surface: #151A21; --border: #222A35; --border-strong: #2E3744;
  --text: #E6EAF0; --text-2: #A3AEBD; --text-3: #8792A2;
  --accent: #4ADE80; --accent-hover: #86EFAC; --on-accent: #052E16; --highlight: #121A16; --highlight-border: #1F3A2A;
  --danger: #F87171;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px; --radius-sm: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2, .h3 { font-size: 24px; margin: 40px 0 16px; }
h3 { font-size: 19px; }
p { margin: 0; }
pre { margin: 0; font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 14px; }
.center { justify-content: center; }

/* Navigation */
.topbar { border-bottom: 1px solid var(--border); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .logo { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; flex: 1 1 auto; }

/* Buttons: 44px minimum touch target */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: var(--sans); }
.btn-lg { font-size: 16px; padding: 13px 22px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--text-2);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; }

/* Home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 88px; padding-bottom: 56px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 640px; }
.terminal { width: 100%; margin-top: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: left; overflow: hidden; }
.terminal-bar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal-body { padding: 20px; font-size: 14px; line-height: 1.9; color: #C5CEDA; overflow-x: auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; padding: 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 80px; }
.feature { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* Pricing */
.section { padding-top: 64px; padding-bottom: 80px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.tier-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tier { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.tier:last-child { border-bottom: 0; }
.tier-featured { background: var(--highlight); }
.tier-name { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-size: 20px; }
.tier-specs { flex: 1 1 220px; font-size: 14px; color: #C5CEDA; }
.tier-price { flex: 0 1 220px; display: flex; flex-direction: column; }
.price { font-size: 30px; font-weight: 700; }
.price-unit { font-size: 15px; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.addon { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 22px; display: flex;
  flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }

/* Messages */
.flash { margin-top: 16px; padding: 12px 16px; background: var(--highlight); border: 1px solid var(--highlight-border); border-radius: var(--radius-sm); }
.error { color: var(--danger); }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; color: var(--text-3); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-3); }

/* Forms */
.auth { max-width: 460px; padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.auth-title { font-size: 32px; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=url], .form select {
  min-height: 44px; padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font: inherit; }
.form input:focus { border-color: var(--accent); outline: none; }
.form .btn { margin-top: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--text-3); }

/* 2FA */
.qr-box { background: #FFFFFF; border-radius: var(--radius); padding: 12px; align-self: flex-start; line-height: 0; }
.qr { display: block; }
.secret { display: block; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); word-break: break-all; }
.codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes li { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }

.narrow-form { max-width: 640px; }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; margin: 16px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.dot-on { background: var(--accent); }
.dot-off { background: var(--danger); }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { color: var(--text-3); font-weight: 500; }
.table input { min-height: 40px; width: 7em; padding: 6px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; }

/* Checkout */
.choices { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.choices legend { padding: 0 6px; font-size: 14px; font-weight: 500; }
.choice { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-weight: 400 !important; margin: 0 !important; }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
#paypal-buttons { max-width: 420px; margin-top: 8px; }

/* Client panel */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 28px; padding-bottom: 10px; font-size: 14px; }
.tabs a { color: var(--text-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.tabs a:hover { color: var(--text); }
.inline { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; cursor: pointer; min-height: 32px; }
.linkbtn:hover { color: var(--text); }
.tenant-row { text-decoration: none; color: var(--text); }
.tenant-row:hover { background: var(--surface); color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.status-active .dot { background: var(--accent); }
.status-suspended .dot, .status-cancelled .dot { background: var(--danger); }
.status-pending .dot { background: var(--text-3); }
.empty { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.stat { background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 26px; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.card .h3 { margin: 0; font-size: 18px; }
.card .form .btn { align-self: flex-start; }
.chart { width: 100%; height: 160px; display: block; }
.chart rect { fill: var(--accent); opacity: 0.85; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }
.code { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; overflow-x: auto; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.danger-zone { border-color: #4A2A2A; }
details summary { cursor: pointer; color: var(--text-2); min-height: 32px; }

/* Long texts (legal, docs) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 4px; }
.prose h2 { font-size: 20px; margin: 18px 0 0; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
