/* ================================================
   PERCEVAL — Phishing Awareness
   Design system: dark, technical, offensive-sec
   ================================================ */

:root {
  --bg:       #0d0e0b;
  --bg2:      #111210;
  --bg3:      #161714;
  --gold:     #c0af12;
  --gold-dim: #8a7d0d;
  --beige:    #F1EBD8;
  --beige-dim:#a89f8a;
  --olive:    #554821;
  --olive-dim:#3a3116;
  --red:      #c0392b;
  --green:    #2ecc71;
  --border:   rgba(192, 175, 18, 0.18);
  --border-hi:rgba(192, 175, 18, 0.45);

  --font-title: 'League Spartan', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --radius: 4px;
  --radius-lg: 8px;
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--beige);
  font-family: var(--font-mono);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--beige-dim); font-size: 0.92rem; line-height: 1.75; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--beige); }

strong { color: var(--beige); font-weight: 500; }

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

section { padding: 6rem 0; }

/* ── Utility ─────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  max-width: 560px;
  margin-top: 0.75rem;
}

.gold { color: var(--gold); }

.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
  border: none;
}

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 14, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--beige-dim); font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--beige-dim);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--beige);
  border-color: var(--beige);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-hi);
  color: var(--beige);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(192,175,18,0.06);
}

/* ── Hero ─────────────────────────────────────────── */
#hero {
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 30%, rgba(192,175,18,0.06) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(192,175,18,0.025) 39px,
      rgba(192,175,18,0.025) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(192,175,18,0.015) 79px,
      rgba(192,175,18,0.015) 80px
    );
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

#hero h1 {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

#hero h1 .highlight {
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: 1rem;
  max-width: 560px;
  color: var(--beige-dim);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-sub strong { color: var(--beige); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--beige-dim);
  padding: 0.4rem 0;
}

.hero-stat::before {
  content: '//';
  color: var(--olive);
  font-family: var(--font-mono);
}

/* ── Attacks section ─────────────────────────────── */
#attacks {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.attacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.attack-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background var(--transition);
  position: relative;
}

.attack-card:hover { background: var(--bg3); }

.attack-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: var(--border);
}

.attack-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--gold);
  background: rgba(192,175,18,0.04);
}

.attack-icon svg { width: 22px; height: 22px; }

.attack-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--beige);
}

.attack-type {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

.attack-card p {
  font-size: 0.83rem;
  line-height: 1.7;
}

/* ── Checklist ───────────────────────────────────── */
#checklist { background: var(--bg); }

.checklist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 800px) {
  .checklist-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.checklist-info h2 { margin-bottom: 1rem; }

.checklist-info p { max-width: 400px; }

.checklist-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: rgba(192,175,18,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.checklist-note p {
  font-size: 0.8rem;
  color: var(--beige-dim);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  background: var(--bg2);
}

.checklist-item:hover { border-color: var(--border-hi); background: var(--bg3); }

.checklist-item.checked {
  border-color: rgba(192,175,18,0.4);
  background: rgba(192,175,18,0.05);
}

.checklist-item.checked .check-text { color: var(--beige-dim); text-decoration: line-through; text-decoration-color: var(--gold-dim); }

.check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border-hi);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
  background: transparent;
}

.checklist-item.checked .check-box {
  background: var(--gold);
  border-color: var(--gold);
}

.check-mark {
  width: 10px; height: 7px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition);
}

.checklist-item.checked .check-mark {
  opacity: 1;
  transform: scale(1);
}

.check-text {
  font-size: 0.84rem;
  color: var(--beige);
  line-height: 1.5;
  transition: color var(--transition);
}

.check-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}

/* ── Quiz ─────────────────────────────────────────── */
#quiz {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.progress-dot {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.progress-dot.active { background: var(--gold); }
.progress-dot.done { background: var(--gold-dim); }

.quiz-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg3);
}

.quiz-email {
  background: #1a1b18;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.quiz-email-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  color: var(--beige-dim);
}

.quiz-email-header .field-label {
  color: var(--gold-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 1px;
}

.quiz-email-header .field-value { color: var(--beige); }
.quiz-email-header .field-suspicious { color: #e67e22; }

.quiz-email-body {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--beige-dim);
  font-size: 0.82rem;
  line-height: 1.8;
}

.quiz-email-body a {
  color: #5599ff;
  font-size: 0.79rem;
}

.email-badge {
  display: inline-block;
  background: var(--olive-dim);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.quiz-actions {
  padding: 1.5rem 2rem;
}

.quiz-question {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 1.25rem;
}

.quiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-email { padding: 1rem 1.25rem; }
  .quiz-actions { padding: 1rem 1.25rem; }
}

.quiz-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--beige);
  transition: all var(--transition);
  text-align: left;
}
.quiz-choice:hover:not(:disabled) {
  border-color: var(--border-hi);
  background: var(--bg3);
}

.quiz-choice .choice-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.quiz-choice.correct {
  border-color: var(--green);
  background: rgba(46,204,113,0.07);
  color: var(--beige);
}
.quiz-choice.wrong {
  border-color: var(--red);
  background: rgba(192,57,43,0.07);
  color: var(--beige-dim);
}
.quiz-choice:disabled { cursor: not-allowed; }

.quiz-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.7;
  display: none;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.quiz-feedback.show { display: block; }
.quiz-feedback.feedback-correct {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.3);
  color: var(--beige);
}
.quiz-feedback.feedback-wrong {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.3);
  color: var(--beige);
}

.quiz-feedback strong { color: inherit; }

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* Quiz results */
.quiz-results {
  text-align: center;
  padding: 3rem 2rem;
}

.quiz-score {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quiz-results h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--beige);
}

.quiz-results p { max-width: 420px; margin: 0 auto 2rem; }

/* ── Décideurs ─────────────────────────────────────── */
#decideurs { background: var(--bg); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4rem;
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--bg2);
  padding: 2.5rem 2rem;
  position: relative;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--beige);
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-source {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--beige-dim);
  opacity: 0.6;
}

.decideurs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 800px) {
  .decideurs-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

.decideurs-text h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--beige);
}

.decideurs-text p { margin-bottom: 1rem; }

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--beige-dim);
}

.offer-list li::before {
  content: '→';
  color: var(--gold);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
}

.cta-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: sticky;
  top: 80px;
}

.cta-block h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--beige);
}

.cta-block p { font-size: 0.85rem; margin-bottom: 1.5rem; }

.cta-detail {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--beige-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.footer-logo span { color: var(--beige-dim); font-weight: 300; }

.footer-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--beige-dim);
  opacity: 0.5;
  text-align: right;
}

/* ── Scroll animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
