/* ============================================================
   Site de présentation — thème emcorp
   Clair · crème · accent vert · Space Grotesk + DM Sans
   ============================================================ */

:root {
  --bg:         #fafaf8;
  --bg-alt:     #f0efeb;
  --surface:    #ffffff;
  --text:       #1a1a2e;
  --text-sub:   #64647a;
  --text-light: #9e9eb0;
  --accent:     #0dca7a;
  --accent-dark:#0aad66;
  --accent-bg:  rgba(13, 202, 122, .08);
  --indigo:     #6366f1;
  --indigo-bg:  rgba(99, 102, 241, .08);
  --border:     #e8e8e2;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'DM Sans', system-ui, sans-serif;

  --maxw: 1140px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .86em;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: .1em .38em;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }

/* ---------- motifs emcorp ---------- */
.accent-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.highlight {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.highlight::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: .08em;
  height: .34em;
  background: var(--accent-bg);
  border-radius: 4px;
  z-index: -1;
}

/* ---------- révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s,
              border-color .2s, color .2s;
}
.btn-sm { padding: 9px 17px; font-size: 14px; border-radius: 8px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(13, 202, 122, .7);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(13, 202, 122, .8);
}
.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

.btn-indigo {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(99, 102, 241, .7);
}
.btn-indigo:hover { transform: translateY(-2px); filter: brightness(1.07); }

.btn-light {
  background: #fff;
  color: var(--text);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.4); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 15px clamp(20px, 5vw, 56px);
  background: rgba(250, 250, 248, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-end {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  padding: 5px 9px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-light);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button:hover { color: var(--accent-dark); }
.lang-switch button[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-glow {
  position: absolute;
  top: -10%; right: -6%;
  width: 46vw; max-width: 560px;
  height: 46vw; max-height: 560px;
  background: radial-gradient(circle, rgba(13, 202, 122, .16), transparent 64%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 3.85rem);
  line-height: 1.08;
}
.hero-sub {
  margin-top: 22px;
  max-width: 480px;
  font-size: 17px;
  color: var(--text-sub);
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-light);
}
.hero-compat {
  margin-top: 14px;
  max-width: 430px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
}
.hero-compat b {
  color: var(--text-sub);
  font-weight: 600;
}

/* ---------- aperçu produit (fenêtre terminal) ---------- */
.shot { position: relative; z-index: 2; }
.shot-window {
  background: #14151c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -24px rgba(26, 26, 46, .42),
    0 4px 14px -6px rgba(26, 26, 46, .2);
  transform: rotate(.6deg);
  transition: transform .4s var(--ease);
}
.shot:hover .shot-window { transform: rotate(0deg) translateY(-3px); }
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #1d1f29;
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-r { background: #ff6f6f; }
.tl-y { background: #ffd166; }
.tl-g { background: var(--accent); }
.shot-title {
  margin-left: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: #6f7282;
}
.shot-body {
  padding: 20px 22px 24px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.95;
  color: #c9ccd6;
}
.s-line { white-space: pre-wrap; word-break: break-word; }
.s-path   { color: var(--accent); }
.s-prompt { color: #ffd166; }
.s-caret  { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
.s-em     { color: #fff; font-weight: 700; }
.s-bullet { color: var(--accent); }
.s-file   { color: #ffd166; }
.s-ok     { color: var(--accent); }
.s-dim    { color: #6f7282; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.s-out { opacity: 0; transform: translateY(4px); }
.shot.run .s-out {
  opacity: 1; transform: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.shot.run .s-r1 { transition-delay: 1.7s; }
.shot.run .s-r2 { transition-delay: 2.0s; }
.shot.run .s-r3 { transition-delay: 2.35s; }
.shot.run .s-r4 { transition-delay: 2.8s; }

.shot-badge {
  position: absolute;
  bottom: -16px; left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -12px rgba(26, 26, 46, .3);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   STRIP — chiffres
   ============================================================ */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat b {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat span { font-size: 13.5px; color: var(--text-sub); line-height: 1.4; }

/* ============================================================
   SECTIONS — généralités
   ============================================================ */
.principe, .features, .apps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 56px);
}
.features { /* fond alterné */ }
.features-wrap { background: var(--bg-alt); }

.sec-head { max-width: 620px; margin-bottom: 52px; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.14; }
.sec-lead { margin-top: 16px; font-size: 16.5px; color: var(--text-sub); }

/* ============================================================
   PRINCIPE
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px 32px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.07); }
.step-no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.step h3 { font-size: 1.2rem; margin: 13px 0 9px; }
.step p { font-size: 15px; color: var(--text-sub); }

/* ============================================================
   FONCTIONNALITÉS
   ============================================================ */
.features {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  max-width: none;
}
.features > .sec-head,
.features > .feat-grid {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feat:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(0,0,0,.08);
  border-color: rgba(13, 202, 122, .4);
}
.feat-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.feat h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feat p { font-size: 14.5px; color: var(--text-sub); }

/* ============================================================
   APPS
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.app {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.app::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}
.app-free::before { background: var(--accent); }
.app-paid::before { background: var(--indigo); }
.app:hover { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(0,0,0,.1); }

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.app-os { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 999px;
}
.tag-free { background: var(--accent-bg); color: var(--accent-dark); }
.tag-paid { background: var(--indigo-bg); color: var(--indigo); }

.app-name { font-size: 1.7rem; }
.app-edition { color: var(--text-light); font-weight: 500; }
.app-desc { margin: 12px 0 20px; font-size: 15px; color: var(--text-sub); }

.app-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.app-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
}
.app-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}
.app-paid .app-list li::before { color: var(--indigo); }

.app-btn { margin-top: auto; width: 100%; }
.app-foot {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-light);
  text-align: center;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, #15e08c, transparent 70%),
    var(--accent-dark);
}
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 96px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  line-height: 1.16;
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 56px);
}
.footer-tag {
  margin: 16px 0 22px;
  color: var(--text-sub);
  font-size: 15px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}
.footer-legal {
  margin-top: 16px;
  max-width: 580px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-light);
}
.footer-links {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.footer-links a { color: var(--text-sub); transition: color .2s; }
.footer-links a:hover { color: var(--accent-dark); }

/* ============================================================
   PAGES LÉGALES (privacy.html · terms.html)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 56px) 80px;
}
.legal h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 38px);
  letter-spacing: -.02em;
}
.legal-updated {
  margin: 6px 0 30px;
  color: var(--text-light);
  font-size: 14px;
}
.legal h2 {
  font-family: var(--display);
  font-size: 20px;
  margin: 32px 0 9px;
}
.legal p,
.legal li {
  color: var(--text-sub);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 5px 0; }
.legal a { color: var(--accent-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .shot { margin-top: 14px; max-width: 460px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .nav-links { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .shot-title { display: none; }
  .footer-meta { flex-direction: column; }
}
