/* ============================================================
   NEWSLETTER ÉCO MAROC — Design System
   Police : Inter (Google Fonts)
   Palette : Deep Navy + Emerald + Gold
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #0A0F2C;
  --navy-mid:   #111936;
  --navy-light: #1A2347;
  --emerald:    #00C896;
  --emerald-dk: #00A87D;
  --gold:       #FFD166;
  --purple:     #6C63FF;
  --white:      #FFFFFF;
  --gray-100:   #F4F6FB;
  --gray-200:   #E8ECF4;
  --gray-400:   #9AA5BE;
  --gray-600:   #5A6484;
  --text:       #1A2347;
  --text-light: #5A6484;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 12px rgba(10,15,44,0.08);
  --shadow-md:  0 8px 32px rgba(10,15,44,0.12);
  --shadow-lg:  0 20px 60px rgba(10,15,44,0.18);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font:       'Inter', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--emerald); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--emerald-dk); }
img { max-width: 100%; border-radius: var(--radius-sm); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dk));
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,200,150,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,0.4);
  color: var(--white);
}
.btn-outline {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  text-align: center;
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); background: rgba(0,200,150,0.05); }
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .logo { color: var(--navy); }
.logo-icon { font-size: 1.6rem; }
.logo strong { color: var(--emerald); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--emerald); }
.btn-nav {
  background: var(--emerald) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--white); cursor: pointer; }
.navbar.scrolled .hamburger { color: var(--navy); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0D1B4B 50%, #162061 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.15) 0%, transparent 70%);
  top: -150px; right: -150px; border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  bottom: 0; left: -100px; border-radius: 50%;
  animation: pulse 8s ease-in-out infinite reverse;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }

.hero-content { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }

.badge-top {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.3);
  color: var(--emerald); font-size: 0.85rem; font-weight: 500;
  padding: 8px 16px; border-radius: 50px; margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.75);
  max-width: 580px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-sub strong { color: var(--white); }

.hero-form { max-width: 520px; margin: 0 auto 28px; }
.form-group { display: flex; gap: 12px; flex-wrap: wrap; }
.form-group input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 15px 20px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: var(--white); font-size: 1rem; font-family: var(--font);
  outline: none; transition: border-color var(--transition);
}
.form-group input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.form-group input[type="email"]:focus { border-color: var(--emerald); }
.form-note { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-top: 12px; }

.form-message { margin-top: 12px; font-weight: 500; min-height: 24px; }
.form-message.success { color: var(--emerald); }
.form-message.error { color: #ff7675; }

.social-proof { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.avatars { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display:flex;align-items:center;justify-content:center; font-size:1.1rem; margin-left:-8px; border:2px solid rgba(255,255,255,0.3); }
.social-proof p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.social-proof strong { color: var(--white); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 60px; position: relative;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 20px;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--emerald); }
.stat-label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Sections communes ──────────────────────────────────────── */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(0,200,150,0.1);
  color: var(--emerald); font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* ── Pourquoi ───────────────────────────────────────────────── */
.pourquoi { background: var(--gray-100); }
.comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.comparison-card {
  padding: 32px; border-radius: var(--radius-md); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.comparison-card.bad { border-top: 4px solid #ff7675; }
.comparison-card.good { border-top: 4px solid var(--emerald); }
.comparison-card h3 { font-size: 1.1rem; margin-bottom: 20px; }
.comparison-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.comparison-card li { font-size: 0.95rem; color: var(--text-light); padding-left: 4px; }
.comparison-arrow { font-size: 2rem; color: var(--emerald); font-weight: 900; }

/* ── Contenu / Rubriques ────────────────────────────────────── */
.rubriques-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rubrique-card {
  padding: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); background: var(--white);
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rubrique-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.rubrique-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent); border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.rubrique-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.rubrique-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; display:flex;align-items:center;gap:8px; }
.rubrique-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }
.badge-premium {
  background: linear-gradient(135deg, #6C63FF, #A29BFE);
  color: var(--white); font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 50px; vertical-align: middle;
}

/* ── Aperçu Email ───────────────────────────────────────────── */
.apercu { background: var(--gray-100); }
.email-mockup {
  max-width: 640px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.email-chrome {
  background: #E8E8E8; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.email-dots { display: flex; gap: 6px; }
.email-dots span { width: 12px; height: 12px; border-radius: 50%; background: #ccc; }
.email-dots span:nth-child(1){ background:#FF5F57; }
.email-dots span:nth-child(2){ background:#FFBD2E; }
.email-dots span:nth-child(3){ background:#28C840; }
.email-bar { font-size: 0.8rem; color: #666; flex: 1; text-align: center; }
.email-body { background: var(--white); padding: 32px; }
.email-header-block { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.email-logo { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.email-date { font-size: 0.8rem; color: var(--gray-400); }
.email-section { margin-bottom: 24px; }
.email-section h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.email-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.email-section li { font-size: 0.9rem; color: var(--text-light); }
.email-section.highlight { background: rgba(0,200,150,0.06); border-left: 4px solid var(--emerald); padding: 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.indicateur-chiffre { font-size: 2.5rem; font-weight: 800; color: var(--emerald); margin: 8px 0; }
.email-footer-block { padding-top: 20px; border-top: 1px solid var(--gray-200); font-size: 0.8rem; color: var(--gray-400); text-align: center; }

/* ── Tarifs ─────────────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 840px; margin: 0 auto; }
.plan-card {
  padding: 40px; border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); background: var(--white);
  position: relative; transition: all var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-featured {
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(0,200,150,0.03), rgba(255,255,255,1));
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dk));
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  padding: 6px 20px; border-radius: 50px; white-space: nowrap;
}
.plan-header { margin-bottom: 28px; }
.plan-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-amount { font-size: 3rem; font-weight: 800; color: var(--navy); }
.price-currency { font-size: 1.2rem; font-weight: 600; color: var(--gray-400); }
.plan-header > p { font-size: 0.85rem; color: var(--gray-400); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li { font-size: 0.93rem; color: var(--text-light); }
.plan-features li.disabled { opacity: 0.4; }
.btn-plan { display: block; text-align: center; padding: 15px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--transition); }

/* ── Inscription ────────────────────────────────────────────── */
.inscription-section { background: linear-gradient(135deg, var(--navy), #162061); }
.inscription-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1);
}
.inscription-text h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.inscription-text p { color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.garanties { display: flex; flex-wrap: wrap; gap: 16px; }
.garanties span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.fields-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.fields-row input {
  flex: 1; min-width: 150px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 0.95rem; font-family: var(--font); outline: none;
  transition: border-color var(--transition);
}
.fields-row input::placeholder { color: rgba(255,255,255,0.4); }
.fields-row input:focus { border-color: var(--emerald); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--gray-100); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer;
  font-size: 0.97rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--emerald); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--text-light); font-size: 0.93rem; line-height: 1.7; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; line-height: 1.6; }
.footer-source a { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer-source a:hover { color: var(--emerald); }
.footer-links { display: flex; gap: 40px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.88rem; }
.footer-col a:hover { color: var(--emerald); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px; text-align: center;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.3); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .comparison { grid-template-columns: 1fr; }
  .comparison-arrow { display: none; }
  .rubriques-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; }
  .inscription-box { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--navy); padding: 8px 0; }
  .hamburger { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .rubriques-grid { grid-template-columns: 1fr; }
  .form-group { flex-direction: column; }
  .form-group input, .form-group .btn-primary { width: 100%; }
  .footer-links { flex-direction: column; gap: 24px; }
}
