/* Reset moderne + typo de base */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  font-feature-settings: 'ss01' 1, 'cv11' 1; /* Inter alt forms */
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-cubic);
}

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

p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

/* Display utilities */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--c-text-muted);
}

.h-display {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, var(--fs-96));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.h-1 {
  font-size: clamp(2rem, 5vw, var(--fs-56));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.h-2 {
  font-size: clamp(1.75rem, 4vw, var(--fs-40));
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

.h-3 {
  font-size: clamp(1.25rem, 2.5vw, var(--fs-24));
  line-height: var(--lh-snug);
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, var(--fs-20));
  line-height: var(--lh-base);
  color: var(--c-text-muted);
  font-weight: 400;
  text-wrap: pretty;
}

/* Selection */
::selection {
  background: var(--c-brand);
  color: var(--c-text-inv);
}

/* Focus visible — premium underline-style */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-bleed { width: 100%; }

/* Visually hidden (accessible) */
.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;
}

/* Section rythm */
.section {
  padding-block: clamp(48px, 8vw, 128px);
}

.section--tight { padding-block: clamp(32px, 5vw, 80px); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-inv); }
.section--dark .lead { color: var(--c-text-inv-muted); }

/* Reveal on scroll (utility) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-out-expo),
              transform var(--dur-reveal) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
