/* ============================================================
   SecureBzh — dashboard.css
   Styles de l'application (login + dashboard)
   ============================================================ */

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-body {
  background: var(--c-bg);
  min-height: 100vh;
}

.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-night);
  text-decoration: none;
  margin-bottom: 40px;
}

.login-logo strong { color: var(--c-blue); }

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-night);
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--c-gray-500);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.login-error {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #991B1B;
  margin-bottom: 20px;
}

.login-providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--c-gray-200);
  background: var(--c-white);
  color: var(--c-night);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.oauth-btn:hover {
  border-color: var(--c-blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.oauth-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.oauth-btn--apple { color: var(--c-night); }

.login-terms {
  font-size: 12px;
  color: var(--c-gray-400);
  line-height: 1.65;
  text-align: center;
}

.login-terms a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Côté droit de la login page */
.login-side {
  background: linear-gradient(155deg, var(--c-night) 0%, #173460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,0.2) 0%, transparent 60%);
}

.login-side__content {
  position: relative;
  max-width: 380px;
}

.login-side__tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.login-side h2 {
  color: var(--c-white);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  margin-bottom: 24px;
}

.login-side__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-side__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.login-side__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue-lt);
  flex-shrink: 0;
}

/* ── Dashboard layout ────────────────────────────────────────────────────── */
.dash-body {
  display: flex;
  min-height: 100vh;
  background: var(--c-gray-50);
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--c-night);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.dash-sidebar.is-hidden { transform: translateX(-100%); }

.dash-sidebar__logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dash-logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
}

.dash-logo-link strong { color: var(--c-blue-lt); }

/* Nav */
.dash-nav { padding: 12px 0; flex: 1; }

.dash-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-right: 2px solid transparent;
  transition: all 0.2s;
}

.dash-nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }

.dash-nav__link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}

.dash-nav__link--active {
  color: var(--c-white);
  background: rgba(37,99,235,0.15);
  border-right-color: var(--c-blue);
}

/* Plan badge in sidebar */
.dash-sidebar__plan {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.dash-plan-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash-plan-badge__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
}

.dash-plan-badge__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-white);
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.dash-plan-badge--pro .dash-plan-badge__name {
  background: rgba(37,99,235,0.3);
  color: var(--c-blue-lt);
}

.dash-upgrade-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue-lt);
  text-decoration: none;
  transition: color 0.2s;
}

.dash-upgrade-link:hover { color: var(--c-white); }
.dash-upgrade-link svg { width: 13px; height: 13px; }

/* User info */
.dash-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.dash-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dash-user__initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37,99,235,0.5);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-user__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dash-user__name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user__email {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user__logout {
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.dash-user__logout:hover { color: var(--c-white); }
.dash-user__logout svg { width: 15px; height: 15px; }

/* Main */
.dash-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dash-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dash-topbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.dash-topbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-night);
  border-radius: 2px;
}

.dash-content {
  padding: 32px;
  flex: 1;
}

/* ── Page header ─────────────────────────────────────────────────────────── */
.dash-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.dash-page__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 4px;
}

.dash-page__subtitle {
  font-size: 14px;
  color: var(--c-gray-500);
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.dash-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.dash-stat {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-stat__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-gray-400);
}

.dash-stat__val {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-night);
  line-height: 1;
}

.dash-stat__val small { font-size: 14px; font-weight: 500; color: var(--c-gray-400); }
.dash-stat__val--ok   { color: var(--c-success); }
.dash-stat__val--err  { color: #EF4444; }
.dash-stat__val--plan { font-size: 16px; }

/* ── Site cards ──────────────────────────────────────────────────────────── */
.dash-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.site-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

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

.site-card--offline { border-left: 3px solid #EF4444; }

.site-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.site-card__info { display: flex; align-items: flex-start; gap: 10px; }

.site-card__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.site-card__status-dot--online  { background: var(--c-success); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.site-card__status-dot--offline { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); animation: pulse-red 1.5s infinite; }
.site-card__status-dot--unknown { background: var(--c-gray-300); }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

.site-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 2px;
}

.site-card__url {
  font-size: 12px;
  color: var(--c-gray-400);
  text-decoration: none;
}

.site-card__url:hover { color: var(--c-blue); text-decoration: underline; }

.site-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.site-card__badge--online  { background: #DCFCE7; color: #166534; }
.site-card__badge--offline { background: #FEE2E2; color: #991B1B; }
.site-card__badge--unknown { background: var(--c-gray-100); color: var(--c-gray-500); }

.site-card__meta {
  margin-bottom: 14px;
}

.site-card__last-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-gray-400);
}

.site-card__last-check svg { width: 13px; height: 13px; }

/* Signaux */
.site-card__signals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  cursor: default;
}

.signal svg { width: 12px; height: 12px; }

.signal--available {
  background: #DCFCE7;
  border-color: #BBF7D0;
  color: #166534;
}

.signal--locked {
  background: var(--c-gray-100);
  border-color: var(--c-gray-200);
  color: var(--c-gray-400);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.signal--locked:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: var(--c-blue);
}

/* Alerte offline */
.site-card__alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #991B1B;
}

.site-card__alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

/* Actions */
.site-card__actions { display: flex; justify-content: flex-end; }

.btn-delete-site {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--c-gray-400);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.btn-delete-site:hover { color: #EF4444; background: #FEF2F2; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #EFF6FF;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state__icon svg { width: 24px; height: 24px; }

.empty-state__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 10px;
}

.empty-state__body {
  color: var(--c-gray-500);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.empty-state__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-gray-400);
}

/* ── Fonctionnalités verrouillées ────────────────────────────────────────── */
.dash-locked-section {
  margin-top: 40px;
}

.dash-locked-section__header {
  margin-bottom: 18px;
}

.dash-locked-section__header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 5px;
}

.dash-locked-section__header p {
  font-size: 13px;
  color: var(--c-gray-500);
}

.dash-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.locked-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.locked-feature:hover {
  border-color: var(--c-blue);
  box-shadow: 0 2px 12px rgba(37,99,235,0.1);
}

.locked-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-gray-100);
  color: var(--c-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.locked-feature__icon svg { width: 16px; height: 16px; }

.locked-feature:hover .locked-feature__icon {
  background: #EFF6FF;
  color: var(--c-blue);
}

.locked-feature__text {
  flex: 1;
  min-width: 0;
}

.locked-feature__text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
  margin-bottom: 2px;
}

.locked-feature__text span {
  font-size: 12px;
  color: var(--c-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.locked-feature__lock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-gray-400);
  background: var(--c-gray-100);
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── Modales ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--c-white);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.2);
  overflow: hidden;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 0;
}

.modal__header h2 { font-size: 18px; font-weight: 700; color: var(--c-night); }

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-gray-400);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  margin-left: auto;
}

.modal__close:hover { color: var(--c-night); background: var(--c-gray-100); }

.modal__body { padding: 20px 24px 24px; }

.modal__desc {
  color: var(--c-gray-500);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* Upgrade modal */
.modal__box--upgrade { max-width: 440px; }

.upgrade-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #EFF6FF;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-modal__icon svg { width: 20px; height: 20px; }

.upgrade-modal__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-blue);
  margin-bottom: 8px;
}

.upgrade-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 10px;
  line-height: 1.3;
}

.upgrade-modal__desc {
  font-size: 14px;
  color: var(--c-gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}

.upgrade-modal__plan {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 14px 16px;
}

.upgrade-modal__plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-blue);
  margin-bottom: 3px;
}

.upgrade-modal__plan-detail {
  font-size: 13px;
  color: var(--c-gray-500);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
  margin-bottom: 6px;
}

.form-optional { font-weight: 400; color: var(--c-gray-400); }

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--c-gray-400);
  margin-top: 5px;
}

.form-error-msg {
  display: block;
  font-size: 12px;
  color: #EF4444;
  margin-top: 5px;
}

/* ── Toasts ──────────────────────────────────────────────────────────────── */
.toast-zone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-night);
  color: var(--c-white);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15,23,42,0.2);
  pointer-events: all;
  animation: toast-in 0.3s ease;
  max-width: 340px;
}

.toast--success { background: #166534; }
.toast--error   { background: #991B1B; }
.toast--info    { background: var(--c-night); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

.toast.is-hiding {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── Upgrade page v2 ─────────────────────────────────────────────────────── */

/* Cartes des offres */
.upgrade-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  align-items: start;
}

.upgrade-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.upgrade-card--featured {
  background: var(--c-night);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.upgrade-card__ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.upgrade-card__current {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-blue);
  background: #EFF6FF;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.upgrade-card--featured .upgrade-card__current {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
}

.upgrade-card__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-night);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.upgrade-card--featured .upgrade-card__name { color: var(--c-white); }

.upgrade-card__price {
  margin-bottom: 8px;
  line-height: 1;
}

.upgrade-card__price strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--c-night);
  letter-spacing: -1px;
}

.upgrade-card__price span {
  font-size: 14px;
  color: var(--c-gray-400);
  font-weight: 500;
}

.upgrade-card--featured .upgrade-card__price strong { color: var(--c-white); }
.upgrade-card--featured .upgrade-card__price span   { color: rgba(255,255,255,0.45); }

.upgrade-card__tagline {
  font-size: 13px;
  color: var(--c-gray-500);
  margin-bottom: 14px;
  line-height: 1.5;
}

.upgrade-card--featured .upgrade-card__tagline { color: rgba(255,255,255,0.55); }

.upgrade-card__sites {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
  background: var(--c-gray-100);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.upgrade-card--featured .upgrade-card__sites {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}

.upgrade-card__sites svg { flex-shrink: 0; }

.upgrade-card__cta { margin-top: 4px; }

.upgrade-card__btn-disabled {
  display: flex;
  width: 100%;
  justify-content: center;
  cursor: default;
  pointer-events: none;
}

.upgrade-card__note {
  font-size: 11px;
  color: var(--c-gray-400);
  margin-top: 10px;
  line-height: 1.55;
  text-align: center;
}

.upgrade-card--featured .upgrade-card__note { color: rgba(255,255,255,0.35); }

/* ── Nouveau tableau de comparaison (cmp-*) ──────────────────────────────── */

.cmp-table {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
}

.cmp-table__intro {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--c-gray-100);
}

.cmp-table__intro h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-night);
}

/* Grille : 1 colonne label + 3 colonnes plans */
.cmp-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
}

.cmp-row--alt { background: var(--c-gray-50); }

/* Séparateur de section */
.cmp-section-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 10px;
  background: var(--c-white);
}

.cmp-section-sep span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-gray-400);
  white-space: nowrap;
}

.cmp-section-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-gray-200);
}

/* Cellules */
.cmp-cell {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--c-gray-100);
}

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

.cmp-cell--label {
  justify-content: flex-start;
  padding: 16px 28px;
}

/* Colonne Pro mise en avant */
.cmp-cell--featured {
  background: rgba(37, 99, 235, 0.04);
  border-right: 1px solid rgba(37, 99, 235, 0.12);
  border-left: 1px solid rgba(37, 99, 235, 0.12);
  position: relative;
}

.cmp-cell--featured-last {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* En-têtes de colonnes */
.cmp-row--head {
  background: var(--c-gray-50);
  border-bottom: 2px solid var(--c-gray-200);
}

.cmp-cell--col-head {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--c-gray-200);
  text-align: center;
}

.cmp-cell--col-head.cmp-cell--featured {
  background: linear-gradient(180deg, #EFF6FF 0%, rgba(239,246,255,0.4) 100%);
  border-top: 3px solid var(--c-blue);
}

.cmp-head-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-night);
  letter-spacing: -0.02em;
}

.cmp-cell--featured .cmp-head-name { color: var(--c-blue); }

.cmp-head-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-night);
  letter-spacing: -0.5px;
  line-height: 1;
}

.cmp-head-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gray-400);
  letter-spacing: 0;
}

.cmp-cell--featured .cmp-head-price { color: var(--c-blue); }

.cmp-head-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-blue);
  background: #DBEAFE;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Feature dans la colonne label */
.cmp-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cmp-feat__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #EFF6FF;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmp-feat__icon svg { width: 15px; height: 15px; }

.cmp-feat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmp-feat__text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
}

.cmp-feat__text span {
  font-size: 12px;
  color: var(--c-gray-400);
  line-height: 1.5;
}

/* Indicateurs oui / non */
.cmp-yes, .cmp-no {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ligne CTA bas du tableau */
.cmp-row--cta {
  border-top: 2px solid var(--c-gray-200);
  background: var(--c-gray-50);
}

.cmp-row--cta .cmp-cell {
  padding: 20px 16px;
}

.cmp-row--cta .cmp-cell--label {
  padding: 20px 28px;
}

.cmp-row--cta .cmp-cell--featured {
  background: #EFF6FF;
}

.cmp-cta-current {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-gray-400);
  text-align: center;
  display: block;
  width: 100%;
  padding: 9px 0;
}

.cmp-cta-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-night);
}

.cmp-cta-sub {
  font-size: 12px;
  color: var(--c-gray-500);
}

/* Responsive */
@media (max-width: 768px) {
  .cmp-row { grid-template-columns: 1fr repeat(3, 56px); }
  .cmp-feat__text span { display: none; }
  .cmp-feat__icon { width: 28px; height: 28px; }
  .cmp-cell--label { padding: 12px 14px; }
  .cmp-cell { padding: 12px 8px; }
  .cmp-section-sep { padding: 12px 14px 8px; }
}

@media (max-width: 480px) {
  .cmp-row { grid-template-columns: 1fr repeat(3, 44px); }
  .cmp-feat__icon { display: none; }
  .cmp-head-price { display: none; }
}

/* Ancien tableau de comparaison (kept for backward compat) */
.compare-table {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
}

.compare-table__header {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--c-gray-100);
}

.compare-table__header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 4px;
}

.compare-table__header p {
  font-size: 13px;
  color: var(--c-gray-500);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
}

.compare-grid__cell {
  padding: 13px 20px;
  border-bottom: 1px solid var(--c-gray-100);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--c-gray-100);
}

.compare-grid__cell:last-child { border-right: none; }

.compare-grid__cell--head {
  background: var(--c-gray-50);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-night);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.compare-grid__cell--feature {
  background: var(--c-white);
  justify-content: flex-start;
}

.compare-grid__cell--featured-col {
  background: #F0F9FF;
}

.compare-grid__cell--head.compare-grid__cell--featured-col {
  background: #DBEAFE;
}

.compare-col-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-night);
}

.compare-current-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-blue);
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: 20px;
}

.compare-grid__separator {
  background: var(--c-gray-50);
  padding: 10px 20px;
  border-bottom: 1px solid var(--c-gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-grid__separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-gray-200);
}

.compare-grid__separator span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-gray-400);
  white-space: nowrap;
}

.compare-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.compare-feature__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #EFF6FF;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-feature__icon svg { width: 14px; height: 14px; }

.compare-feature__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
  margin-bottom: 2px;
}

.compare-feature__soon {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-warning);
  background: #FEF3C7;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 5px;
  vertical-align: middle;
}

.compare-feature__desc {
  font-size: 11px;
  color: var(--c-gray-400);
  line-height: 1.5;
  margin: 0;
}

.compare-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.compare-check--yes {
  color: var(--c-success);
}

.compare-check--no {
  color: var(--c-gray-300);
}

.dash-stripe-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 24px;
}

.dash-stripe-notice svg { flex-shrink: 0; margin-top: 1px; }
.dash-stripe-notice code { background: #FEF3C7; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.upgrade-footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--c-gray-400);
  line-height: 2;
}

.upgrade-footer-note a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive upgrade */
@media (max-width: 900px) {
  .upgrade-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 32px; }
  .upgrade-card--featured { transform: none; }
  .compare-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
  .compare-feature__desc { display: none; }
}

@media (max-width: 640px) {
  .compare-grid { grid-template-columns: 1fr repeat(3, 44px); }
  .compare-feature__icon { display: none; }
  .compare-grid__cell { padding: 10px 8px; }
  .compare-col-name { font-size: 12px; }
}

/* ── Upgrade page (old - keep for compatibility) ──────────────────────────── */
.upgrade-plans {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.upgrade-plan {
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: box-shadow 0.2s;
}

.upgrade-plan:hover { box-shadow: var(--shadow); }

.upgrade-plan--featured {
  background: var(--c-night);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.upgrade-plan--current {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.upgrade-plan__badge,
.upgrade-plan__current-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.upgrade-plan__badge { background: var(--c-blue); color: var(--c-white); }
.upgrade-plan__current-badge { background: rgba(37,99,235,0.15); color: var(--c-blue-lt); }

.upgrade-plan--featured .upgrade-plan__current-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.upgrade-plan__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.upgrade-plan { color: var(--c-night); }
.upgrade-plan--featured .upgrade-plan__name { color: var(--c-white); }

.upgrade-plan__price {
  margin-bottom: 8px;
}

.upgrade-plan__price strong { font-size: 30px; font-weight: 800; }
.upgrade-plan__price span   { font-size: 14px; color: var(--c-gray-400); font-weight: 500; }

.upgrade-plan--featured .upgrade-plan__price strong { color: var(--c-white); }
.upgrade-plan--featured .upgrade-plan__price span   { color: rgba(255,255,255,0.45); }

.upgrade-plan__tagline {
  font-size: 13px;
  margin-bottom: 20px;
}

.upgrade-plan--featured .upgrade-plan__tagline { color: rgba(255,255,255,0.55); }
.upgrade-plan:not(.upgrade-plan--featured) .upgrade-plan__tagline { color: var(--c-gray-500); }

.upgrade-plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.upgrade-plan__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.upgrade-plan__features li svg { width: 14px; height: 14px; flex-shrink: 0; }

.feat--ok  { color: var(--c-gray-600); }
.feat--no  { color: var(--c-gray-400); text-decoration: line-through; }

.upgrade-plan--featured .feat--ok { color: rgba(255,255,255,0.75); }
.upgrade-plan--featured .feat--ok svg { color: var(--c-blue-lt); }
.upgrade-plan--featured .feat--no { color: rgba(255,255,255,0.25); }

.upgrade-plan__note {
  font-size: 12px;
  color: var(--c-gray-400);
  margin-top: 10px;
  line-height: 1.55;
  text-align: center;
}

.upgrade-note {
  text-align: center;
  font-size: 13px;
  color: var(--c-gray-400);
  line-height: 2;
}

.upgrade-note a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ── Bannière mode membre ────────────────────────────────────────────────── */
.dash-member-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.18);
  border-bottom: 1px solid rgba(37,99,235,0.3);
  padding: 10px 18px;
  font-size: 12px;
  color: var(--c-blue-lt);
}

.dash-member-banner svg { width: 13px; height: 13px; flex-shrink: 0; }
.dash-member-banner strong { color: var(--c-white); }

/* ── Page Équipe ─────────────────────────────────────────────────────────── */
.team-invite-block {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}

.team-invite-block__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.team-invite-block__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-invite-block__header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 6px;
}

.team-invite-block__header p {
  font-size: 13px;
  color: var(--c-gray-500);
  line-height: 1.6;
}

.team-invite-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.team-members-block {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.team-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-night);
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-gray-100);
}

.team-count {
  background: var(--c-gray-100);
  color: var(--c-gray-500);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.team-empty {
  padding: 32px 22px;
  text-align: center;
  color: var(--c-gray-400);
  font-size: 14px;
}

.team-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }

.team-member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 10px;
  transition: background 0.2s;
}

.team-member-row:hover { background: var(--c-gray-50); }

.team-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-lt));
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.team-member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.team-member-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
}

.team-member-info span {
  font-size: 11px;
  color: var(--c-gray-400);
}

.team-member-status { flex-shrink: 0; }

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.team-badge svg { width: 11px; height: 11px; }

.team-badge--active  { background: #DCFCE7; color: #166534; }
.team-badge--pending { background: #FEF3C7; color: #92400E; }

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--c-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-copy-link:hover { background: #DBEAFE; }
.btn-copy-link svg { width: 12px; height: 12px; }

.team-joined {
  font-size: 11px;
  color: var(--c-gray-400);
  flex-shrink: 0;
}

.btn-revoke {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--c-gray-400);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-revoke:hover { color: #EF4444; background: #FEF2F2; }

.team-info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--c-gray-600);
}

.team-info-note svg { color: var(--c-blue); flex-shrink: 0; margin-top: 1px; }
.team-info-note p { margin: 0; line-height: 1.65; }
.team-info-note strong { color: var(--c-night); }

/* ── Page join.php ────────────────────────────────────────────────────────── */
.join-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--c-bg);
}

.join-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.join-invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #EFF6FF;
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.join-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 14px;
  line-height: 1.3;
}

.join-desc {
  font-size: 14px;
  color: var(--c-gray-500);
  line-height: 1.65;
  margin-bottom: 24px;
}

.invite-link-block {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}

.invite-link-block__label {
  font-size: 13px;
  color: var(--c-gray-600);
  margin-bottom: 10px;
}

.invite-link-block__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.invite-link-block__row .form-input {
  font-size: 12px;
  color: var(--c-gray-500);
  background: var(--c-white);
}

.join-note {
  text-align: center;
  font-size: 12px;
  color: var(--c-gray-400);
  margin-top: 16px;
  line-height: 1.55;
}

/* ── Responsive dashboard ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.is-open { transform: none; }
  .dash-main { margin-left: 0; }
  .dash-topbar { display: flex; }
  .upgrade-plans { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 28px; }
  .upgrade-plan--featured { transform: none; }
}

@media (max-width: 640px) {
  .dash-content { padding: 20px 16px; }
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-card { padding: 32px 24px; max-width: 100%; }
  .dash-stats { gap: 10px; }
  .dash-stat  { min-width: 100px; }
  .modal__box { border-radius: 14px; }
}

/* ============================================================
   VUE D'ENSEMBLE
   ============================================================ */

.overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.overview-header__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-night);
  margin-bottom: 4px;
}

.overview-header__date {
  font-size: 13px;
  color: var(--c-gray-400);
}

/* Bandeau de santé global */
.health-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.health-banner--ok       { background: linear-gradient(135deg, #14532D, #166534); }
.health-banner--warning  { background: linear-gradient(135deg, #78350F, #92400E); }
.health-banner--critical { background: linear-gradient(135deg, #7F1D1D, #991B1B); }

.health-banner__score {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.health-banner__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-white);
}

.health-banner__label {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}

.health-banner__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.health-banner__incident {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.health-banner__incident-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}

.health-banner__incident span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.health-banner__incident-time {
  font-size: 11px !important;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 400 !important;
}

/* Sites compacts sur la vue d'ensemble */
.overview-sites {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.overview-sites__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-gray-100);
}

.overview-sites__header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-night);
}

.overview-sites__more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  transition: gap 0.2s;
}

.overview-sites__more:hover { gap: 8px; }

.overview-sites__grid {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Pill compact par site */
.site-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.site-pill:hover { background: var(--c-gray-50); }

.site-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-pill--online  .site-pill__dot { background: var(--c-success); }
.site-pill--offline .site-pill__dot { background: #EF4444; animation: pulse-red 1.5s infinite; }
.site-pill--unknown .site-pill__dot { background: var(--c-gray-300); }

.site-pill__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-pill__info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-night);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-pill__info span {
  font-size: 11px;
  color: var(--c-gray-400);
}

.site-pill__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

.site-pill__badge--online  { background: #DCFCE7; color: #166534; }
.site-pill__badge--offline { background: #FEE2E2; color: #991B1B; }
.site-pill__badge--unknown { background: var(--c-gray-100); color: var(--c-gray-500); }

/* Section upgrade sur la vue d'ensemble */
.overview-upgrade {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 14px;
  overflow: hidden;
}

.overview-upgrade__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-gray-100);
}

.overview-upgrade__header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 4px;
}

.overview-upgrade__header p {
  font-size: 13px;
  color: var(--c-gray-500);
}

.overview-locked-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

/* ============================================================
   PAGE MES SITES
   ============================================================ */

.sites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-detail-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.site-detail-card:hover { box-shadow: var(--shadow); }
.site-detail-card--offline { border-left: 4px solid #EF4444; }
.site-detail-card--online  { border-left: 4px solid var(--c-success); }
.site-detail-card--unknown { border-left: 4px solid var(--c-gray-300); }

/* Ligne principale */
.site-detail-card__main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 14px;
}

.site-detail-card__status { flex-shrink: 0; }

/* Point animé */
.site-pulse {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.site-pulse--online  { background: var(--c-success); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); animation: pulse-green 2s infinite; }
.site-pulse--offline { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); animation: pulse-red 1.5s infinite; }
.site-pulse--unknown { background: var(--c-gray-300); }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.site-detail-card__identity { flex: 1; min-width: 0; }

.site-detail-card__identity h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-night);
  margin-bottom: 2px;
}

.site-detail-card__url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c-gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.site-detail-card__url:hover { color: var(--c-blue); }

.site-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.site-status-badge--online  { background: #DCFCE7; color: #166534; }
.site-status-badge--offline { background: #FEE2E2; color: #991B1B; }
.site-status-badge--unknown { background: var(--c-gray-100); color: var(--c-gray-500); }

/* Métriques */
.site-detail-card__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-gray-100);
  border-bottom: 1px solid var(--c-gray-100);
}

.site-metric {
  padding: 14px 22px;
  border-right: 1px solid var(--c-gray-100);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-metric:last-child { border-right: none; }

.site-metric--locked { background: var(--c-gray-50); }

.site-metric__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--c-gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-metric__label svg { color: var(--c-gray-300); }

.site-metric__val {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-night);
}

.site-metric__val--ok   { color: var(--c-success); }
.site-metric__val--warn { color: var(--c-warning); }
.site-metric__val--err  { color: #EF4444; }

.site-metric__upgrade {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: opacity 0.2s;
}

.site-metric__upgrade:hover { opacity: 0.7; }

/* Historique barres */
.site-detail-card__history {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--c-gray-50);
}

.site-history__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.site-history__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
  height: 24px;
}

.history-bar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  min-width: 4px;
  transition: opacity 0.2s;
}

.history-bar:hover { opacity: 0.7; }
.history-bar--online  { background: var(--c-success); }
.history-bar--offline { background: #EF4444; }

/* Alerte offline */
.site-detail-card__alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  padding: 12px 22px;
  font-size: 13px;
  color: #991B1B;
  font-weight: 500;
}

.site-detail-card__alert svg { flex-shrink: 0; color: #EF4444; }

/* Actions */
.site-detail-card__actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 22px;
}

.btn-text-danger {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--c-gray-400);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}

.btn-text-danger:hover { color: #EF4444; background: #FEF2F2; }

/* Responsive Mes sites */
@media (max-width: 768px) {
  .site-detail-card__metrics { grid-template-columns: repeat(2, 1fr); }
  .health-banner { flex-wrap: wrap; }
  .health-banner__incident { margin-left: 0; text-align: left; }
  .overview-header { flex-direction: column; }
  .overview-upgrade__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-detail-card__metrics { grid-template-columns: 1fr 1fr; }
  .site-detail-card__main { padding: 14px 16px 10px; }
  .site-metric { padding: 12px 16px; }
  .overview-locked-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   RESPONSIVE MOBILE — dashboard + landing
   ============================================================ */

/* ── Overlay sidebar mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Sidebar en drawer par-dessus le contenu */
  .dash-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .dash-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }

  /* Overlay sombre quand la sidebar est ouverte */
  .dash-sidebar.is-open::after {
    content: '';
    position: fixed;
    top: 0; left: 240px; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
  }

  .dash-main  { margin-left: 0; }
  .dash-topbar { display: flex; }

  /* Dashboard content padding réduit */
  .dash-content { padding: 20px 16px; }

  /* Stats en grille 2x2 */
  .dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat  { min-width: 0; }

  /* Upgrade cards empilées */
  .upgrade-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .upgrade-card--featured { transform: none; }

  /* Tableau comparaison simplifié */
  .cmp-row          { grid-template-columns: 1.4fr repeat(3, 52px); }
  .cmp-cell         { padding: 11px 6px; }
  .cmp-cell--label  { padding: 11px 14px; }
  .cmp-feat__text span { display: none; }
  .cmp-feat__icon   { width: 28px; height: 28px; border-radius: 6px; }
  .cmp-feat__icon svg { width: 13px; height: 13px; }
  .cmp-cell--col-head { padding: 14px 8px; }
  .cmp-head-price   { font-size: 14px; }
  .cmp-section-sep  { padding: 10px 14px 8px; }

  /* Mes sites : métriques 2 colonnes */
  .site-detail-card__metrics { grid-template-columns: 1fr 1fr; }
  .site-detail-card__history { flex-wrap: wrap; gap: 6px; }

  /* Équipe */
  .team-invite-form { flex-direction: column; }
  .team-member-row  { flex-wrap: wrap; gap: 8px; }

  /* Pricing upgrade page */
  .upgrade-plans {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 28px;
  }
  .upgrade-plan--featured { transform: none; }
}

/* ── Petit mobile (< 640px) ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Login */
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-card { padding: 28px 20px; max-width: 100%; }
  .login-title { font-size: 22px; }

  /* Join page */
  .join-card { padding: 28px 20px; }
  .join-title { font-size: 17px; }

  /* Dashboard */
  .dash-content { padding: 16px 12px; }
  .dash-page__header { flex-direction: column; gap: 12px; }
  .dash-page__header .btn { width: 100%; justify-content: center; }

  /* Stats 1 colonne sur très petit écran */
  .dash-stats { grid-template-columns: 1fr 1fr; }

  /* Health banner */
  .health-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .health-banner__incident { margin-left: 0; text-align: left; }

  /* Sites cards */
  .dash-sites-grid { grid-template-columns: 1fr; }
  .site-detail-card__metrics { grid-template-columns: 1fr 1fr; }
  .site-detail-card__main { padding: 14px; }
  .site-metric { padding: 10px 12px; }

  /* Tableau comparaison : label + 3 colonnes icônes */
  .cmp-row { grid-template-columns: 1fr repeat(3, 40px); }
  .cmp-feat__icon { display: none; }
  .cmp-feat__text strong { font-size: 12px; }
  .cmp-head-name  { font-size: 12px; }
  .cmp-head-price { font-size: 13px; }
  .cmp-head-badge { display: none; }
  .cmp-cell--label { padding: 10px 10px; }

  /* Upgrade cards */
  .upgrade-cards { max-width: 100%; }
  .upgrade-card  { padding: 22px 18px; }

  /* Modales plein écran sur mobile */
  .modal { padding: 0; align-items: flex-end; }
  .modal__box {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Toasts */
  .toast-zone { right: 12px; left: 12px; bottom: 16px; }
  .toast      { max-width: 100%; }

  /* Overview */
  .overview-header { flex-direction: column; gap: 12px; }
  .overview-header .btn { width: 100%; justify-content: center; }
  .overview-upgrade__header { flex-direction: column; }
  .overview-upgrade__header .btn { width: 100%; justify-content: center; }
  .overview-locked-grid { grid-template-columns: 1fr; }

  /* Equipe */
  .team-member-row { padding: 10px 8px; }
  .team-joined,
  .btn-copy-link { font-size: 10px; }

  /* Site pill */
  .site-pill { padding: 8px; }
  .site-pill__info strong { font-size: 12px; }

  /* Billing success/cancel pages */
  .modal__box { padding: 24px 20px; }
}

/* ── Très petit (< 375px) ───────────────────────────────────────────────── */
@media (max-width: 375px) {
  .dash-stats { grid-template-columns: 1fr; }
  .cmp-row    { grid-template-columns: 1fr repeat(3, 36px); }
  .login-card { padding: 24px 16px; }
}

/* ── Landing page mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero-dashboard-card { max-width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__reassurance { text-align: center; }

  /* Alert emails */
  .alert-emails { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline-layout { grid-template-columns: 1fr; gap: 40px; }

  /* Monitoring */
  .monitoring-layout { grid-template-columns: 1fr; gap: 40px; }

  /* Steps */
  .steps-human__note { text-align: left; }

  /* Early access */
  .early__grid { grid-template-columns: 1fr; gap: 32px; }

  /* About */
  .about-section__inner { grid-template-columns: 1fr; gap: 20px; }
  .about-section__logo-wrap { display: none; }

  /* Footer */
  .footer__grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__legal  { flex-wrap: wrap; justify-content: center; }

  /* Nav */
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--secondary { display: none; }

  /* Pricing landing */
  .pricing-layout { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-item--featured { transform: none; }
}

/* ── Roue crantée (bouton réglages) ─────────────────────────────────────── */
.site-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--c-gray-200);
  background: var(--c-white);
  color: var(--c-gray-400);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.site-settings-btn:hover {
  background: var(--c-gray-100);
  color: var(--c-night);
  border-color: var(--c-gray-300);
  transform: rotate(45deg);
}

/* ── Modale réglages ─────────────────────────────────────────────────────── */
.modal__box--settings { max-width: 500px; }

.settings-modal__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-modal__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--c-gray-100);
  color: var(--c-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sélecteur d'intervalle */
.interval-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.interval-option {
  cursor: pointer;
}

.interval-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.interval-option__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--c-gray-200);
  background: var(--c-white);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.interval-option__label strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-night);
}

.interval-option__label small {
  font-size: 10px;
  color: var(--c-gray-400);
  font-weight: 500;
}

.interval-option input[type="radio"]:checked + .interval-option__label {
  border-color: var(--c-blue);
  background: #EFF6FF;
}

.interval-option input[type="radio"]:checked + .interval-option__label strong {
  color: var(--c-blue);
}

.interval-option__label:hover {
  border-color: var(--c-blue);
  background: #F8FAFF;
}

/* Zone de danger */
.settings-danger-zone {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-gray-200);
}

.settings-danger-zone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-danger-zone__header strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-night);
}

.settings-danger-zone__header span {
  font-size: 12px;
  color: var(--c-gray-400);
}

.btn-danger-delete {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1.5px solid #FECACA;
  color: #EF4444;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-danger-delete:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

/* Footer de la carte site détaillée */
.site-detail-card__footer {
  padding: 10px 22px;
  background: var(--c-gray-50);
  border-top: 1px solid var(--c-gray-100);
}

.site-detail-footer__interval {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-gray-400);
}

.site-detail-footer__interval svg  { width: 13px; height: 13px; }
.site-detail-footer__interval strong { color: var(--c-gray-600); }

/* Responsive intervalle selector */
@media (max-width: 480px) {
  .interval-selector { grid-template-columns: repeat(2, 1fr); }
}

/* ── Bouton Rétrograder ──────────────────────────────────────────────────── */
.btn--downgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--c-gray-200);
  background: var(--c-white);
  color: var(--c-gray-500);
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--downgrade:hover {
  border-color: #FECACA;
  color: #EF4444;
  background: #FEF2F2;
}

.btn--downgrade svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Bannière changement planifié ───────────────────────────────────────── */
.pending-change-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pending-change-banner__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pending-change-banner__left svg {
  color: var(--c-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.pending-change-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 3px;
}

.pending-change-banner span {
  font-size: 13px;
  color: #78350F;
  line-height: 1.55;
}

/* ── Effet liquide bulleux sur le bandeau de santé ───────────────────────── */

/* Le bandeau doit être en position relative pour le canvas absolu */
.health-banner { position: relative; overflow: hidden; }

/* Canvas de bulles positionné en absolu à l'intérieur */
.health-banner .bubbles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Le contenu passe au-dessus du canvas */
.health-banner > *:not(.bubbles-canvas) {
  position: relative;
  z-index: 1;
}

/* Reflet glossy en haut du bandeau */
.health-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* ============================================================
   Payment Success Overlay (PSO)
   ============================================================ */

.pso {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 24px 16px;
}

.pso[hidden] { display: none !important; }

/* Canvas confettis */
.pso__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Contenu centré au-dessus du canvas */
.pso__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: auto;
}

/* ── Étapes ──────────────────────────────────────────────────────────────── */
.pso__step {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 44px 40px 36px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: pso-card-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pso__step--wheel {
  background: #0F172A;
  border: 1px solid rgba(255,255,255,.1);
  color: #FFFFFF;
}

@keyframes pso-card-in {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ── Badge ──────────────────────────────────────────────────────────────── */
.pso__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #DCFCE7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.pso__badge--gold {
  background: rgba(217,119,6,.15);
  border: 1px solid rgba(217,119,6,.3);
  color: #FBBF24;
}

/* ── Plan pill ──────────────────────────────────────────────────────────── */
.pso__plan-pill {
  display: inline-block;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ── Icône succès ──────────────────────────────────────────────────────── */
.pso__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  animation: pso-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes pso-icon-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Textes ─────────────────────────────────────────────────────────────── */
.pso__title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.pso__body {
  font-size: 15px;
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 30px;
}

/* ── Bouton bonus ──────────────────────────────────────────────────────── */
.pso__btn-bonus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 24px rgba(37,99,235,.45);
  transition: transform .2s, box-shadow .2s;
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}

.pso__btn-bonus:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,99,235,.55);
}

/* ── Lien passer ────────────────────────────────────────────────────────── */
.pso__skip {
  display: block;
  font-size: 12px;
  color: #94A3B8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pso__skip:hover { color: #64748B; }

/* ── Roue ───────────────────────────────────────────────────────────────── */
.pso__wheel-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.pso__wheel-sub {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pso__wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
}

.pso__wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #FFFFFF;
  z-index: 10;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.4));
}

#pso-wheel-svg {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255,255,255,.08),
    0 0 0 10px rgba(255,255,255,.04),
    0 20px 50px rgba(0,0,0,.5);
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  transform-origin: center;
  will-change: transform;
}

.pso__wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: #0F172A;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ── Bouton spin ────────────────────────────────────────────────────────── */
.pso__btn-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(37,99,235,.45);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  margin-bottom: 10px;
}

.pso__btn-spin:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.55);
}

.pso__btn-spin:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
}

.pso__spin-icon { transition: transform .3s; }
.pso__btn-spin:not(:disabled):hover .pso__spin-icon { transform: rotate(30deg); }

.pso__disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

/* ── Résultat roue ──────────────────────────────────────────────────────── */
.pso__result {
  margin-top: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px 20px;
  animation: pso-card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  text-align: center;
}

.pso__result[hidden] { display: none; }

.pso__result-icon { font-size: 28px; margin-bottom: 10px; }
.pso__result-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.pso__result-body  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ── Bouton dashboard ───────────────────────────────────────────────────── */
.pso__btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0F172A;
  border-radius: 12px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(255,255,255,.15);
  margin-top: 16px;
}

.pso__btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,.2);
}

.pso__btn-dashboard[hidden] { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .pso__step { padding: 32px 24px 28px; }
  .pso__wheel-wrapper { width: 240px; height: 240px; }
  #pso-wheel-svg { width: 240px; height: 240px; }
}


/* ============================================================
   Tutorial Overlay (TUT) — spotlight + tooltip
   ============================================================ */

.tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
}

.tut-overlay[hidden] { display: none !important; }

/* SVG plein-écran pour le masque spotlight */
.tut-svg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Anneau lumineux autour de la cible */
#tut-hole {
  transition: x 0.4s cubic-bezier(0.4,0,0.2,1),
              y 0.4s cubic-bezier(0.4,0,0.2,1),
              width 0.4s cubic-bezier(0.4,0,0.2,1),
              height 0.4s cubic-bezier(0.4,0,0.2,1),
              rx 0.3s;
  filter: drop-shadow(0 0 12px rgba(37,99,235,0.9));
}

/* Bordure bleue autour de l'élément ciblé */
.tut-highlight {
  outline: 3px solid #2563EB !important;
  outline-offset: 4px !important;
  border-radius: 8px;
  transition: outline 0.3s;
  position: relative;
  z-index: 9501;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.tut-tooltip {
  position: fixed;
  z-index: 9600;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 26px 26px 20px;
  width: min(360px, calc(100vw - 32px));
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 24px 60px rgba(0,0,0,.35),
    0 0 0 4px rgba(37,99,235,.15);
  pointer-events: all;
  animation: tut-tooltip-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  transition: top 0.4s cubic-bezier(0.4,0,0.2,1),
              left 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

@keyframes tut-tooltip-in {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Header : dots + skip */
.tut-tooltip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tut-step-dots {
  display: flex;
  gap: 6px;
}

.tut-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E2E8F0;
  transition: background 0.25s, transform 0.25s;
}

.tut-dot--active {
  background: #2563EB;
  transform: scale(1.25);
}

.tut-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: #94A3B8;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.tut-skip:hover { color: #64748B; background: #F1F5F9; }

/* Icône */
.tut-tooltip__icon {
  font-size: 34px;
  margin-bottom: 12px;
  line-height: 1;
}

/* Titre */
.tut-tooltip__title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -.02em;
  line-height: 1.3;
}

/* Corps */
.tut-tooltip__body {
  font-size: 14px;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Boutons */
.tut-tooltip__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tut-btn {
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.tut-btn:active { transform: scale(0.97); }

.tut-btn--back {
  background: #F1F5F9;
  color: #64748B;
}

.tut-btn--back:hover { background: #E2E8F0; }

.tut-btn--next {
  background: #2563EB;
  color: #fff;
  box-shadow: 0 3px 12px rgba(37,99,235,.35);
}

.tut-btn--next:hover { background: #1d4ed8; }

.tut-btn--next.tut-btn--finish {
  background: linear-gradient(135deg, #22C55E, #16a34a);
  box-shadow: 0 3px 12px rgba(34,197,94,.35);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tut-tooltip {
    bottom: 16px;
    left: 16px !important;
    right: 16px;
    top: auto !important;
    width: auto;
    transform: none !important;
  }
}