/* Site public : accueil, statut, page publique des bots */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-stretch: 118%; max-width: 20ch; }
.section-head p { max-width: 46ch; }

/* ---------- Barre utilitaire + navigation ---------- */
.utility { background: var(--strip); color: var(--strip-text); font-size: 13px; border-bottom: 1px solid var(--line); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.sys-state { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; }
.sys-state:hover { color: #fff; text-decoration: underline; }
.utility-meta { font-family: var(--mono); font-size: 12px; color: var(--strip-text); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }

/* ---------- Ouverture ---------- */
.hero { position: relative; padding: 80px 0 96px; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 65%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 65%);
}
/* Signature UHQ : logotype géant en contour. */
.hero-mark {
  position: absolute; right: -2vw; bottom: -6vw; pointer-events: none; user-select: none;
  font: 900 clamp(150px, 19vw, 300px)/0.8 var(--sans); font-stretch: 125%; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-line); opacity: .7;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 850; font-stretch: 122%; line-height: .98; letter-spacing: -0.03em; max-width: 17ch; }
.lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); }

.telemetry { background: var(--term); color: var(--term-text); border-radius: var(--r-lg); border: 1px solid var(--term-line); box-shadow: var(--shadow-lg); overflow: hidden; }
.tele-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--term-line); font-size: 13px; font-weight: 600; color: #aebbd6; }
.live { display: inline-flex; align-items: center; gap: 7px; color: #6fe3a9; font: 500 12px var(--mono); }
.live .dot { box-shadow: 0 0 0 3px rgba(18, 183, 106, .25); animation: blink 2s ease-in-out infinite; }
.tele-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tele-grid > div { padding: 16px 18px; border-bottom: 1px solid var(--term-line); }
.tele-grid > div:nth-child(odd) { border-right: 1px solid var(--term-line); }
.tele-grid dt { font-size: 12.5px; color: var(--term-dim); }
.tele-grid dd { margin: 4px 0 0; font: 500 26px/1.15 var(--mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tele-grid dd#t-region { font: 600 15px/1.4 var(--sans); white-space: normal; padding-top: 6px; }
.tele-bars { padding: 16px 18px 14px; border-bottom: 1px solid var(--term-line); }
.tele-bars .ubars i.none { background: var(--term-line); }
.tele-bars .ubars-legend { color: var(--term-dim); }
.tele-bars .ubars-legend a { color: #8fa6ff; }
.tele-foot { padding: 10px 18px; font-size: 12px; color: var(--term-dim); }

/* ---------- Fonctionnalités ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature h3 { font-size: 25px; font-stretch: 115%; margin-bottom: 10px; }
.feature-copy p { color: var(--text-2); max-width: 52ch; }
.mock { display: flex; flex-direction: column; gap: 10px; }
.mock-term { font-size: 12.5px; }
.mock-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.mock-alert > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mock-alert .mono { font-size: 12px; color: var(--warn-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-alert-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); background: var(--surface); color: var(--warn); border: 1px solid var(--warn-line); }
.mock .btn { pointer-events: none; }
.mock-card { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.mock-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mock-id-top { display: flex; align-items: center; gap: 12px; }
.mock-id-top > div { flex: 1; display: flex; flex-direction: column; }
.mock-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; color: #fff; font-weight: 700; }
.intents { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.intents li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.intents li:last-child { border-bottom: none; }
.intents li span { margin-left: auto; font-size: 12.5px; text-align: right; }
.intents .ok .icon { color: var(--ok); }
.intents .bad, .intents .bad span { color: var(--danger-text); }
.intents .off .icon { color: var(--text-3); }
.mock-versions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.mock-versions li { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; font-size: 14px; }
.mock-versions li + li { border-top: 1px solid var(--line); }
.discord-msg { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: #313338; color: #dbdee1; border: 1px solid #3f4147; }
.discord-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.discord-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.discord-body > div:first-child { display: flex; align-items: center; gap: 6px; }
.discord-body b { color: #fff; font-weight: 600; }
.discord-app { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 4px; border-radius: 3px; }
.discord-body .faint { color: #949ba4; }
.embed { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 4px; background: #2b2d31; border-left: 4px solid #e5484d; font-size: 14px; }
.embed-field { display: flex; flex-direction: column; font-size: 13px; margin-top: 4px; }
.badge-demo { display: block; }
.code-line { margin: 0; padding: 8px 10px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; color: var(--text); }
.mock-chart { width: 100%; height: 80px; display: block; color: var(--brand); }
.mock-chart-limit { stroke: var(--danger); }

/* ---------- Infrastructure ---------- */
.infra { background: var(--bg-2); border-block: 1px solid var(--line); }
.infra-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 56px; }
.infra-grid h2 { font-size: clamp(30px, 3.8vw, 44px); font-stretch: 118%; margin-bottom: 12px; }
.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec dt { font-weight: 700; font-size: 14px; font-stretch: 112%; }
.spec dd { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- Tarifs ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare caption { padding: 16px; text-align: left; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.compare thead th { vertical-align: top; padding-top: 22px; padding-bottom: 20px; }
.compare tbody th { font-weight: 500; color: var(--text-2); width: 26%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: none; }
.compare .col-featured { background: var(--featured-bg); }
.compare thead .col-featured { box-shadow: inset 0 3px 0 var(--brand); }
.plan-name { display: flex; align-items: center; gap: 8px; font: 800 21px/1.1 var(--sans); font-stretch: 120%; }
.plan-price { margin-top: 10px; }
.plan-price b { font: 800 36px/1 var(--sans); font-stretch: 112%; letter-spacing: -0.02em; }
.plan-price span { color: var(--text-3); font-size: 13.5px; margin-left: 4px; }
.plan-tagline { margin-top: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 400; max-width: 24ch; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--text-3); }
.compare td .icon { width: 18px; height: 18px; }
.compare tfoot td { padding: 16px 18px; border-bottom: none; border-top: 1px solid var(--line); }

/* ---------- Conseiller ---------- */
.advisor { padding-top: 0; }
.advisor-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; padding: 40px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.advisor-grid h2 { font-size: 32px; font-stretch: 118%; margin-bottom: 10px; }
.advisor-form { display: flex; flex-direction: column; gap: 14px; }
.advisor-row { display: flex; gap: 12px; align-items: flex-end; }
.advisor-count { width: 140px; }
.advisor-row .btn { flex: 1; }
.advisor-result { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.advisor-result .rec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.advisor-result .rec b { font: 800 28px/1 var(--sans); font-stretch: 120%; color: var(--brand-text); }
.advisor-result ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.advisor-result .src { font-size: 12.5px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 56px; }
.faq-grid h2 { font-size: clamp(30px, 3.8vw, 44px); font-stretch: 118%; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-weight: 700; font-size: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font: 400 24px/1 var(--mono); color: var(--brand-text); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 20px; color: var(--text-2); max-width: 66ch; }

/* ---------- Pied de page ---------- */
.footer { position: relative; padding: 56px 0 0; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid > div p { margin-top: 12px; max-width: 40ch; }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer nav b { font-size: 13px; color: var(--text); margin-bottom: 2px; }
.footer nav a { color: var(--text-2); text-decoration: none; }
.footer nav a:hover { color: var(--brand-text); }
.footer-mark {
  margin-top: 40px; text-align: center; user-select: none;
  font: 900 clamp(120px, 26vw, 360px)/0.78 var(--sans); font-stretch: 125%; letter-spacing: -0.045em;
  color: var(--surface-2); -webkit-text-stroke: 1px var(--line);
}

/* ---------- Page de statut / page publique ---------- */
.status-page { padding: 56px 0 88px; }
.status-banner { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--ok); color: #fff; font: 800 21px/1.2 var(--sans); font-stretch: 115%; }
.status-banner.down { background: var(--danger); }
.status-banner.warn { background: var(--warn); }
.status-banner .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.status-panel { margin-top: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-panel > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.status-panel h2 { font-size: 18px; }
.status-panel dl { margin: 0; }
.components { list-style: none; margin: 0; padding: 0; }
.components li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.components li:last-child { border-bottom: none; }
.components li > span:first-child { flex: 1; }
.components small { display: block; color: var(--text-3); font-size: 13px; }
.status-bars { padding: 18px 20px; }
.status-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.status-meta > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.status-meta > div:last-child { border-right: none; }
.status-meta dt { font-size: 13px; color: var(--text-3); }
.status-meta dd { margin: 4px 0 0; font: 500 18px/1.3 var(--mono); }
.status-note { margin-top: 16px; }
.events-list { list-style: none; margin: 0; padding: 0; }
.events-list li { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.events-list li:last-child { border-bottom: none; }
.events-list time { margin-left: auto; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .infra-grid, .advisor-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .spec { grid-template-columns: 1fr; }
  .advisor-grid { padding: 24px; }
}
@media (max-width: 680px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; gap: 12px; }
  .wordmark-sub { display: none; }
  .utility-meta { display: none; }
  .feature { padding: 28px 0; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .advisor-row { flex-direction: column; align-items: stretch; }
  .advisor-count { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .mock-versions li { grid-template-columns: 44px 1fr auto; }
  .mock-versions li > span:nth-child(3) { display: none; }
  .tele-grid dd { font-size: 22px; }
  .status-meta > div { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Finitions (v5) ---------- */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 55% at 78% 45%, rgba(84, 112, 255, .22), transparent 70%);
}
[data-theme="light"] .hero::after { background: radial-gradient(40% 55% at 78% 45%, rgba(43, 75, 242, .10), transparent 70%); }
.telemetry { box-shadow: 0 0 0 1px rgba(84, 112, 255, .18), 0 40px 90px -40px rgba(84, 112, 255, .55), var(--shadow-lg); }
.mock-card, .mock-versions, .table-scroll, .advisor-grid, .status-panel { box-shadow: var(--card-shadow); }
.feature { transition: background-color .2s; }
.compare thead .col-featured .plan-name { color: var(--brand-text); }
.nav-links a { position: relative; }
.nav-links a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand); }
.feature-plan { margin-bottom: 10px; }
.unlock-cell { font-size: 13.5px; color: var(--text-2); }
