/* Le Réseau 47 — couche visuelle 2026. Chargée après les styles historiques. */
:root {
  --brand-ink: #172033;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-sky: #eaf3ff;
  --brand-mint: #dff7eb;
  --brand-warm: #fff7e8;
  --surface: #ffffff; 
  --surface-soft: #f7f9fc;
  --focus-ring: 0 0 0 4px rgba(37, 99, 235, .18);
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --sh-panel: 0 12px 35px rgba(23, 32, 51, .08), 0 2px 8px rgba(23, 32, 51, .04);
}

body { color: var(--brand-ink); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
.btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .16); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: .68; transform: none; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; inset: 50% auto auto 50%;
  margin: -9px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; color: #fff; animation: ds-spin .7s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

.card, .dash-card, .ob-progress-card, .ob-step, .ob-info-card {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-panel);
}
.field input, .field select, .field textarea {
  min-height: 46px;
  border-radius: 12px;
  background: #fff;
  border-color: #d7dfeb;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:hover { border-color: #aebbd0; }
.field input:focus { border-color: var(--brand-blue); box-shadow: var(--focus-ring); }
.field-optional { color: var(--muted); font-size: 11px; font-weight: 500; }

/* Landing et authentification */
.is-public .auth-page { background: #f7f9fc; }
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  grid-template-rows: auto auto auto auto; align-items: center; column-gap: clamp(36px, 7vw, 96px);
  padding: clamp(54px, 8vw, 96px) max(24px, calc((100vw - 1120px) / 2));
  text-align: left;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 52%, #f3fff8 100%);
}
.lp-hero::before, .lp-hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none;
}
.lp-hero::before { width: 420px; height: 420px; left: -180px; bottom: -260px; background: rgba(37,99,235,.10); }
.lp-hero::after { width: 360px; height: 360px; right: -170px; top: -190px; background: rgba(16,185,129,.10); }
.lp-hero-badge, .lp-hero-title, .lp-hero-sub, .lp-hero-ctas { grid-column: 1; justify-self: start; }
.lp-hero-badge { margin-bottom: 18px; background: #fff; border-color: #cfe0f8; color: var(--brand-blue-dark); }
.lp-hero-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; max-width: 680px; }
.lp-hero-sub { font-size: clamp(16px, 1.8vw, 19px); max-width: 620px; }
.lp-hero-ctas { justify-content: flex-start; margin-bottom: 0; }
.lp-auth-wrap {
  grid-column: 2; grid-row: 1 / 5; max-width: 430px; justify-self: stretch;
  border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(23,32,51,.16);
}
.auth-card { max-width: none; padding: 30px; border-radius: 24px; border-color: rgba(174,187,208,.65); background: rgba(255,255,255,.96); box-shadow: none; }
.auth-brand-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
.auth-brand-name { font-size: 18px; }
.tabs { padding: 4px; border-radius: 13px; background: #eef2f7; }
.tab { min-height: 40px; border-radius: 10px; }
.tab.active { background: #fff; box-shadow: 0 2px 8px rgba(23,32,51,.10); }
.auth-google-btn { min-height: 46px; border-radius: 12px; }
.auth-register-step { animation: auth-step-in .24s ease both; }
.auth-register-form.auth-wizard-ready .auth-register-step { display: none; }
.auth-register-form.auth-wizard-ready .auth-register-step.is-active { display: block; }
.auth-next, [data-register-back] { display: none; }
.auth-register-form.auth-wizard-ready .auth-next,
.auth-register-form.auth-wizard-ready [data-register-back] { display: inline-flex; }
@keyframes auth-step-in { from { opacity: 0; transform: translateX(10px); } }
.auth-progress { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; margin: 0 0 20px; }
.auth-progress-dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e7edf5; color: #667085; font-size: 12px; font-weight: 800; }
.auth-progress-dot.is-active, .auth-progress-dot.is-done { background: var(--brand-blue); color: #fff; }
.auth-progress-line { height: 2px; background: #dbe3ee; }
.auth-progress-label { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-next { margin-top: 4px; }
.auth-register-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.auth-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 12px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.auth-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand-blue); }
.auth-consent a { color: var(--brand-blue-dark); }
.password-strength { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: -4px 0 14px; }
.password-strength span { height: 4px; border-radius: 99px; background: #e5eaf1; }
.password-strength small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.password-strength[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.password-strength[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.password-strength[data-score="3"] span:nth-child(-n+3),
.password-strength[data-score="4"] span { background: #16a34a; }

.lp-stats-bar { background: var(--brand-ink); padding-block: 24px; }
.lp-step, .lp-for-card, .lp-trust-item, .lp-need-chip { border-radius: 16px; }
.lp-step, .lp-for-card, .lp-trust-item { box-shadow: 0 8px 24px rgba(23,32,51,.05); }

/* Onboarding */
.ob-page { max-width: 820px !important; }
.ob-hero { border-radius: 24px; padding: clamp(28px,5vw,46px) !important; background: linear-gradient(135deg,#172033,#1d4ed8) !important; color: #fff; }
.ob-hero h1, .ob-hero p { color: inherit !important; }
.ob-step:not(.ob-step--done):first-of-type { border-color: rgba(37,99,235,.45); box-shadow: 0 12px 30px rgba(37,99,235,.12); }
.ob-bar { background: linear-gradient(90deg,#2563eb,#10b981) !important; }

@media (max-width: 860px) {
  .lp-hero { display: flex; padding: 54px 20px; text-align: center; }
  .lp-hero-badge, .lp-hero-title, .lp-hero-sub, .lp-hero-ctas { align-self: center; justify-content: center; }
  .lp-auth-wrap { margin-top: 32px; width: 100%; }
}
@media (max-width: 520px) {
  .lp-hero { padding: 36px 14px 44px; }
  .lp-hero-title { font-size: 36px; }
  .auth-card { padding: 24px 18px; border-radius: 20px; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .auth-register-actions { grid-template-columns: 1fr; }
  .auth-register-actions .ghost { order: 2; }
  .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
