/* Mento — feuille de style partagée (site public) */

:root {
  --accent: #6b4fe0;
  --accent-ink: #4a37a8;
  --accent-soft: #efeafc;
  --bg: #faf8fd;
  --surface: #ffffff;
  --border: #e6e0f5;
  --text: #201c2e;
  --text-secondary: #635c78;
  --code-bg: #f1ecfb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a795f5;
    --accent-ink: #cabdfb;
    --accent-soft: #241f38;
    --bg: #131019;
    --surface: #1c1826;
    --border: #322b48;
    --text: #f2effa;
    --text-secondary: #a89fc4;
    --code-bg: #241f38;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
nav.site-nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent-ink); }

/* Headings */
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text);
  margin: 0 0 12px;
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  margin: 0 0 14px;
  color: var(--text);
}
h2.section-title { font-size: 1.4rem; }

p { margin: 0 0 14px; max-width: 65ch; }
ul { margin: 0 0 14px; padding-left: 1.25em; }
li { margin-bottom: 8px; max-width: 62ch; }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 14px;
}
.sub { color: var(--text-secondary); font-size: 1.02rem; max-width: 60ch; margin: 0; }
.meta { margin-top: 20px; font-size: 0.88rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

header.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }

section { margin-bottom: 40px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--text); }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

.not-collected {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 100px;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; }
.btn-ghost {
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid var(--border);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--accent-ink); font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 18px; color: var(--text-secondary); max-width: 60ch; }
details p + p { margin-top: -10px; }

/* Hero (home page) */
.hero { padding: 72px 0 56px; text-align: left; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.hero .sub { font-size: 1.12rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Showcase (screenshots + video) */
.showcase-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  margin: 0 -2px 8px;
  scroll-snap-type: x proximity;
}
.showcase-strip::-webkit-scrollbar { height: 8px; }
.showcase-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }

.phone-frame {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 36px -18px rgba(30, 20, 70, 0.35);
  scroll-snap-align: start;
}
.phone-frame.is-video { width: 260px; }
.phone-frame img,
.phone-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}
.showcase-item { flex: 0 0 auto; width: 220px; }
.showcase-item.is-video { width: 260px; }

a { color: var(--accent-ink); text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code { background: var(--code-bg); color: var(--accent-ink); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 56px;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer a { color: var(--text-secondary); }

@media (max-width: 480px) {
  header.page-header { padding-top: 32px; }
  .hero { padding-top: 48px; }
}
