/* ============================================================
   Immo-Hub — Base & Typographie
   Reset minimal + styles globaux.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ih-font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ih-ink);
  background: var(--ih-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Titres ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ih-ink);
}

h1 { font-size: clamp(40px, 4.7vw, 68px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(28px, 3vw,   44px); letter-spacing: -0.03em;  line-height: 1.05; }
h3 { font-size: clamp(20px, 2vw,   28px); letter-spacing: -0.02em;  line-height: 1.2;  }
h4 { font-size: 20px; font-weight: 500; }
h5 { font-size: 16px; font-weight: 500; }
h6 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ── Texte ── */
p { margin: 0; }

a {
  color: var(--ih-cyan-700);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--ih-cyan); }

strong, b { font-weight: 600; }
em { font-style: italic; }

/* ── Mono / Serif utilitaires ── */
.ih-mono  { font-family: var(--ih-font-mono); font-feature-settings: "ss01"; }
.ih-serif { font-family: var(--ih-font-serif); }

/* Retour user 2026-08-28 — accents/titres : on GARDE la couleur (.ih-accent), on RETIRE
   l'italique « éditorial » PARTOUT (Fraunces supprimée du token → tout en Geist).
   Couvre : em/.ih-italic dans les titres, ET les classes d'accent hero/card (__title-*,
   hero__title, card__name…). `!important` car les CSS de page (chargées après) posent
   l'italique via des classes spécifiques. */
:is(h1, h2, h3, h4) :is(em, i, .ih-italic, .serif-it) { font-style: normal; }
[class$="__title"], [class*="__title-"], [class*="hero__title"], [class*="card__name"] { font-style: normal !important; }

/* ── Images ── */
img, video { max-width: 100%; height: auto; display: block; }

/* ── Inputs & boutons — reset navigateur ── */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ── Listes ── */
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Layout : conteneur principal ── */
.ih-container {
  max-width: var(--ih-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ih-side-pad);
  padding-right: var(--ih-side-pad);
}

/* ── Accessibilité ── */
.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;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--ih-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Placeholder image ── */
.ih-img-placeholder {
  background: var(--ih-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted-2);
  font-family: var(--ih-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.ih-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #edf0f5 0%, #e4e8f0 100%);
}
.ih-img-placeholder span {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  text-align: center;
}

/* ── Divider ── */
.ih-divider {
  border: none;
  border-top: 1px solid var(--ih-line);
  margin: 0;
}
.ih-divider--vertical {
  border-top: none;
  border-left: 1px solid var(--ih-line);
  height: 100%;
  width: 0;
}

/* ── Section label (étiquette mono uppercase) ── */
.ih-section-label {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ih-muted-2);
  display: block;
}
