/* ============================================================
   C365 — DARK THEME SHARED
   Chargé sur toutes les pages du thème terminal (home, catégorie, article).
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }

/* ── Tokens communs ── */
:root {
  --bg:      #0a0a0f;
  --bg1:     #111118;
  --bg2:     #17171f;
  --bg3:     #1e1e2a;
  --line:    rgba(255,255,255,0.06);
  --line2:   rgba(255,255,255,0.09);
  --line3:   rgba(255,255,255,0.16);
  --fg:      #e2e2f0;
  --fg2:     #9090b0;
  --fg3:     #555570;
  --fg4:     #33334a;
  --acc:     #4ade80;
  --acc2:    #60a5fa;
  --acc3:    #f59e0b;
  --acc4:    #f87171;
  --acc-dim: rgba(74,222,128,0.08);
  --mono:    'JetBrains Mono', monospace;
  --sans:    'Outfit', sans-serif;
  --rad:     3px;
}

/* ── Body base ── */
body.page-dark {
  background:  var(--bg);
  color:       var(--fg);
  font-family: var(--mono);
  font-size:   13px;
  line-height: 1.5;
  min-height:  100vh;
  -webkit-font-smoothing: antialiased;
}

body.page-dark a { color: inherit; text-decoration: none; }

/* ── Scan lines décoratifs ── */
.hv3-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.hv3-topbar {
  height: 36px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hv3-topbar-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 20px;
  border-right: 1px solid var(--line2);
  margin-right: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hv3-logo-bracket { color: var(--acc); }

.hv3-topbar-crumb {
  font-size: 11px;
  color: var(--fg3);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.hv3-crumb-sep { color: var(--fg4); flex-shrink: 0; }

.hv3-crumb-current { color: var(--fg2); overflow: hidden; text-overflow: ellipsis; }

.hv3-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-left: 16px;
}

.hv3-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--acc);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hv3-status-dot {
  width: 5px; height: 5px;
  background: var(--acc);
  border-radius: 50%;
  animation: hv3-blink 2s step-end infinite;
  flex-shrink: 0;
}

.hv3-topbar-link {
  font-size: 10px;
  color: var(--fg3);
  letter-spacing: 0.05em;
  transition: color 0.15s;
  text-transform: uppercase;
  white-space: nowrap;
}

.hv3-topbar-link:hover { color: var(--fg); }

/* ══════════════════════════════════════════
   COMMAND BAR
══════════════════════════════════════════ */
.hv3-cmdbar {
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 36px;
  z-index: 99;
}

.hv3-cmdbar::-webkit-scrollbar { display: none; }

.hv3-cmd-tab {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.hv3-cmd-tab:hover { color: var(--fg2); }

.hv3-cmd-tab.is-active {
  color: var(--acc);
  border-bottom-color: var(--acc);
  background: var(--acc-dim);
}

.hv3-tab-n {
  font-size: 9px;
  color: var(--fg4);
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 2px;
}

.hv3-cmd-tab.is-active .hv3-tab-n { color: var(--acc); background: rgba(74,222,128,0.1); }

.hv3-cmd-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  flex-shrink: 0;
}

.hv3-search-box { position: relative; display: flex; align-items: center; }

.hv3-search-ico { position: absolute; left: 8px; color: var(--fg4); pointer-events: none; }

.hv3-search-input {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  padding: 5px 8px 5px 26px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg);
  outline: none;
  width: 200px;
  transition: all 0.2s;
  caret-color: var(--acc);
}

.hv3-search-input::placeholder { color: var(--fg4); }
.hv3-search-input:focus { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(74,222,128,0.1); }

.hv3-sort-btn {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--fg3);
  border-radius: var(--rad);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.hv3-sort-btn:hover  { border-color: var(--line3); color: var(--fg2); }
.hv3-sort-btn.is-active { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }

/* ══════════════════════════════════════════
   SHELL — grille 3 colonnes
══════════════════════════════════════════ */
.hv3-shell {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  min-height: calc(100vh - 72px);
}

/* ── Panneau gauche ── */
.hv3-panel-left {
  border-right: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  align-self: start;
  transition: left 0.25s ease;
}

/* ── Bouton "Filtres" mobile (caché sur desktop) ── */
.hv3-filter-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  padding: 0 14px;
  border: none;
  border-right: 1px solid var(--line);
  background: none;
  cursor: pointer;
  height: 100%;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  white-space: nowrap;
}
.hv3-filter-toggle:hover  { color: var(--fg); }
.hv3-filter-toggle.is-active { color: var(--acc); }

/* ── Overlay pour fermer le drawer ── */
.hv3-panel-overlay {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(0,0,0,0.55);
  z-index: 89;
}

.hv3-panel-section {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.hv3-panel-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--fg4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hv3-cat-list { list-style: none; }

.hv3-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--rad);
  cursor: pointer;
  transition: all 0.12s;
  margin: 1px 0;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

.hv3-cat-item:hover   { background: var(--bg2); }
.hv3-cat-item.is-active { background: var(--acc-dim); }

.hv3-cat-item img { width: 14px; height: 14px; object-fit: contain; opacity: 0.7; flex-shrink: 0; }
.hv3-cat-item.is-active img { opacity: 1; }

.hv3-cat-all-icon { font-size: 12px; opacity: 0.4; width: 14px; text-align: center; flex-shrink: 0; }

.hv3-cat-name { font-size: 11px; color: var(--fg2); flex: 1; transition: color 0.12s; }
.hv3-cat-item:hover .hv3-cat-name     { color: var(--fg); }
.hv3-cat-item.is-active .hv3-cat-name { color: var(--acc); }

.hv3-cat-count {
  font-size: 10px;
  color: var(--fg4);
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 500;
  flex-shrink: 0;
}

.hv3-cat-item.is-active .hv3-cat-count { color: var(--acc); background: rgba(74,222,128,0.1); }

/* Stats grid */
.hv3-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.hv3-stat-cell {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 10px;
}

.hv3-stat-val { font-size: 22px; font-weight: 700; color: var(--fg); line-height: 1; letter-spacing: -0.03em; }
.hv3-stat-lbl { font-size: 9px; color: var(--fg4); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.hv3-stat-cell.is-green .hv3-stat-val { color: var(--acc); }
.hv3-stat-cell.is-blue  .hv3-stat-val { color: var(--acc2); }

/* ── Panneau principal ── */
.hv3-panel-main {
  background: var(--bg);
  overflow: clip;
  min-width: 0;
}

.hv3-tbl-head {
  display: grid;
  grid-template-columns: 90px 1fr 110px 90px 70px;
  border-bottom: 1px solid var(--line2);
  background: var(--bg1);
  position: sticky;
  top: 72px;
  z-index: 10;
}

.hv3-th {
  font-size: 9px;
  font-weight: 700;
  color: var(--fg4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.hv3-th:last-child { border-right: none; }
.hv3-th.is-active  { color: var(--acc2); }

.hv3-article-list { display: flex; flex-direction: column; }

.hv3-art-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px 90px 70px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  min-height: 56px;
  align-items: center;
}

.hv3-art-row:hover { background: var(--bg2); }

.hv3-art-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.hv3-art-cell:last-child { border-right: none; }

.hv3-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hv3-badge-out { background: rgba(74,222,128,0.1); color: var(--acc);  border: 1px solid rgba(74,222,128,0.2); }
.hv3-badge-ann { background: rgba(96,165,250,0.1); color: var(--acc2); border: 1px solid rgba(96,165,250,0.2); }

.hv3-art-title {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hv3-art-excerpt {
  font-size: 11px;
  color: var(--fg3);
  font-family: var(--mono);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.hv3-prod-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv3-prod-tag img { width: 12px; height: 12px; object-fit: contain; opacity: 0.6; flex-shrink: 0; }

.hv3-art-date  { font-size: 11px; color: var(--fg3); font-feature-settings: "tnum"; }
.hv3-art-views { font-size: 11px; color: var(--fg3); font-feature-settings: "tnum"; display: flex; align-items: center; gap: 4px; }

.hv3-no-results { padding: 60px 24px; text-align: center; color: var(--fg4); font-size: 12px; display: none; }
.hv3-no-results code { display: block; font-size: 22px; color: var(--fg3); margin-bottom: 8px; background: none; border: none; padding: 0; }

.hv3-list-loading { padding: 40px 24px; text-align: center; color: var(--fg4); font-size: 12px; font-family: var(--font-mono); }

mark { background: rgba(74,222,128,0.2); color: var(--acc); border-radius: 2px; padding: 0 1px; }

/* ── Panneau droit ── */
.hv3-panel-right {
  border-left: 1px solid var(--line);
  background: var(--bg);
}

.hv3-pright-section {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.hv3-pright-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--fg4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hv3-latest-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); transition: all 0.12s; }
.hv3-latest-item:last-child { border-bottom: none; }
.hv3-latest-item:hover .hv3-li-title { color: var(--acc); }

.hv3-li-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }

.hv3-li-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 5px; border-radius: 2px; }
.hv3-li-tag-out { background: rgba(74,222,128,0.1); color: var(--acc); }
.hv3-li-tag-ann { background: rgba(96,165,250,0.1); color: var(--acc2); }

.hv3-li-prod { font-size: 9px; color: var(--fg4); display: flex; align-items: center; gap: 3px; }
.hv3-li-prod img { width: 10px; height: 10px; object-fit: contain; opacity: 0.5; }
.hv3-li-date { font-size: 9px; color: var(--fg4); margin-left: auto; }
.hv3-li-title { font-family: var(--sans); font-size: 12px; color: var(--fg2); line-height: 1.4; transition: color 0.12s; }

/* Author */
.hv3-author-card { display: flex; flex-direction: column; gap: 10px; }
.hv3-author-top  { display: flex; align-items: center; gap: 10px; }

.hv3-author-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--fg2);
  flex-shrink: 0;
}

.hv3-author-name { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--fg); }
.hv3-author-role { font-size: 10px; color: var(--fg3); margin-top: 1px; }
.hv3-author-desc { font-size: 11px; color: var(--fg3); line-height: 1.6; font-family: var(--sans); }

.hv3-author-link { font-size: 10px; color: var(--acc); display: inline-flex; align-items: center; gap: 4px; transition: opacity 0.15s; }
.hv3-author-link:hover { opacity: 0.7; }

/* RSS */
.hv3-rss-line { display: flex; align-items: center; justify-content: space-between; }
.hv3-rss-text { font-size: 11px; color: var(--fg3); }

.hv3-rss-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--acc3);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 4px 10px;
  border-radius: var(--rad);
  background: rgba(245,158,11,0.05);
  transition: all 0.15s;
}

.hv3-rss-btn:hover { background: rgba(245,158,11,0.12); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.hv3-footer {
  background: var(--bg1);
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hv3-footer-left  { display: flex; align-items: center; gap: 16px; }
.hv3-footer-logo  { font-weight: 700; font-size: 13px; letter-spacing: -0.02em; color: var(--fg2); }
.hv3-footer-copy  { font-size: 10px; color: var(--fg4); }

.hv3-footer-links { display: flex; gap: 12px; list-style: none; }
.hv3-footer-links a { font-size: 10px; color: var(--fg4); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.15s; }
.hv3-footer-links a:hover { color: var(--fg2); }

/* ══════════════════════════════════════════
   PAGES SIMPLES (ABOUT, NEWSLETTER, LOGIN)
══════════════════════════════════════════ */

.hv3-simple-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.hv3-simple-eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hv3-simple-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.hv3-simple-lead {
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.7;
  max-width: 56ch;
}

/* ── Contenu À propos ── */
.hv3-about-content {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hv3-about-content h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.hv3-about-content h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg2);
  margin: 1rem 0 0.4rem;
}

.hv3-about-content p,
.hv3-about-content li {
  color: var(--fg2);
  line-height: 1.75;
  margin-bottom: 0.65rem;
}

.hv3-about-content ul,
.hv3-about-content ol { padding-left: 1.4rem; margin-bottom: 0.65rem; }

.hv3-about-content a { color: var(--acc2); text-decoration: underline; text-underline-offset: 2px; }

.hv3-about-content blockquote {
  border-left: 2px solid var(--acc);
  padding-left: 14px;
  color: var(--fg3);
  margin: 1rem 0;
}

.hv3-about-content img { max-width: 100%; border-radius: var(--rad); margin: 1rem 0; }

.hv3-about-content pre { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad); padding: 12px 14px; overflow-x: auto; margin-bottom: 0.65rem; }
.hv3-about-content code { font-family: var(--mono); font-size: 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad); padding: 1px 5px; }
.hv3-about-content pre code { background: none; border: none; padding: 0; }

/* ── Newsletter page ── */
.hv3-nl-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.hv3-nl-points {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.hv3-nl-point {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--rad);
}

.hv3-nl-point strong {
  font-size: 10px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hv3-nl-point span { font-size: 11px; color: var(--fg3); }

.hv3-nl-widget {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  padding: 20px;
}

.hv3-nl-widget-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hv3-nl-widget-desc { font-size: 11px; color: var(--fg3); line-height: 1.6; margin-bottom: 14px; }

.hv3-nl-form { display: flex; flex-direction: column; gap: 10px; }

.hv3-nl-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  padding: 8px 12px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.hv3-nl-input:focus { border-color: var(--acc); }
.hv3-nl-input::placeholder { color: var(--fg4); }

.hv3-nl-btn {
  background: var(--acc);
  color: var(--bg);
  border: none;
  border-radius: var(--rad);
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hv3-nl-btn:hover { opacity: 0.85; }
.hv3-nl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hv3-nl-consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--fg3);
  cursor: pointer;
  line-height: 1.5;
}

.hv3-nl-msg { font-size: 11px; padding: 8px 10px; border-radius: var(--rad); }
.hv3-nl-msg.is-success { background: rgba(74,222,128,0.08); color: var(--acc); border: 1px solid rgba(74,222,128,0.2); }
.hv3-nl-msg.is-error   { background: rgba(248,113,113,0.08); color: var(--acc4); border: 1px solid rgba(248,113,113,0.2); }

.hv3-nl-note { font-size: 9px; color: var(--fg4); text-align: center; margin-top: 8px; }

/* ── Auth card (login) ── */
.hv3-auth-wrap {
  min-height: calc(100vh - 72px - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hv3-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  padding: 32px;
}

.hv3-auth-eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hv3-auth-title {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hv3-auth-lead { font-size: 11px; color: var(--fg3); line-height: 1.65; margin-bottom: 24px; }

.hv3-auth-error {
  font-size: 11px;
  padding: 9px 12px;
  border-radius: var(--rad);
  background: rgba(248,113,113,0.08);
  color: var(--acc4);
  border: 1px solid rgba(248,113,113,0.2);
  margin-bottom: 14px;
}

.hv3-auth-form { display: flex; flex-direction: column; gap: 16px; }

.hv3-auth-field { display: grid; gap: 6px; }

.hv3-auth-field label {
  font-size: 9px;
  font-weight: 700;
  color: var(--fg3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv3-auth-field input {
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.hv3-auth-field input:focus { border-color: var(--acc); }
.hv3-auth-field input::placeholder { color: var(--fg4); }

.hv3-auth-btn {
  background: var(--acc);
  color: var(--bg);
  border: none;
  border-radius: var(--rad);
  padding: 11px 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 6px;
  width: 100%;
}

.hv3-auth-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes hv3-blink   { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes hv3-slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hv3-shell { grid-template-columns: 200px 1fr; }
  .hv3-panel-right { display: none; }
}

@media (max-width: 720px) {
  .hv3-shell { grid-template-columns: 1fr; }

  .hv3-tbl-head, .hv3-art-row { grid-template-columns: 80px 1fr 70px; }

  .hv3-tbl-head .hv3-th:nth-child(3),
  .hv3-tbl-head .hv3-th:nth-child(5),
  .hv3-art-row  .hv3-art-cell:nth-child(3),
  .hv3-art-row  .hv3-art-cell:nth-child(5) { display: none; }

  .hv3-nl-layout { grid-template-columns: 1fr; }
  .hv3-auth-card { padding: 24px 20px; }
  .hv3-simple-main { padding: 24px 16px 60px; }

  /* Topbar : masquer les liens secondaires, garder seulement le logo */
  .hv3-status-pill { display: none; }
  .hv3-topbar-link { display: none; }
  .hv3-topbar-right { gap: 0; padding-left: 0; }

  /* Bouton "Filtres" visible sur mobile */
  .hv3-filter-toggle { display: flex; }

  /* Cmdbar : 2 lignes sur mobile */
  .hv3-cmdbar {
    flex-wrap: wrap;
    overflow-x: hidden;
    padding: 0;
    height: auto;
  }
  .hv3-cmd-right {
    order: 10;
    width: 100%;
    margin-left: 0;
    padding: 6px 12px;
    border-top: 1px solid var(--line);
    box-sizing: border-box;
    gap: 6px;
  }
  .hv3-search-box { flex: 1; min-width: 0; }
  .hv3-search-input { width: 100%; }

  /* Panneau gauche en drawer — caché hors écran (pas display:none) */
  .hv3-panel-left {
    display: block;
    position: fixed;
    left: -240px;
    top: 72px;
    height: calc(100vh - 72px);
    width: 220px;
    z-index: 90;
    box-shadow: none;
  }
  .hv3-panel-left.is-mobile-open {
    left: 0;
    box-shadow: 6px 0 24px rgba(0,0,0,0.6);
  }
  .hv3-panel-overlay.is-visible { display: block; }
}
