/* ============================================================
   Astaur v2 — Design inspiré Kelvio
   Fond clair, sidebar blanche, accents bleu/indigo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --blue:         #2d3be8;
  --blue-hover:   #1e2bc4;
  --blue-light:   #eef0fd;
  --blue-muted:   rgba(45,59,232,.08);

  /* Status */
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;
  --amber:        #d97706;
  --amber-bg:     #fffbeb;
  --amber-border: #fde68a;
  --gray-badge:   #6b7280;
  --gray-badge-bg:#f3f4f6;

  /* Surfaces */
  --bg:           #f5f6fa;
  --surface:      #ffffff;
  --surface-hover:#f9fafb;

  /* Borders */
  --border:       #e5e7eb;
  --border-dark:  #d1d5db;

  /* Text */
  --text:         #111827;
  --text-2:       #6b7280;
  --text-3:       #9ca3af;

  /* Sidebar */
  --sidebar-w:    215px;
  --sidebar-active-bg: #1e2a4a;
  --sidebar-active-text: #ffffff;

  /* Shape */
  --radius:       8px;
  --radius-sm:    6px;
  --radius-lg:    10px;

  /* Shadow */
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
button { font-family: var(--font); cursor: pointer; }

/* ── Layout ─────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.4px;
  border-bottom: 1px solid var(--border);
}

.sidebar__nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 500;
  transition: background .1s, color .1s;
  text-decoration: none;
}
.sidebar__nav a:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.sidebar__nav a.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
.sidebar__nav a.active svg { color: #fff; opacity: .9; }
.sidebar__nav a:hover svg { color: var(--text-2); }
.sidebar__nav svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); transition: color .1s; }

.sidebar__divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* Footer sidebar */
.sidebar__footer { padding: 10px 8px; border-top: 1px solid var(--border); }

.sidebar__upgrade {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background .1s;
}
.sidebar__upgrade:hover { background: var(--blue-hover); text-decoration: none; color: #fff; }

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
}

.sidebar__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1px solid rgba(45,59,232,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
}

.sidebar__user-name { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.3; }

.sidebar__plan-badge {
  font-size: .62rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.sidebar__plan-badge--free    { background: var(--gray-badge-bg); color: var(--gray-badge); }
.sidebar__plan-badge--starter { background: #eff6ff; color: #3b82f6; }
.sidebar__plan-badge--pro     { background: var(--blue-light); color: var(--blue); }
.sidebar__plan-badge--studio  { background: #f5f3ff; color: #7c3aed; }

/* Lien sidebar verrouillé (plan insuffisant) */
.sidebar__nav a.locked {
  color: var(--text-3);
  opacity: .6;
  cursor: default;
  pointer-events: none;
  position: relative;
}
.sidebar__nav a.locked:hover { background: transparent; color: var(--text-3); }
.sidebar__nav a.locked .lock-icon {
  width: 11px; height: 11px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-3);
}

/* Wrapper lien verrouillé cliquable (pointe vers billing) */
.sidebar__nav .locked-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .1s, color .1s;
  opacity: .7;
}
.sidebar__nav .locked-wrap:hover {
  background: var(--bg);
  color: var(--text-2);
  opacity: 1;
  text-decoration: none;
}
.sidebar__nav .locked-wrap svg:first-child { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar__nav .locked-wrap .lock-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  color: var(--text-3);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .1s, color .1s;
  margin-top: 2px;
}
.sidebar__logout:hover { background: var(--bg); color: var(--text-2); text-decoration: none; }

/* ── Main & Topbar ─────────────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__left { display: flex; flex-direction: column; gap: 2px; }
.topbar__title { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.topbar__subtitle { font-size: .78rem; color: var(--text-3); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.page { padding: 28px; flex: 1; }

/* ── Stat cards ─────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card__label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-card__value--red    { color: var(--red); }
.stat-card__value--green  { color: var(--green); }
.stat-card__value--amber  { color: var(--amber); }

.stat-card__hint {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 5px;
}
.stat-card__hint--green { color: var(--green); font-weight: 500; }

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .1s, border-color .1s, color .1s, box-shadow .1s;
  text-decoration: none;
  line-height: 1.4;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 1px 2px rgba(45,59,232,.2);
}
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--bg); }

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--bg); color: var(--text); }

.btn--white {
  background: #ffffff;
  color: var(--blue);
  border-color: transparent;
}
.btn--white:hover { background: #f0f2ff; color: var(--blue-hover); }

.btn--danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn--ghost-danger {
  background: transparent;
  color: var(--text-3);
  border-color: transparent;
}
.btn--ghost-danger:hover { background: var(--red-bg); color: var(--red); }

.btn--sm { padding: 5px 10px; font-size: .78rem; }
.btn--icon { padding: 6px; border-radius: var(--radius-sm); }

/* ── Formulaires ─────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .1s, box-shadow .1s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,59,232,.1);
}
.form-group input::placeholder { color: var(--text-3); }

.form-group .hint  { font-size: .72rem; color: var(--text-2); margin-top: 4px; }
.form-group .error { font-size: .72rem; color: var(--red); margin-top: 4px; }

/* ── Table ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .875rem; }

thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .08s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-hover); }
tbody td { padding: 13px 14px; vertical-align: middle; color: var(--text); }

.td-url a {
  color: var(--blue);
  font-family: 'SF Mono','Fira Code',ui-monospace,monospace;
  font-size: .76rem;
}
.td-url a:hover { color: var(--blue-hover); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge--active  { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.badge--blocked { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border); }
.badge--late    { background: var(--amber-bg);  color: var(--amber);  border-color: var(--amber-border); }

.badge--active::before,
.badge--blocked::before,
.badge--late::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge--blocked::before { animation: blink 1.4s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Filter tabs (style Kelvio) */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all .1s;
  text-decoration: none;
}
.filter-tab:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.filter-tab.active { background: var(--sidebar-active-bg); color: #fff; border-color: var(--sidebar-active-bg); }

/* ── Flash ─────────────────────────────────────────────── */
.flash {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.flash--success { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.flash--error   { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border); }
.flash--info    { background: var(--blue-light); color: var(--blue);  border-color: rgba(45,59,232,.2); }

/* ── Auth ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.4px;
  margin-bottom: 24px;
  justify-content: center;
}

.auth-box h1 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.auth-box .subtitle { color: var(--text-2); font-size: .8rem; margin-bottom: 22px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--text-2); }

/* ── Card ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card--sm { padding: 12px 16px; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.page-header h1 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.2px; }
.page-header .subtitle { font-size: .78rem; color: var(--text-2); margin-top: 2px; }

/* ── Snippet ─────────────────────────────────────────────── */
.snippet {
  background: #1e2235;
  color: #a8b4cc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'SF Mono','Fira Code',ui-monospace,monospace;
  font-size: .72rem;
  line-height: 1.7;
  position: relative;
  word-break: break-all;
}

.snippet__copy {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  color: #a8b4cc;
  font-size: .7rem;
  padding: 3px 8px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .1s;
}
.snippet__copy:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.modal h2 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.modal p  { color: var(--text-2); font-size: .8rem; margin-bottom: 18px; line-height: 1.6; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Billing ─────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.plan-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); }
.plan-card--featured { border-color: rgba(45,59,232,.3); }

.plan-card__badge {
  position: absolute;
  top: -9px; left: 18px;
  background: var(--blue);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.plan-card__name  { font-weight: 700; font-size: .9rem; margin-bottom: 2px; color: var(--text); }
.plan-card__price { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1.1; margin-bottom: 2px; }
.plan-card__period { font-size: .72rem; color: var(--text-2); margin-bottom: 16px; }

.plan-card--current {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,59,232,.08), var(--shadow);
}
.plan-card--current .plan-card__name::after {
  content: 'Plan actuel';
  display: inline-block;
  margin-left: 8px;
  font-size: .65rem;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 99px;
  padding: 1px 7px;
  vertical-align: middle;
  letter-spacing: .2px;
}

.plan-card__sites {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.plan-card__features { list-style: none; margin-bottom: 18px; flex: 1; }
.plan-card__features li {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; padding: 3px 0; color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.plan-card__features li:last-child { border-bottom: none; }
.plan-card__features li::before {
  content: '';
  width: 15px; height: 15px;
  flex-shrink: 0;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card__features li.off { color: var(--text-3); }
.plan-card__features li.off::before {
  background-color: var(--bg);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-size: 8px;
}

/* ── Toast ─────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 6px; }

.toast {
  background: var(--sidebar-active-bg);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 500;
  animation: fadeUp .15s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  max-width: 280px;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* ── Misc ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state__icon { font-size: 2.2rem; margin-bottom: 12px; opacity: .25; }
.empty-state h2 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: .8rem; color: var(--text-2); margin-bottom: 18px; }

/* ══════════════════════════════════════════════════════════
   Onboarding — premier site
   ══════════════════════════════════════════════════════════ */
.ob {
  padding: 4px 0 56px;
  animation: fadeUp .4s ease both;
}

/* Hero --------------------------------------------------- */
.ob-hero {
  background: linear-gradient(135deg, #131d3f 0%, #1e2bc4 60%, #2d3be8 100%);
  border-radius: 16px;
  padding: 48px 44px 44px;
  display: flex;
  align-items: center;
  gap: 48px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.ob-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.ob-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.ob-hero__icon {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.ob-hero__body { position: relative; z-index: 1; }
.ob-hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.85);
}
.ob-hero__tag-dot {
  width: 6px; height: 6px;
  background: #6ee7b7;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
.ob-hero h2 {
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.ob-hero p {
  font-size: .88rem; color: rgba(255,255,255,.72);
  line-height: 1.65; max-width: 420px;
  margin-bottom: 24px;
}
.ob-hero__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ob-hero__note {
  font-size: .76rem;
  color: rgba(255,255,255,.45);
}

/* Steps -------------------------------------------------- */
.ob-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.ob-step {
  padding: 24px 22px 22px;
  position: relative;
  transition: background .18s;
}
.ob-step:hover { background: var(--bg); }
.ob-step:not(:last-child) {
  border-right: 1px solid var(--border);
}
.ob-step__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.ob-step__num {
  width: 32px; height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ob-step__label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-3);
}
.ob-step h3 {
  font-size: .92rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ob-step p {
  font-size: .8rem; color: var(--text-2);
  line-height: 1.6;
}
.ob-step__arrow {
  position: absolute;
  right: -10px; top: 28px;
  width: 20px; height: 20px;
  background: var(--blue-light);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--blue);
  z-index: 2;
}

/* Bottom grid ------------------------------------------- */
.ob-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Snippet card */
.ob-snippet {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.ob-snippet__bar {
  background: #1e2130;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 7px;
}
.ob-snippet__dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.ob-snippet__title {
  margin-left: auto;
  font-size: .72rem; color: rgba(255,255,255,.35);
  font-family: 'SF Mono','Fira Code',ui-monospace,monospace;
}
.ob-snippet__code {
  background: #181e2e;
  padding: 20px 20px 22px;
  font-family: 'SF Mono','Fira Code',ui-monospace,monospace;
  font-size: .76rem; line-height: 1.7;
  color: #a9b4d4;
  overflow-x: auto;
}
.ob-snippet__code .t-comment { color: #4a5a7a; }
.ob-snippet__code .t-tag     { color: #7aa2f7; }
.ob-snippet__code .t-attr    { color: #9ece6a; }
.ob-snippet__code .t-str     { color: #f7768e; }
.ob-snippet__code .t-val     { color: #e0af68; }
.ob-snippet__footer {
  padding: 12px 16px;
  font-size: .77rem; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
  border-top: 1px solid var(--border);
}
.ob-snippet__footer-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

/* Perks card */
.ob-perks {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
}
.ob-perks h3 {
  font-size: .88rem; font-weight: 700;
  color: var(--text); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.ob-perk {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ob-perk:last-child { border-bottom: none; padding-bottom: 0; }
.ob-perk__icon {
  width: 34px; height: 34px;
  background: var(--blue-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.ob-perk__text strong {
  display: block;
  font-size: .83rem; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.ob-perk__text span {
  font-size: .77rem; color: var(--text-2); line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
  .ob-hero { flex-direction: column; gap: 24px; padding: 32px 24px 28px; }
  .ob-steps { grid-template-columns: 1fr; }
  .ob-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .ob-step__arrow { display: none; }
  .ob-bottom { grid-template-columns: 1fr; }
}

code {
  font-family: 'SF Mono','Fira Code',ui-monospace,monospace;
  font-size: .78em;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-2);
}

.text-muted { color: var(--text-2); }
.text-dim   { color: var(--text-3); }
.text-sm    { font-size: .78rem; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ── Billing v2 ─────────────────────────────────────────── */

/* Bannière plan actuel */
.billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
  margin-bottom: 8px;
}
.billing-banner--pro    { border-color: rgba(45,59,232,.3); background: linear-gradient(135deg, #f8f9ff 0%, var(--surface) 100%); }
.billing-banner--studio { border-color: rgba(139,92,246,.3); background: linear-gradient(135deg, #faf5ff 0%, var(--surface) 100%); }
.billing-banner--starter { border-color: rgba(16,163,74,.2); background: linear-gradient(135deg, #f0fdf4 0%, var(--surface) 100%); }

.billing-banner__label  { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 4px; }
.billing-banner__plan   { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; margin-bottom: 5px; }
.billing-banner__star   { color: var(--blue); margin-right: 4px; }
.billing-banner--studio .billing-banner__star { color: #7c3aed; }
.billing-banner__meta   { font-size: .82rem; color: var(--text-2); }
.billing-banner__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Grille 4 colonnes pleine largeur */
.plan-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

/* Carte plan v2 */
.plan-card2 {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.plan-card2:hover { box-shadow: var(--shadow); border-color: var(--border-dark); }

.plan-card2--current {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,59,232,.08), var(--shadow);
}
.plan-card2--featured {
  border-color: rgba(45,59,232,.4);
}
.plan-card2--featured.plan-card2--current {
  box-shadow: 0 0 0 3px rgba(45,59,232,.12), var(--shadow);
}

/* Tag "plan actuel" en haut de la carte */
.plan-card2__current-tag {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 10px;
}
.plan-card2__current-tag--light {
  background: rgba(45,59,232,.12);
  color: var(--blue);
}

/* Badge "le plus populaire" */
.plan-card2__badge {
  position: absolute;
  top: -1px; right: 16px;
  background: var(--blue);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 0 0 6px 6px;
}

/* Header de la carte */
.plan-card2__header {
  padding: 20px 20px 0;
}
.plan-card2--featured .plan-card2__header { padding-top: 24px; }

.plan-card2__name {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.plan-card2--featured .plan-card2__name { color: var(--blue); }

.plan-card2__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  margin-bottom: 3px;
}
.plan-card2__price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
}
.plan-card2__currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  align-self: flex-start;
  margin-top: 6px;
}
.plan-card2__period {
  font-size: .72rem;
  color: var(--text-3);
  margin-bottom: 14px;
}

/* Body */
.plan-card2__body {
  padding: 14px 20px;
  flex: 1;
}

.plan-card2__sites {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.plan-card2__sites::before {
  content: '🛡';
  font-size: .7rem;
}

.plan-card2__features {
  list-style: none;
}
.plan-card2__features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  padding: 4px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.plan-card2__features li:last-child { border-bottom: none; }
.plan-card2__features li::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 9px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-card2__features li.off { color: var(--text-3); }
.plan-card2__features li.off::before {
  background-color: var(--bg);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-size: 8px;
}

/* Footer de la carte */
.plan-card2__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-hover);
}

@media (max-width: 900px) {
  .plan-grid-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .plan-grid-full { grid-template-columns: 1fr; }
  .billing-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .page { padding: 14px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
