/* ============================================================
   DataSpy.eu — Design System v2 : Le Thriller Interactif
   Direction : Terminal Hacker — Pentest Personnel
   Stack : CSS3 pure, Mobile-first, prefers-reduced-motion
   Polices : JetBrains Mono + Inter (Google Fonts)
   Palette : #0a0a0a fond | #00ff41 terminal | #ff4444 warning
   ============================================================ */

/* ============================================================
   DESIGN TOKENS v2
   ============================================================ */
:root {
  /* Fond */
  --bg-root:    #0a0a0a;
  --bg-surface: #0f0f0f;
  --bg-raised:  #141414;
  --bg-card:    #1a1a1a;
  --bg-input:   #111111;

  /* Terminal — couleurs signature */
  --green:       #00ff41;
  --green-dim:   rgba(0, 255, 65, 0.15);
  --green-glow:  rgba(0, 255, 65, 0.35);
  --green-faint: rgba(0, 255, 65, 0.06);
  --green-mid:   rgba(0, 255, 65, 0.5);

  /* Alertes */
  --red:        #ff4444;
  --red-dim:    rgba(255, 68, 68, 0.15);
  --red-glow:   rgba(255, 68, 68, 0.3);
  --orange:     #ff8c00;
  --orange-dim: rgba(255, 140, 0, 0.15);

  /* Texte */
  --text-primary:   #e0e0e0;
  --text-secondary: #808080;
  --text-muted:     #404040;
  --text-terminal:  #00ff41;
  --text-warn:      #ff8c00;
  --text-error:     #ff4444;

  /* Bordures */
  --border:       #222222;
  --border-green: rgba(0, 255, 65, 0.2);
  --border-red:   rgba(255, 68, 68, 0.3);

  /* Typographie */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Conteneurs */
  --max-w:      760px;
  --max-w-wide: 1100px;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Ombres */
  --shadow-card:     0 2px 16px rgba(0,0,0,0.5);
  --shadow-green:    0 0 24px var(--green-glow), 0 2px 8px rgba(0,0,0,0.6);
  --shadow-terminal: 0 0 40px rgba(0, 255, 65, 0.12);

  /* Transitions */
  --t-fast: 0.12s ease;
  --t-base: 0.22s ease;
  --t-slow: 0.4s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SCANLINES — Effet CRT discret
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

@media (prefers-reduced-motion: reduce) {
  .scanlines { display: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo-v2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo-v2:hover {
  text-shadow: 0 0 12px var(--green-glow);
  text-decoration: none;
}

.nav-logo-v2 .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--green);
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

.nav-links-v2 {
  display: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links-v2 a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.nav-links-v2 a:hover {
  color: var(--green);
  text-decoration: none;
}

.nav-links-v2 a.nav-cta-v2,
.nav-cta-v2 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--border-green);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.nav-links-v2 a.nav-cta-v2:hover,
.nav-cta-v2:hover {
  background: var(--green-faint);
  box-shadow: 0 0 12px var(--green-dim);
  text-decoration: none;
  color: var(--green);
}

.nav-menu-btn-v2 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  color: var(--text-secondary);
}

.nav-menu-btn-v2 span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav-menu-btn-v2[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-menu-btn-v2[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-menu-btn-v2[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-links-v2 { display: flex; }
  .nav-menu-btn-v2 { display: none; }
}

/* Mobile menu open state */
.nav-links-v2.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  gap: var(--space-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ============================================================
   FOND MATRIX — Animation CSS pure
   ============================================================ */
.matrix-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.matrix-col {
  position: absolute;
  top: -100%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  opacity: 0.04;
  animation: matrix-fall linear infinite;
  user-select: none;
  white-space: nowrap;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
}

@keyframes matrix-fall {
  0%   { transform: translateY(-100%); opacity: 0; }
  5%   { opacity: 0.04; }
  90%  { opacity: 0.04; }
  100% { transform: translateY(calc(100vh + 100%)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .matrix-col { display: none; }
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ============================================================
   LANDING PAGE — index.php
   ============================================================ */

/* Hero */
.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  text-align: center;
  z-index: 1;
}

.hero-v2 .hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.hero-v2 h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-v2 h1 .hl-green {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.hero-v2 h1 .hl-red {
  color: var(--red);
}

.hero-v2 .hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Mini-terminal de teaser landing */
.teaser-terminal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-terminal);
}

.teaser-terminal::before {
  content: '● ● ●';
  position: absolute;
  top: 10px;
  left: var(--space-md);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
}

.teaser-terminal .tt-header {
  margin-top: 14px;
  margin-bottom: var(--space-sm);
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xs);
}

.teaser-terminal .tt-row {
  display: flex;
  gap: var(--space-sm);
  padding: 3px 0;
  align-items: baseline;
}

.teaser-terminal .tt-label {
  color: var(--text-muted);
  min-width: 90px;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.teaser-terminal .tt-value {
  color: var(--text-primary);
  font-size: 0.8rem;
}

.teaser-terminal .tt-value.warn {
  color: var(--orange);
}

.teaser-terminal .tt-value.loading {
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* CTA principal */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn-scan {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg-root);
  background: var(--green);
  border: 2px solid var(--green);
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  transition: box-shadow var(--t-base), transform var(--t-fast), background var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-scan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn-scan:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--bg-root);
}

.btn-scan:hover::after {
  opacity: 1;
}

.btn-scan:active {
  transform: translateY(0);
}

.btn-scan svg {
  flex-shrink: 0;
}

.cta-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.cta-disclaimer a {
  color: var(--text-secondary);
}

/* Social proof */
.social-proof-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-mid); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .dot-live { animation: none; }
}

/* Section "Ce qu'on peut trouver" */
.what-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.what-section .section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.what-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.acts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .acts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.act-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.act-card:hover {
  border-color: var(--border-green);
  box-shadow: 0 4px 24px rgba(0, 255, 65, 0.07);
}

.act-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.act-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.act-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section stats landing */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 120px;
}

/* ============================================================
   SCAN PAGE — scan.php
   ============================================================ */
.scan-main-v2 {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding-bottom: var(--space-3xl);
}

/* Header scan */
.scan-header-v2 {
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.scan-header-v2 .scan-status-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.scan-header-v2 h1 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Terminal principal */
.terminal-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}

.terminal-box {
  background: #050505;
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-terminal);
  position: relative;
}

/* Barre de titre terminal */
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.dot-red    { background: #ff5f57; }
.terminal-dot.dot-yellow { background: #ffbd2e; }
.terminal-dot.dot-green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Corps du terminal */
.terminal-body {
  padding: var(--space-md) var(--space-lg);
  min-height: 400px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-y: auto;
  max-height: calc(100svh - 200px);
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  .terminal-body {
    font-size: 0.875rem;
    padding: var(--space-lg) var(--space-xl);
  }
}

/* Lignes du terminal */
.t-line {
  display: block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: pre-wrap;
  word-break: break-all;
}

.t-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Séparateur */
.t-line.sep {
  color: var(--border);
  letter-spacing: 0.05em;
}

/* Préfixes colorés */
.t-tag-scan  { color: var(--green); font-weight: 500; }
.t-tag-warn  { color: var(--orange); font-weight: 500; }
.t-tag-error { color: var(--red); font-weight: 600; }
.t-tag-info  { color: var(--text-muted); }

/* Valeurs */
.t-val {
  color: var(--text-primary);
}

.t-val-hl {
  color: var(--green);
  font-weight: 500;
  text-shadow: 0 0 8px var(--green-dim);
}

.t-val-warn {
  color: var(--orange);
  font-weight: 500;
}

.t-val-crit {
  color: var(--red);
  font-weight: 600;
}

/* Sous-lignes (└─) */
.t-subline {
  display: block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--text-secondary);
  padding-left: 2em;
}

.t-subline.visible {
  opacity: 1;
  transform: translateX(0);
}

.t-subline.warn {
  color: var(--orange);
}

/* Curseur clignotant */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--green);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
  .t-line, .t-subline {
    transition: none;
  }
}

/* Effet typewriter */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--green);
  white-space: nowrap;
  animation: typing 1.2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { max-width: 0; }
  to   { max-width: 100%; }
}

@keyframes blink-caret {
  0%, 100% { border-color: var(--green); }
  50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter {
    animation: none;
    border-right: none;
    white-space: normal;
  }
}

/* Section résumé profil */
.profile-summary {
  background: var(--bg-raised);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-sm);
}

.profile-summary .ps-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}

.profile-row {
  display: flex;
  gap: var(--space-sm);
  padding: 3px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.profile-row .pr-key {
  color: var(--text-muted);
  min-width: 160px;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.profile-row .pr-val {
  color: var(--text-primary);
}

.profile-row .pr-val.premium {
  color: var(--green);
}

.profile-row .pr-val.high {
  color: var(--orange);
}

/* Compteur de données */
.data-count-block {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.data-count-block .count-hl {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Citation de conclusion */
.terminal-quote {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--border-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* Bouton de transition */
.terminal-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bg-root);
  background: var(--green);
  border: 2px solid var(--green);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: box-shadow var(--t-base), transform var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-continue:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--bg-root);
}

.btn-skip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}

.btn-skip:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
  text-decoration: none;
}

/* Erreur rate limiting */
.rate-limit-msg {
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--red);
  margin: var(--space-lg) auto;
  max-width: var(--max-w);
  display: none;
}

/* ============================================================
   SPINNER DE CHARGEMENT
   ============================================================ */
.terminal-spinner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
}

.spinner-dots {
  display: flex;
  gap: 4px;
}

.spinner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: bounce 1.2s ease-in-out infinite;
  opacity: 0.5;
}

.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner-dot { animation: none; opacity: 0.6; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   FOOTER v2
   ============================================================ */
.footer-v2 {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

.footer-inner-v2 {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-inner-v2 {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand-v2 .footer-logo-v2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-brand-v2 p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-brand-v2 a {
  color: var(--text-secondary);
}

.footer-nav-v2 h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.footer-nav-v2 ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-v2 a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-nav-v2 a:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   ACTE 2 — PERMISSIONS
   ============================================================ */

.permissions-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding-bottom: var(--space-3xl);
}

.permissions-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}

/* Transition intro depuis Acte 1 */
.act-transition {
  background: var(--bg-raised);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 3px solid var(--green);
}

.act-transition .at-prefix {
  color: var(--green);
  opacity: 0.7;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-sm);
}

/* Compteur global permissions */
.permissions-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.permissions-counter .pc-label {
  color: var(--text-muted);
}

.permissions-counter .pc-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}

.permissions-counter .pc-score .pc-granted {
  color: var(--green);
}

.permissions-counter .pc-score .pc-total {
  color: var(--text-muted);
}

/* Cartes de permission — conteneur séquentiel */
.permission-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Carte de permission */
.perm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  position: relative;
}

.perm-card.state-pending {
  border-color: var(--border);
}

.perm-card.state-granted {
  border-color: var(--border-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

.perm-card.state-denied {
  border-color: var(--border);
  opacity: 0.85;
}

/* En-tête de la carte */
.perm-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.perm-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}

.perm-card.state-granted .perm-icon {
  background: var(--green-dim);
  border-color: var(--border-green);
  color: var(--green);
}

.perm-card.state-denied .perm-icon {
  background: var(--bg-raised);
  color: var(--text-muted);
}

.perm-card-title {
  flex: 1;
}

.perm-card-title h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.perm-card-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.perm-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.perm-status-badge.badge-pending {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.perm-status-badge.badge-granted {
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  color: var(--green);
}

.perm-status-badge.badge-denied {
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  color: var(--red);
}

/* Corps de la carte */
.perm-card-body {
  padding: var(--space-lg);
}

/* Bouton d'autorisation — style prompt navigateur */
.btn-allow-perm {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bg-root);
  background: var(--green);
  border: 2px solid var(--green);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow var(--t-base), transform var(--t-fast);
}

.btn-allow-perm:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-allow-perm:active {
  transform: translateY(0);
}

.btn-allow-perm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Résultat de la permission (fade-in dramatique) */
.perm-result {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.perm-result.show {
  display: block;
}

.perm-result.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.perm-result.result-granted {
  background: var(--green-faint);
  border: 1px solid var(--border-green);
  color: var(--text-primary);
}

.perm-result.result-denied {
  background: rgba(255, 68, 68, 0.04);
  border: 1px solid rgba(255, 68, 68, 0.15);
  color: var(--text-secondary);
}

.perm-result .result-headline {
  color: var(--green);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-sm);
}

.perm-result.result-denied .result-headline {
  color: var(--text-secondary);
}

.perm-result .result-data {
  color: var(--orange);
  font-weight: 600;
  word-break: break-all;
}

.perm-result .result-stat {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
}

/* Animation "tremblement" dramatique sur résultat critique */
@keyframes shake-reveal {
  0%   { transform: translateX(0) translateY(6px); opacity: 0; }
  10%  { transform: translateX(-3px) translateY(3px); }
  20%  { transform: translateX(3px) translateY(1px); }
  30%  { transform: translateX(-2px) translateY(0); }
  40%  { transform: translateX(2px) translateY(0); opacity: 0.7; }
  50%  { transform: translateX(-1px) translateY(0); }
  100% { transform: translateX(0) translateY(0); opacity: 1; }
}

.perm-result.animate-shake {
  animation: shake-reveal 0.55s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .perm-result.animate-shake {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .perm-result {
    transition: none;
  }
}

/* Flux caméra — cadre surveillance */
.camera-feed-wrapper {
  margin: var(--space-md) 0;
  border: 2px solid var(--red);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #000;
  max-width: 360px;
  aspect-ratio: 4 / 3;
}

.camera-feed-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-feed-wrapper .cam-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.camera-feed-wrapper .cam-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 68, 68, 0.4);
  animation: cam-border-pulse 1s ease-in-out infinite;
}

@keyframes cam-border-pulse {
  0%, 100% { border-color: rgba(255, 68, 68, 0.4); }
  50% { border-color: rgba(255, 68, 68, 0.9); }
}

.camera-feed-wrapper .cam-timestamp {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  letter-spacing: 0.05em;
}

.camera-feed-wrapper .cam-rec {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--red);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
}

.camera-feed-wrapper .cam-rec::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: dot-pulse 1s ease-in-out infinite;
}

/* Canvas de pixélisation caméra */
.camera-pixelate-canvas {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .camera-feed-wrapper .cam-overlay::before {
    animation: none;
    border-color: rgba(255, 68, 68, 0.5);
  }
  .camera-feed-wrapper .cam-rec::before {
    animation: none;
  }
}

/* Barre de volume micro */
.mic-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  padding: var(--space-sm) 0;
  margin: var(--space-sm) 0;
}

.mic-bar {
  width: 5px;
  border-radius: 2px;
  background: var(--green);
  min-height: 3px;
  transition: height 0.08s ease;
  opacity: 0.8;
}

/* Presse-papiers — avertissement mot de passe */
.clipboard-warning {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  margin-top: var(--space-sm);
}

/* Transition vers Acte 3 */
.act-next-transition {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  text-align: center;
}

.act-next-transition p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.act-next-transition p em {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   ACTE 3 — EMAIL + CASIER NUMÉRIQUE
   ============================================================ */

.email-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding-bottom: var(--space-3xl);
}

.email-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}

/* Section input email */
.email-input-section {
  margin-bottom: var(--space-xl);
}

.email-input-section .ei-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.email-input-section .ei-header h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.email-input-section .ei-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Input email style terminal */
.email-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin-inline: auto;
}

.email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.email-input-wrapper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-faint), var(--shadow-terminal);
}

.email-input-wrapper .ei-prompt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  padding: 0 var(--space-md);
  flex-shrink: 0;
  opacity: 0.7;
  user-select: none;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 14px var(--space-md) 14px 0;
  caret-color: var(--green);
  letter-spacing: 0.03em;
}

.email-input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.btn-verify-email {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bg-root);
  background: var(--green);
  border: 2px solid var(--green);
  padding: 14px var(--space-xl);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow var(--t-base), transform var(--t-fast);
}

.btn-verify-email:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-verify-email:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mention RGPD sous l'input */
.email-consent-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
  margin-inline: auto;
}

.email-consent-note a {
  color: var(--text-secondary);
}

/* Section OTP */
.otp-section {
  display: none;
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}

.otp-section.show {
  display: block;
}

.otp-section .otp-info {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.otp-section .otp-info strong {
  color: var(--green);
}

/* 6 cases OTP individuelles */
.otp-inputs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.otp-digit {
  width: 48px;
  height: 60px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  caret-color: var(--green);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -moz-appearance: textfield;
  appearance: textfield;
}

.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-digit:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-faint);
}

.otp-digit.filled {
  border-color: var(--border-green);
  background: var(--green-faint);
}

.otp-digit.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
  animation: shake-otp 0.4s ease;
}

@keyframes shake-otp {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .otp-digit.error { animation: none; }
}

@media (max-width: 374px) {
  .otp-digit {
    width: 40px;
    height: 52px;
    font-size: 1.2rem;
  }
  .otp-inputs { gap: 6px; }
}

.otp-error-msg {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--red);
  min-height: 1.4em;
  margin-bottom: var(--space-sm);
}

.otp-resend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.otp-resend button {
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otp-resend button:hover {
  color: var(--text-primary);
}

/* Casier numérique */
.dossier-section {
  display: none;
}

.dossier-section.show {
  display: block;
}

.dossier-box {
  background: #050505;
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-terminal);
}

.dossier-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.dossier-header .dh-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

.dossier-header h2 {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  word-break: break-all;
}

.dossier-header h2 .email-masked {
  color: var(--green);
}

.dossier-divider {
  border: none;
  border-top: 1px solid rgba(0, 255, 65, 0.15);
  margin: 0 var(--space-xl);
}

/* Sections du casier */
.dossier-body {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 599px) {
  .dossier-body {
    padding: var(--space-md);
  }
}

.dossier-section-block {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dossier-section-block.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dossier-section-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.dsb-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.dsb-title svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Spinner inline pendant chargement d'une section */
.dsb-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
}

/* Cartes breach — sévérité colorée */
.breach-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.breach-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.breach-card.reveal-in {
  opacity: 1;
  transform: translateX(0);
}

.breach-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.breach-card.sev-critical::before { background: var(--red); }
.breach-card.sev-high::before     { background: var(--orange); }
.breach-card.sev-medium::before   { background: #e8c547; }
.breach-card.sev-low::before      { background: var(--text-muted); }

.breach-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.breach-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.breach-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.breach-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.breach-data-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-xs);
}

.breach-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.breach-tag.tag-password {
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  color: var(--red);
  font-weight: 700;
}

.breach-tag.tag-email {
  background: var(--orange-dim);
  border: 1px solid rgba(255, 140, 0, 0.25);
  color: var(--orange);
}

.breach-tag.tag-default {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Bilan breach */
.breach-bilan {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  line-height: 1.7;
}

.breach-bilan strong { font-weight: 700; }

/* Photo Gravatar */
.gravatar-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.gravatar-img-wrapper {
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gravatar-img-wrapper.reveal-in {
  opacity: 1;
  transform: scale(1);
}

.gravatar-img-wrapper img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: block;
  border: 2px solid var(--border-green);
  box-shadow: 0 0 20px var(--green-glow);
}

.gravatar-img-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-md) + 4px);
  border: 1px solid var(--border-green);
  animation: grav-glow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grav-glow {
  0%, 100% { box-shadow: 0 0 8px var(--green-dim); }
  50%       { box-shadow: 0 0 20px var(--green-glow); }
}

@media (prefers-reduced-motion: reduce) {
  .gravatar-img-wrapper::after { animation: none; }
}

.gravatar-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gravatar-info .gi-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.gravatar-info .gi-warn {
  color: var(--orange);
  font-size: 0.75rem;
  margin-top: var(--space-sm);
}

/* Grille de services Holehe */
.holehe-progress-bar-wrapper {
  margin-bottom: var(--space-md);
}

.holehe-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.holehe-progress-bar {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
}

.holehe-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

.holehe-slow-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
  display: none;
}

.holehe-slow-msg.show { display: block; }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  color: var(--green);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-badge.reveal-in {
  opacity: 1;
  transform: scale(1);
}

.service-badge svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.services-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Résumé final — "Casier judiciaire numérique" */
.dossier-summary {
  background: var(--bg-raised);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.dossier-summary .ds-quote {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.dossier-summary .ds-quote strong {
  color: var(--red);
}

.dossier-summary .ds-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
}

/* Pastes HIBP */
.paste-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.paste-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.paste-item .pi-source {
  color: var(--orange);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}

/* Risk score */
.risk-score-block {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.risk-level-indicator {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-level-indicator.risk-high {
  background: var(--red-dim);
  border: 2px solid var(--red);
  color: var(--red);
}

.risk-level-indicator.risk-medium {
  background: var(--orange-dim);
  border: 2px solid var(--orange);
  color: var(--orange);
}

.risk-level-indicator.risk-low {
  background: var(--green-dim);
  border: 2px solid var(--green);
  color: var(--green);
}

.risk-factors {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.risk-factors li::before {
  content: '— ';
  color: var(--red);
  opacity: 0.6;
}

/* Dark web price */
.dark-web-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.dark-web-price strong {
  color: var(--red);
}

/* CTA vers Acte suivant */
.dossier-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  text-align: center;
}

.dossier-cta-block p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .scanlines,
  .matrix-bg,
  .nav-v2,
  .terminal-cursor,
  .spinner-dots,
  .btn-scan,
  .btn-continue,
  .btn-skip,
  .btn-allow-perm,
  .btn-verify-email,
  .otp-inputs,
  .btn-otp-resend { display: none !important; }

  body {
    background: #fff;
    color: #111;
  }

  .terminal-body {
    max-height: none;
    overflow: visible;
    font-size: 10pt;
    color: #111;
  }

  .t-line, .t-subline {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   ACTE 5 — LES ATTAQUES
   Page attacks.php : cartes d'attaque, typewriter, sources
   ============================================================ */

/* ---- Layout principal ---- */

.attacks-main {
  padding: var(--space-xl) var(--space-md);
  min-height: calc(100vh - 64px);
}

.attacks-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- En-tête Acte 5 ---- */

.attacks-acte-header {
  margin-bottom: var(--space-xl);
  background: none;
  border: none;
  padding: var(--space-md) 0;
}

.attacks-title {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.attacks-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 540px;
}

.attacks-subtitle strong {
  color: var(--text-primary);
}

/* ---- Avertissement éducatif global ---- */

.attacks-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.attacks-disclaimer svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.attacks-disclaimer strong {
  color: var(--orange);
}

/* ---- État chargement ---- */

.attacks-loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin: var(--space-xl) 0;
}

.attacks-loading-inner {
  text-align: center;
}

.attacks-loading-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.attacks-loading-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.attacks-loading--done {
  opacity: 0;
  transition: opacity var(--t-base);
}

/* ---- État erreur ---- */

.attacks-error-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin: var(--space-xl) 0;
}

.attacks-error-inner {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  max-width: 400px;
}

.attacks-error-inner svg {
  color: var(--red);
  margin: 0 auto var(--space-md);
  display: block;
}

.attacks-error-inner p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.btn-attacks-retry {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  letter-spacing: 0.04em;
}

.btn-attacks-retry:hover {
  background: var(--red-dim);
  color: #fff;
}

/* ---- Conteneur des cartes ---- */

.attacks-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ---- Carte d'attaque — base ---- */

.attack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow), border-color var(--t-base);
  box-shadow: var(--shadow-card);
}

.attack-card--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Couleurs de bordure par type */
.attack-card--phishing.attack-card--visible   { border-color: rgba(255, 68,  68,  0.4); }
.attack-card--ad.attack-card--visible         { border-color: rgba(255, 140, 0,   0.4); }
.attack-card--harassment.attack-card--visible { border-color: rgba(255, 68,  68,  0.5); }
.attack-card--phone.attack-card--visible      { border-color: rgba(255, 140, 0,   0.35); }
.attack-card--identity.attack-card--visible   { border-color: rgba(255, 68,  68,  0.4); }

/* ---- Header de carte ---- */

.attack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---- Badge type d'attaque ---- */

.attack-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.attack-badge--phishing  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,68,68,0.25); }
.attack-badge--ad        { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,140,0,0.25); }
.attack-badge--harassment{ background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,68,68,0.3); }
.attack-badge--phone     { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,140,0,0.25); }
.attack-badge--identity  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,68,68,0.25); }

/* ---- Niveau de danger ---- */

.attack-danger-level {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.danger-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.attack-danger--critical { color: var(--red); }
.attack-danger--critical .danger-dot { background: var(--red); box-shadow: 0 0 6px var(--red); animation: pulse-red 1.8s ease-in-out infinite; }

.attack-danger--high { color: var(--orange); }
.attack-danger--high .danger-dot { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 4px var(--red); }
  50%       { box-shadow: 0 0 10px var(--red), 0 0 20px rgba(255,68,68,0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .attack-danger--critical .danger-dot { animation: none; }

  /* Désactiver les transitions d'apparition des cartes et panneaux */
  .attack-card,
  .attack-card--visible,
  .attack-sources-panel,
  .sources-panel--visible,
  .attacks-conclusion,
  .attacks-conclusion--visible,
  .attack-harassment-interface,
  .harassment-content--visible {
    transition: none;
    animation: none;
  }

  .attack-card--visible {
    opacity: 1;
    transform: none;
  }

  .sources-panel--visible {
    opacity: 1;
    transform: none;
  }

  .attacks-conclusion--visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Watermark ---- */

.attack-watermark {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: var(--space-xs) 0;
  border-top: 1px dashed var(--border);
  margin-top: var(--space-sm);
  user-select: none;
}

/* ---- Curseur typewriter ---- */

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--green);
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
  margin-left: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { animation: none; opacity: 1; }
}

/* ---- Zone de contenu streamé ---- */

.attack-content {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 3em;
}

/* ============================================================
   INTERFACE EMAIL (phishing)
   ============================================================ */

.attack-email-interface {
  background: #f8f8f8;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.aei-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: #e8e8e8;
  padding: 8px 14px;
  border-bottom: 1px solid #d0d0d0;
}

.aei-toolbar-dots {
  display: flex;
  gap: 5px;
}

.aei-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.aei-dot--red    { background: #ff5f57; }
.aei-dot--yellow { background: #ffbd2e; }
.aei-dot--green  { background: #28c840; }

.aei-toolbar-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
  flex: 1;
  text-align: center;
  padding-right: 48px; /* compenser les dots */
}

.aei-meta {
  padding: var(--space-sm) var(--space-lg);
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.aei-meta-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: 3px 0;
  font-size: 0.8rem;
}

.aei-meta-label {
  font-family: var(--font-sans);
  color: #666;
  font-weight: 600;
  min-width: 44px;
  flex-shrink: 0;
}

.aei-from,
.aei-subject {
  font-family: var(--font-sans);
  color: #222;
  font-size: 0.8rem;
}

.aei-body {
  padding: var(--space-lg);
  min-height: 120px;
}

.aei-body .attack-content {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #222;
  line-height: 1.7;
}

.aei-body .attack-watermark {
  color: #aaa;
  border-top: 1px dashed #ccc;
  font-size: 0.65rem;
  margin-top: var(--space-md);
}

.aei-body .typewriter-cursor {
  background: #555;
}

/* ============================================================
   INTERFACE PUB (ad_manipulation)
   ============================================================ */

.attack-ad-interface {
  padding: var(--space-lg);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.aad-sponsored {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.aad-sponsored svg {
  color: var(--text-muted);
}

/* ============================================================
   PROTOCOLE LÉA — Harcèlement
   ============================================================ */

.attack-lea-warning {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  background: var(--bg-raised);
  border-top: 2px solid rgba(255, 68, 68, 0.4);
}

.lea-warning-icon {
  color: var(--red);
  opacity: 0.8;
}

.attack-lea-warning h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attack-lea-warning p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 420px;
}

.attack-lea-warning strong {
  color: var(--text-primary);
}

.lea-warning-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}

.lea-warning-note strong {
  color: var(--orange);
  font-weight: 700;
}

.lea-warning-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-lea-reveal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--red-dim);
  border: 1px solid rgba(255, 68, 68, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-lea-reveal:hover {
  background: rgba(255, 68, 68, 0.25);
  border-color: var(--red);
}

.btn-lea-skip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.btn-lea-skip:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Interface harcèlement (après clic "Voir") */

.attack-harassment-interface {
  padding: var(--space-lg);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.harassment-content--visible {
  opacity: 1;
  transform: translateY(0);
}

.ahm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.harassment-resources {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.harassment-resources strong {
  color: var(--green);
}

/* ============================================================
   INTERFACE TÉLÉPHONE (phone_scam)
   ============================================================ */

.attack-phone-interface {
  padding: var(--space-lg);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.aph-incoming {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.aph-incoming svg { color: var(--green); }

.aph-number {
  color: var(--green);
  font-weight: 700;
}

.aph-dialogue {
  /* Le contenu du dialogue est affiché ici */
}

/* ============================================================
   INTERFACE IDENTITÉ (identity_theft)
   ============================================================ */

.attack-identity-interface {
  padding: var(--space-lg);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.aid-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.attack-content--steps {
  counter-reset: none; /* Les étapes sont dans le texte généré */
}

.aid-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* ============================================================
   PANNEAU SOURCES
   ============================================================ */

.attack-sources-panel {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  overflow: hidden;
}

.sources-panel--visible {
  opacity: 1;
  transform: translateY(0);
}

.sources-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--t-fast);
}

.sources-toggle:hover {
  color: var(--text-secondary);
}

.sources-toggle svg {
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.sources-toggle--open svg {
  transform: rotate(180deg);
}

.sources-list {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--space-lg) var(--space-md);
}

.sources-list--open {
  display: flex;
}

.source-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.source-item:last-child {
  border-bottom: none;
}

/* Badges acte — code couleur */
.source-act-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Acte 1 = bleu */
.source-act--act1 { background: rgba(0, 140, 255, 0.15); color: #4ab8ff; border: 1px solid rgba(0,140,255,0.2); }
/* Acte 2 = jaune */
.source-act--act2 { background: rgba(255, 200, 0, 0.15);  color: #ffd24a; border: 1px solid rgba(255,200,0,0.2); }
/* Acte 3 = rouge */
.source-act--act3 { background: var(--red-dim);            color: var(--red); border: 1px solid rgba(255,68,68,0.2); }
/* Acte 4 = vert */
.source-act--act4 { background: var(--green-faint);        color: var(--green); border: 1px solid var(--border-green); }

.source-label {
  flex: 1;
  font-size: 0.82rem;
}

/* ============================================================
   CONCLUSION + CTA VERS ACTE 6
   ============================================================ */

.attacks-conclusion {
  margin-top: var(--space-2xl);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.attacks-conclusion--visible {
  opacity: 1;
  transform: translateY(0);
}

.attacks-conclusion-inner {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-terminal);
}

.conclusion-quote {
  margin-bottom: var(--space-xl);
}

.conclusion-quote p {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.conclusion-quote p strong {
  color: var(--text-primary);
  display: block;
  margin-top: var(--space-sm);
}

.conclusion-question {
  margin-bottom: var(--space-xl);
}

.conclusion-question p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stats de session */
.conclusion-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.conclusion-stat {
  text-align: center;
}

.cstat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.cstat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Actions conclusion */
.conclusion-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn-conclusion-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-root);
  background: var(--green);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  transition: background var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  box-shadow: var(--shadow-green);
}

.btn-conclusion-primary:hover {
  background: #00e63a;
  box-shadow: 0 0 32px var(--green-glow);
  text-decoration: none;
}

.btn-conclusion-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.btn-conclusion-primary[aria-disabled="true"]:hover {
  background: var(--green);
  box-shadow: var(--shadow-green);
}

.btn-soon-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-conclusion-secondary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--t-fast);
}

.btn-conclusion-secondary:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.conclusion-legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.conclusion-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Toast "bientôt disponible" ---- */

.coming-soon-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--bg-raised);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--t-base), transform var(--t-base);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   SPINNER DOTS (réutilisé depuis email.php)
   ============================================================ */

/* Déjà défini dans le CSS global — pas de redéfinition */

/* ============================================================
   RESPONSIVE MOBILE — Attaques
   ============================================================ */

@media (min-width: 640px) {
  .attacks-main {
    padding: var(--space-xl) var(--space-xl);
  }

  .conclusion-actions {
    flex-direction: row;
    justify-content: center;
  }

  .lea-warning-actions {
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .attack-card-header {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  .aei-body,
  .attack-phone-interface,
  .attack-ad-interface,
  .attack-identity-interface,
  .attack-harassment-interface {
    padding: var(--space-md);
  }

  .aei-toolbar-title {
    display: none;
  }

  .attacks-disclaimer {
    padding: var(--space-sm) var(--space-md);
  }

  .conclusion-quote p {
    font-size: 0.95rem;
  }

  .cstat-num {
    font-size: 1.6rem;
  }
}

/* ============================================================
   PRINT — Attaques (masquer les éléments interactifs)
   ============================================================ */

@media print {
  .attack-sources-panel,
  .attacks-conclusion,
  .attacks-disclaimer {
    display: none;
  }
}

/* ============================================================
   ACTE 6 — SCORE & REPRISE DE CONTRÔLE
   Design shift : dark terminal → clair / empowerment
   Tokens : --score-* pour isoler du reste du design system
   ============================================================ */

/* Tokens spécifiques Acte 6 */
:root {
  --score-bg:          #f4f5f7;
  --score-bg-card:     #ffffff;
  --score-bg-raised:   #f0f1f4;
  --score-text:        #1a1a2e;
  --score-text-sub:    #4a4a6a;
  --score-text-muted:  #8888aa;
  --score-border:      #e2e4eb;
  --score-accent:      #10b981;
  --score-accent-dim:  rgba(16, 185, 129, 0.12);
  --score-accent-glow: rgba(16, 185, 129, 0.3);
  --score-shadow:      0 2px 20px rgba(0, 0, 0, 0.07);
  --score-shadow-md:   0 4px 32px rgba(0, 0, 0, 0.1);
  --rec-critical-bg:   #fff5f5;
  --rec-critical-border: #fecaca;
  --rec-critical-color: #dc2626;
  --rec-high-bg:       #fffbeb;
  --rec-high-border:   #fde68a;
  --rec-high-color:    #d97706;
  --rec-medium-bg:     #f0fdf4;
  --rec-medium-border: #bbf7d0;
  --rec-medium-color:  #16a34a;
}

/* ============================================================
   TRANSITION OVERLAY — Effet flash dark → light
   ============================================================ */

.score-transition-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.35s ease;
}

/* ============================================================
   THÈME SCORE — Appliqué sur body quand page-score est active
   ============================================================ */

body.page-score,
body.score-theme-active {
  background: var(--score-bg);
  color: var(--score-text);
}

body.page-score .scanlines,
body.score-theme-active .scanlines {
  display: none;
}

/* Nav adaptée */
body.page-score .nav-v2,
body.score-theme-active .nav-v2 {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--score-border);
}

body.page-score .nav-logo-v2,
body.score-theme-active .nav-logo-v2 {
  color: var(--score-accent);
}

body.page-score .nav-logo-v2 .cursor-blink,
body.score-theme-active .nav-logo-v2 .cursor-blink {
  background: var(--score-accent);
}

body.page-score .nav-links-v2 a,
body.score-theme-active .nav-links-v2 a {
  color: var(--score-text-sub);
}

body.page-score .nav-links-v2 a:hover,
body.score-theme-active .nav-links-v2 a:hover {
  color: var(--score-accent);
}

body.page-score .nav-cta-v2,
body.score-theme-active .nav-cta-v2 {
  color: var(--score-accent);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */

.score-main {
  padding: var(--space-xl) var(--space-md);
  min-height: 100vh;
}

.score-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* ============================================================
   EN-TÊTE ACTE
   ============================================================ */

.score-acte-header {
  text-align: center;
  padding-top: var(--space-lg);
}

.score-acte-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--score-accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.score-acte-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--score-text-sub);
  letter-spacing: 0.04em;
}

/* ============================================================
   ÉTAT : CHARGEMENT
   ============================================================ */

.score-loading-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.score-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.score-loading-label {
  font-size: 0.9rem;
  color: var(--score-text-sub);
}

.score-loading-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--score-text-muted);
}

/* Réutilise .spinner-dots du CSS global — override couleur */
body.page-score .spinner-dot,
body.score-theme-active .spinner-dot {
  background: var(--score-accent);
}

/* ============================================================
   ÉTAT : ERREUR
   ============================================================ */

.score-error-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.score-error-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--rec-critical-color);
}

.score-error-inner p {
  color: var(--score-text-sub);
  font-size: 0.9rem;
}

.btn-score-retry {
  background: var(--score-accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.btn-score-retry:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-score-retry:active {
  transform: translateY(0);
}

/* ============================================================
   SECTION : SCORE GLOBAL — Cercle animé
   ============================================================ */

.score-result-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
}

/* Cercle SVG */
.score-circle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.08));
}

.score-circle-svg {
  display: block;
}

.score-circle-bg {
  stroke: var(--score-border);
}

.score-circle-progress {
  stroke: var(--score-accent);
  stroke-dasharray: 534.07;
  stroke-dashoffset: 534.07;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              stroke 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .score-circle-progress {
    transition: none;
  }
}

.score-circle-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.score-number {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--score-text);
  letter-spacing: -0.03em;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--score-text-muted);
}

.score-grade {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.score-label {
  font-size: 0.75rem;
  color: var(--score-text-sub);
  font-weight: 500;
}

/* Percentile */
.score-percentile {
  font-size: 0.9rem;
  color: var(--score-text-sub);
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
}

/* ============================================================
   SECTION : CATÉGORIES
   ============================================================ */

.score-categories-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.score-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--score-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.score-section-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--score-accent);
  background: var(--score-accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.score-categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.score-category-item {
  background: var(--score-bg-card);
  border: 1px solid var(--score-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--score-shadow);
  transition: box-shadow var(--t-base);
}

.score-category-item:hover {
  box-shadow: var(--score-shadow-md);
}

.score-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-md);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: background var(--t-fast);
}

.score-category-header:hover {
  background: var(--score-bg-raised);
}

.cat-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-icon.cat--good   { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.cat-icon.cat--medium { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.cat-icon.cat--bad    { background: rgba(239, 68, 68, 0.12);  color: #dc2626; }

.cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--score-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.cat-bar-wrap {
  width: 100px;
  display: none;
}

.cat-bar-track {
  height: 6px;
  background: var(--score-border);
  border-radius: 3px;
  overflow: hidden;
}

.score-category-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-category-bar-fill.cat--good   { background: #10b981; }
.score-category-bar-fill.cat--medium { background: #f59e0b; }
.score-category-bar-fill.cat--bad    { background: #ef4444; }

.cat-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--score-text-sub);
  white-space: nowrap;
}

.cat-chevron {
  color: var(--score-text-muted);
  transition: transform var(--t-fast);
  display: flex;
}

.cat-chevron--open {
  transform: rotate(180deg);
}

/* Détail accordéon */
.cat-detail {
  border-top: 1px solid var(--score-border);
  background: var(--score-bg-raised);
}

.cat-detail[hidden] {
  display: none;
}

.cat-detail-inner {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cat-label-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--score-text-sub);
  font-family: var(--font-mono);
}

.cat-detail-text {
  font-size: 0.85rem;
  color: var(--score-text-sub);
  line-height: 1.6;
}

.cat-factors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-factor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  gap: var(--space-md);
}

.cat-factor.factor--negative {
  background: rgba(239, 68, 68, 0.06);
  color: var(--score-text-sub);
}

.cat-factor.factor--positive {
  background: rgba(16, 185, 129, 0.07);
  color: var(--score-text-sub);
}

.factor-name {
  flex: 1;
}

.factor-impact {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.factor--negative .factor-impact { color: #dc2626; }
.factor--positive .factor-impact { color: #16a34a; }

/* ============================================================
   SECTION : RECOMMANDATIONS
   ============================================================ */

.score-recommendations-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.score-recs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.rec-card {
  background: var(--score-bg-card);
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  padding: var(--space-lg);
  box-shadow: var(--score-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
}

.rec-card.rec--critical {
  border-left-color: var(--rec-critical-color);
  background: var(--rec-critical-bg);
  border: 1px solid var(--rec-critical-border);
  border-left: 4px solid var(--rec-critical-color);
}

.rec-card.rec--high {
  border-left-color: var(--rec-high-color);
  background: var(--rec-high-bg);
  border: 1px solid var(--rec-high-border);
  border-left: 4px solid var(--rec-high-color);
}

.rec-card.rec--medium {
  border-left-color: var(--rec-medium-color);
  background: var(--rec-medium-bg);
  border: 1px solid var(--rec-medium-border);
  border-left: 4px solid var(--rec-medium-color);
}

.rec-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.rec-priority-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}

.rec-priority-badge.rec--critical {
  background: var(--rec-critical-color);
  color: #fff;
}

.rec-priority-badge.rec--high {
  background: var(--rec-high-color);
  color: #fff;
}

.rec-priority-badge.rec--medium {
  background: var(--rec-medium-color);
  color: #fff;
}

.rec-impact {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--score-accent);
  background: var(--score-accent-dim);
  padding: 3px 10px;
  border-radius: 20px;
}

.rec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--score-text);
  line-height: 1.4;
}

.rec-description {
  font-size: 0.85rem;
  color: var(--score-text-sub);
  line-height: 1.65;
}

.rec-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.rec-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--score-text-muted);
}

.rec-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.rec-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--score-accent);
  background: var(--score-accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.rec-tool-link:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 8px var(--score-accent-glow);
  text-decoration: none;
  transform: translateY(-1px);
}

.rec-tool-link:active {
  transform: translateY(0);
}

.affiliate-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 3px;
}

.rec-empty {
  color: var(--score-text-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: var(--space-lg);
}

/* ============================================================
   SECTION : FUN STATS
   ============================================================ */

.score-funstats-section {
  width: 100%;
}

.score-funstats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.score-funstat-card {
  background: var(--score-bg-card);
  border: 1px solid var(--score-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--score-shadow);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.score-funstat-card:hover {
  box-shadow: var(--score-shadow-md);
  transform: translateY(-2px);
}

.funstat-icon {
  color: var(--score-accent);
  display: flex;
}

.funstat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.funstat-value {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--score-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.funstat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--score-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.funstat-detail {
  font-size: 0.78rem;
  color: var(--score-text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   SECTION : CTA FINAL
   ============================================================ */

.score-cta-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

/* CTA App */
.cta-app {
  background: linear-gradient(135deg, #1a2e1a 0%, #0f2010 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 32px rgba(16, 185, 129, 0.08);
}

.cta-app-icon {
  color: var(--score-accent);
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 2px;
}

.cta-app-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-app-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0fdf4;
  line-height: 1.4;
}

.cta-app-headline strong {
  color: var(--score-accent);
  font-size: 1.3em;
}

.cta-app-body {
  font-size: 0.88rem;
  color: rgba(240, 253, 244, 0.7);
  line-height: 1.65;
}

.btn-cta-app {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--score-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  align-self: flex-start;
}

.btn-cta-app:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--score-accent-glow);
}

.btn-cta-app:active {
  transform: translateY(0);
}

/* CTA Partage */
.cta-share {
  background: var(--score-bg-card);
  border: 1px solid var(--score-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--score-shadow);
}

.cta-share-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-share-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--score-text);
}

.cta-share-body {
  font-size: 0.88rem;
  color: var(--score-text-sub);
  line-height: 1.6;
}

.btn-cta-share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--score-bg-raised);
  color: var(--score-text);
  border: 1px solid var(--score-border);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  align-self: flex-start;
}

.btn-cta-share:hover {
  background: var(--score-border);
  transform: translateY(-1px);
  box-shadow: var(--score-shadow);
}

.btn-cta-share:active {
  transform: translateY(0);
}

.cta-share-note {
  font-size: 0.8rem;
  color: var(--score-accent);
  font-weight: 600;
  min-height: 1.2em;
}

/* Badge affilié inline */
.affiliate-badge-inline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 2px;
}

/* Note légale */
.score-legal-note {
  font-size: 0.74rem;
  color: var(--score-text-muted);
  line-height: 1.65;
  text-align: center;
}

.score-legal-note a {
  color: var(--score-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.score-legal-note a:hover {
  color: var(--score-text-sub);
}

/* Badge "bientôt" — réutilise la classe du global mais override couleur */
.score-cta-section .btn-soon-badge {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ============================================================
   FOOTER — override Acte 6
   ============================================================ */

body.page-score .footer-v2,
body.score-theme-active .footer-v2 {
  background: var(--score-bg-raised);
  border-top: 1px solid var(--score-border);
}

body.page-score .footer-v2 *,
body.score-theme-active .footer-v2 * {
  color: var(--score-text-sub);
}

body.page-score .footer-logo-v2,
body.score-theme-active .footer-logo-v2 {
  color: var(--score-accent);
}

/* ============================================================
   RESPONSIVE — Score
   ============================================================ */

@media (min-width: 540px) {
  .cat-bar-wrap {
    display: block;
  }

  .score-funstats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .score-main {
    padding: var(--space-xl) var(--space-xl);
  }

  .cta-app {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .score-number {
    font-size: 4.5rem;
  }
}

@media (max-width: 539px) {
  .score-funstats-grid {
    grid-template-columns: 1fr;
  }

  .cta-app {
    flex-direction: column;
  }

  .score-number {
    font-size: 3rem;
  }

  .score-category-header {
    padding: var(--space-md);
  }

  .cat-bar-wrap {
    display: none;
  }

  .score-section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PRINT — Score
   ============================================================ */

@media print {
  .cta-app,
  .cta-share,
  .score-acte-header {
    display: none;
  }
}

/* ============================================================
   ACTE 4 — PROFILAGE : La Reconnaissance
   ============================================================ */

.profiling-main {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

.profiling-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Introduction */
.profiling-intro {
  margin-bottom: var(--space-xl);
}

.profiling-intro-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 2px solid var(--border-green);
  padding-left: var(--space-md);
}

.profiling-intro-text strong {
  color: var(--green);
  font-weight: 500;
}

/* Compteur */
.profiling-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.04em;
}

.profiling-counter #counter-answered {
  font-size: 1.1rem;
  color: var(--green);
  font-weight: 700;
  transition: color var(--t-fast);
}

.counter-sep {
  color: var(--border);
  font-size: 1rem;
}

.counter-total {
  font-size: 1rem;
  color: var(--text-secondary);
}

.counter-label {
  margin-left: 4px;
  font-size: 0.78rem;
}

/* Formulaire */
.profiling-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Bloc question */
.profiling-question {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pq-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.pq-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--border);
  line-height: 1.5;
}

/* Grille de cartes */
.profiling-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Carte cliquable */
.profiling-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color var(--t-fast),
    color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
  text-align: left;
  white-space: nowrap;
}

.profiling-card:hover {
  border-color: var(--border-green);
  color: var(--text-primary);
  background: var(--bg-raised);
  box-shadow: 0 0 8px var(--green-dim);
}

.profiling-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Carte sélectionnée */
.profiling-card--selected {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-faint);
  box-shadow: 0 0 12px var(--green-dim);
}

.profiling-card--selected:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-faint);
  box-shadow: 0 0 16px var(--green-glow);
}

/* Icône SVG dans les cartes */
.pc-icon {
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke var(--t-fast);
}

/* CTA principal */
.profiling-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.btn-profiling-continue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--green-dim);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    background var(--t-base),
    box-shadow var(--t-base),
    opacity var(--t-fast),
    border-color var(--t-fast);
  opacity: 0.4;
}

.btn-profiling-continue:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.btn-profiling-continue--active {
  opacity: 1;
  pointer-events: auto;
}

.btn-profiling-continue--active:hover {
  background: rgba(0, 255, 65, 0.22);
  box-shadow: var(--shadow-green);
  border-color: var(--green);
}

.btn-profiling-continue:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Lien PASSER */
.btn-profiling-skip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast);
}

.btn-profiling-skip:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.btn-profiling-skip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ============================================================
   ACTE 4 — Responsive mobile
   ============================================================ */

@media (max-width: 600px) {
  .profiling-main {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .profiling-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .profiling-card {
    white-space: normal;
    justify-content: flex-start;
  }

  .pq-title {
    font-size: 0.85rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .profiling-cards {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: var(--space-sm);
    justify-content: start;
  }
}

/* prefers-reduced-motion — désactive transitions */
@media (prefers-reduced-motion: reduce) {
  .profiling-card,
  .btn-profiling-continue,
  .btn-profiling-skip {
    transition: none;
  }
}
}

/* ============================================================
   LEAKED CREDENTIALS — Style choc (LeakCheck)
   ============================================================ */
.dossier-leaked-creds {
  background: rgba(220, 38, 38, 0.08);
  border: 2px solid var(--red, #ef4444);
  border-radius: var(--radius-md, 8px);
  padding: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dossier-leaked-creds.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
.leaked-header {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  color: #ef4444;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.leaked-icon { font-size: 1.2rem; }
.leaked-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary, #aaa);
  margin-bottom: 16px;
}
.leaked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.leaked-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  gap: 12px;
  flex-wrap: wrap;
}
.leaked-password {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.leaked-source {
  color: var(--text-muted, #888);
  font-size: 0.75rem;
  text-align: right;
}
.leaked-extra {
  font-size: 0.8rem;
  color: var(--text-secondary, #aaa);
  margin-bottom: 8px;
}
.leaked-warning {
  font-size: 0.75rem;
  color: #ef4444;
  opacity: 0.8;
  font-style: italic;
  margin-top: 12px;
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .leaked-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .leaked-source { text-align: left; }
}

.leaked-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.leaked-service-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: var(--text-muted, #888);
  font-family: var(--font-mono, monospace);
}

/* ============================================================
   EFFET ORAGE — Nuages sombres en derive lente
   Ambiance menacante subliminale, invisible au premier regard.

   Architecture z-index :
     z-index: 0  — .matrix-bg (fond matrix animé)
     z-index: 0  — body::after (overlay orage — apres matrix dans le DOM)
     z-index: 1  — conteneurs de page (.hero-v2, .scan-main-v2, etc.)
     z-index: 100+ — nav, modals, scanlines

   L'overlay est position: fixed, pointer-events: none.
   Il ne bloque aucun clic et n'affecte pas le layout.
   Le texte et les boutons sont dans des conteneurs z-index: 1,
   toujours visibles par-dessus l'overlay.

   Pages concernees : Actes 1-5 (theme sombre).
   Page score (Acte 6, theme clair) : l'overlay est transparent
   sur fond clair — effet nul, aucun impact visuel.
   ============================================================ */

/* Trois gradients radiaux animes en decalage de phase
   pour simuler des masses nuageuses independantes en mouvement.
   Chaque couche a une opacite, taille et vitesse distinctes. */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* Trois masses nuageuses — couleurs neutres gris-bleu froid,
     quasi-identiques au fond #0a0a0a mais tres legerement plus claires */
  background:
    radial-gradient(ellipse 70% 50% at 25% 45%, rgba(110, 115, 140, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 75% 20%, rgba(90, 95, 120, 0.04)  0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 55% 75%, rgba(100, 105, 130, 0.05) 0%, transparent 52%);

  /* background-size > 100% permet le deplacement via background-position */
  background-size: 220% 220%;

  animation: storm-drift 50s ease-in-out infinite alternate;
}

/* Derive lente diagonale — les trois couches bougent ensemble
   mais leur forme elliptique les rend perceptibles separement */
@keyframes storm-drift {
  0%   { background-position: 0%   10%; }
  30%  { background-position: 40%  30%; }
  60%  { background-position: 70%  60%; }
  100% { background-position: 100% 90%; }
}

/* Deuxieme couche : un voile supplementaire tres fin qui pulse
   tres lentement, cree une impression de "respiration" orageuse */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(80, 85, 110, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 70%, rgba(95, 100, 125, 0.035) 0%, transparent 50%);

  background-size: 200% 200%;
  animation: storm-breathe 70s ease-in-out infinite alternate;
}

@keyframes storm-breathe {
  0%   { background-position: 100% 0%;   opacity: 0.6; }
  50%  { background-position: 40%  60%;  opacity: 1;   }
  100% { background-position: 0%   100%; opacity: 0.7; }
}

/* Page score (Acte 6) — theme clair : neutraliser l'overlay orage.
   Le fond clair rendrait les nuages sombres visibles et incoherents
   avec le design empowerment de la page finale. */
body.page-score::after,
body.score-theme-active::after,
body.page-score::before,
body.score-theme-active::before {
  display: none;
}

/* Accessibilite : desactiver toutes les animations de l'orage
   si l'utilisateur a configure prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body::after,
  body::before {
    animation: none;
    /* Conserver la teinte statique tres legere — pas de flash blanc */
    background-position: 50% 50%;
  }
}

/* Mobile : opacite reduite de 30% pour economiser les ressources
   GPU sur les appareils moins puissants */
@media (max-width: 767px) {
  body::after {
    background:
      radial-gradient(ellipse 80% 60% at 30% 45%, rgba(110, 115, 140, 0.035) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 70% 25%, rgba(90, 95, 120, 0.025)  0%, transparent 55%);
    background-size: 200% 200%;
  }
  body::before {
    background:
      radial-gradient(ellipse 90% 70% at 55% 45%, rgba(80, 85, 110, 0.02) 0%, transparent 65%);
    background-size: 180% 180%;
  }
}

/* ============================================================
   BOUTON AUDIO — Acte 5 phone_scam
   Apparait sur la carte appel telephonique quand l'audio MP3
   est pret cote backend (Voxtral TTS).
   ============================================================ */

.btn-play-audio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 12px 0 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ef4444;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
}

.btn-play-audio:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
}

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

.btn-play-audio .play-icon {
  font-size: 0.7rem;
  line-height: 1;
}

/* Animation de pulsation pendant la lecture */
.btn-play-audio.playing {
  animation: pulse-red 1.1s ease-in-out infinite;
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.2);
}

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

/* Respecter prefers-reduced-motion (accessibilite WCAG 2.2 AA) */
@media (prefers-reduced-motion: reduce) {
  .btn-play-audio.playing {
    animation: none;
    opacity: 0.85;
  }
}
