/* VSM World - base.css : jetons de design, reset, typographie et controles */

:root {
  --blue: #0222f2;
  --red: #f20202;
  --green: #02b80b;
  --ink: #0a0b10;
  --paper: #f1f2f6;
  --graphite: #6c7080;
  --hairline: rgba(10, 11, 16, 0.13);
  --veil: rgba(241, 242, 246, 0.72);
  --field-alpha: 0.1;
  --module: 60px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1400px;
  --shift: 0px;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.68, -0.4, 0.28, 1.4);
}

[data-theme="dark"] {
  --ink: #f1f2f6;
  --paper: #08090e;
  --graphite: #9aa0b2;
  --hairline: rgba(241, 242, 246, 0.15);
  --veil: rgba(8, 9, 14, 0.72);
  --field-alpha: 0.16;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: var(--module) var(--module);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--graphite);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.045em;
  line-height: 0.85;
  text-wrap: balance;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  font-size: clamp(2.1rem, 5.4vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  max-width: 18ch;
}

.lead {
  color: var(--graphite);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem);
  max-width: 54ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.45s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.btn:hover,
.btn:focus-visible {
  color: var(--paper);
}

.btn__tri {
  width: 9px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform 0.45s var(--ease);
}

.btn:hover .btn__tri {
  transform: translateX(4px);
}

.btn--fill {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn--fill::before {
  background: var(--ink);
}

.btn--fill:hover,
.btn--fill:focus-visible {
  color: var(--paper);
  border-color: var(--ink);
}

.btn--ghost {
  border-color: var(--hairline);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
