/* Newsletter MailProtect — styles page d'inscription */

:root {
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --indigo-light: #EEF2FF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --green: #059669;
  --red: #DC2626;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 17px;
}
.navbar-brand img { width: 32px; height: 32px; border-radius: 8px; }
.navbar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.navbar-link:hover { color: var(--indigo); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* Formulaire inscription */
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: var(--text-main);
}
.subscribe-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.btn-subscribe {
  padding: 14px 28px;
  background: white;
  color: var(--indigo);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-subscribe:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-subscribe:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Message retour */
.subscribe-feedback {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.subscribe-feedback.success { color: #86EFAC; }
.subscribe-feedback.error { color: #FCA5A5; }

/* Section principale */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 64px 0; }

/* Aperçu */
.section-label {
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 16px;
}
section p { color: var(--text-muted); font-size: 16px; max-width: 600px; }

/* Email preview */
.email-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 540px;
  margin: 40px auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.email-preview-header {
  background: var(--indigo);
  padding: 24px;
  text-align: center;
  color: white;
}
.email-preview-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.email-preview-header span { font-size: 12px; opacity: 0.75; }
.email-preview-body { padding: 24px; }
.preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.preview-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.preview-stat .emoji { font-size: 20px; }
.preview-stat .value { font-size: 20px; font-weight: 700; color: var(--indigo); }
.preview-stat .label { font-size: 11px; color: var(--text-muted); }
.preview-scam-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.preview-scam-row:last-child { border-bottom: none; }
.preview-rank { font-weight: 700; color: var(--text-muted); width: 20px; }
.preview-domain { flex: 1; font-weight: 600; }
.preview-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-phishing { background: #FEE2E2; color: #DC2626; }
.badge-scam { background: #FEF3C7; color: #D97706; }
.badge-malware { background: #EDE9FE; color: #7C3AED; }

/* Fonctionnalités */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* RGPD */
.rgpd-section {
  background: var(--indigo-light);
  border: 1px solid #C7D2FE;
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
}
.rgpd-section h3 { color: var(--indigo-dark); font-size: 16px; margin-bottom: 12px; }
.rgpd-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.rgpd-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--indigo-dark);
}
.rgpd-list li::before { content: "✓"; font-weight: 700; }

/* CTA bas de page */
.cta-section {
  background: var(--indigo);
  color: white;
  padding: 64px 24px;
  text-align: center;
}
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  width: 280px;
  background: rgba(255,255,255,0.95);
  color: var(--text-main);
}

/* Footer */
footer {
  background: var(--text-main);
  color: rgba(255,255,255,0.6);
  padding: 24px;
  text-align: center;
  font-size: 13px;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }

@media (max-width: 600px) {
  .subscribe-form input[type="email"] { min-width: 100%; }
  .preview-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
