/* ZIDANE XMD — rafraîchissement visuel du site (frontend uniquement) */
:root {
  color-scheme: dark;
  --bg: #07100b;
  --bg-soft: #0a160e;
  --panel: #0e1b12;
  --panel-border: rgba(159, 194, 163, .18);
  --red: #d8ff55;
  --red-dim: #82c947;
  --red-glow: rgba(196, 255, 80, .22);
  --cyan: #9de8a4;
  --pink: #d8ff55;
  --text: #f3f8f0;
  --text-dim: #b1c2b2;
  --text-faint: #829685;
  --green: #65e695;
  --yellow: #ffda75;
  --surface-raised: rgba(16, 31, 21, .9);
  --radius-card: 20px;
  --shadow-card: 0 18px 55px rgba(0, 0, 0, .24);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 12% 4%, rgba(132, 201, 71, .11), transparent 34%),
    radial-gradient(ellipse at 88% 45%, rgba(68, 196, 114, .07), transparent 38%),
    radial-gradient(rgba(224, 255, 227, .025) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}
::selection { color: #07100b; background: #d8ff55; }
a { color: #d8ff55; text-underline-offset: .2em; }
a:hover { color: #efffae; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #d8ff55; outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 10000; top: 10px; left: 10px;
  padding: 11px 16px; border-radius: 10px; background: #d8ff55; color: #07100b;
  font-weight: 800; transform: translateY(-160%); transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); color: #07100b; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.navbar, .dash-nav {
  position: sticky; top: 0; z-index: 100;
  min-height: 72px; padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(7, 16, 11, .86); border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.navbar { max-width: none; }
.dash-nav { box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.brand { gap: 10px; font-size: clamp(18px, 2vw, 22px); letter-spacing: .015em; }
.brand .dot { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 16px var(--red-glow); }
.nav-links, .dash-user { gap: 10px; }
.dash-user { flex-wrap: wrap; justify-content: flex-end; }

.btn {
  min-height: 42px; padding: 10px 17px; border-radius: 12px;
  font-weight: 700; letter-spacing: .005em; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { color: #0b1308; background: linear-gradient(135deg, #e4ff75, #a9e854); box-shadow: 0 8px 24px rgba(170, 232, 84, .16); animation: none; }
.btn-primary:hover { color: #091108; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(170, 232, 84, .25); }
.btn-primary::after { display: none; }
.btn-ghost { background: rgba(255, 255, 255, .025); border-color: rgba(182, 206, 185, .18); }
.btn-ghost:hover { color: #eaffb0; background: rgba(216, 255, 85, .07); border-color: rgba(216, 255, 85, .4); }
.btn-danger { color: #ffb1a8; background: rgba(255, 99, 82, .09); border-color: rgba(255, 99, 82, .24); }
.btn-danger:hover { background: rgba(255, 99, 82, .16); }
.btn-sm { min-height: 36px; padding: 7px 12px; border-radius: 10px; }
.btn:disabled, .btn.is-loading { opacity: .65; }

.hero { padding: clamp(48px, 7vw, 88px) 24px 48px; }
.hero-grid { max-width: 1240px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 68px); }
.hero .tag, .contact-card .tag { color: #e4ff8d; background: rgba(216, 255, 85, .08); border-color: rgba(216, 255, 85, .26); }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 span { background: linear-gradient(120deg, #efffa6, #8ed865); -webkit-background-clip: text; background-clip: text; }
.hero p.subtitle { max-width: 560px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; }
.hero-ctas { gap: 12px; }
.hero-visual { min-width: 0; }
.v5-hero-image { width: 100%; max-height: none; aspect-ratio: 3 / 2; object-fit: contain; background: #07100b; border: 1px solid rgba(216, 255, 85, .22); border-radius: 22px; box-shadow: 0 28px 85px rgba(0, 0, 0, .42), 0 0 50px rgba(137, 207, 77, .1); }
.terminal { max-width: none; margin-top: 14px; border-color: rgba(154, 194, 158, .18); box-shadow: var(--shadow-card); }
.terminal-body { font-size: clamp(11px, 1vw, 12.5px); }
.hero::after { color: rgba(216, 255, 85, .18); animation-duration: 8s; }

.noctibot-code {
  max-width: 1240px; margin: 22px auto 0; padding: 18px 22px;
  border-color: rgba(216, 255, 85, .28); background: linear-gradient(115deg, rgba(216, 255, 85, .075), rgba(93, 211, 128, .045));
}
.noctibot-code strong { color: #e4ff75; font-family: var(--font-mono); letter-spacing: .13em; }
.stats { max-width: 1120px; margin-top: 50px; gap: 14px; }
.stat-card, .feature-card, .deploy-box, .instance-card, .auth-card, .panel-card {
  background: linear-gradient(145deg, rgba(16, 31, 21, .92), rgba(10, 21, 14, .96));
  border-color: rgba(155, 194, 162, .16); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.stat-card { padding: 22px 16px; }
.stat-card .value { color: #dfff79; font-variant-numeric: tabular-nums; }
.stat-card .label { color: #9aad9d; }
.features, .how-it-works, .security-section, .faq-section, .contact-section { padding-top: clamp(48px, 7vw, 78px); padding-bottom: clamp(48px, 7vw, 78px); }
.section-title { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.025em; }
.section-sub { color: #a8b9aa; line-height: 1.65; }
.feature-grid { max-width: 1240px; margin: 0 auto; gap: 16px; }
.feature-card { padding: clamp(20px, 2.6vw, 30px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(216, 255, 85, .42); box-shadow: 0 22px 54px rgba(0, 0, 0, .28); }
.feature-card .icon { filter: none; }
.step-num { color: #d8ff55; border-color: rgba(216, 255, 85, .28); background: #101e14; }
.steps-row::before { background: linear-gradient(90deg, transparent, rgba(216, 255, 85, .28), transparent); }
.security-inner { background: linear-gradient(135deg, #101e14, #0a150f); border-color: rgba(155, 194, 162, .16); border-radius: 24px; box-shadow: var(--shadow-card); }
.security-point small { color: #a1b3a4; }
.faq-item { background: rgba(14, 27, 18, .82); border-color: rgba(155, 194, 162, .15); transition: border-color .18s ease, background .18s ease; }
.faq-item:hover, .faq-item[open] { border-color: rgba(216, 255, 85, .34); background: rgba(17, 34, 22, .94); }
.faq-item summary { min-height: 52px; }
.faq-item summary::after { color: #d8ff55; }
.contact-card { background: linear-gradient(135deg, rgba(16, 31, 21, .95), rgba(9, 19, 13, .97)); border: 1px solid var(--panel-border); border-radius: 24px; box-shadow: var(--shadow-card); }
.contact-item { background: rgba(7, 16, 11, .55); border-color: rgba(155, 194, 162, .15); transition: border-color .18s ease, transform .18s ease; }
.contact-item:hover { border-color: rgba(216, 255, 85, .38); transform: translateY(-2px); }
.footer { border-color: var(--panel-border); color: #829685; line-height: 1.9; }

.auth-wrapper { min-height: calc(100svh - 72px); padding: 42px 20px 70px; }
.auth-card { max-width: 460px; padding: clamp(24px, 5vw, 38px); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #d8ff55, #5acb80, transparent); }
.auth-card h2 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.03em; }
.auth-card .sub { line-height: 1.65; color: #a6b8a8; }
.field { margin-bottom: 18px; }
.field label { color: #d6e2d6; font-size: 13px; }
.field input, .deploy-form input, .config-inputs input, .panel-card input {
  min-height: 48px; padding: 12px 14px; border-radius: 12px; background: rgba(5, 13, 8, .75);
  border: 1px solid rgba(155, 194, 162, .2); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .deploy-form input:focus, .config-inputs input:focus, .panel-card input:focus { border-color: #b5e96a; box-shadow: 0 0 0 4px rgba(181, 233, 106, .12); outline: none; }
.field input::placeholder, .deploy-form input::placeholder { color: #718475; }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px #0a160e inset; }
.password-help { color: #91a593; font-size: 12px; line-height: 1.5; }
.auth-footer-link { line-height: 1.8; }
.alert { background: rgba(255, 99, 82, .09); border-color: rgba(255, 99, 82, .25); color: #ffc0b8; line-height: 1.5; }
.alert.success { background: rgba(101, 230, 149, .09); border-color: rgba(101, 230, 149, .26); color: #a8f5c2; }
.password-wrap { display: flex; align-items: stretch; position: relative; }
.password-wrap input { padding-right: 82px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 34px; padding: 5px 9px; border: 1px solid transparent; border-radius: 8px; color: #c2d2c3; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.password-toggle:hover { color: #e8ffa4; background: rgba(216, 255, 85, .07); }

.dash-body { max-width: 1220px; padding: clamp(24px, 4vw, 46px) clamp(16px, 3vw, 30px) 70px; }
.dash-header { margin-bottom: 24px; }
.dash-header h1 { font-size: clamp(27px, 4vw, 36px); letter-spacing: -.035em; }
.dash-header p { line-height: 1.65; }
.deploy-box { padding: clamp(18px, 3vw, 28px); margin-bottom: 24px; }
.deploy-box h3 { font-size: 18px; }
.deploy-form { align-items: center; }
.deploy-form input { min-width: min(250px, 100%); flex: 1 1 280px; }
.instance-card { align-items: flex-start; gap: 18px; padding: 20px; }
.instance-info { align-items: flex-start; min-width: min(100%, 360px); flex: 1; }
.instance-info > div { min-width: 0; }
.instance-phone { font-variant-numeric: tabular-nums; font-size: 16px; }
.instance-meta { line-height: 1.5; }
.instance-actions { flex-wrap: wrap; justify-content: flex-end; }
.pairing-box { border-color: rgba(216, 255, 85, .23); background: rgba(216, 255, 85, .045); }
.pairing-box .pairing-code { color: #e5ff8a; text-shadow: none; font-size: clamp(18px, 2vw, 22px); letter-spacing: .12em; }
.status-dot.waiting_pairing { background: #c1ed71; box-shadow: 0 0 10px rgba(193, 237, 113, .48); }
.status-dot.crashed { background: #ff7868; }
.instance-error { color: #ffb1a8 !important; margin-top: 8px; }
.empty-state { padding: 56px 20px; border: 1px dashed rgba(155, 194, 162, .24); border-radius: 20px; background: rgba(14, 27, 18, .45); }
.template-warning { color: #ffe2a1; background: rgba(255, 218, 117, .08); border-color: rgba(255, 218, 117, .23); line-height: 1.55; }

.account-shell { max-width: 1220px; padding: 34px clamp(16px, 3vw, 30px) 76px; }
.account-hero { grid-template-columns: 1fr; padding: clamp(22px, 4vw, 42px); border-color: rgba(155, 194, 162, .17); background: linear-gradient(130deg, rgba(15, 30, 19, .98), rgba(8, 17, 11, .95)); box-shadow: var(--shadow-card); }
.account-hero:before { background: radial-gradient(circle at 12% 20%, rgba(216, 255, 85, .11), transparent 42%); }
.account-hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.035em; }
.account-hero p { line-height: 1.7; }
.account-grid { gap: 16px; }
.panel-card { padding: clamp(18px, 3vw, 26px); }
.panel-card h2 { font-size: 19px; }
.avatar-row { border-color: rgba(155, 194, 162, .12); background: rgba(255, 255, 255, .018); }
.avatar-xl { flex: 0 0 86px; }
.quick-instance { flex-wrap: wrap; gap: 8px; }
.quick-instance > div { min-width: 120px; }
.security-info li { line-height: 1.55; }

.admin-grid { gap: 14px; }
.admin-grid .stat-card { min-width: 0; }
.admin-tabs { gap: 8px; }
.admin-tab { min-height: 42px; padding: 9px 14px; border-radius: 11px; background: rgba(16, 31, 21, .72); color: #b1c2b2; border-color: rgba(155, 194, 162, .16); cursor: pointer; font: inherit; font-weight: 700; }
.admin-tab:hover { color: #e8ffa4; border-color: rgba(216, 255, 85, .36); }
.admin-tab.active { color: #0b1308; background: linear-gradient(135deg, #e4ff75, #a9e854); border-color: transparent; }
.admin-tab-badge { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; place-items: center; border-radius: 999px; background: #b8342c; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
.admin-tab-badge[hidden] { display: none; }
.admin-tab.active .admin-tab-badge { background: #13200f; color: #e4ff75; }
.checkban-request-count { flex: none; padding: 8px 12px; border: 1px solid rgba(232, 93, 76, .3); border-radius: 999px; background: rgba(184, 52, 44, .12); color: #ffb8ae; font-size: 12px; }
.checkban-request-actions { display: flex; flex-wrap: wrap; gap: 6px; white-space: nowrap; }
.checkban-request-yes { min-width: 68px; }
.checkban-request-no { min-width: 68px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--panel-border); border-radius: 16px; background: rgba(10, 21, 14, .68); scrollbar-color: #64834e #0b140e; }
table.admin-table { min-width: 760px; border: 0; border-radius: 0; background: transparent; }
table.admin-table th { color: #9fb29f; background: rgba(216, 255, 85, .035); }
table.admin-table td { color: #dce8dd; vertical-align: top; }
table.admin-table tbody tr:hover { background: rgba(216, 255, 85, .035); }
.admin-table td .btn { margin: 2px; }
.tab-panel { min-width: 0; }
.console-box { border-radius: 16px; background: #060d08; border-color: var(--panel-border); font-size: 13px; }
.badge-admin { color: #ffd1c6; background: rgba(255, 99, 82, .09); border-color: rgba(255, 99, 82, .22); }

.toast-container { right: 16px; bottom: 16px; top: auto; }
.toast { background: #112017; border-color: rgba(155, 194, 162, .22); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .42); }
.toast-error { border-color: rgba(255, 99, 82, .38); }
.toast-success { border-color: rgba(101, 230, 149, .34); }
.confirm-overlay { background: rgba(2, 8, 4, .76); backdrop-filter: blur(8px); }
.confirm-box { background: #101d14; border-color: rgba(155, 194, 162, .21); border-radius: 20px; }
.confirm-box p { line-height: 1.65; }
.bot-config-modal { border-color: rgba(216, 255, 85, .24); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 760px; }
  .hero-copy { text-align: center; }
  .hero p.subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { width: 100%; }
  .terminal { max-width: 700px; }
  .security-inner { gap: 28px; }
}
@media (max-width: 760px) {
  .navbar, .dash-nav { min-height: 64px; padding: 10px 16px; }
  .navbar { flex-wrap: wrap; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding-inline: 12px; }
  .brand { font-size: 18px; }
  .dash-user { gap: 7px; }
  .dash-user #user-label { display: none; }
  .hero { padding-top: 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { gap: 16px; }
  .security-inner { padding: 28px 22px; }
  .account-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instance-card { display: grid; grid-template-columns: minmax(0, 1fr); }
  .instance-info { min-width: 0; }
  .instance-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 74px; }
  .navbar { align-items: center; }
  .navbar > .brand { width: 100%; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .nav-links .btn { flex: 1; }
  .dash-nav { align-items: flex-start; gap: 10px; }
  .dash-nav > .brand { flex: 0 0 auto; }
  .dash-user { justify-content: flex-end; }
  .dash-user .btn { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .v5-hero-image { border-radius: 16px; }
  .terminal-body { padding: 16px 13px 18px; }
  .stats { gap: 10px; }
  .stat-card { padding: 16px 10px; }
  .stat-card .value { font-size: 23px; }
  .feature-grid, .steps-row, .contact-grid { grid-template-columns: 1fr; }
  .steps-row { gap: 24px; }
  .steps-row::before { display: none; }
  .section-title { padding-inline: 12px; }
  .security-section, .features, .how-it-works, .faq-section, .contact-section { padding-inline: 16px; }
  .security-inner { padding: 24px 18px; }
  .auth-wrapper { min-height: calc(100svh - 64px); padding: 26px 14px 50px; }
  .auth-card { border-radius: 18px; }
  .deploy-form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .deploy-form .btn { width: 100%; }
  .noctibot-code { margin-inline: 16px; }
  .admin-grid { gap: 9px; }
  .admin-grid .stat-card { padding: 13px 9px; }
  .admin-grid .stat-card .value { font-size: 20px; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 8px; }
  .admin-tab { flex: 0 0 auto; white-space: nowrap; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .account-hero-actions { flex-direction: column; }
  .account-hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.auth-card h1 { margin: 0 0 8px; font: 800 clamp(24px, 4vw, 30px)/1.2 var(--font-display); letter-spacing: -.03em; }
.remember { align-items: flex-start; gap: 10px; color: #c0d0c1; line-height: 1.5; }
.remember input, .config-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #d8ff55; }
.pairing-box button.pairing-code { display: inline-block; padding: 4px 0; color: #e5ff8a; background: transparent; border: 0; border-bottom: 1px dashed currentColor; font: 800 clamp(18px, 2vw, 22px)/1.4 var(--font-mono); letter-spacing: .12em; cursor: pointer; }
.pairing-box button.pairing-code:hover { color: #f1ffc2; }
button:disabled { opacity: .58; cursor: not-allowed; }
@media (max-width: 560px) { .auth-card h1 { font-size: 26px; } }

.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.tab-panel { display: none; min-width: 0; }
.tab-panel.active { display: block; }
.tab-panel[hidden] { display: none !important; }
table.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
table.admin-table th, table.admin-table td { padding: 13px 14px; border-bottom: 1px solid rgba(155, 194, 162, .12); font-size: 13px; }
table.admin-table th { font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }
table.admin-table tr:last-child td { border-bottom: 0; }
.console-line { overflow-wrap: anywhere; }
.console-line.error { color: #ff9c8d; }
.console-line.warn { color: #ffdc82; }
.console-line.info { color: #a5b6a7; }
@media (max-width: 980px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.logs-dialog { max-width: min(760px, 100%); text-align: left; }
.logs-dialog h2 { margin: 0 0 14px; font: 800 19px/1.3 var(--font-display); }
.logs-dialog pre { max-height: min(58vh, 560px); overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--panel-border); border-radius: 12px; background: #060d08; color: #b7c9b9; font: 12px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-config-modal { max-height: min(88vh, 780px); overflow-y: auto; }
.config-row { min-height: 54px; }
.confirm-actions .btn { min-width: 100px; }

.bot-config-modal h2 { margin: 0 0 7px; font: 800 19px/1.3 var(--font-display); letter-spacing: -.02em; }
.logs-dialog .confirm-actions { justify-content: flex-end; }


/* ── V5.0.1 · Forêt nocturne : finition fun, lisible et premium ── */
:root {
  color-scheme: dark;
  --bg: #07110d;
  --bg-soft: #0a1811;
  --panel: #102118;
  --panel-border: rgba(174, 208, 181, .19);
  --red: #d8ef83;
  --red-dim: #83b95d;
  --red-glow: rgba(216, 239, 131, .24);
  --cyan: #8ed1df;
  --pink: #e7c28f;
  --text: #f3f5ed;
  --text-dim: #b4c2b5;
  --text-faint: #839486;
  --green: #69dba0;
  --yellow: #e7c28f;
  --surface-raised: rgba(18, 36, 26, .94);
  --radius-card: 22px;
  --shadow-card: 0 22px 65px rgba(0, 0, 0, .28);
}

html { scroll-padding-top: 84px; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 8% 4%, rgba(130, 185, 93, .14), transparent 34%),
    radial-gradient(ellipse at 92% 19%, rgba(104, 190, 211, .08), transparent 29%),
    radial-gradient(ellipse at 54% 100%, rgba(231, 194, 143, .055), transparent 38%),
    radial-gradient(rgba(224, 241, 223, .025) 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px;
  line-height: 1.65;
}
::selection { color: #09120c; background: #d8ef83; }
a { color: #c9e989; }
a:hover { color: #e6f6b5; }
:focus-visible { outline-color: #bde5a1; }

.navbar, .dash-nav {
  background: rgba(7, 17, 13, .82);
  border-bottom-color: rgba(174, 208, 181, .14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .12);
}
.brand { letter-spacing: .025em; }
.brand .dot { background: #d8ef83; box-shadow: 0 0 16px rgba(216, 239, 131, .55); }
.v5-pill { display: inline-flex; align-items: center; margin-left: 2px; padding: 4px 7px; border: 1px solid rgba(169, 220, 130, .28); border-radius: 999px; background: rgba(105, 219, 160, .08); color: #bfe9a4; font: 800 9px/1 var(--font-display); letter-spacing: .04em; }
.btn { border-radius: 13px; transition-duration: .22s; }
.btn-primary {
  color: #0a140c;
  background: linear-gradient(132deg, #e1f79a 0%, #b8dd74 54%, #88c76f 100%);
  box-shadow: 0 10px 28px rgba(148, 199, 105, .18);
}
.btn-primary:hover { color: #08110b; box-shadow: 0 14px 34px rgba(148, 199, 105, .3); }
.btn-ghost { border-color: rgba(174, 208, 181, .2); }

.hero {
  padding-top: clamp(58px, 8vw, 102px);
  padding-bottom: clamp(40px, 6vw, 66px);
}
.hero-grid { max-width: 1280px; gap: clamp(28px, 5vw, 70px); }
.hero-copy { position: relative; z-index: 2; }
.hero .tag, .contact-card .tag {
  color: #d7ed9e;
  border-color: rgba(178, 217, 131, .27);
  background: linear-gradient(110deg, rgba(143, 190, 101, .12), rgba(142, 209, 223, .07));
  letter-spacing: .055em;
  font-size: 11px;
  font-weight: 800;
}
.hero h1 { max-width: 720px; font-size: clamp(39px, 5.4vw, 68px); line-height: 1.025; letter-spacing: -.052em; }
.hero h1 span {
  background: linear-gradient(110deg, #d8ef83 5%, #8ed1df 90%);
  -webkit-background-clip: text; background-clip: text;
}
.hero p.subtitle { max-width: 590px; color: #c0cbbd; line-height: 1.75; }
.hero-ctas { gap: 12px; }
.hero-visual { position: relative; isolation: isolate; padding: 7px 7px 0; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; inset: 8% 1% 22% 8%;
  border-radius: 32px; background: linear-gradient(135deg, rgba(142, 209, 223, .35), rgba(216, 239, 131, .22) 48%, rgba(231, 194, 143, .2));
  filter: blur(24px); opacity: .62; pointer-events: none;
}
.visual-stamp {
  position: absolute; z-index: 3; top: 22px; left: 22px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(227, 241, 222, .22); border-radius: 999px;
  background: rgba(7, 17, 13, .76); color: #eff5df; backdrop-filter: blur(12px);
  font: 800 10px/1 var(--font-display); letter-spacing: .1em;
}
.visual-stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d8ef83; box-shadow: 0 0 11px rgba(216, 239, 131, .75); }
.v5-hero-image {
  position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: 520px; aspect-ratio: 3 / 2;
  object-fit: cover; object-position: center; border-radius: 26px;
  border: 1px solid rgba(215, 238, 206, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .46), 0 0 36px rgba(120, 177, 111, .12);
}
.hero-visual .terminal {
  position: relative; z-index: 2; width: min(90%, 540px); margin: -72px auto 0 5%;
  border-color: rgba(184, 218, 188, .22); border-radius: 18px;
  background: rgba(8, 19, 13, .92); box-shadow: 0 22px 58px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}
.terminal-bar { border-bottom-color: rgba(174, 208, 181, .14); }
.terminal-title { color: #a4b7a8; }
.terminal-body { line-height: 1.8; }
.t-pair { color: #d8ef83; }
.t-wait { color: #e7c28f; }

.noctibot-code {
  border-color: rgba(216, 239, 131, .25);
  background: linear-gradient(110deg, rgba(216, 239, 131, .07), rgba(142, 209, 223, .045));
  box-shadow: 0 14px 45px rgba(0, 0, 0, .14);
}
.noctibot-code strong { color: #d8ef83; }
.stats { margin-top: 46px; }
.stat-card, .feature-card, .deploy-box, .instance-card, .auth-card, .panel-card {
  background: linear-gradient(145deg, rgba(17, 35, 25, .94), rgba(10, 23, 16, .96));
  border-color: rgba(174, 208, 181, .15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}
.stat-card { position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, rgba(216,239,131,.58), rgba(142,209,223,.38), transparent); }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(216, 239, 131, .3); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.stat-card .value { color: #d8ef83; }
.stat-card .label { color: #a9b9aa; }

.how-it-works, .features, .security-section, .faq-section, .contact-section {
  position: relative; padding-top: clamp(58px, 8vw, 90px); padding-bottom: clamp(58px, 8vw, 90px);
}
.how-it-works::before, .features::before, .faq-section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(82%, 1120px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(174, 208, 181, .18), rgba(142, 209, 223, .14), transparent);
}
.section-title { font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.035em; }
.section-sub { color: #aebdaf; }
.steps-row .step {
  position: relative; padding: 24px 22px; border: 1px solid rgba(174, 208, 181, .12); border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 31, 22, .74), rgba(9, 20, 14, .5));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.steps-row .step:hover { transform: translateY(-3px); border-color: rgba(216, 239, 131, .27); background: rgba(17, 36, 25, .85); }
.step-num { color: #d8ef83; border-color: rgba(216, 239, 131, .25); background: rgba(216, 239, 131, .065); }
.feature-card { position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; top: -80px; right: -55px; border-radius: 50%; background: rgba(142, 209, 223, .07); filter: blur(2px); pointer-events: none; }
.feature-card .icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(216, 239, 131, .16); border-radius: 14px; background: linear-gradient(145deg, rgba(216,239,131,.12), rgba(142,209,223,.08)); }
.feature-card h3 { letter-spacing: -.015em; }
.feature-card p { color: #afbdaf; line-height: 1.72; }
.fun-section .feature-card:nth-child(2) .icon { border-color: rgba(142,209,223,.22); background: rgba(142,209,223,.09); }
.fun-section .feature-card:nth-child(3) .icon { border-color: rgba(231,194,143,.22); background: rgba(231,194,143,.08); }
.security-inner {
  border-color: rgba(174, 208, 181, .15);
  background: linear-gradient(125deg, rgba(18, 39, 27, .96), rgba(9, 22, 15, .96));
}
.security-point > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(142,209,223,.18); border-radius: 13px; background: rgba(142,209,223,.07); }
.security-point small { color: #acbbad; }
.faq-item { background: rgba(13, 29, 20, .78); border-color: rgba(174, 208, 181, .14); }
.faq-item:hover, .faq-item[open] { border-color: rgba(216,239,131,.32); background: rgba(17, 37, 25, .95); }
.faq-item summary::after { color: #d8ef83; }
.contact-card { background: linear-gradient(135deg, rgba(17,35,25,.96), rgba(8,18,12,.98)); border-color: rgba(174,208,181,.18); }
.contact-item { background: rgba(6, 16, 10, .62); border-color: rgba(174,208,181,.15); }
.contact-item:hover { border-color: rgba(142,209,223,.4); }
.footer { border-color: rgba(174,208,181,.13); }

.auth-wrapper { position: relative; }
.auth-card, .panel-card, .deploy-box { border-radius: 22px; }
.auth-card::before { background: linear-gradient(90deg, #d8ef83, #8ed1df 62%, transparent); }
.field input, .deploy-form input, .config-inputs input, .panel-card input {
  border-color: rgba(174,208,181,.2); background: rgba(5,14,9,.74); border-radius: 13px;
}
.field input:focus, .deploy-form input:focus, .config-inputs input:focus, .panel-card input:focus {
  border-color: #a9d38a; box-shadow: 0 0 0 4px rgba(142,209,223,.11);
}
.password-toggle:hover { color: #dff0ac; background: rgba(142,209,223,.07); }
.dash-header h1 { letter-spacing: -.045em; }
.deploy-box { border-color: rgba(216,239,131,.2); background: linear-gradient(145deg, rgba(18,37,26,.97), rgba(10,22,15,.97)); }
.deploy-box h2 { color: #edf4e7; }
.instance-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.instance-card:hover { transform: translateY(-2px); border-color: rgba(142,209,223,.26); box-shadow: 0 20px 48px rgba(0,0,0,.24); }
.pairing-box { border-color: rgba(216,239,131,.25); background: rgba(216,239,131,.055); }
.pairing-box .pairing-code { color: #e1f79a; }
.account-hero { border-color: rgba(174,208,181,.18); background: linear-gradient(130deg, rgba(18,39,27,.97), rgba(8,18,12,.96)); }
.panel-card { box-shadow: 0 14px 42px rgba(0,0,0,.2); }
.admin-tab.active { color: #0a140c; background: linear-gradient(132deg, #e1f79a, #88c76f); }
.table-wrap { border-color: rgba(174,208,181,.18); }
table.admin-table th { color: #c3d3bf; background: rgba(216,239,131,.045); }
table.admin-table tbody tr:hover { background: rgba(142,209,223,.045); }
.toast { backdrop-filter: blur(15px); }
.confirm-box { background: #102118; }
.footer a { color: #cbe992; }

@media (max-width: 980px) {
  .hero-visual .terminal { margin-top: -52px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero-grid { gap: 22px; }
  .hero-copy { text-align: left; }
  .hero-ctas { justify-content: flex-start; }
  .hero-visual { padding-inline: 0; }
  .visual-stamp { top: 14px; left: 14px; font-size: 9px; }
  .v5-hero-image { border-radius: 20px; }
  .hero-visual .terminal { width: 94%; margin: -36px auto 0; }
  .steps-row .step { padding: 20px 18px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero .tag { font-size: 10px; letter-spacing: .035em; }
  .hero-ctas .btn { min-height: 46px; }
  .visual-stamp { top: 10px; left: 10px; padding: 7px 9px; }
  .hero-visual .terminal { width: 96%; margin-top: -24px; }
  .terminal-body { font-size: 11px; }
  .stats { margin-top: 30px; }
  .how-it-works, .features, .security-section, .faq-section, .contact-section { padding-top: 54px; padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card:hover, .feature-card:hover, .steps-row .step:hover, .instance-card:hover { transform: none; }
}

/* Annonce admin + formulaires de réglages */
.announcement-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-weight: 650; line-height: 1.45; border: 1px solid rgba(174,208,181,.28); background: rgba(34,84,52,.35); color: #e6f4e8; }
.announcement-banner[hidden] { display: none; }
.announcement-warning { border-color: rgba(255,184,107,.5); background: rgba(120,78,20,.35); color: #ffe2bd; }
.announcement-danger { border-color: rgba(255,120,120,.55); background: rgba(120,28,28,.4); color: #ffd3d3; }
.settings-form { display: grid; gap: 14px; max-width: 520px; margin-top: 12px; }
.settings-form label { display: grid; gap: 6px; color: #c6d3c6; font-size: 13px; font-weight: 700; }
.settings-form small { color: #8fa093; font-weight: 500; }
.settings-form input[type="number"], .settings-form textarea, .settings-form select { min-height: 42px; padding: 9px 12px; border: 1px solid rgba(174,208,181,.18); border-radius: 11px; background: rgba(5,14,9,.74); color: var(--text); font: inherit; }
.settings-form .settings-check { display: flex; align-items: center; gap: 10px; }


/* Identité et navigation par pictogrammes : libellés annoncés aux lecteurs d’écran. */
.brand .brand-icon { width: 20px; height: 20px; flex: none; color: var(--accent, #b5e96a); }
.navbar .nav-links .site-nav-icon-link { display: inline-grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px !important; place-items: center; padding: 0 !important; }
.site-nav-icon-link .fi { width: 19px; height: 19px; }
