/* =========================================================
   JULO — Landing vitrine
   base.css : design tokens, reset, typographie, composants
   de base (boutons, badges, cartes), utilitaires.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Accent principal (indigo pro) — toute l'échelle dérive de --accent (pilotable via Tweaks) */
  --accent: #4f46e5;
  --accent-600: var(--accent);
  --accent-500: color-mix(in oklab, var(--accent) 84%, white);
  --accent-400: color-mix(in oklab, var(--accent) 62%, white);
  --accent-300: color-mix(in oklab, var(--accent) 44%, white);
  --accent-100: color-mix(in oklab, var(--accent) 20%, white);
  --accent-50:  color-mix(in oklab, var(--accent) 8%, white);
  --accent-ink: color-mix(in oklab, var(--accent) 70%, #1a1530); /* textes sur fond clair accentué */

  /* Neutres (base claire) */
  --ink:       #0f1222;  /* texte principal très foncé, légèrement violacé */
  --ink-soft:  #3b3f54;
  --muted:     #6b7185;
  --line:      #e7e8ef;
  --line-soft: #f0f1f6;
  --bg:        #ffffff;
  --bg-soft:   #f7f8fc;
  --bg-tint:   #f4f5fb;
  --white:     #ffffff;

  /* Sémantiques */
  --green:   #0f9d6b;
  --green-50:#e7f7f0;
  --amber:   #d97706;
  --amber-50:#fdf3e7;
  --red:     #e0413f;
  --red-50:  #fdecec;

  /* Surface "tech" foncée (direction B + sections sombres) */
  --night:      #0b1020;
  --night-2:    #11172b;
  --night-card: #161d33;
  --night-line: #25304f;
  --night-ink:  #eef1fb;
  --night-mut:  #9aa6c7;

  /* Typographie */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --fw-reg: 400;
  --fw-med: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-x: 800;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Ombres douces */
  --sh-xs: 0 1px 2px rgba(16,18,34,.05);
  --sh-sm: 0 2px 8px rgba(16,18,34,.06);
  --sh-md: 0 10px 30px rgba(16,18,34,.08), 0 2px 8px rgba(16,18,34,.05);
  --sh-lg: 0 28px 60px rgba(16,18,34,.12), 0 8px 20px rgba(16,18,34,.07);
  --sh-accent: 0 20px 50px -12px color-mix(in oklab, var(--accent) 45%, transparent);

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --sec-y: clamp(72px, 9vw, 132px);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: var(--fw-reg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, white);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h-display { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: var(--fw-x); }
.h-1 { font-size: clamp(2rem, 4vw, 3rem); }
.h-2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.h-3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container-wide { max-width: 1340px; }
.section { padding-block: var(--sec-y); position: relative; }
.stack-sm > * + * { margin-top: .6rem; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow.on-dark { color: var(--accent-300); }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}
.muted { color: var(--muted); }
.section-head { max-width: 64ch; }
.section-head.center { margin-inline: auto; }
.section-head .h-2 { margin-top: .6rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--accent-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: .98rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent-500) 92%, white), var(--accent-600));
  box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 54px -14px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent-300); color: var(--accent-ink); box-shadow: var(--sh-sm); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-on-dark.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.btn-lg { padding: 1.15rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  color: var(--accent-600);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  font-size: .82rem;
  padding: .45em .85em;
  border-radius: var(--r-pill);
  background: var(--accent-50);
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 16%, white);
}
.pill svg { width: 1.05em; height: 1.05em; }
.pill-soft { background: var(--bg-soft); color: var(--ink-soft); border-color: var(--line); }
.pill-time {
  background: var(--green-50); color: #0a7a52;
  border-color: color-mix(in oklab, var(--green) 22%, white);
}

/* gain de temps badge (réutilisé dans IA + features) */
.gain {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: .8rem; color: #0a7a52;
  background: var(--green-50);
  border: 1px solid color-mix(in oklab, var(--green) 22%, white);
  padding: .35em .7em; border-radius: var(--r-pill);
}
.gain svg { width: 1em; height: 1em; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: clamp(1.3rem, 2.4vw, 2rem); }

/* ---------- Icône en pastille ---------- */
.ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-50);
  color: var(--accent-600);
  border: 1px solid color-mix(in oklab, var(--accent) 14%, white);
  flex: none;
}
.ico svg { width: 26px; height: 26px; }
.ico-lg { width: 60px; height: 60px; border-radius: 17px; }
.ico-lg svg { width: 30px; height: 30px; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Mockups (placeholders captures) ---------- */
.browser {
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d7dae6; display: block; }
.browser-url {
  flex: 1; font-size: .78rem; color: var(--muted);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .4rem .9rem;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: .5em;
}
.browser-url svg { width: .9em; height: .9em; color: var(--green); }

/* Placeholder de capture annoté */
.shot {
  position: relative;
  background:
    linear-gradient(135deg, var(--accent-50), #fff 60%),
    repeating-linear-gradient(45deg, transparent, transparent 18px, color-mix(in oklab, var(--accent) 5%, transparent) 18px, color-mix(in oklab, var(--accent) 5%, transparent) 19px);
  display: grid; place-items: center;
  min-height: 240px;
  color: var(--accent-ink);
  text-align: center;
  padding: 2rem;
}
.shot-tag {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: var(--fw-semi);
  font-size: .9rem; color: var(--accent-ink);
  background: rgba(255,255,255,.7);
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, white);
  padding: .6em 1em; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.shot-tag svg { width: 1.1em; height: 1.1em; }

/* ---------- Divider doux ---------- */
.soft-top { border-top: 1px solid var(--line-soft); }

/* ---------- Utilitaires ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-sm { gap: .6rem; }
.gap { gap: 1rem; }
.wrap { flex-wrap: wrap; }
.hide-mobile { }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
