/* ============================================================
   PROJETS IMMOBILIERS — Base element defaults
   Minimal resets + brand typographic defaults. Components rely
   on tokens; this gives raw HTML a sensible branded baseline.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display serif headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--display-lg); }
h2 { font-size: var(--display-md); }
h3 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
h4 { font-size: var(--text-xl); letter-spacing: var(--tracking-tight); }

/* Sans subheads (when a heading must read as UI, not editorial) */
.heading-sans {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* Eyebrow / kicker — recurring brand device */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* Layout helpers */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--container-text); }
.prose p { color: var(--text-body); line-height: var(--leading-relaxed); }

/* Lead paragraph */
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

::selection { background: var(--plum-200); color: var(--plum-900); }

:focus-visible { outline: 2px solid var(--plum-500); outline-offset: var(--ring-offset); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
