/* nilsiteweb Portail – Client CSS */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nsw-noir:       #0d0d0d;
  --nsw-noir2:      #1a1a1a;
  --nsw-gris:       #2a2a2a;
  --nsw-gris-fade:  #3a3a3a;
  --nsw-blanc:      #fafafa;
  --nsw-bg:         #f5f5f7;
  --nsw-border:     #e4e4e4;
  --nsw-border-2:   #ededed;
  --nsw-bleu:       #3a7bd5;
  --nsw-bleu-bg:    #eef4ff;
  --nsw-rouge:      #e05454;
  --nsw-rouge-bg:   #fef2f2;
  --nsw-vert:       #2ec27e;
  --nsw-vert-bg:    #f0fdf6;
  --nsw-orange:     #f0a843;
  --nsw-muted:      #888;
  --nsw-radius:     10px;
  --nsw-shadow:     0 2px 12px rgba(0,0,0,.06);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--nsw-bg);
  color: var(--nsw-noir);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   LAYOUT — Sidebar + Main
═══════════════════════════════════════════════ */
.nsw-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  background: var(--nsw-noir);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.nsw-sb-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nsw-sb-brand span {
  color: #666;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.nsw-sb-nav {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nsw-sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .15s;
}
.nsw-sb-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.nsw-sb-link.active { background: var(--nsw-bleu); color: #fff; }
.nsw-sb-icon { font-size: 14px; width: 18px; text-align: center; opacity: .9; }

.nsw-sb-footer {
  border-top: 1px solid #222;
  padding-top: 16px;
  margin-top: 16px;
}
.nsw-sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.nsw-sb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--nsw-bleu);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.nsw-sb-user-info strong { font-size: 12px; display: block; color: #fff; }
.nsw-sb-user-info small { font-size: 10px; color: #777; }
.nsw-sb-logout {
  color: #888;
  font-size: 11px;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  display: inline-block;
  transition: all .15s;
}
.nsw-sb-logout:hover { border-color: var(--nsw-rouge); color: var(--nsw-rouge); }

.nsw-main {
  margin-left: 220px;
  padding: 32px 40px;
  min-height: 100vh;
  max-width: 1100px;
}
.nsw-main-full {
  margin-left: 0;
  max-width: none;
  padding: 0;
}

/* ═══════════════════════════════════════════════
   TOPBAR & EYEBROW
═══════════════════════════════════════════════ */
.nsw-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nsw-border);
}
.nsw-topbar h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.nsw-topbar-date {
  font-size: 13px;
  color: var(--nsw-muted);
  font-family: 'DM Mono', monospace;
}
.nsw-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nsw-muted);
  margin-bottom: 4px;
}
.nsw-eyebrow a { color: inherit; text-decoration: none; }
.nsw-eyebrow a:hover { color: var(--nsw-bleu); }

/* ═══════════════════════════════════════════════
   CARDS GRID (home)
═══════════════════════════════════════════════ */
.nsw-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.nsw-card {
  background: #fff;
  border: 1px solid var(--nsw-border);
  border-radius: var(--nsw-radius);
  padding: 20px;
  box-shadow: var(--nsw-shadow);
  position: relative;
}
.nsw-card-accent { border-top: 3px solid var(--nsw-bleu); }
.nsw-card-label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nsw-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.nsw-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--nsw-noir);
  margin-bottom: 4px;
}
.nsw-card-sub {
  font-size: 11px;
  color: var(--nsw-muted);
  margin-bottom: 12px;
}
.nsw-card-link {
  font-size: 12px;
  color: var(--nsw-bleu);
  text-decoration: none;
  font-weight: 600;
}
.nsw-card-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   BLOCKS
═══════════════════════════════════════════════ */
.nsw-block {
  background: #fff;
  border: 1px solid var(--nsw-border);
  border-radius: var(--nsw-radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--nsw-shadow);
}
.nsw-block h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nsw-border-2);
}
.nsw-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.nsw-block-header h2 {
  border: none;
  padding: 0;
  margin: 0;
}

.nsw-block-dark { background: var(--nsw-noir2); border-color: #2a2a2a; }
.nsw-block-dark-title {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 10px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   STATS SUMMARY
═══════════════════════════════════════════════ */
.nsw-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nsw-stat { display: flex; flex-direction: column; gap: 4px; }
.nsw-stat-lbl { font-size: 10px; color: var(--nsw-muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.nsw-stat-big { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════
   CHART
═══════════════════════════════════════════════ */
.nsw-chart-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #888;
}
.nsw-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.nsw-dot-blue { background: var(--nsw-bleu); }
.nsw-dot-red { background: var(--nsw-rouge); }

/* ═══════════════════════════════════════════════
   REPORTS GRID
═══════════════════════════════════════════════ */
.nsw-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.nsw-report-card {
  display: block;
  background: #fff;
  border: 1px solid var(--nsw-border);
  border-radius: var(--nsw-radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.nsw-report-card:hover {
  border-color: var(--nsw-bleu);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(58,123,213,.12);
}
.nsw-report-card-year {
  font-size: 28px;
  font-weight: 700;
  color: var(--nsw-bleu);
  font-variant-numeric: tabular-nums;
}
.nsw-report-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 8px;
}
.nsw-report-card-meta {
  font-size: 11px;
  color: var(--nsw-muted);
  margin-bottom: 12px;
}
.nsw-report-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--nsw-bleu);
}

/* ═══════════════════════════════════════════════
   MOIS TABS & PANELS
═══════════════════════════════════════════════ */
.nsw-mois-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.nsw-mois-tab {
  padding: 6px 11px;
  border: 1px solid var(--nsw-border);
  border-radius: 5px;
  background: #fff;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: all .12s;
}
.nsw-mois-tab:hover { border-color: var(--nsw-bleu); color: var(--nsw-noir); }
.nsw-mois-tab.active { background: var(--nsw-bleu); color: #fff; border-color: var(--nsw-bleu); }
.nsw-mois-tab.has-data::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--nsw-vert);
}
.nsw-mois-tab.active.has-data::after { background: #fff; }

.nsw-mois-panel { display: none; }
.nsw-mois-panel.active {
  display: block;
  animation: nswFadeIn .15s ease;
}
@keyframes nswFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nsw-mois-panel-title {
  font-size: 14px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   STAT BOXES
═══════════════════════════════════════════════ */
.nsw-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.nsw-stat-box {
  background: #f8f8f8;
  border-radius: var(--nsw-radius);
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}
.nsw-stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
}
.nsw-stat-blue::before { background: var(--nsw-bleu); }
.nsw-stat-red::before { background: var(--nsw-rouge); }
.nsw-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nsw-muted);
  margin-bottom: 5px;
}
.nsw-stat-val {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nsw-stat-evol {
  font-size: 11px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.nsw-stat-evol.pos { color: var(--nsw-vert); }
.nsw-stat-evol.neg { color: var(--nsw-rouge); }

/* ═══════════════════════════════════════════════
   TÂCHES LIST
═══════════════════════════════════════════════ */
.nsw-taches-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nsw-tache-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid var(--nsw-border);
  font-size: 12px;
  background: #f8f8f8;
}
.nsw-tache-row.done    { background: var(--nsw-vert-bg);  border-color: #b6e8ce; color: #0f4d2e; }
.nsw-tache-row.not-done{ background: var(--nsw-rouge-bg); border-color: #f5c6c6; color: #7a1f1f; }
.nsw-tache-row.na      { background: #f5f5f5; color: #999; }
.nsw-tache-icon {
  font-size: 13px;
  font-weight: 700;
  width: 18px;
  text-align: center;
}
.nsw-tache-lbl { flex: 1; }

.nsw-mois-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffbf0;
  border-left: 3px solid var(--nsw-orange);
  border-radius: 0 5px 5px 0;
  font-size: 12px;
  color: #555;
}

.nsw-bilan {
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  background: #fafafa;
  border: 1px solid var(--nsw-border);
  border-radius: 6px;
  padding: 14px 18px;
}

/* ═══════════════════════════════════════════════
   BACKUPS
═══════════════════════════════════════════════ */
.nsw-backup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nsw-backup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--nsw-border);
  border-radius: var(--nsw-radius);
  background: #fafafa;
  transition: border-color .15s;
}
.nsw-backup-item:hover { border-color: #c5d9f7; }
.nsw-backup-unavail { opacity: .55; }
.nsw-backup-icon { font-size: 26px; flex-shrink: 0; }
.nsw-backup-info { flex: 1; }
.nsw-backup-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.nsw-backup-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--nsw-muted);
}
.nsw-backup-note { font-size: 11px; color: #777; margin-top: 4px; font-style: italic; }

.nsw-info-banner {
  background: var(--nsw-bleu-bg);
  border: 1px solid #c5d9f7;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #2b5998;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   CONTRACT
═══════════════════════════════════════════════ */
.nsw-contract-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f8f8, #fff);
  border: 1px solid var(--nsw-border);
  border-radius: var(--nsw-radius);
  margin-bottom: 20px;
}
.nsw-contract-name { font-size: 22px; margin-top: 4px; }
.nsw-contract-desc { margin-top: 8px; color: #555; font-size: 13px; }
.nsw-contract-price { text-align: right; }
.nsw-contract-price-val { font-size: 22px; font-weight: 700; color: var(--nsw-bleu); }
.nsw-contract-price-freq { font-size: 11px; color: var(--nsw-muted); text-transform: uppercase; letter-spacing: .08em; }
.nsw-contract-h3 { font-size: 13px; font-weight: 700; margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.nsw-contract-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nsw-contract-features li {
  padding: 9px 14px;
  background: #f8f8f8;
  border-radius: 5px;
  font-size: 13px;
  position: relative;
  padding-left: 30px;
}
.nsw-contract-features li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: var(--nsw-vert);
  font-weight: 700;
}
.nsw-contract-notes {
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
}
.nsw-contract-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--nsw-border-2);
  font-size: 12px;
  color: var(--nsw-muted);
}
.nsw-contract-footer a { color: var(--nsw-bleu); }

.nsw-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ═══════════════════════════════════════════════
   BUTTONS & BADGES
═══════════════════════════════════════════════ */
.nsw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  letter-spacing: .02em;
}
.nsw-btn-primary { background: var(--nsw-bleu); color: #fff; }
.nsw-btn-primary:hover { background: #2d68c0; color: #fff; }
.nsw-btn-ghost { background: transparent; color: #666; border: 1px solid var(--nsw-border); }
.nsw-btn-ghost:hover { border-color: #aaa; color: var(--nsw-noir); }
.nsw-btn-sm { padding: 6px 13px; font-size: 12px; }
.nsw-btn-full { width: 100%; justify-content: center; }

.nsw-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--nsw-bleu-bg);
  color: var(--nsw-bleu);
}
.nsw-badge-grey { background: #f0f0f0; color: #888; }

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.nsw-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--nsw-muted);
}
.nsw-empty-icon { font-size: 48px; margin-bottom: 12px; }
.nsw-empty h2 { font-size: 16px; color: var(--nsw-noir); margin-bottom: 6px; }

/* ═══════════════════════════════════════════════
   AUTH (login, lost-password, reset, 2fa)
═══════════════════════════════════════════════ */
.nsw-auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at top, rgba(58,123,213,.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(224,84,84,.04), transparent 60%),
    var(--nsw-bg);
}
.nsw-auth-card {
  background: #fff;
  max-width: 400px;
  width: 100%;
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.nsw-auth-brand {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nsw-border);
}
.nsw-auth-brand h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.nsw-auth-brand p {
  font-size: 10px;
  color: var(--nsw-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nsw-form { display: flex; flex-direction: column; gap: 14px; }
.nsw-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nsw-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nsw-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fafafa;
  transition: all .15s;
}
.nsw-field input:focus {
  outline: none;
  border-color: var(--nsw-bleu);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,123,213,.1);
}

.nsw-auth-links {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
}
.nsw-auth-links a {
  color: var(--nsw-muted);
  text-decoration: none;
}
.nsw-auth-links a:hover { color: var(--nsw-bleu); }

.nsw-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--nsw-muted);
  max-width: 400px;
  width: 100%;
}
.nsw-auth-footer a { color: inherit; }

.nsw-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.nsw-msg-error { background: var(--nsw-rouge-bg); border: 1px solid #f5c6c6; color: #7a1f1f; }
.nsw-msg-ok { background: var(--nsw-vert-bg); border: 1px solid #b6e8ce; color: #0f4d2e; }

/* ═══════════════════════════════════════════════
   DATES DE VALIDITÉ & ALERTES
═══════════════════════════════════════════════ */
.nsw-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 22px;
}
.nsw-date-box {
  background: #f8f8f8;
  border: 1px solid var(--nsw-border);
  border-radius: 8px;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}
.nsw-date-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--nsw-bleu);
}
.nsw-date-box.warn {
  background: #fffbf0;
  border-color: #f5dfa8;
}
.nsw-date-box.warn::before { background: var(--nsw-orange); }
.nsw-date-box.expired {
  background: var(--nsw-rouge-bg);
  border-color: #f5c6c6;
}
.nsw-date-box.expired::before { background: var(--nsw-rouge); }
.nsw-date-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--nsw-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nsw-date-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--nsw-noir);
  font-variant-numeric: tabular-nums;
}
.nsw-date-sub {
  display: block;
  font-size: 11px;
  color: var(--nsw-muted);
  margin-top: 2px;
  font-weight: 500;
}
.nsw-date-box.warn .nsw-date-sub { color: #8a5a00; }
.nsw-date-box.expired .nsw-date-sub { color: #991b1b; font-weight: 600; }

.nsw-alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid;
}
.nsw-alert-warning {
  background: #fffbf0;
  border-color: #f5dfa8;
  color: #8a5a00;
}
.nsw-alert-error {
  background: var(--nsw-rouge-bg);
  border-color: #f5c6c6;
  color: #7a1f1f;
}
.nsw-alert a { color: inherit; font-weight: 600; }

/* Card expiry badge (home) */
.nsw-card-expiry {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #f0f6ff;
  color: #2b5998;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
}
.nsw-card-warn .nsw-card-expiry {
  background: #fffbf0;
  color: #8a5a00;
  border: 1px solid #f5dfa8;
}
.nsw-card-danger .nsw-card-expiry {
  background: var(--nsw-rouge-bg);
  color: #7a1f1f;
  border: 1px solid #f5c6c6;
  font-weight: 600;
}
.nsw-card-warn { border-top-color: var(--nsw-orange); }
.nsw-card-danger { border-top-color: var(--nsw-rouge); }

/* ═══════════════════════════════════════════════
   ADMIN PREVIEW BANNER
═══════════════════════════════════════════════ */
.nsw-admin-preview-banner {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #78350f;
}
.nsw-admin-preview-banner strong { color: #451a03; }
.nsw-admin-preview-back {
  background: #78350f;
  color: #fff;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.nsw-admin-preview-back:hover { background: #451a03; color: #fff; }

/* ═══════════════════════════════════════════════
   NOTIFICATION SWITCH (account page)
═══════════════════════════════════════════════ */
.nsw-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: #f8f8f8;
  border: 1px solid var(--nsw-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.nsw-switch-row:hover { border-color: #c5d9f7; }
.nsw-switch-info { flex: 1; }
.nsw-switch-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nsw-noir);
  margin-bottom: 3px;
}
.nsw-switch-info span {
  display: block;
  font-size: 12px;
  color: var(--nsw-muted);
  line-height: 1.5;
}
.nsw-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.nsw-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.nsw-switch-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background .2s;
}
.nsw-switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.nsw-switch input:checked + .nsw-switch-slider {
  background: var(--nsw-bleu);
}
.nsw-switch input:checked + .nsw-switch-slider::before {
  transform: translateX(20px);
}

/* ═══════════════════════════════════════════════
   MODE INTÉGRÉ AU THÈME (login / lost-password)
═══════════════════════════════════════════════ */
.nsw-main-auth-integrated {
  padding: 20px 0;
}
.nsw-integrated .nsw-auth-wrap {
  background: transparent !important;
  min-height: auto !important;
  padding: 30px 20px !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nsw-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 18px;
  }
  .nsw-sb-brand strong { font-size: 16px; }
  .nsw-sb-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
  .nsw-sb-link { padding: 6px 10px; font-size: 12px; }
  .nsw-sb-icon { font-size: 12px; }

  /* Footer sidebar : compacter en horizontal au lieu de masquer */
  .nsw-sb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #222;
    padding: 12px 0 0;
    margin-top: 14px;
  }
  .nsw-sb-user {
    margin-bottom: 0;
    flex: 1;
    min-width: 0; /* permet l'ellipsis */
  }
  .nsw-sb-user-info strong,
  .nsw-sb-user-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    display: block;
  }
  .nsw-sb-logout {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
    background: rgba(224,84,84,0.08);
    border-color: rgba(224,84,84,0.4);
    color: #ff8a8a;
    font-weight: 600;
  }
  .nsw-sb-logout:hover {
    background: var(--nsw-rouge);
    border-color: var(--nsw-rouge);
    color: #fff;
  }

  .nsw-main { margin-left: 0; padding: 24px 20px; max-width: none; }
  .nsw-cards-grid { grid-template-columns: 1fr; }
  .nsw-stats-summary { grid-template-columns: 1fr; gap: 14px; }
  .nsw-info-grid { grid-template-columns: 1fr; }
  .nsw-stats-row { grid-template-columns: 1fr; }
  .nsw-taches-list { grid-template-columns: 1fr; }
  .nsw-dates-row { grid-template-columns: 1fr; }
  .nsw-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nsw-contract-hero { flex-direction: column; }
  .nsw-contract-price { text-align: left; }
}

@media (max-width: 480px) {
  /* Sur très petits écrans, masquer l'email et garder seulement le nom */
  .nsw-sb-user-info small { display: none; }
  .nsw-sb-user-info strong { max-width: 130px; }
}
