/* Public pages (vitrine) layout — colors here now come straight from the
   shared tokens (--epoo-blue-900 = black, --epoo-green-* = the one accent),
   which is EPOO's actual brand palette across the whole app, not a
   public-only override anymore. This file only adds public-page-specific
   layout (hero, sections, docs) on top of that shared palette. */
body { background: var(--epoo-white); }
h1, h2, h3, h4 { color: var(--epoo-text); }

/* Accent keyword inside a heading (Twilio-style highlighted phrase) */
.text-accent { color: var(--epoo-green-600); }
.section-dark .text-accent { color: var(--epoo-green-500); }

/* Scroll-reveal: elements fade/slide up into place the first time they enter
   the viewport (IntersectionObserver in js/scroll-reveal.js). The hidden
   state only applies once js/scroll-reveal.js has actually run and tagged
   <body> — elements marked [data-reveal] stay fully visible by default, so a
   blocked/failed script never leaves content permanently invisible. */
body.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.js-reveal-ready [data-reveal].in-view { opacity: 1; transform: translateY(0); }

.hero {
  background: var(--epoo-white);
  color: var(--epoo-text);
  padding: clamp(72px, 10vw, 112px) 0 clamp(80px, 11vw, 128px);
  border-bottom: 1px solid var(--epoo-border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--epoo-green-100);
  color: var(--epoo-green-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero h1 { color: var(--epoo-text); margin-bottom: 18px; letter-spacing: -0.03em; }
.hero p.lead { color: var(--epoo-text-muted); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* API call -> SMS demo */
.hero-demo {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.demo-code {
  background: var(--epoo-blue-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--epoo-radius-md);
  padding: 20px;
  width: 260px;
  box-shadow: var(--epoo-shadow-lg);
  font-family: var(--epoo-font-mono);
  font-size: 0.78rem;
  color: #e5e7eb;
}
.demo-code .demo-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-code .demo-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.demo-code .line { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.demo-code .k { color: var(--epoo-green-500); }
.demo-code .s { color: #8fe3a6; }

.demo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--epoo-blue-900);
  flex-shrink: 0;
}
.demo-arrow svg { width: 48px; height: 24px; }
.demo-arrow span { font-size: 0.7rem; color: var(--epoo-text-faint); white-space: nowrap; }

.demo-phone {
  width: 150px;
  height: 300px;
  background: var(--epoo-blue-900);
  border: 6px solid var(--epoo-blue-700);
  border-radius: 28px;
  box-shadow: var(--epoo-shadow-lg);
  position: relative;
  padding: 20px 10px 10px;
  flex-shrink: 0;
}
.demo-phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}
.demo-bubble {
  background: var(--epoo-green-500);
  color: var(--epoo-blue-900);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  animation: epoo-pop 0.4s ease-out both;
  animation-delay: 0.3s;
  opacity: 0;
}
@keyframes epoo-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Monochrome button variants — public pages only. The shared .btn-primary
   (green) is kept for the single "Créer un compte" conversion action; every
   other public-page button uses these neutral black/white variants instead
   of .btn-outline/.btn-secondary's slightly different weight in the app. */
.btn-mono {
  background: var(--epoo-blue-900);
  color: var(--epoo-white);
}
.btn-mono:hover:not(:disabled) { background: #000000; transform: translateY(-1px); }
.btn-mono-outline {
  background: transparent;
  color: var(--epoo-blue-900);
  border-color: var(--epoo-border);
}
.btn-mono-outline:hover:not(:disabled) { border-color: var(--epoo-blue-900); }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--epoo-border);
  transition: border-color 0.15s ease;
}
.service-card:hover { border-top-color: var(--epoo-green-500); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--epoo-radius-sm);
  background: var(--epoo-bg);
  color: var(--epoo-blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 { margin-bottom: 4px; }
.service-card code {
  align-self: flex-start;
  background: var(--epoo-blue-900);
  color: var(--epoo-white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card { text-align: center; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--epoo-green-500);
  color: var(--epoo-blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}

.section-dark {
  background: var(--epoo-blue-900);
  color: var(--epoo-white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--epoo-white); }
.section-dark p { color: rgba(255, 255, 255, 0.72); }

.cta-band {
  background: var(--epoo-white);
  border: 1px solid var(--epoo-border);
  border-radius: var(--epoo-radius-lg);
  padding: clamp(40px, 6vw, 64px) 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: var(--epoo-text); }
.cta-band p { color: var(--epoo-text-muted); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial-card p {
  color: var(--epoo-text);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--epoo-text-muted);
}

.site-footer {
  background: var(--epoo-white);
  color: var(--epoo-text-muted);
  border-top: 1px solid var(--epoo-border);
  padding: 48px 0 24px;
  margin-top: 72px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--epoo-border);
}
.footer-brand .brand { color: var(--epoo-blue-900); font-weight: 800; margin-bottom: 8px; }
.footer-brand .brand .dot { color: var(--epoo-green-600); }
.footer-brand p { max-width: 32ch; font-size: 0.88rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--epoo-text); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--epoo-text-muted); margin-bottom: 8px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--epoo-blue-900); }
.footer-bottom { padding-top: 20px; }
.site-footer a { color: var(--epoo-text-muted); }
.site-footer a:hover { color: var(--epoo-blue-900); }

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

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.price-tile { text-align: center; }
.price-tile .amount { font-size: 2rem; font-weight: 800; color: var(--epoo-text); margin: 10px 0; }
.price-tile.featured { border: 2px solid var(--epoo-green-500); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  padding: 8px 12px;
  border-radius: var(--epoo-radius-sm);
  color: var(--epoo-text-muted);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
}
.docs-nav a:hover {
  background: var(--epoo-bg);
  border-left-color: var(--epoo-blue-900);
  text-decoration: none;
}
.endpoint-card {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--epoo-border);
}
.endpoint-card:first-of-type { border-top: none; padding-top: 0; }
.endpoint-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.method-badge {
  background: var(--epoo-green-500);
  color: var(--epoo-white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
pre.code-block {
  background: var(--epoo-blue-900);
  color: #e5e7eb;
  padding: 18px;
  border-radius: var(--epoo-radius-md);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-demo { flex-direction: column; }
  .demo-arrow svg { transform: rotate(90deg); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; overflow-x: auto; }
}
