/* SCOPEWRIGHT DESIGN TOKENS
   Source de vérité pour toutes les valeurs visuelles.
   Référence principale : login.html
   Référence secondaire : landing page scopewright.ca

   NE PAS MODIFIER sans vérifier toutes les pages.
   Pages exclues (gardent le vert Stele) : quote.html, pages client-facing */

:root {
  /* Couleurs principales */
  --sw-navy: #0B1220;
  --sw-navy-hover: #080E18;

  /* Texte */
  --sw-text: #0F172A;
  --sw-text-2: #64748B;
  --sw-muted: #94A3B8;

  /* Backgrounds */
  --sw-bg: #F8FAFC;
  --sw-surface: #FFFFFF;

  /* Bordures */
  --sw-border: #E2E8F0;
  --sw-border-2: #F1F5F9;

  /* Rayons */
  --sw-radius-input: 10px;
  --sw-radius-btn: 10px;
  --sw-radius-card: 14px;
  --sw-radius-modal: 16px;
  --sw-radius-dropdown: 12px;
  --sw-radius-pill: 999px;

  /* Ombres */
  --sw-shadow-card: 0 10px 30px rgba(15,23,42,0.06);
  --sw-shadow-modal: 0 40px 80px rgba(15,23,42,0.12);
  --sw-shadow-primary: 0 6px 20px rgba(11,18,32,0.18);
  --sw-shadow-dropdown: 0 20px 50px rgba(15,23,42,0.12);

  /* Focus */
  --sw-focus: 0 0 0 2px rgba(11,18,32,0.22);

  /* Transitions */
  --sw-ease: 180ms ease;
  --sw-ease-modal: 220ms ease;

  /* Spacing (multiples de 8) */
  --sw-space-1: 8px;
  --sw-space-1h: 12px;
  --sw-space-2: 16px;
  --sw-space-3: 24px;
  --sw-space-4: 32px;
  --sw-space-5: 40px;
  --sw-space-6: 48px;
  --sw-space-8: 64px;

  /* Layout */
  --sw-max-width: 1120px;
  --sw-padding-x: 40px;

  /* Typographie */
  --sw-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

body {
  font-family: var(--sw-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--sw-text);
  background: var(--sw-bg);
}

/* ========================================
   BOUTON PRIMAIRE
   ======================================== */

.sw-btn-primary {
  height: 44px;
  padding: 0 20px;
  background: var(--sw-navy);
  color: white;
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: var(--sw-radius-btn);
  box-shadow: var(--sw-shadow-primary);
  cursor: pointer;
  transition: background var(--sw-ease);
}

.sw-btn-primary:hover {
  background: var(--sw-navy-hover);
}

/* ========================================
   BOUTON SECONDAIRE
   ======================================== */

.sw-btn-secondary {
  height: 44px;
  padding: 0 20px;
  background: var(--sw-surface);
  color: var(--sw-text);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-btn);
  cursor: pointer;
  transition: background var(--sw-ease);
}

.sw-btn-secondary:hover {
  background: var(--sw-border-2);
}

/* ========================================
   INPUTS
   ======================================== */

.sw-input {
  height: 44px;
  padding: 0 14px;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-input);
  font-size: 14px;
  color: var(--sw-text);
  transition: border var(--sw-ease);
}

.sw-input::placeholder {
  color: var(--sw-muted);
}

.sw-input:focus {
  outline: none;
  box-shadow: var(--sw-focus);
}

/* ========================================
   BADGES
   ======================================== */

.sw-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--sw-radius-pill);
  font-size: 12px;
  font-weight: 500;
}

/* ========================================
   CARDS
   ======================================== */

.sw-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-card);
  padding: var(--sw-space-3);
  transition: box-shadow var(--sw-ease);
}

.sw-card:hover {
  box-shadow: var(--sw-shadow-card);
}

/* ========================================
   NAV-RIGHT (groupe AI btn + status à droite)
   ======================================== */

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========================================
   BOUTON ASSISTANT AI
   ======================================== */

.ai-assistant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.ai-assistant-btn::after {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sw-navy);
  opacity: 0.85;
  box-shadow: 0 0 0 4px rgba(11,18,32,0.06);
  transition: all var(--sw-ease);
  animation: ai-breathe 3s ease-in-out infinite;
}

.ai-assistant-btn:hover::after {
  opacity: 1;
  transform: scale(1.05);
}

.ai-assistant-btn.active::after {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(11,18,32,0.15);
  animation: none;
}

/* Version blanche (pour fonds sombres, ex: bande meuble calculateur) */
.ai-assistant-btn--light::after {
  background: white;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

@keyframes ai-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ========================================
   SPLIT PANEL (login + dashboard)
   ======================================== */

.sw-split-panel {
  background: var(--sw-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sw-split-panel .sw-brand-name {
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sw-split-panel .sw-brand-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
