/* ─── De Vinci Developers - feuille de style partagée ───
   Source unique des tokens + de la navbar entre Scalar (/) et Astro (/docs/). */

:root {
  --bg: #0f0e12;
  --surface: #17161c;
  --surface-2: #141318;
  --border: #272630;
  --field: #0c0b0f;
  --accent: #6758a2;
  --accent-grad: linear-gradient(135deg, #8273b8, #6758a2);
  --accent-hover: #564a87;
  --accent-glow: rgba(103, 88, 162, 0.4);
  --accent-tint: rgba(103, 88, 162, 0.14);
  --text: #ececf1;
  --text-muted: #9b9aa6;
  --text-faint: #6c6b77;
}

/* ─── Navbar partagée ───
   Spécificité volontairement renforcée (nav.dv-navbar / .dv-navbar .xxx).
   Sur /docs/ Astro scope son reset universel en [data-astro-cid]{padding:0}
   (spécificité 0,1,0, placé après cette feuille) : il écraserait le padding
   d'un simple .dv-navbar (0,1,0). On garantit ainsi une navbar identique
   entre / (Scalar) et /docs/ (Astro). */
nav.dv-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  flex-shrink: 0;
}

.dv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dv-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-grad);
  flex-shrink: 0;
}

.dv-brand-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dv-navbar .dv-switch {
  display: flex;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}

.dv-switch a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.15s;
}

.dv-switch a:hover {
  color: var(--text);
}

.dv-switch a.is-active {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.dv-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dv-user {
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.dv-navbar .dv-btn-ghost {
  font-size: 12px;
  color: #b9b8c4;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.dv-navbar .dv-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (max-width: 640px) {
  .dv-brand-name { display: none; }
  .dv-user { display: none; }
  .dv-switch a { padding: 6px 10px; }
}
