/* ============================================================
   PhishRadar — Feuille de style principale
   Style sobre, dark, inspiré de lelabtechnique.fr
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@700;800&family=DM+Mono:ital,wght@0,400;0,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary:    #09090b;
  --bg-secondary:  #111113;
  --bg-card:       #18181b;
  --bg-card-hover: #1f1f23;
  --border:        #2a2a2f;
  --border-light:  #3f3f46;

  --text-primary:  #f4f4f5;
  --text-secondary:#a1a1aa;
  --text-muted:    #52525b;

  --accent:        #f59e0b;
  --accent-hover:  #d97706;
  --accent-glow:   rgba(245,158,11,.25);
  --cyan:          #06b6d4;

  --green:         #22c55e;
  --orange:        #f97316;
  --red-light:     #f97316;
  --red:           #ef4444;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Big Shoulders Display', 'Bebas Neue', 'Syne', 'Inter', sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', monospace;

  --radius:   10px;
  --shadow:   0 4px 24px rgba(0,0,0,.5);
  --transition: .2s ease;

  --gradient-brand: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-primary); }
body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code, pre { font-family: var(--font-mono); }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  background: rgba(9,9,11,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar .container {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: .06em;
}
.navbar-logo span { color: var(--accent); }
.navbar-links { display: flex; gap: 24px; }
.navbar-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--text-primary); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.12) 0%, transparent 70%);
  position: relative;
  overflow: visible;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text-secondary);
  font-size: 18px; max-width: 600px; margin: 0 auto 8px;
}
.badge-no-data {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2);
  color: var(--text-secondary); border-radius: 999px;
  padding: 4px 14px; font-size: 13px; margin-top: 12px;
}

/* ── Stats Banner ──────────────────────────────────────────── */
.stats-banner {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: border-color var(--transition);
  min-width: 0;
  overflow: hidden;
}
.stat-card:hover { border-color: var(--border-light); }
.stat-value {
  font-size: clamp(20px, 3.5vw, 32px); font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: 4px;
}

/* ── Upload Section ────────────────────────────────────────── */
.upload-section { padding: 48px 0; }
.section-title {
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--text-primary);
}
.section-subtitle {
  font-size: 15px; color: var(--text-secondary); margin-bottom: 28px;
}

.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(245,158,11,.05);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-icon {
  font-size: 48px; margin-bottom: 12px; display: block;
  filter: grayscale(1) opacity(.5);
  transition: filter var(--transition);
}
.drop-zone:hover .drop-icon, .drop-zone.drag-over .drop-icon {
  filter: none;
}
.drop-title {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.drop-hint { font-size: 13px; color: var(--text-muted); }
.drop-formats {
  display: flex; gap: 8px; justify-content: center; margin-top: 14px;
}
.drop-formats span {
  background: var(--bg-secondary); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 999px; font-size: 11px;
  color: var(--text-muted); font-family: var(--font-mono);
}
.file-selected {
  display: none;
  align-items: center; gap: 10px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px; padding: 12px 16px; margin-top: 12px;
  color: var(--accent);
}
.file-selected.visible { display: flex; }
.file-selected .file-name { font-weight: 600; }
.file-selected .file-size { font-size: 13px; color: var(--text-secondary); }

.form-row {
  display: flex; gap: 16px; margin-top: 20px;
  align-items: flex-end; flex-wrap: wrap;
}
.form-group { flex: 1; min-width: 220px; }
.form-group label {
  display: block; font-size: 13px; color: var(--text-secondary);
  margin-bottom: 6px; font-weight: 500;
}
.form-group label .optional {
  color: var(--text-muted); font-weight: 400; margin-left: 4px;
}
.form-control {
  width: 100%; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text-primary); font-size: 14px;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(245,158,11,.1); }

/* ── Loading ───────────────────────────────────────────────── */
.loading-section {
  display: none; text-align: center; padding: 48px 20px;
}
.loading-section.visible { display: block; }
.spinner {
  width: 56px; height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { list-style: none; display: inline-block; text-align: left; margin-top: 16px; }
.loading-steps li {
  padding: 6px 0;
  color: var(--text-muted); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.loading-steps li.active { color: var(--text-primary); }
.loading-steps li.done { color: var(--green); }
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
}
.loading-steps li.active .step-dot { background: var(--accent); animation: pulse 1s infinite; }
.loading-steps li.done .step-dot { background: var(--green); animation: none; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }

/* ── Results Section ───────────────────────────────────────── */
.results-section { display: none; padding: 0 0 48px; }
.results-section.visible { display: block; }

/* Score card */
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex; gap: 32px; align-items: center;
  flex-wrap: wrap; box-shadow: var(--shadow);
}
.score-gauge {
  position: relative; width: 140px; height: 140px; flex-shrink: 0;
}
.score-gauge svg { transform: rotate(-90deg); }
.score-gauge-track { stroke: var(--border-light); fill: none; }
.score-gauge-fill { fill: none; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.4,0,.2,1); }
.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number {
  font-size: 36px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-max { font-size: 12px; color: var(--text-muted); }

.score-info { flex: 1; min-width: 200px; }
.risk-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700;
  padding: 6px 16px; border-radius: 8px; margin-bottom: 16px;
  font-family: 'Syne', var(--font-sans);
  letter-spacing: .04em;
}
.risk-faible   { background: rgba(34,197,94,.15);  color: var(--green);      border: 1px solid rgba(34,197,94,.3); }
.risk-modéré   { background: rgba(245,158,11,.15); color: var(--orange);     border: 1px solid rgba(245,158,11,.3); }
.risk-élevé    { background: rgba(249,115,22,.15); color: var(--red-light);  border: 1px solid rgba(249,115,22,.3); }
.risk-critique { background: rgba(239,68,68,.15);  color: var(--red);        border: 1px solid rgba(239,68,68,.3); }

.score-summary { color: var(--text-secondary); font-size: 15px; }
.score-summary strong { color: var(--text-primary); }

.score-breakdown {
  display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.breakdown-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.breakdown-item span { color: var(--text-muted); font-size: 11px; text-transform: uppercase; }
.breakdown-item strong { font-size: 18px; font-weight: 700; }

/* Tabs */
.result-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.tab-list {
  display: flex;
  margin: 20px 20px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tab-btn {
  flex: 1;
  padding: 11px 8px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: background .2s, color .2s;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--text-primary); background: var(--bg-secondary); }
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-btn.active .tab-badge { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }
.tab-badge {
  display: inline-block; background: var(--bg-secondary);
  border-radius: 999px; padding: 1px 7px; font-size: 11px;
  margin-left: 6px; color: var(--text-muted);
}
.tab-badge.warn { background: rgba(245,158,11,.2); color: var(--orange); }
.tab-badge.danger { background: rgba(239,68,68,.2); color: var(--red); }

.tab-content { display: none; padding: 24px; }
.tab-content.active { display: block; }

/* Header analysis table */
.analysis-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.analysis-table th {
  text-align: left; padding: 10px 12px;
  color: var(--text-muted); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.analysis-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30,48,80,.5);
  color: var(--text-secondary);
}
.analysis-table td:first-child { color: var(--text-primary); font-weight: 500; width: 180px; }
.analysis-table tr:last-child td { border-bottom: none; }
.mono { font-family: var(--font-mono); font-size: 13px; }

.auth-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 16px 0;
}
.auth-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; text-align: center;
}
.auth-item .auth-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.auth-status {
  font-size: 15px; font-weight: 700; padding: 3px 10px;
  border-radius: 6px; display: inline-block;
}
.auth-pass   { background: rgba(34,197,94,.15);  color: var(--green); }
.auth-fail   { background: rgba(239,68,68,.15);  color: var(--red); }
.auth-softfail { background: rgba(249,115,22,.15); color: var(--red-light); }
.auth-none   { background: rgba(100,116,139,.15); color: var(--text-muted); }
.auth-neutral { background: rgba(100,116,139,.15); color: var(--text-muted); }

.indicators-list { list-style: none; margin-top: 16px; }
.indicators-list li {
  padding: 8px 12px; border-radius: 6px; font-size: 14px;
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px;
}
.indicators-list li.warning  { background: rgba(245,158,11,.08); color: var(--orange); border-left: 3px solid var(--orange); }
.indicators-list li.danger   { background: rgba(239,68,68,.08);  color: var(--red);    border-left: 3px solid var(--red); }
.indicators-list li.ok       { background: rgba(34,197,94,.08);  color: var(--green);  border-left: 3px solid var(--green); }

/* Findings */
.findings-list { list-style: none; }
.finding-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.finding-icon { font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.finding-category { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.finding-desc { font-size: 14px; color: var(--text-primary); }
.severity-high   { border-left: 3px solid var(--red); }
.severity-medium { border-left: 3px solid var(--orange); }
.severity-low    { border-left: 3px solid var(--text-muted); }

/* Links table */
.links-list { list-style: none; }
.link-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 8px;
  font-size: 13px;
}
.link-url {
  font-family: var(--font-mono); color: var(--text-secondary);
  word-break: break-all; margin-bottom: 6px;
}
.link-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.tag-safe     { background: rgba(34,197,94,.1);  color: var(--green);      border: 1px solid rgba(34,197,94,.3); }
.tag-warn     { background: rgba(245,158,11,.1); color: var(--orange);     border: 1px solid rgba(245,158,11,.3); }
.tag-danger   { background: rgba(239,68,68,.1);  color: var(--red);        border: 1px solid rgba(239,68,68,.3); }
.tag-neutral  { background: var(--bg-card);      color: var(--text-muted); border: 1px solid var(--border); }
.vt-link      { color: var(--cyan); font-size: 11px; }

/* Conseils */
.conseils-card {
  background: rgba(17, 27, 46, .6);
  border: 1px solid rgba(245,158,11,.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.conseils-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.conseil-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.5;
}
.conseil-item.conseil-info     { background: rgba(245,158,11,.06);  border: 1px solid rgba(245,158,11,.12); color: var(--text-secondary); }
.conseil-item.conseil-warning  { background: rgba(245,158,11,.06);  border: 1px solid rgba(245,158,11,.15); color: var(--orange); }
.conseil-item.conseil-danger   { background: rgba(239,68,68,.06);   border: 1px solid rgba(239,68,68,.15);  color: #fca5a5; }
.conseil-item.conseil-ok       { background: rgba(34,197,94,.06);   border: 1px solid rgba(34,197,94,.15);  color: var(--green); }
.conseil-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* IOCs */
.iocs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.iocs-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.iocs-empty { color: var(--green); display: flex; gap: 8px; align-items: center; font-size: 15px; }
.ioc-group { margin-bottom: 16px; }
.ioc-group-title {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 8px;
}
.ioc-entry {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; margin-bottom: 4px; font-size: 13px;
}
.ioc-entry code { font-family: var(--font-mono); color: var(--red-light); flex: 1; word-break: break-all; }
.copy-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 2px 6px; border-radius: 4px; font-size: 12px;
  transition: color var(--transition);
}
.copy-btn:hover { color: var(--accent); }
.copy-all-btn {
  margin-top: 12px;
}

/* Download button */
.report-actions {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}

/* ── Tutorial ──────────────────────────────────────────────── */
.tutorial-section { padding: 48px 0; background: var(--bg-secondary); }
.accordion { margin-top: 24px; }
.accordion-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
}
.accordion-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 15px; font-weight: 500;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--bg-card-hover); }
.accordion-icon {
  font-size: 20px; transition: transform var(--transition); flex-shrink: 0;
}
.accordion-btn.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.accordion-body.open {
  max-height: 600px; padding: 0 20px 20px;
}
.tutorial-steps { list-style: none; counter-reset: steps; }
.tutorial-steps li {
  counter-increment: steps;
  padding: 8px 0 8px 36px;
  position: relative; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(30,48,80,.5);
}
.tutorial-steps li:last-child { border-bottom: none; }
.tutorial-steps li::before {
  content: counter(steps);
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
kbd {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 1px 6px; font-size: 12px;
  font-family: var(--font-mono); color: var(--text-secondary);
}

/* ── Privacy notice ────────────────────────────────────────── */
.privacy-notice {
  background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.privacy-icon { font-size: 22px; flex-shrink: 0; }
.privacy-text { font-size: 14px; color: var(--text-secondary); }
.privacy-text strong { color: var(--text-primary); display: block; margin-bottom: 4px; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-primary);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-green  { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red    { color: var(--red); }
.text-cyan   { color: var(--cyan); }
.text-muted  { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 20px;
  box-shadow: var(--shadow); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(80px); opacity: 0;
  transition: all .3s ease; z-index: 9999; max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--accent); }

/* API warnings */
.api-warnings {
  background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px;
}
.api-warnings li { color: var(--orange); padding: 2px 0; list-style: none; padding-left: 16px; position: relative; }
.api-warnings li::before { content: "⚠"; position: absolute; left: 0; }

/* ── Visual Enhancements ──────────────────────────────────── */

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f59e0b 55%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero h1.gradient-text {
  filter: none;
}

/* ── Typographie Bebas Neue (hero/logo) + DM Mono (données) ── */
h1, .hero h1, .hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: .03em;
}
h2, h3, h4, .section-title {
  font-family: 'Syne', var(--font-sans);
}
.score-number, .stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -.02em;
}
.mono, code, pre,
.key-display,
.hrp-score,
.hrp-header,
.drop-formats span,
.tab-badge,
.auth-status,
.ioc-entry code {
  font-family: var(--font-mono) !important;
}

/* Hero perspective grid */
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%; right: -20%;
  height: 200%;
  clip-path: inset(0);
  background:
    linear-gradient(rgba(245,158,11,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,.06) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(400px) rotateX(65deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 55%);
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 55%);
  animation: gridFloat 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gridFloat {
  0%, 100% { transform: perspective(400px) rotateX(65deg) translateY(0); }
  50% { transform: perspective(400px) rotateX(65deg) translateY(8px); }
}

/* Hero ambient glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* Radar animation */
.radar-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 575px; height: 575px;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
.radar-sweep {
  transform-origin: 200px 200px;
  animation: radarSweep 4s linear infinite;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-ping {
  animation: radarPing 4s ease-out infinite;
}
.radar-ping-2 {
  animation-delay: 2s;
}
@keyframes radarPing {
  0%, 70% { opacity: 0; r: 2; }
  75% { opacity: 1; r: 4; }
  85% { opacity: .8; r: 6; }
  100% { opacity: 0; r: 8; }
}

/* Cards — zinc neutre */
.upload-card,
.score-card,
.iocs-card {
  background: var(--bg-card);
  border-color: var(--border);
}
.stat-card {
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: rgba(245, 158, 11, .25);
  transform: translateY(-2px);
}

/* Drop zone scan effect */
.drop-zone { overflow: hidden; }
.drop-zone::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.07), rgba(245,158,11,.04), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.drop-zone:hover::after,
.drop-zone.drag-over::after {
  opacity: 1;
  animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine {
  from { left: -60%; }
  to { left: 120%; }
}

/* Gradient button */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 20px rgba(245,158,11,.2);
  color: #09090b;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 30px rgba(245,158,11,.4), 0 0 60px rgba(245,158,11,.1);
  transform: translateY(-1px);
}

/* Icon boxes (replace emojis) */
.icon-box {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(6,182,212,.06));
  border: 1px solid rgba(245,158,11,.12);
  border-radius: 12px;
  margin-bottom: .6rem;
  flex-shrink: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.upload-card:hover .icon-box {
  border-color: rgba(245,158,11,.25);
  box-shadow: 0 0 16px rgba(245,158,11,.1);
}
.icon-box svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-inline {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;
}
.icon-inline svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature cards hover effect */
.feature-grid .upload-card {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-grid .upload-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,158,11,.15);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 20px rgba(245,158,11,.08);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ── 1. Badge de risque animé ──────────────────────────────── */
.risk-badge.animated {
  animation: badgeEntrance .55s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes badgeEntrance {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* Gauge glow selon le niveau */
.score-gauge.glow-low      svg { filter: drop-shadow(0 0 8px rgba(34,197,94,.5)); }
.score-gauge.glow-medium   svg { filter: drop-shadow(0 0 8px rgba(245,158,11,.5)); }
.score-gauge.glow-high     svg { filter: drop-shadow(0 0 10px rgba(249,115,22,.6)); }
.score-gauge.glow-critical svg { filter: drop-shadow(0 0 14px rgba(239,68,68,.7)); animation: criticalPulse 1.8s ease-in-out infinite; }
@keyframes criticalPulse {
  0%,100% { filter: drop-shadow(0 0 10px rgba(239,68,68,.6)); }
  50%     { filter: drop-shadow(0 0 22px rgba(239,68,68,.9)); }
}

/* ── 2. Séparateurs de section (vagues SVG) ────────────────── */
.wave-divider {
  position: relative; line-height: 0; overflow: hidden;
  height: 40px; pointer-events: none;
}
.wave-divider svg { width: 100%; height: 100%; }

/* ── 3. Spotlight cursor hero ──────────────────────────────── */
.hero-spotlight {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  opacity: 0;
  transition: opacity .4s;
}
.hero:hover .hero-spotlight { opacity: 0; }

/* ── 4. Stat-cards avec couleurs par type ──────────────────── */
.stat-card:has(#stat-total):hover      { border-color: rgba(245,158,11,.4); }
.stat-card:has(#stat-phishing):hover   { border-color: rgba(239,68,68,.4); }
.stat-card:has(#stat-spoofing):hover   { border-color: rgba(245,158,11,.4); }
.stat-card:has(#stat-avg):hover        { border-color: rgba(6,182,212,.4); }
.stat-card:has(#stat-max):hover        { border-color: rgba(239,68,68,.4); }
.stat-card:has(#stat-total):hover .stat-value   { text-shadow: 0 0 24px rgba(245,158,11,.7); }
.stat-card:has(#stat-phishing):hover .stat-value,
.stat-card:has(#stat-max):hover .stat-value     { text-shadow: 0 0 24px rgba(239,68,68,.7); }
.stat-card:has(#stat-spoofing):hover .stat-value { text-shadow: 0 0 24px rgba(245,158,11,.7); }
.stat-card:has(#stat-avg):hover .stat-value      { text-shadow: 0 0 24px rgba(6,182,212,.7); }

/* ── 5. Pricing card featured halo animé ──────────────────── */
.plan-card.featured {
  animation: featuredGlow 3s ease-in-out infinite;
  position: relative;
}
@keyframes featuredGlow {
  0%,100% { box-shadow: 0 0 0 1px var(--accent), var(--shadow), 0 0 25px rgba(245,158,11,.08); }
  50%     { box-shadow: 0 0 0 1px var(--accent), var(--shadow), 0 0 45px rgba(245,158,11,.18); }
}
.plan-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}

/* ── 6. Section tutoriel — motif de points ─────────────────── */
.tutorial-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  background-image: radial-gradient(circle, rgba(245,158,11,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

/* ── 7. Transitions fade onglets résultats ─────────────────── */
.tab-content.active {
  animation: tabFadeIn .18s ease both;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ── Orbes d'ambiance ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -15%; left: -8%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(245,158,11,.05), transparent 65%);
  border-radius: 50%;
  pointer-events: none; z-index: -1;
  animation: orbFloat 14s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; right: -8%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(239,68,68,.03), transparent 65%);
  border-radius: 50%;
  pointer-events: none; z-index: -1;
  animation: orbFloat 18s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(2%, 3%) scale(1.04); }
  66%  { transform: translate(-2%, 1%) scale(.97); }
}

/* ── Navbar glow au scroll ─────────────────────────────────── */
.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(245,158,11,.12), 0 1px 0 rgba(245,158,11,.08);
  border-bottom-color: rgba(245,158,11,.12);
}

/* ── Hero CTA button ───────────────────────────────────────── */
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 12px 28px;
  background: var(--gradient-brand);
  color: white !important; border-radius: 50px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 30px rgba(245,158,11,.25);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(245,158,11,.4);
}
.hero-cta-arrow { display: inline-block; animation: arrowBounce 1.6s ease-in-out infinite; }
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* ── Typewriter ────────────────────────────────────────────── */
.typewriter-line {
  font-size: 13px; color: var(--text-muted); margin-top: 10px;
  min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.typewriter-text { color: var(--accent); opacity: .75; }
.typewriter-cursor {
  display: inline-block; width: 2px; height: 14px;
  background: var(--accent); vertical-align: middle;
  animation: cursorBlink .7s step-end infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Drop zone file-ready pulse ────────────────────────────── */
.drop-zone.file-ready {
  border-color: var(--accent);
  animation: dzPulse 2.5s ease-in-out infinite;
}
@keyframes dzPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.3); }
  50%       { box-shadow: 0 0 0 10px rgba(245,158,11,.0); }
}

/* ── Pipeline visuel ───────────────────────────────────────── */
.pipeline-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: white; font-size: 11px; font-weight: 700;
  flex-shrink: 0; margin-bottom: 8px;
}

/* ── Phone mockup SMS banner ───────────────────────────────── */
.phone-mockup {
  width: 110px; height: 185px; flex-shrink: 0;
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: 20px;
  background: rgba(0,0,0,.35);
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px;
  background: rgba(255,255,255,.08); border-radius: 2px;
}
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 4px;
  background: rgba(255,255,255,.06); border-radius: 2px;
}
.phone-screen {
  position: absolute;
  top: 26px; left: 6px; right: 6px; bottom: 22px;
  border-radius: 14px;
  background: #0a0e1a;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 8px;
}
.phone-verdict-icon { font-size: 20px; }
.phone-verdict-badge {
  display: block; padding: 3px 10px;
  border-radius: 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .04em;
  background: rgba(239,68,68,.2); color: #ef4444;
  border: 1px solid rgba(239,68,68,.35);
}
.phone-verdict-score {
  font-size: 18px; font-weight: 800; color: #ef4444; line-height: 1;
}
.phone-verdict-label {
  font-size: 9px; color: rgba(255,255,255,.4); text-align: center; line-height: 1.3;
}

/* ── Burger menu ───────────────────────────────────────────── */
.navbar-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text-secondary);
}
.navbar-burger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar burger */
  .navbar-burger { display: block; }
  .navbar-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7,13,26,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px; gap: 4px; z-index: 99;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 10px 0; font-size: 15px; }
  .navbar .container { position: relative; }

  /* Hero */
  .hero h1 { font-size: 24px !important; }
  .hero p { white-space: normal !important; font-size: 15px; }
  .radar-container { width: 350px !important; height: 350px !important; opacity: .18 !important; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 24px; }

  /* Upload */
  .upload-section { padding: 28px 0; }
  .upload-card { padding: 20px; border-radius: 12px; }
  .drop-zone { padding: 28px 14px; }
  .form-row { flex-direction: column; }
  .section-title { font-size: 18px; }

  /* Score */
  .score-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .score-gauge { align-self: center; width: 120px; height: 120px; }
  .score-gauge svg { width: 120px; height: 120px; }
  .score-number { font-size: 28px; }
  .score-breakdown { gap: 8px; }
  .breakdown-item { padding: 6px 10px; }
  .report-actions { flex-direction: column; }
  .report-actions .btn { width: 100%; justify-content: center; }

  /* Tabs */
  .tab-list { margin: 12px 12px 0; }
  .tab-btn { padding: 10px 6px; font-size: 12px; }

  /* Tutorial */
  .tutorial-section { padding: 28px 0; }

  /* Feature grid */
  .feature-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  footer .container > div:first-child { flex-direction: column; gap: 24px; }
  footer ul { grid-template-columns: 1fr !important; }

  /* IOCs */
  .iocs-card { padding: 16px; }
  .ioc-entry { flex-direction: column; gap: 4px; }

  /* Privacy notice */
  .privacy-notice { flex-direction: column; gap: 10px; padding: 16px; }

  /* Container */
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero h1 { font-size: 20px !important; }
  .radar-container { width: 250px !important; height: 250px !important; }
  .badge-no-data { font-size: 11px; padding: 3px 10px; }
  .tab-list { margin: 8px 8px 0; overflow-x: auto; }
  .tab-btn { flex: 0 0 auto; padding: 8px 10px; font-size: 11px; }
  .navbar .container { height: 56px; }
  .navbar-logo { font-size: 17px; }
}

/* ── Hero report preview ──────────────────────────────────────────────────── */
/* hero-report-preview est maintenant dans .hero-preview-col, pas besoin de margin auto */
.hero-report-preview {
  animation: fadeInUp .6s ease .3s both;
}

/* Layout 2 colonnes dans le hero */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 370px);
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-text-col {
  text-align: left;
}
.hero-text-col p {
  margin: 0 0 8px;
  max-width: none;
}
.hero-text-col .badge-no-data {
  justify-content: flex-start;
}
.hero-text-col .hero-cta {
  display: inline-flex;
}
.hero-preview-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-col { text-align: center; }
  .hero-text-col p { margin: 0 auto 8px; max-width: 560px; }
  .hero-text-col .badge-no-data { justify-content: center; }
  .hero-preview-col { display: none; }
  .demo-link-mobile { display: block !important; }
}
.hrp-card {
  background: var(--bg-card);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .82rem;
  text-align: left;
}
.hrp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .7rem;
  color: var(--text-secondary);
  font-size: .72rem;
  font-family: var(--font-mono);
}
.hrp-verdict-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
}
.hrp-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f59e0b;
  white-space: nowrap;
}
.hrp-score small { font-size: .6rem; color: var(--text-muted); }
.hrp-verdict {
  padding: .3rem .8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .78rem;
  margin-bottom: .7rem;
  display: inline-block;
}
.hrp-eleve { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.hrp-critique { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.hrp-faible { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.hrp-checks {
  display: flex;
  gap: .5rem;
  margin-bottom: .7rem;
  flex-wrap: wrap;
}
.hrp-pass, .hrp-fail, .hrp-warn {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}
.hrp-pass { background: rgba(34,197,94,.12); color: #22c55e; }
.hrp-fail { background: rgba(239,68,68,.12); color: #ef4444; }
.hrp-warn { background: rgba(245,158,11,.12); color: #f59e0b; }
.hrp-indicators { display: flex; flex-direction: column; gap: .3rem; }
.hrp-ind {
  color: var(--text-secondary);
  font-size: .76rem;
  padding: .22rem .5rem;
  background: rgba(255,255,255,.03);
  border-radius: 4px;
}

/* ── Analysis tabs (email / URL) ─────────────────────────────────────────── */
.analysis-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.atab {
  padding: 8px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.atab.active { background: var(--accent); color: #fff; }
.atab:hover:not(.active) { background: var(--bg-card); color: var(--text-secondary); }

/* ── Mobile sticky CTA ───────────────────────────────────────────────────── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: rgba(7,13,26,.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 900;
  gap: 8px;
  align-items: center;
}
.mobile-sticky-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  display: block;
}
.mobile-sticky-btn-outline {
  background: transparent;
  border: 1px solid var(--border-light, rgba(255,255,255,.15));
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .mobile-sticky-cta { display: flex; }
  .sms-feature-grid { grid-template-columns: 1fr !important; }
  .sms-feature-phone { display: none; }
  .formation-grid { grid-template-columns: 1fr !important; }
  .formation-grid > div:last-child { display: none; }
}

/* ── SMS feature section ─────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════
   ROUTING CHAIN — chemin de routing email (noeuds connectés)
   ═══════════════════════════════════════════════════════════ */
.routing-chain {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 20px 0 8px;
  margin: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.routing-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 90px;
  max-width: 120px;
}
.routing-node-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.routing-node-icon.node-origin {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(245,158,11,.3);
  background: rgba(245,158,11,.08);
}
.routing-node-icon.node-relay {
  border-color: var(--border-light);
}
.routing-node-icon.node-dest {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(34,197,94,.2);
  background: rgba(34,197,94,.06);
}
.routing-node-icon.node-warn {
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(239,68,68,.25);
  background: rgba(239,68,68,.07);
  animation: nodeWarn 2s ease-in-out infinite;
}
@keyframes nodeWarn {
  0%, 100% { box-shadow: 0 0 12px rgba(239,68,68,.25); }
  50%       { box-shadow: 0 0 24px rgba(239,68,68,.5); }
}
.routing-node-label {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  word-break: break-all;
  line-height: 1.3;
  max-width: 110px;
}
.routing-node-label strong {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  font-family: var(--font-sans);
}
.routing-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 28px;
}
.routing-arrow svg {
  width: 28px; height: 12px;
  stroke: var(--border-light);
  fill: none;
  stroke-width: 1.5;
}
.routing-arrow.arrow-warn svg { stroke: rgba(239,68,68,.4); }

/* ═══════════════════════════════════════════════════════════
   HEATMAP — calendrier GitHub-style pour le dashboard
   ═══════════════════════════════════════════════════════════ */
.heatmap-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.heatmap-grid {
  display: flex;
  gap: 3px;
  width: max-content;
}
.heatmap-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.heatmap-cell {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: default;
  transition: transform .1s;
}
.heatmap-cell:hover { transform: scale(1.4); z-index: 1; position: relative; }
.heatmap-cell[data-level="1"] { background: rgba(245,158,11,.2); border-color: rgba(245,158,11,.3); }
.heatmap-cell[data-level="2"] { background: rgba(245,158,11,.45); border-color: rgba(245,158,11,.5); }
.heatmap-cell[data-level="3"] { background: rgba(245,158,11,.7);  border-color: rgba(245,158,11,.75); }
.heatmap-cell[data-level="4"] { background: #f59e0b; border-color: #d97706; box-shadow: 0 0 4px rgba(245,158,11,.5); }
.heatmap-cell[data-phishing="true"][data-level="3"],
.heatmap-cell[data-phishing="true"][data-level="4"] {
  background: #ef4444;
  border-color: #dc2626;
  box-shadow: 0 0 4px rgba(239,68,68,.6);
}
.heatmap-months {
  display: flex;
  gap: 3px;
  width: max-content;
  margin-bottom: 4px;
}
.heatmap-month-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  width: 12px;
  text-align: center;
  overflow: visible;
  white-space: nowrap;
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.heatmap-legend-cells {
  display: flex;
  gap: 3px;
}
.heatmap-tooltip {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .15s;
}
.heatmap-tooltip.show { opacity: 1; }

/* ── Bilingual content helpers ───────────────────────────────────── */
html[lang=en] .g-fr { display: none !important; }
html[lang=en] .g-en { display: revert !important; }
html[lang=fr] .g-en { display: none !important; }

/* ── Cyber effects (cyber-effects.js) ───────────────────────────── */
.stat-card { position: relative; transform-style: preserve-3d; }

.cyber-glare {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
  z-index: 1;
}

/* Réseau de nœuds — z-index: -1 = sous tout le contenu */
#cyber-nodes {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  width: 100vw; height: 100vh;
}

@media (hover: none) {
  #cyber-nodes { display: none; }
}
