/* ==========================================================================
   eWHISPER -- site vitrine (www.ewhisper.co.za)
   CSS unique, volontairement simple (pas de framework) -- cf. demande
   "site tout simple". Palette reprise des couleurs déjà utilisées par le
   produit (panel eWHISPER Web / ewhisper2.php, accent #2f8ff5) + bleu nuit
   assorti au visuel marketing existant (assets/img/hero-banner.jpg).
   ========================================================================== */

:root {
  --primary: #2f8ff5;
  --primary-dark: #1c6bd6;
  --cyan: #4fd1ff;
  --navy-900: #0b1830;
  --navy-800: #122648;
  --bg: #f6f9fd;
  --surface: #ffffff;
  --text: #1b2538;
  --text-dim: #5b6779;
  --border: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 38, 72, 0.08);
  --shadow-sm: 0 4px 14px rgba(18, 38, 72, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--text-dim); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(47,143,245,.35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef5ff; color: var(--primary-dark); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.site-nav a.active, .site-nav a:hover { color: var(--primary); }
.site-nav a.nav-cta { color: #fff; }
.site-nav a.nav-cta:hover { color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-800), var(--navy-900) 60%);
  color: #fff;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(79,209,255,.12);
  color: var(--cyan);
  border: 1px solid rgba(79,209,255,.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.hero h1 { font-size: 44px; color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--cyan); }
.hero p.lead { color: #c3cee3; font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-trust { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 32px; flex-wrap: wrap; color: #9fb0ca; font-size: 14px; }
.hero-trust strong { color: #fff; display: block; font-size: 22px; }

/* ---------- Platform strip ---------- */
.platform-strip { padding: 34px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.platform-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.platform-strip img { height: 30px; width: 30px; opacity: .55; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.platform-strip a:hover img { opacity: 1; filter: none; }
.platform-strip span { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }

/* ---------- Sections génériques ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; }
.section-head p { font-size: 17px; }
.bg-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Grille de fonctionnalités (cartes) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 15px; }

/* ---------- Sections alternées (features.php) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-row-media { order: 2; }
.feature-row.reverse .feature-row-text { order: 1; }
.feature-row-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-row-text .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.feature-row-text h2 { font-size: 28px; }
.feature-row-text ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-row-text li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-dim); }
.feature-row-text li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- Téléchargements ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.download-card img { height: 48px; width: 48px; margin: 0 auto 16px; }
.download-card h3 { font-size: 17px; margin-bottom: 6px; }
.download-card p { font-size: 14px; min-height: 42px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 56px 32px;
  margin: 0 24px;
}
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band p { color: #c3cee3; max-width: 520px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Formulaire de contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: #c3cee3; }
.contact-info-card a { color: var(--cyan); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.form-notice.success { background: #e6f7ee; color: #0a7a44; border: 1px solid #b9ecd3; }
.form-notice.error { background: #fdeaea; color: #b42318; border: 1px solid #f6c6c4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0ca; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: #8192ae; margin-top: 14px; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9fb0ca; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; color: #6c7d98; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .feature-row, .contact-layout { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-media,
  .feature-row.reverse .feature-row-text { order: initial; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: 32px; }
  section { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }

  .nav-toggle { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 30px; cursor: pointer;
  }
  .nav-burger span { height: 2px; background: var(--text); border-radius: 2px; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a.nav-cta { order: -1; }
}
