/**
 * LSRI — pages « shell » institutionnel (accueil + offres, etc.).
 * Scoped : classes sur body (lsri-home ou lsri-shell) — type terminal, sans casser le reste du site.
 */

body:is(.lsri-home, .lsri-shell) {
  --inst-bg: #060914;
  --inst-panel: rgba(12, 18, 36, 0.92);
  --inst-line: rgba(100, 116, 160, 0.35);
  --inst-muted: #94a3b8;
  --inst-heading: #f1f5f9;
  --inst-accent: #00d4aa;
  --inst-amber: #fbbf24;
  font-feature-settings: "tnum" 1, "lnum" 1;
  background: radial-gradient(1200px 600px at 50% -20%, rgba(0, 212, 170, 0.08), transparent 55%),
    linear-gradient(165deg, var(--inst-bg) 0%, #0c1228 45%, #0a0e27 100%);
  color: var(--inst-heading);
}

:is(.lsri-home, .lsri-shell) header {
  background: rgba(6, 9, 20, 0.92);
  border-bottom: 1px solid var(--inst-line);
  backdrop-filter: blur(14px);
}

/* Une seule rangée de menu sur desktop (évite deux lignes d’« onglets » quand le nav est chargé) */
@media (min-width: 751px) {
  :is(.lsri-home, .lsri-shell) header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  :is(.lsri-home, .lsri-shell) nav {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
}

:is(.lsri-home, .lsri-shell) .logo {
  filter: saturate(1.05);
}

:is(.lsri-home, .lsri-shell) nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

:is(.lsri-home, .lsri-shell) nav a.nav-current {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.12) inset;
}

/* Bandeau fil conducteur */
:is(.lsri-home, .lsri-shell) .inst-ribbon {
  border-bottom: 1px solid var(--inst-line);
  background: rgba(4, 8, 20, 0.75);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inst-muted);
  text-align: center;
  padding: 10px 18px;
}

:is(.lsri-home, .lsri-shell) .inst-ribbon strong {
  color: var(--inst-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Hero */
:is(.lsri-home, .lsri-shell) .hero {
  padding: 48px 24px 36px;
  max-width: 1120px;
  margin: 0 auto;
}

:is(.lsri-home, .lsri-shell) .hero .status-badge {
  border: 1px solid var(--inst-line);
  background: var(--inst-panel);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:is(.lsri-home, .lsri-shell) .hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 18px auto 0;
  text-align: center;
}

:is(.lsri-home, .lsri-shell) .hero-highlight {
  background: linear-gradient(120deg, #e2e8f0 0%, #cbd5e1 40%, var(--inst-accent) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:is(.lsri-home, .lsri-shell) .problem-line {
  font-size: 15px;
  color: #a8b6d6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

:is(.lsri-home, .lsri-shell) .lsri-index-block {
  border: 1px solid var(--inst-line);
  background: var(--inst-panel);
  border-radius: 14px;
  padding: 16px 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust strip */
:is(.lsri-home, .lsri-shell) .inst-trust {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

:is(.lsri-home, .lsri-shell) .inst-trust a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--inst-line);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

:is(.lsri-home, .lsri-shell) .inst-trust a:hover {
  border-color: rgba(0, 212, 170, 0.55);
  color: var(--inst-accent);
  background: rgba(0, 212, 170, 0.06);
}

/* Metrics */
:is(.lsri-home, .lsri-shell) .hero-metrics {
  max-width: 1000px;
}

:is(.lsri-home, .lsri-shell) .hero-metric-card {
  background: var(--inst-panel);
  border: 1px solid var(--inst-line);
  border-radius: 12px;
}

:is(.lsri-home, .lsri-shell) .hero-metric-value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3vw, 30px);
  color: #f8fafc;
}

:is(.lsri-home, .lsri-shell) .hero-metric-label {
  color: var(--inst-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Chart / proof */
:is(.lsri-home, .lsri-shell) .chart-section {
  max-width: 1040px;
  margin: 32px auto;
  padding: 28px 22px 32px;
  border: 1px solid var(--inst-line);
  border-radius: 16px;
  background: var(--inst-panel);
}

:is(.lsri-home, .lsri-shell) .chart-eyebrow {
  color: var(--inst-accent) !important;
}

:is(.lsri-home, .lsri-shell) .chart-section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
}

:is(.lsri-home, .lsri-shell) .chart-section-desc {
  color: #a8b6d6;
}

:is(.lsri-home, .lsri-shell) .chart-wrap {
  border: 1px solid rgba(100, 116, 160, 0.25);
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.65);
  padding: 12px;
}

:is(.lsri-home, .lsri-shell) .chart-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.55;
  color: #8896b8;
  border-left: 3px solid rgba(251, 191, 36, 0.65);
  padding: 10px 12px;
  background: rgba(251, 191, 36, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Bloc « stress documenté » (accueil) — ton audit, pas storytelling */
body.lsri-home .lsri-audit-panel {
  border: 1px solid var(--inst-line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  background: rgba(4, 8, 20, 0.55);
  max-width: 920px;
}

body.lsri-home .lsri-anchor-statement {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 0 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #94a3b8;
  line-height: 1.45;
}

body.lsri-home .anchor-metric-title {
  margin: 18px auto 0;
  padding: 0 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inst-accent);
}

body.lsri-home .anchor-metric-sub {
  max-width: 640px;
  margin: 8px auto 0;
  padding: 0 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

body.lsri-home .anchor-metric-tie {
  max-width: 720px;
  margin: 14px auto 0;
  padding: 0 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #8896b8;
}

body.lsri-shell .offre-anchor-metric {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 170, 0.22);
  background: rgba(0, 212, 170, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: #a8b6d8;
  max-width: 920px;
}

body.lsri-home .audit-reports {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.lsri-home .audit-report-card {
  border: 1px solid rgba(100, 116, 160, 0.32);
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.72);
  overflow: hidden;
}

body.lsri-home .audit-report-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(100, 116, 160, 0.22);
  background: rgba(4, 8, 20, 0.55);
}

body.lsri-home .audit-report-event {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

body.lsri-home .audit-report-period {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--inst-accent);
}

body.lsri-home .audit-report-dl {
  margin: 0;
  padding: 0;
}

body.lsri-home .audit-report-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 12px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(100, 116, 160, 0.15);
  align-items: start;
}

body.lsri-home .audit-report-row:last-child {
  border-bottom: 0;
}

body.lsri-home .audit-report-row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8896b8;
}

body.lsri-home .audit-report-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

body.lsri-home .audit-report-row-note dt,
body.lsri-home .audit-report-row-note dd {
  color: #94a3b8;
  font-size: 12px;
}

body.lsri-home .audit-events-link {
  color: var(--inst-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

body.lsri-home .audit-events-link:hover {
  text-decoration: underline;
}

body.lsri-home .audit-events-sep {
  color: #64748b;
}

@media (max-width: 560px) {
  body.lsri-home .audit-report-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Regimes + problem */
:is(.lsri-home, .lsri-shell) .compact-section .why-title,
:is(.lsri-home, .lsri-shell) .compact-section h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

:is(.lsri-home, .lsri-shell) .regime-card {
  border-color: var(--inst-line);
  background: rgba(8, 12, 28, 0.85);
}

/* Terminal mockup */
:is(.lsri-home, .lsri-shell) .terminal-mockup {
  border-color: rgba(0, 212, 170, 0.28);
  background: linear-gradient(155deg, #070d1c, #0f182e);
}

:is(.lsri-home, .lsri-shell) .terminal-cell {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  font-size: 12px;
}

/* How-to */
:is(.lsri-home, .lsri-shell) .how-to-section {
  border-top: 1px solid var(--inst-line);
  border-bottom: 1px solid var(--inst-line);
  background: rgba(5, 8, 18, 0.5);
}

:is(.lsri-home, .lsri-shell) .how-to-card {
  border: 1px solid var(--inst-line);
  background: var(--inst-panel);
}

/* Institutional actions */
:is(.lsri-home, .lsri-shell) .inst-actions {
  max-width: 1040px;
  margin: 36px auto 12px;
  padding: 0 18px;
}

:is(.lsri-home, .lsri-shell) .inst-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

:is(.lsri-home, .lsri-shell) .inst-action-card {
  border: 1px solid var(--inst-line);
  border-radius: 14px;
  padding: 22px 20px;
  background: var(--inst-panel);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:is(.lsri-home, .lsri-shell) .inst-action-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

:is(.lsri-home, .lsri-shell) .inst-action-card p {
  margin: 0;
  font-size: 13px;
  color: var(--inst-muted);
  line-height: 1.55;
  flex: 1;
}

:is(.lsri-home, .lsri-shell) .cta-button.cta-secondary {
  background: transparent;
  border: 1px solid rgba(0, 212, 170, 0.55);
  color: var(--inst-accent);
}

:is(.lsri-home, .lsri-shell) .cta-button.cta-secondary:hover {
  background: rgba(0, 212, 170, 0.12);
}

:is(.lsri-home, .lsri-shell) .cta-button.cta-inst {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

:is(.lsri-home, .lsri-shell) .cta-button.cta-inst:hover {
  border-color: rgba(251, 191, 36, 0.85);
}

:is(.lsri-home, .lsri-shell) #hero-cta-inst {
  padding: 14px 22px;
  min-width: 200px;
  font-size: 14px;
  font-weight: 700;
}

:is(.lsri-home, .lsri-shell) .inst-action-card .cta-button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 20px;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

:is(.lsri-home, .lsri-shell) .final-cta {
  margin-top: 8px;
  margin-bottom: 32px;
}

:is(.lsri-home, .lsri-shell) footer {
  border-top: 1px solid var(--inst-line);
  background: rgba(4, 7, 16, 0.95);
  padding-top: 28px;
  padding-bottom: 28px;
}

:is(.lsri-home, .lsri-shell) footer p {
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 640px) {
  :is(.lsri-home, .lsri-shell) header {
    padding: 14px 16px;
  }
  :is(.lsri-home, .lsri-shell) .hero {
    padding-top: 28px;
  }
  :is(.lsri-home, .lsri-shell) .inst-trust {
    justify-content: flex-start;
  }
}

/* —— Offres (offre.html) —— */
body.lsri-shell .mode-status-bar {
  border: 1px solid var(--inst-line);
  background: rgba(4, 8, 20, 0.75);
  color: var(--inst-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.lsri-shell .hero-premium {
  background: var(--inst-panel);
  border: 1px solid var(--inst-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

body.lsri-shell .hero-title {
  color: var(--inst-heading);
  letter-spacing: -0.02em;
}

body.lsri-shell .hero-sub,
body.lsri-shell .hero-points {
  color: #a8b6d6;
}

body.lsri-shell .hero-offer {
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(0, 212, 170, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.08) inset;
}

body.lsri-shell .section-card,
body.lsri-shell .top-highlight-card {
  background: var(--inst-panel);
  border: 1px solid var(--inst-line);
}

body.lsri-shell .section-title {
  color: #e2e8f0;
  letter-spacing: -0.02em;
}

body.lsri-shell .comparison-table thead th {
  background: rgba(4, 8, 20, 0.85);
  color: #cbd5e1;
  border-color: var(--inst-line);
}

body.lsri-shell .comparison-table td {
  border-color: rgba(100, 116, 160, 0.22);
  color: #cbd5e1;
}

body.lsri-shell .benefit-card {
  border: 1px solid var(--inst-line);
  background: rgba(8, 12, 28, 0.85);
}

body.lsri-shell .benefit-card.inst {
  border-color: rgba(251, 191, 36, 0.35);
}

body.lsri-shell .ghost-cta {
  border: 1px solid rgba(0, 212, 170, 0.45);
  color: var(--inst-accent);
  background: rgba(0, 212, 170, 0.06);
}

body.lsri-shell .ghost-cta:hover {
  background: rgba(0, 212, 170, 0.12);
}

body.lsri-shell .data-zone .section-card,
body.lsri-shell .btc-wrap {
  border-color: var(--inst-line);
}

body.lsri-shell .legal-note {
  color: #8896b8;
  font-size: 12px;
}

body.lsri-shell .offre-inst-strip {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(4, 8, 20, 0.5));
}

body.lsri-shell .offre-inst-strip-eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: #fcd34d;
}

body.lsri-shell .offre-inst-strip-desc {
  margin: 0 0 14px;
  color: #aeb7d8;
  font-size: 14px;
  line-height: 1.55;
  max-width: 720px;
}

body.lsri-shell .offre-inst-strip .hero-cta {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.06));
  color: #fef3c7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.lsri-shell .offre-inst-strip .hero-cta:hover {
  opacity: 0.96;
  border-color: rgba(251, 191, 36, 0.75);
}

/* —— Connexion (signin / login) —— */
body.auth-flow.lsri-shell {
  background: radial-gradient(900px 480px at 50% -15%, rgba(0, 212, 170, 0.07), transparent 50%),
    linear-gradient(165deg, #060914 0%, #0c1228 50%, #0a0e27 100%);
}

body.auth-flow.lsri-shell .auth-card {
  border: 1px solid var(--inst-line);
  background: rgba(12, 18, 36, 0.94);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

body.auth-flow.lsri-shell .auth-card h1 {
  letter-spacing: -0.02em;
  color: var(--inst-heading);
}

body.auth-flow.lsri-shell .auth-card p.sub,
body.auth-flow.lsri-shell .auth-card label {
  color: var(--inst-muted);
}

body.auth-flow.lsri-shell .auth-card input {
  border-color: var(--inst-line);
  background: rgba(4, 8, 20, 0.75);
  color: var(--inst-heading);
}
