/* Pierre et Jardins — base.css — reset + typo + fondations */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-mobile);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip; /* clip, jamais hidden : évite de casser le scroll mobile */
  min-height: 100vh;
  position: relative;
}

/* TEX-2 — Grain fin SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* Typographie de base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.1;
  color: var(--text);
  font-weight: 600;
}

p { color: var(--text-2); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

[hidden] { display: none !important; }

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

/* Sélection */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }

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

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

/* Utilitaires */
.container { width: var(--container); margin-inline: auto; }
.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 {
  padding-block: clamp(56px, 9vw, 96px);
}
.section--alt {
  background: var(--bg-alt);
}
.section--dark {
  background: oklch(28% 0.08 145);
  color: #fff;
}
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark :where(h1,h2,h3,h4,p,li,span,a,small) { color: #fff; }

.section-label {
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: clamp(12px, 2vw, 20px);
}
.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-2);
  max-width: 56ch;
}
.section-header { margin-bottom: clamp(32px, 5vw, 52px); }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin-inline: auto; }
