/* ============================================================
   ESSI COLLECT — Design system
   Reconstruit à partir des jetons de design (couleurs, polices,
   ombres, rayons) observés sur la landing page en ligne :
   https://essi-collect-landing-67g43sdhaa-ew.a.run.app/
   ============================================================ */

:root {
  --navy: #16235a;
  --navy-900: #0d1640;
  --navy-700: #1d2f73;
  --cyan: #1ca9e0;
  --cyan-light: #9fd4f0;
  --orange: #ee4d2d;
  --orange-soft: #ff6b4a;
  --white: #fff;
  --ink: #0e1430;
  --paper: #f5f8fd;
  --paper-2: #eaf1fb;
  --muted: #5b6788;
  --line: #16235a1f;
  --grad-brand: linear-gradient(100deg, var(--cyan) 0%, var(--navy-700) 55%, var(--orange) 130%);
  --grad-cyan: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-light) 100%);
  --grad-fire: linear-gradient(120deg, var(--orange) 0%, var(--orange-soft) 100%);
  --shadow-card: 0 18px 50px -22px #0d164073;
  --shadow-float: 0 40px 90px -30px #0d16408c;
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background-image: var(--grad-fire);
  color: var(--white);
  box-shadow: 0 14px 30px -12px #ee4d2db3;
}
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.3px solid rgba(255,255,255,.35);
  padding: 16px 30px;
  font-size: 16px;
}
.btn--ghost.on-light {
  background: rgba(22,35,90,.05);
  color: var(--navy);
  border-color: var(--line);
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 13px 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,248,253,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  margin-right: auto;
}
.nav__brand .bars { display: flex; flex-direction: column; gap: 3px; }
.nav__brand .bars span { width: 26px; height: 4px; border-radius: 3px; display: block; }
.nav__brand .bars span:nth-child(1) { background: var(--orange); }
.nav__brand .bars span:nth-child(2) { background: var(--cyan); }
.nav__brand b { color: var(--cyan); font-weight: 800; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.nav__links a:hover { color: var(--orange); }

.nav__lang { display: flex; gap: 6px; font-weight: 700; font-size: 14px; }
.nav__lang .active { color: var(--orange); }
.nav__lang .inactive { color: #9aa4c0; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, #24347e 0%, var(--navy) 45%, var(--navy-900) 100%);
  color: var(--white);
  padding: 72px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .07em;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  color: var(--white);
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan-light) 0%, var(--cyan) 40%, var(--orange-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: #c9d3ef; font-size: 18px; max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__art {
  display: flex;
  justify-content: center;
}
.phone {
  width: 260px;
  border-radius: 34px;
  background: linear-gradient(160deg, #0f1a44, #060a1e);
  padding: 14px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255,255,255,.08);
}
.phone__screen {
  background: linear-gradient(165deg, #bfe6f7, #7fc4e6);
  border-radius: 22px;
  padding: 18px 14px;
  min-height: 380px;
}
.phone__row { background: rgba(255,255,255,.65); border-radius: 10px; height: 22px; margin-bottom: 14px; }
.phone__row.accent { background: var(--orange-soft); }
.phone__avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; margin-bottom: 16px; }

/* ---------- Sections génériques ---------- */
.problem { text-align: left; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--navy); }
.stat-card .num.orange { color: var(--orange); }
.stat-card small { color: var(--muted); font-size: 14px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  background: #e8f6fd;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 8px; }
.section-head p { font-size: 17px; }

/* ---------- Bibliothèque Sahel tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tag-cloud span {
  background: var(--paper-2);
  color: var(--navy-700);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff2ee;
  color: var(--orange);
  border: 1px solid #ffd7c9;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.roadmap .card .phase { color: var(--cyan); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.roadmap .card .duration { color: var(--orange); font-weight: 700; font-size: 13px; margin-bottom: 10px; display: block; }

/* ---------- Preuves ---------- */
.logos-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 30px 0; }
.logos-row .logo-chip {
  flex: 1;
  min-width: 140px;
  height: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.logos-row .logo-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
blockquote {
  font-size: 20px;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  margin: 30px 0 10px;
}
.quote__cite { color: var(--muted); font-size: 14px; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: stretch; }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border: 2px solid var(--orange); transform: translateY(-8px); }
.price-card .badge {
  position: absolute; top: -13px; left: 26px;
  background: var(--grad-fire); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.price-card .eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.price-card h3 { font-size: 22px; }
.price-card .discount { display: inline-block; background: #fff2ee; color: var(--orange); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--navy); }
.price-card .period { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.price-card li { font-size: 14.5px; color: var(--ink); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.price-card li:before { content: "✓ "; color: var(--cyan); font-weight: 700; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--grad-brand);
  color: var(--white);
  border-radius: var(--radius);
  padding: 60px clamp(24px, 6vw, 70px);
  text-align: center;
  margin: 0 clamp(20px, 4vw, 40px);
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #dbe3fb; }
.cta-final .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-900);
  color: #c3cbe8;
  padding: 60px 0 30px;
  margin-top: 60px;
}
footer.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
footer.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
footer.site-footer a:hover { color: var(--orange-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #8891b5;
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .roadmap, .pricing { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__lang { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .site-header.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 20px; box-shadow: var(--shadow-card); gap: 16px;
  }
}

/* ---------- Composants spécifiques à la démo ---------- */
.demo-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  border: 1px solid var(--line);
}
.demo-shell label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy-700);
  margin: 18px 0 6px;
}
.demo-shell select,
.demo-shell input,
.demo-shell textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.demo-shell textarea { resize: vertical; }
.demo-result {
  margin-top: 22px;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 20px;
  font-size: 14.5px;
  display: none;
}
.demo-result.show { display: block; }
.demo-result .badge-conf {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
}
.badge-ok { background: #e6f7ee; color: #1e8e5a; }
.badge-warn { background: #fff4e0; color: #b8790a; }
.demo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 10px; }
.demo-fields .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.demo-fields .row span:first-child { color: var(--muted); }
.demo-missing { color: var(--orange); font-size: 13.5px; margin-top: 10px; }
.demo-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 12px 16px;
}

/* ---------- Formulaire de contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  border: 1px solid var(--line);
}
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: 13.5px; color: var(--navy-700); margin: 14px 0 6px; }
.contact-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
}
.contact-form .btn { margin-top: 22px; }
.form-msg { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-msg.ok { color: #1e8e5a; display: block; }
.form-msg.err { color: var(--orange); display: block; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .demo-fields { grid-template-columns: 1fr; }
}
