/* ═══════════════════════════════════════════
   SOS ARNAQUE — Design System "Bleu Bouclier"
   Confiance · Sécurité · Autorité
═══════════════════════════════════════════ */

:root {
  --sa-blue:       #1E3A5F;
  --sa-blue-dk:    #0F2640;
  --sa-blue-light: #2563EB;
  --sa-blue-bg:    #EFF6FF;
  --sa-alert:      #DC2626;
  --sa-alert-bg:   #FEF2F2;
  --sa-warning:    #D97706;
  --sa-warning-bg: #FFFBEB;
  --sa-safe:       #059669;
  --sa-safe-bg:    #ECFDF5;
  --sa-bg:         #F8FAFC;
  --sa-card:       #FFFFFF;
  --sa-text:       #0F172A;
  --sa-muted:      #64748B;
  --sa-border:     #E2E8F0;
  --sa-radius:     12px;
  --sa-radius-lg:  16px;
  --sa-shadow:     0 4px 24px rgba(15,38,64,0.08);
  --sa-shadow-lg:  0 12px 48px rgba(15,38,64,0.12);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:     'DM Sans', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--sa-bg);
  color: var(--sa-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  background: var(--sa-blue);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-logo {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: white; text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo .shield { font-size: 26px; }
.nav-badge {
  background: rgba(255,255,255,0.15); color: white;
  font-size: 11px; padding: 4px 12px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.3px;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 6px 14px;
  border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); color: white; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--sa-blue) 0%, #1a4a7a 100%);
  padding: 48px 24px 40px; text-align: center; color: white;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; margin-bottom: 12px; line-height: 1.2;
}
.hero h1 em { color: #60A5FA; font-style: normal; }
.hero-sub { font-size: 18px; opacity: 0.85; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.hero-stat {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 10px 24px;
  background: rgba(255,255,255,0.1); border-radius: 100px;
  font-size: 15px; font-weight: 600;
}
.hero-stat .num { color: #FCD34D; font-size: 20px; font-weight: 800; }

/* ── CARDS GRID ── */
.section { max-width: 900px; margin: 0 auto; padding: 36px 20px; }
.section-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 800;
  color: var(--sa-text); margin-bottom: 24px; text-align: center;
}
.action-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.action-card {
  background: var(--sa-card); border-radius: var(--sa-radius-lg);
  padding: 32px 24px; text-align: center;
  border: 2px solid var(--sa-border);
  cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; color: var(--sa-text);
  display: block;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sa-shadow-lg);
  border-color: var(--sa-blue-light);
}
.action-card.urgent {
  border-color: var(--sa-alert);
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF 50%);
}
.action-card.urgent:hover { box-shadow: 0 12px 48px rgba(220,38,38,0.15); }
.card-icon { font-size: 48px; display: block; margin-bottom: 14px; }
.card-title {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
}
.card-desc { font-size: 14px; color: var(--sa-muted); line-height: 1.6; }

/* ── SCANNER ── */
.scanner-box {
  background: var(--sa-card); border-radius: var(--sa-radius-lg);
  padding: 32px; box-shadow: var(--sa-shadow);
  max-width: 720px; margin: 0 auto;
}
.scanner-textarea {
  width: 100%; min-height: 160px; padding: 18px;
  border: 2px solid var(--sa-border); border-radius: var(--sa-radius);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  resize: vertical; transition: border-color 0.2s;
  color: var(--sa-text); background: #FAFBFC;
}
.scanner-textarea:focus {
  outline: none; border-color: var(--sa-blue-light);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.scanner-textarea::placeholder { color: #94A3B8; }
.btn-scan {
  display: block; width: 100%; margin-top: 16px;
  padding: 18px; border: none; border-radius: var(--sa-radius);
  background: var(--sa-blue-light); color: white;
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-scan:hover { background: #1D4ED8; }
.btn-scan:disabled { background: #94A3B8; cursor: not-allowed; }

/* ── RESULT ── */
.result-panel { margin-top: 28px; display: none; }
.result-panel.visible { display: block; animation: fadeIn 0.4s ease; }

.verdict-card {
  border-radius: var(--sa-radius-lg); padding: 28px;
  text-align: center; margin-bottom: 20px;
}
.verdict-card.scam { background: var(--sa-alert-bg); border: 2px solid var(--sa-alert); }
.verdict-card.suspicious { background: var(--sa-warning-bg); border: 2px solid var(--sa-warning); }
.verdict-card.safe { background: var(--sa-safe-bg); border: 2px solid var(--sa-safe); }

.verdict-icon { font-size: 52px; display: block; margin-bottom: 10px; }
.verdict-label {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  margin-bottom: 8px;
}
.verdict-card.scam .verdict-label { color: var(--sa-alert); }
.verdict-card.suspicious .verdict-label { color: var(--sa-warning); }
.verdict-card.safe .verdict-label { color: var(--sa-safe); }

.verdict-score {
  font-size: 48px; font-weight: 900; font-family: var(--font-head);
  margin: 8px 0;
}
.verdict-card.scam .verdict-score { color: var(--sa-alert); }
.verdict-card.suspicious .verdict-score { color: var(--sa-warning); }
.verdict-card.safe .verdict-score { color: var(--sa-safe); }

/* ── GAUGE ── */
.gauge { height: 12px; border-radius: 6px; background: #E2E8F0; margin: 16px 0; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 6px; transition: width 0.8s ease; }
.gauge-fill.scam { background: linear-gradient(90deg, #F87171, #DC2626); }
.gauge-fill.suspicious { background: linear-gradient(90deg, #FBBF24, #D97706); }
.gauge-fill.safe { background: linear-gradient(90deg, #34D399, #059669); }

/* ── TRIGGERS LIST ── */
.triggers { margin-top: 20px; }
.trigger-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; margin-bottom: 8px;
  background: white; border-radius: var(--sa-radius);
  border-left: 4px solid var(--sa-alert);
  font-size: 15px; line-height: 1.6;
}
.trigger-item.warn { border-left-color: var(--sa-warning); }
.trigger-item .ti { flex-shrink: 0; font-size: 18px; }

/* ── URGENCE ── */
.urgence-step {
  border-radius: var(--sa-radius-lg); padding: 28px;
  margin-bottom: 20px;
}
.urgence-step.stop { background: var(--sa-alert-bg); border-left: 6px solid var(--sa-alert); }
.urgence-step.check { background: var(--sa-warning-bg); border-left: 6px solid var(--sa-warning); }
.urgence-step.act { background: var(--sa-blue-bg); border-left: 6px solid var(--sa-blue-light); }
.urgence-step h2 {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.urgence-step.stop h2 { color: var(--sa-alert); }
.urgence-step.check h2 { color: var(--sa-warning); }
.urgence-step.act h2 { color: var(--sa-blue-light); }
.urgence-step ul { padding-left: 20px; }
.urgence-step li { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }

/* ── CATALOGUE ── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat-card {
  background: var(--sa-card); border-radius: var(--sa-radius);
  padding: 22px; border: 1.5px solid var(--sa-border);
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: var(--sa-text);
}
.cat-card:hover { border-color: var(--sa-blue-light); box-shadow: var(--sa-shadow); }
.cat-icon { font-size: 32px; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--sa-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; border-radius: var(--sa-radius);
  font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-primary { background: var(--sa-blue-light); color: white; }
.btn-primary:hover { background: #1D4ED8; }
.btn-danger { background: var(--sa-alert); color: white; }
.btn-danger:hover { background: #B91C1C; }
.btn-outline {
  background: transparent; color: var(--sa-blue-light);
  border: 2px solid var(--sa-blue-light);
}
.btn-outline:hover { background: var(--sa-blue-bg); }
.btn-call {
  background: var(--sa-safe); color: white;
  font-size: 18px; font-weight: 700; width: 100%;
  justify-content: center; padding: 18px;
}

/* ── PHONE LIST ── */
.phone-grid { display: grid; gap: 10px; margin-top: 16px; }
.phone-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: white; border-radius: var(--sa-radius);
  border: 1.5px solid var(--sa-border);
}
.phone-item-name { font-weight: 600; }
.phone-item a {
  color: var(--sa-blue-light); font-weight: 700;
  text-decoration: none; font-size: 18px;
}

/* ── FOOTER ── */
.footer {
  background: var(--sa-blue); color: rgba(255,255,255,0.7);
  padding: 32px 24px; text-align: center; font-size: 14px; line-height: 1.8;
  margin-top: 48px;
}
.footer a { color: #60A5FA; text-decoration: none; }
.footer strong { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .action-grid, .cat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 26px; }
  .scanner-box { padding: 20px; }
  .section { padding: 24px 16px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease; }

/* ── INSTALL BANNER ── */
.install-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--sa-blue); color: white;
  padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.install-banner button {
  background: white; color: var(--sa-blue); border: none;
  padding: 10px 24px; border-radius: 8px; font-weight: 700;
  font-size: 15px; cursor: pointer;
}
.install-banner .close {
  background: transparent; color: rgba(255,255,255,0.6);
  font-size: 20px; padding: 4px 10px;
}
