/* hipokamp.baair.app — feuille unique, typographie système, aucune ressource tierce.
   Thème clair seulement : la charte n'autorise le logo que sur fond clair ou violet. */

:root {
  --violet: #7a67d8;        /* référence de l'icône (docs/brand) : décor, jamais du texte fin */
  --violet-ink: #5b47c4;    /* texte et boutons : contraste AA sur blanc */
  --violet-deep: #4a37ad;
  --violet-wash: #f4f1ff;
  --ink: #18161f;
  --muted: #5a566a;
  --line: #e6e3ef;
  --ground: #ffffff;
  --ground-alt: #faf9fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 22, 31, .06), 0 12px 40px rgba(24, 22, 31, .10);
  --wrap: 1120px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-ink); text-underline-offset: 2px; }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .94rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--violet-ink); }
.lang { font-size: .88rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--violet-ink); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-ink); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: .9rem; }
.site-header .btn-small { flex: none; }
@media (max-width: 480px) { .site-header .btn-small { display: none; } }

/* Hero */
.hero { padding: 72px 0 32px; text-align: center; background: linear-gradient(180deg, var(--violet-wash), var(--ground) 70%); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--violet-ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 20px; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* Démonstration */
.demo { padding: 24px 0 88px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.tabs button {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 7px 16px; min-height: 40px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); background: var(--ground-alt); }
.tabs button[aria-selected="true"] { color: var(--violet-ink); background: var(--violet-wash); border-color: #ddd6fb; }
.screen { margin: 0; }
.screen img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 14 / 9; object-fit: cover; object-position: top left; background: var(--ground-alt); }
.screen figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--ground-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--violet-wash); color: var(--violet-ink); font-weight: 700; margin-bottom: 16px; }
.pillar p { color: var(--muted); }
.pillar ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.pillar li + li { margin-top: 6px; }
.also { margin-top: 28px; text-align: center; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.checks li { grid-column: span 2; }
.checks li:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr; } .checks li, .checks li:nth-child(n+4) { grid-column: auto; } }
.checks li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.checks strong { display: block; margin-bottom: 6px; }
.checks span { color: var(--muted); font-size: .96rem; }

/* Prix */
.pricing { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 2px solid var(--violet); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.price-card .label { font-weight: 600; color: var(--violet-ink); margin-bottom: 8px; }
.price { font-size: 3.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); margin: 10px 0 22px; }
.price-card ul, .trial-card ul { padding-left: 1.1em; margin: 0 0 26px; }
.price-card li + li, .trial-card li + li { margin-top: 6px; }
.price-card .cta, .trial-card .cta { justify-content: flex-start; }
.trial-card { background: var(--violet-wash); border: 1px solid #ddd6fb; border-radius: 20px; padding: 34px; }

/* Téléchargement */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.download { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.download p { color: var(--muted); flex: 1; }
.download .btn { align-self: flex-start; }
.reqs { text-align: center; color: var(--muted); font-size: .94rem; margin-top: 22px; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--violet-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
code { font: .9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--violet-wash); border-radius: 5px; padding: 1px 5px; color: var(--ink); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--violet-ink); }
.disclaimer { max-width: 50rem; }

/* Pages légales */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: #3b3848; }
.legal .updated { color: var(--muted); font-size: .94rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.2em; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--ground-alt); }
.table-scroll { overflow-x: auto; }
