/* ============================================================
   Immo-Hub — Design Tokens
   Source de vérité CSS. Toutes les variables réutilisées ici.
   ============================================================ */

:root {
  /* ── Couleurs identitaires ── */
  --ih-ink:          #12203a;
  --ih-ink-soft:     #2e3a55;
  --ih-muted:        #60667a;
  --ih-muted-2:      #8a90a2;
  --ih-surface:      #ffffff;
  --ih-bg:           #f6f7f9;
  --ih-cream:        #faf6f1;
  --ih-cream-2:      #f5efe6;
  --ih-line:         #e6e8ee;
  --ih-line-2:       #eef0f5;

  --ih-cyan:         #00c0ff;
  --ih-cyan-600:     #00a8e0;
  --ih-cyan-700:     #0088b8;
  --ih-cyan-tint:    #e5f8ff;
  --ih-cyan-tint-2:  #f2fbff;

  --ih-accent:       #ff6a4d;
  --ih-accent-600:   #ed5334;
  --ih-accent-700:   #c43d20;
  --ih-accent-tint:  #fff0eb;
  --ih-accent-tint-2:#fff7f4;

  /* ── Data sources (v0.43.8 — 6 couleurs distinctes pour anchor-nav + badges) ── */
  --ih-data-dvf:         #ff6b4a;  /* DVF — corail */
  --ih-data-sirene:      #f5b700;  /* SIRENE — jaune */
  --ih-data-bassin:      #16a37b;  /* Bassin INSEE RP — vert */
  --ih-data-pendulaires: #6c4cf1;  /* Pendulaires INSEE Mob_pro — violet */
  --ih-data-dispositifs: #ec4899;  /* Dispositifs / Aides — rose */
  --ih-data-score:       #00c8e0;  /* Score Immo-Hub — cyan (= --ih-cyan) */
  /* Alias legacy pour compat (v1) */
  --ih-data-1:       var(--ih-data-dvf);
  --ih-data-2:       var(--ih-data-sirene);
  --ih-data-3:       var(--ih-data-pendulaires);
  --ih-data-4:       var(--ih-data-bassin);

  /* ── Typographies ── */
  --ih-font-sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* v0.47.22 — "Instrument Serif" remplacée par "Fraunces" (serif expressive,
     variable weight + opsz, branding éditorial moderne). Voir setup.php pour
     l'enqueue Google Fonts. */
  /* v0.66.x (retour user 2026-08-28) — Fraunces RETIRÉE : les titres restent en Geist,
     on ne garde que l'accent COULEUR (.ih-accent), plus d'italique serif « éditorial ». */
  --ih-font-serif: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ih-font-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ── Rayons ── */
  --ih-radius-sm:  6px;
  --ih-radius:     10px;
  --ih-radius-lg:  16px;
  --ih-radius-xl:  22px;
  --ih-radius-full:9999px;

  /* ── Ombres ── */
  --ih-shadow-sm:  0 1px 2px rgba(10,13,18,.04), 0 1px 1px rgba(10,13,18,.03);
  --ih-shadow:     0 8px 24px -10px rgba(10,13,18,.18), 0 2px 6px -2px rgba(10,13,18,.06);
  --ih-shadow-lg:  0 24px 48px -16px rgba(10,13,18,.22), 0 8px 16px -8px rgba(10,13,18,.08);

  /* ── Espacements ── */
  --ih-space-1:   4px;
  --ih-space-2:   8px;
  --ih-space-3:   12px;
  --ih-space-4:   16px;
  --ih-space-5:   20px;
  --ih-space-6:   24px;
  --ih-space-8:   32px;
  --ih-space-10:  40px;
  --ih-space-12:  48px;
  --ih-space-16:  64px;
  --ih-space-18:  72px;
  --ih-space-24:  96px;

  /* ── Transitions ── */
  --ih-transition: all .15s ease;

  /* ── Layout ── */
  --ih-max-w:      1400px;
  --ih-content-w:  880px;  /* largeur de lecture pour contenus textuels (alignée sur .ih-block-hero__inner) */
  --ih-side-pad:   32px;

  /* ── Z-index ──
     overlay (50)  → assombrit le contenu, mais reste SOUS le header sticky (sinon
                     bloque les hovers sur le nav quand le mega-menu est ouvert).
     nav     (100) → header sticky, toujours cliquable.
     mega    (200) → panels : héritent du contexte du header donc passent au-dessus.
     modal   (400) → drawer mobile, dialogues. */
  --ih-z-overlay:   50;
  --ih-z-nav:      100;
  --ih-z-mega:     200;
  --ih-z-modal:    400;
}

/* Responsive : réduction du padding latéral */
@media (max-width: 1024px) { :root { --ih-side-pad: 24px; } }
@media (max-width: 640px)  { :root { --ih-side-pad: 16px; } }
