/* ==========================================================================
   Nova Agency — Base : reset, fonts, typographie, layout, accessibilité
   ========================================================================== */

/* --- Fonts (auto-hébergées : aucune requête tierce) ---------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-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: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-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;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-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;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 12px);
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--brand-primary-soft); color: var(--ink-950); }

/* --- Typographie -------------------------------------------------------- */
h1, h2, h3, .nv-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h4 {
  font-size: var(--fs-16);
  font-weight: 650;
  letter-spacing: -0.01em;
}

strong { font-weight: 650; }

.nv-lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.nv-tabnum { font-variant-numeric: tabular-nums; }

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

.nv-container--narrow { max-width: var(--container-narrow); }

.nv-section {
  padding-block: var(--section-y);
  position: relative;
}

.nv-section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* Filet de séparation discret entre sections claires */
.nv-section--ruled { border-top: 1px solid var(--border-default); }

.nv-section__head {
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
  margin-bottom: var(--section-gap);
}

.nv-section__head--wide { max-width: 900px; }

.nv-section__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* Eyebrow : label + point corail (motif « focus dot » du design system) */
.nv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-12);
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nv-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex: none;
}

.nv-grid {
  display: grid;
  gap: var(--space-4);
}

.nv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .nv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nv-grid--2,
  .nv-grid--3,
  .nv-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Motif de fond : grille de points, très discrète */
.nv-dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.055;
  color: var(--text-primary);
}

/* --- Accessibilité ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.nv-skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink-950);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-14);
  font-weight: 650;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-standard);
}

.nv-skip-link:focus-visible { transform: translateY(0); }

.nv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Révélation au scroll ----------------------------------------------
   Le contenu n'est jamais masqué par défaut : c'est reveal.js qui pose
   `.reveal-ready` sur <html> juste avant d'observer les éléments. Sans JS,
   avec une erreur JS ou en mouvement réduit, tout reste visible. */
[data-reveal] {
  transition:
    opacity var(--motion-slow) var(--ease-standard),
    transform var(--motion-slow) var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
