/* ==========================================================================
   DEALR NETWORK — Base reset & typography
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
button, input, select, textarea{ font-family: inherit; font-size: inherit; color: inherit; }
button{ cursor: pointer; background: none; border: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; }

::selection{ background: var(--green); color: var(--black); }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

::-webkit-scrollbar{ width: 8px; height: 8px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: var(--scroll-thumb); border-radius: var(--radius-pill); }

:focus-visible{ outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* Fondu d'entrée de page — léger, jamais un flash */
body{ animation: page-in var(--dur-slow) var(--ease-out); }
@keyframes page-in{ from{ opacity: 0; } to{ opacity: 1; } }

/* Révélation au scroll — appliquée/retirée par js/animate.js (IntersectionObserver),
   jamais de lib externe : garde le site 100% autonome, sans dépendance CDN. */
.reveal{
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 45ms);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal{ opacity: 1; transform: none; }
}
