/* base.css — reset + typographie + globaux */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 100vw;
  overflow-x: clip;
}
figure { margin: 0; }
img, video, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: var(--ff-body);
  font-size: 1rem;
  min-width: 0;
  width: 100%;
}

/* TEX-3 : fond pointillé discret (radial-gradient 1px) */
body {
  background: var(--bg);
  background-image: radial-gradient(
    color-mix(in srgb, var(--text) 9%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}

/* Typographie de base */
h1 { font-family: var(--ff-display); }
h2 { font-family: var(--ff-display); font-size: clamp(1.75rem, 3.5vw, 2.4rem); color: var(--text); }
h3 { font-family: var(--ff-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--text); }
p { font-family: var(--ff-body); color: var(--text-2); }

/* Scroll padding pour ancres (hauteur header) */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (max-width: 767px) { html { scroll-padding-top: var(--header-h-mobile); } }

/* Sélection aux couleurs de la marque */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar fine rebrandée */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible accessible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Placeholder */
::placeholder { color: var(--text-mute); opacity: 1; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  width: 100%;
}

/* Sections */
section {
  padding: 64px 0;
  position: relative;
}
@media (max-width: 767px) {
  section { padding: 48px 0; }
}

/* Section fond alterné */
.sec-alt { background: var(--bg-alt); }
.sec-surface { background: var(--surface); }

/* Section sombre (stats) */
.sec-dark {
  background: var(--text);
  color: #fff;
}
.sec-dark h2,
.sec-dark h3,
.sec-dark p,
.sec-dark span,
.sec-dark small { color: rgba(255,255,255,0.92); }

/* Séparateur fin */
.sep {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 24px;
}
