/* Toisé — base : tokens, typographie, boutons, navigation, hero
   Langage visuel : encre indigo sur verre dépoli (une seule couleur d’accent, aucune ombre). */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --indigo: #533afd;
  --indigo-hover: #7389ff;
  --ink: #061b31;
  --slate: #64748d;
  --steel: #50617a;
  --smoke: #839bc8;
  --white: #ffffff;
  --mist: #f8fafd;
  --frost: #e5edf5;
  --lavender: #b9b9f9;
  --lilac: #d6d9fc;
  --wash: #e8e9ff;
  --deep: #182659;
  --amethyst: #7f71e6;

  /* sohne-var d’abord : si vous achetez la licence, il suffit d’ajouter le @font-face. */
  --font: 'sohne-var', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r: 4px;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
  --nav-h: 76px;
  --sec: 96px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 300 16px/1.4 var(--font);
  letter-spacing: -.01em;
  font-feature-settings: 'ss01' on, 'tnum' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 300; font-size: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; margin: 0; }
::selection { background: var(--wash); color: var(--deep); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: var(--r); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 300; padding: 12px 16px;
  background: var(--indigo); color: #fff; border-radius: var(--r); font: 400 14px/1 var(--font);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ── Typographie : poids 300 partout, interlettrage serré quand la taille grandit ── */
.display { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.03em; font-weight: 300; }
.h2 { font-size: clamp(34px, 4.1vw, 48px); line-height: 1.04; letter-spacing: -.02em; font-weight: 300; color: var(--ink); }
.h3 { font-size: 26px; line-height: 1.12; letter-spacing: -.01em; font-weight: 300; color: var(--ink); }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -.01em; font-weight: 300; color: var(--slate); }
.lead strong, .hero__lead strong { font-weight: 400; color: var(--ink); }
.display, .h2 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
}
.eyebrow i { font-style: normal; color: var(--indigo); font-variant-numeric: tabular-nums; }

/* ── Icônes : trait 1,5 px, géométrique ── */
.ico {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Boutons : 4 px de rayon, remplissage circulaire depuis le point d’entrée du curseur ── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r);
  font: 400 14px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: color .3s, border-color .3s, background-color .3s, opacity .3s;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--deep));
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(140% at var(--x, 50%) var(--y, 50%)); }
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico-go { transform: translateX(4px); }
.btn:active > * { transform: scale(.97); }

.btn--primary { background: var(--indigo); color: #fff; --fill: var(--deep); }
.btn--ghost { color: var(--indigo); border-color: var(--lavender); --fill: var(--wash); }
.btn--ghost:hover { border-color: var(--indigo); }
.btn--onindigo { background: #fff; color: var(--indigo); --fill: var(--wash); }
.btn--ghost-inv { color: #fff; border-color: rgba(255, 255, 255, .45); --fill: rgba(255, 255, 255, .16); }
.btn--ghost-inv:hover { border-color: #fff; }
.btn--sm { height: 40px; padding: 0 16px; }
.btn[disabled] { pointer-events: none; background: var(--frost); color: var(--slate); }

.link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--indigo);
  font: 400 16px/1.2 var(--font); letter-spacing: -.01em;
}
.link .ico { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.link:hover .ico { transform: translateX(5px); }
.link:hover { color: var(--indigo-hover); }

/* ── Logo Toisé : équerre pleine + barre détachée (kit de marque), mot-symbole en Inter Tight 500 ── */
.logo {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
  font: 500 20px/1 'Inter Tight', ui-sans-serif, system-ui, sans-serif; letter-spacing: -.5px;
  transition: color .35s;
}
.logo__mark { flex: none; width: 28px; height: 28px; }
.logo__mark .lm-a { fill: var(--logo-a, #533afd); transition: fill .35s; }
.logo__mark .lm-b { fill: var(--logo-b, #b9b9f9); transition: fill .35s, transform .6s var(--ease-out); }
.logo:hover .lm-b { transform: translate(2.5px, -2.5px); }

/* ── Barre de progression du scroll ── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--indigo);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none;
}

/* ── Navigation : verre dépoli au scroll, pastille qui suit le survol ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, height .45s var(--ease-out);
}
.nav.is-scrolled {
  height: 64px; background: rgba(255, 255, 255, .78); border-bottom-color: var(--frost);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { position: relative; display: flex; align-items: center; gap: 8px; }
.nav__links a {
  position: relative; z-index: 1; padding: 10px 12px; border-radius: var(--r);
  font: 400 14px/1 var(--font); color: var(--ink); transition: color .25s;
}
.nav__links a[aria-current='true'] { color: var(--indigo); }
.nav__pill {
  position: absolute; z-index: 0; left: 0; top: 50%; height: 36px; margin-top: -18px;
  border-radius: var(--r); background: var(--mist); border: 1px solid var(--frost);
  width: var(--pw, 0); transform: translateX(var(--px, 0)); opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s;
}
.nav__links.is-hover .nav__pill { opacity: 1; }
.nav__links.snap .nav__pill { transition: opacity .25s; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__login { padding: 10px 14px; font: 400 14px/1 var(--font); color: var(--ink); border-radius: var(--r); transition: color .25s; }
.nav__login:hover { color: var(--indigo); }

.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 25px; }
.menu-open .nav__burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 4px;
  padding: 96px var(--gutter) 32px; background: #fff;
  visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s;
}
.menu-open .mnav { visibility: visible; opacity: 1; transition: opacity .35s; }
.menu-open body { overflow: hidden; }
.mnav__l {
  padding: 16px 0; border-bottom: 1px solid var(--frost); font-size: 32px; line-height: 1.1; letter-spacing: -.02em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu-open .mnav__l { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.mnav .btn { margin-top: auto; }

@media (max-width: 899px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  :root { --nav-h: 68px; }
}

/* ── Hero : la typographie est l’image ── */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 88px; overflow: clip; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.hero__grid, .hero__glow { position: absolute; inset: 0; background-size: 64px 64px; background-position: center top; }
.hero__grid {
  background-image: linear-gradient(to right, var(--frost) 1px, transparent 1px), linear-gradient(to bottom, var(--frost) 1px, transparent 1px);
}
.hero__glow {
  background-image: linear-gradient(to right, var(--lavender) 1px, transparent 1px), linear-gradient(to bottom, var(--lavender) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(280px circle at var(--mx, 72%) var(--my, 30%), #000, transparent 72%);
  mask-image: radial-gradient(280px circle at var(--mx, 72%) var(--my, 30%), #000, transparent 72%);
}
.hero__wash { position: absolute; inset: 0; background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 30%), rgba(83, 58, 253, .07), transparent 70%); }

.hero__inner {
  position: relative; z-index: 1; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 88px);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title em { font-style: normal; color: var(--indigo-hover); }
.hero__lead { max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--slate); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__trades {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px;
  font: 400 13px/1 var(--font); color: var(--slate);
}
.hero__trades li { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.hero__trades .ico { width: 17px; height: 17px; color: var(--indigo); transition: transform .45s var(--ease-out); }
.hero__trades li:hover { color: var(--ink); }
.hero__trades li:hover .ico { transform: translateY(-3px) rotate(-8deg); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--lilac); border-radius: 9999px; background: #fff;
  font: 400 13px/1 var(--font); color: var(--ink); transition: background-color .3s, border-color .3s;
}
.pill__new { padding: 6px 10px; border-radius: 9999px; background: var(--wash); color: var(--indigo); font-size: 12px; }
.pill .ico { width: 14px; height: 14px; color: var(--indigo); transition: transform .4s var(--ease-out); }
.pill:hover { background: var(--mist); border-color: var(--lavender); }
.pill:hover .ico { transform: translateX(4px); }

@media (max-width: 560px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (max-width: 1023px) {
  .hero { padding-bottom: 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}
