/* =========================================================================
   QUERIMMO & QUERINVEST — Design system
   Conforme à la Charte graphique v1 · 2026 (au HEX près)
   Une identité, deux marques : Q constant, seconde lettre variable (C / I).
   Bleu & jaune sont PARTAGÉS — c'est la lettre et le contenu qui distinguent.
   ========================================================================= */

/* ----------------------------------------------------------------------
   1. Polices auto-hébergées (aucune dépendance externe, hors-ligne OK)
   ---------------------------------------------------------------------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------------
   2. Variables de marque (charte)
   ---------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --queri-blue: #0B3AE6;   /* Couleur maîtresse — tuiles, aplats, liens */
  --queri-yellow: #F4E20A; /* Accent — le Q, signalétique, mises en avant */

  /* Neutres */
  --ink: #0A0F1C;          /* Encre */
  --slate: #5B6B7F;        /* Ardoise */
  --mist: #EEF0F3;         /* Brume */
  --white: #FFFFFF;

  /* Dérivés utilitaires */
  --blue-700: #082CB0;
  --blue-050: #E7ECFD;
  --line: #DfE3EA;
  --ink-80: rgba(10, 15, 28, 0.80);
  --ink-60: rgba(10, 15, 28, 0.60);
  --on-blue-70: rgba(255, 255, 255, 0.72);

  /* Typo */
  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", Arial, sans-serif;

  /* Rythme & formes */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --tile-radius: 34px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 28, .06), 0 2px 8px rgba(10, 15, 28, .05);
  --shadow-md: 0 8px 30px rgba(10, 15, 28, .10);
  --shadow-lg: 0 24px 60px rgba(10, 15, 28, .16);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;

  /* Marque active (surchargée par brand.js si besoin) */
  --brand-accent: var(--queri-blue);
}

/* ----------------------------------------------------------------------
   3. Reset & bases
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--queri-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--queri-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lien d'évitement (accessibilité) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------------------
   4. Utilitaires de mise en page
   ---------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--blue { background: var(--queri-blue); color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--queri-blue);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.section--ink .eyebrow, .section--blue .eyebrow { color: var(--queri-yellow); }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block;
}

.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-80); line-height: 1.55; }
.section--ink .lead, .section--blue .lead { color: var(--on-blue-70); }
.muted { color: var(--slate); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

/* Grilles génériques */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------
   5. Boutons
   ---------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--queri-blue); --btn-fg: #fff; --btn-bd: var(--queri-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn--yellow { --btn-bg: var(--queri-yellow); --btn-fg: var(--ink); --btn-bd: var(--queri-yellow); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--onblue { --btn-bg: #fff; --btn-fg: var(--queri-blue); --btn-bd: #fff; }
.btn--onblue-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--onblue-ghost:hover { --btn-bg: #fff; --btn-fg: var(--queri-blue); --btn-bd:#fff; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.textlink { font-weight: 600; color: var(--queri-blue); display: inline-flex; align-items: center; gap: .35rem; }
.textlink .arw { transition: transform .2s ease; }
.textlink:hover .arw { transform: translateX(3px); }

/* ----------------------------------------------------------------------
   6. Header / navigation (injecté par brand.js)
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo:hover { text-decoration: none; }

/* Logo reconstruit : tuile SVG (icône, sans texte) + wordmark rendu en Sora
   → rendu net de la police, contrôle total, conforme au verrouillage horizontal. */
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; }
.brand-tile { height: 42px; width: 42px; border-radius: 9px; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-word__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.34rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand-word__desc {
  font-family: var(--font-body); font-weight: 500; font-size: .58rem;
  letter-spacing: .34em; color: var(--queri-blue); margin-top: 3px;
}
.brand-word--rev .brand-word__name { color: #fff; }
.brand-word--rev .brand-word__desc { color: var(--queri-yellow); }
@media (max-width: 420px) {
  .brand-tile { height: 38px; width: 38px; }
  .brand-word__name { font-size: 1.18rem; }
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: .5rem .6rem; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--mist); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--queri-blue); font-weight: 600; }
.nav-cta { margin-left: .4rem; }

/* Sélecteur de marque (cross-link) dans le header */
.brand-switch {
  display: inline-flex; align-items: center; gap: .25rem; margin-left: .6rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff;
}
.brand-switch a {
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .3rem .6rem; border-radius: 999px; color: var(--slate); text-decoration: none;
}
.brand-switch a.is-active { background: var(--queri-blue); color: #fff; }

/* Sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: .1rem; margin-left: .5rem; }
.lang-switch a {
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  padding: .3rem .5rem; border-radius: 8px; color: var(--slate); text-decoration: none;
}
.lang-switch a:hover { background: var(--mist); text-decoration: none; }
.lang-switch a.is-active { color: var(--ink); background: var(--mist); }

/* Burger */
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow-md);
  }
  .nav-open .main-nav { max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 1.6rem; }
  .main-nav a { padding: .9rem .4rem; border-radius: 8px; font-size: 1.05rem; border-bottom: 1px solid var(--mist); }
  .nav-cta { margin: .8rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .brand-switch { margin: 1rem 0 0; }
  .lang-switch { margin: .8rem 0 0; }
}

/* ----------------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero--blue { background: var(--queri-blue); }
.hero__inner {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(64px, 12vw, 132px) var(--gutter) clamp(56px, 10vw, 108px);
  position: relative; z-index: 2;
}
.hero__deco {
  position: absolute; z-index: 1; border-radius: 50%;
  width: 46vw; max-width: 620px; aspect-ratio: 1; right: -8vw; top: -14vw;
  background: rgba(255, 255, 255, .06);
}
.hero--blue .hero__deco { background: rgba(255,255,255,.08); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--queri-yellow); }
.hero__lead { color: var(--on-blue-70); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 52ch; margin-block: 1.4rem 2rem; }
.hero .btn-row { margin-top: 1.5rem; }
.hero__yellow-word { color: var(--queri-yellow); }

/* Deux portes d'entrée (home) */
.entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 2.4rem; }
@media (max-width: 720px) { .entry-cards { grid-template-columns: 1fr; } }
.entry-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: rgba(16,22,40,.5); border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius);
  color: #fff; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.entry-card:hover { background: rgba(16,22,40,.66); border-color: rgba(255,255,255,.45); transform: translateY(-3px); text-decoration: none; }
.entry-card h3 { color: #fff; margin: 0; }
.entry-card p { color: var(--on-blue-70); margin: 0; }
.entry-card .arw { color: var(--queri-yellow); font-weight: 700; margin-top: .4rem; }

/* ----------------------------------------------------------------------
   8. Cartes / contenus
   ---------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: clamp(1.6rem, 3vw, 2.4rem); }
.card h3 { margin-top: 0; }

.feature { display: flex; flex-direction: column; gap: .6rem; }
.feature__ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--queri-blue); flex: none;
}
.feature__ico svg { width: 24px; height: 24px; }

/* Liste à puces custom */
.ticklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.ticklist li { position: relative; padding-left: 2rem; color: var(--ink-80); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--queri-yellow); background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230A0F1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.section--ink .ticklist li, .section--blue .ticklist li { color: var(--on-blue-70); }

/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__n {
  counter-increment: step; flex: none;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--queri-blue); color: #fff; font-family: var(--font-display); font-weight: 700;
}
.step__n::before { content: counter(step); }

/* Badges de statut */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .02em; padding: .3rem .7rem; border-radius: 999px;
  background: var(--blue-050); color: var(--blue-700);
}
.badge--yellow { background: #FDF7B8; color: #6a5d00; }
.badge--ready { background: #DFF6E5; color: #146c2e; }
.badge--slate { background: var(--mist); color: var(--slate); }

/* Bloc "value chain" (groupe) */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 2rem; }
@media (max-width: 820px) { .chain { grid-template-columns: 1fr 1fr; } }
.chain__node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  position: relative;
}
.chain__node span { font-family: var(--font-display); font-weight: 700; color: var(--queri-blue); font-size: .85rem; }
.chain__node h4 { margin: .4rem 0 .2rem; }

/* ----------------------------------------------------------------------
   9. Formulaires
   ---------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--queri-blue); }
.field .hint { font-size: .82rem; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--queri-blue); box-shadow: 0 0 0 3px var(--blue-050);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d33; }
.field .error { color: #c02121; font-size: .82rem; min-height: 1em; }
.field-file input { padding: .55rem; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-80); }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--queri-blue); }
.form__note {
  font-size: .86rem; color: var(--slate); background: var(--mist);
  border-radius: 12px; padding: .9rem 1.1rem; border-left: 3px solid var(--queri-blue);
}
.form__status { font-weight: 600; }
.form__status[data-state="ok"] { color: #146c2e; }
.form__status[data-state="err"] { color: #c02121; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fieldset-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: .4rem 0 -.2rem; }

/* ----------------------------------------------------------------------
   10. Property portal (Phase 2 — styles de base présents)
   ---------------------------------------------------------------------- */
.property-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.property-card__media { aspect-ratio: 3/2; background: var(--mist); position: relative; }
.property-card__media .badge { position: absolute; top: .8rem; left: .8rem; }
.property-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.property-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.property-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .86rem; color: var(--slate); margin-top: auto; }
.filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
}

/* ---- Portail dynamique (Phase 2) ---- */
a.property-card__media { display: block; text-decoration: none; }
a.property-card__media:hover { text-decoration: none; }
.property-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; display: block; }
.property-card__img--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  color: var(--slate); background: var(--mist); position: relative; inset: auto;
}
.property-card__img--empty svg { width: 34px; height: 34px; }
.property-card__img--empty em { font-style: normal; font-size: .8rem; }
.fav-btn {
  position: absolute; top: .6rem; right: .6rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer;
  z-index: 3; box-shadow: var(--shadow-sm);
}
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.fav-btn:hover { background: #fff; }
.fav-btn.is-on svg { fill: var(--queri-blue); stroke: var(--queri-blue); }
.portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 1rem; }
.portal-bar .textlink { background: none; border: none; cursor: pointer; font: inherit; }
.portal-bar__actions { display: inline-flex; align-items: center; gap: 1rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

/* Carte Leaflet */
#prop-map { height: 420px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; border: 1px solid var(--line); }
#prop-map[hidden] { display: none; }
.pd-map { height: 260px; border-radius: 12px; overflow: hidden; }
.leaflet-container { font-family: var(--font-body); }
.map-pin {
  width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--queri-blue); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(10,15,28,.35);
}
.map-pin span { display: block; width: 6px; height: 6px; margin: 5px auto 0; background: var(--queri-yellow); border-radius: 50%; }
.map-pop { font-size: .9rem; line-height: 1.4; min-width: 150px; }
.map-pop strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.map-pop a { font-weight: 600; }

/* Carrousel de miniatures : 3 visibles + flèches de part et d'autre */
.ph-carousel { display: flex; align-items: center; gap: .3rem; padding: .5rem .6rem 0; }
.ph-viewport {
  flex: 1 1 auto; display: flex; gap: .4rem; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ph-viewport::-webkit-scrollbar { display: none; }
.ph-thumb {
  flex: 0 0 calc((100% - 0.8rem) / 3); aspect-ratio: 3/2; border: none; padding: 0; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: var(--mist) center/cover no-repeat; scroll-snap-align: start;
}
.ph-thumb:hover { outline: 2px solid var(--queri-blue); outline-offset: -2px; }
.ph-arrow {
  flex: none; width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm);
}
.ph-arrow:hover { background: var(--mist); }
.ph-arrow svg { width: 16px; height: 16px; }

/* Compteur d'images complémentaires (icône appareil photo) */
.photo-count {
  position: absolute; bottom: .6rem; right: .6rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(10,15,28,.72); color: #fff; font-weight: 600; font-size: .82rem; padding: .25rem .55rem; border-radius: 999px;
}
.photo-count svg { width: 15px; height: 15px; }
.lb-photocount { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2; }
.lb-photocount .photo-count { position: static; background: rgba(255,255,255,.14); }

/* Galerie fiche : boutons image (reset) + conteneur relatif pour le compteur */
.pd-gallery__mainwrap { position: relative; }
.pd-gallery__main { border: none; padding: 0; cursor: zoom-in; width: 100%; }
.pd-gallery__thumbs button { border: none; padding: 0; cursor: zoom-in; }
.pd-gallery__main:hover, .pd-gallery__thumbs button:hover { filter: brightness(.95); }

/* Lightbox (visualiseur d'images) */
.lb-overlay {
  position: fixed; inset: 0; z-index: 260; display: none;
  background: rgba(6, 9, 18, .93); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; padding: clamp(10px, 3vw, 40px);
}
.lb-overlay.is-open { display: flex; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 80vh; display: flex; cursor: zoom-out; }
.lb-stage img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lb-close, .lb-nav { position: absolute; z-index: 2; border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); border-radius: 50%; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; right: 1rem; width: 46px; height: 46px; }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-counter { position: absolute; top: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-variant-numeric: tabular-nums; font-size: .95rem; opacity: .85; }
.lb-thumbs { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; max-width: 92vw; overflow-x: auto; padding: .3rem; }
.lb-thumb { width: 64px; height: 44px; flex: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer; background: #333 center/cover no-repeat; opacity: .55; }
.lb-thumb.is-active { border-color: #fff; opacity: 1; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; } .lb-thumb { width: 52px; height: 36px; } }

/* Bouton Favoris (barre du portail) */
#pf-fav .fav-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: .3rem; fill: none; stroke: currentColor; stroke-width: 2; }
#pf-fav.is-active { background: var(--queri-blue); color: #fff; border-color: var(--queri-blue); }
#pf-fav.is-active .fav-ico { fill: var(--queri-yellow); stroke: var(--queri-yellow); }
.btn--tour svg { fill: none; stroke: currentColor; }

/* Pop-up Visite virtuelle (iframe) */
.tour-overlay {
  position: fixed; inset: 0; z-index: 270; display: none; background: rgba(6, 9, 18, .9);
  align-items: center; justify-content: center; padding: clamp(10px, 3vw, 40px);
}
.tour-overlay.is-open { display: flex; }
.tour-dialog {
  width: 100%; max-width: 1120px; height: min(82vh, 760px); background: #000; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .5rem .7rem 1.1rem; background: var(--ink); color: #fff; }
.tour-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.tour-close { flex: none; border: none; background: rgba(255,255,255,.15); color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.tour-close:hover { background: rgba(255,255,255,.28); }
.tour-close svg { width: 20px; height: 20px; }
.tour-dialog iframe { border: 0; width: 100%; flex: 1 1 auto; background: #111; }

/* Fiche détail */
.pd-gallery__main {
  display: block; width: 100%; aspect-ratio: 16/10; background: var(--mist);
  background-size: cover; background-position: center; border-radius: var(--radius-lg);
}
.pd-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.pd-gallery__thumbs span { aspect-ratio: 1; background: var(--mist); background-size: cover; background-position: center; border-radius: 10px; }
.pd-facts { width: 100%; border-collapse: collapse; }
.pd-facts th { text-align: left; font-weight: 500; color: var(--slate); padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; width: 48%; vertical-align: top; }
.pd-facts td { text-align: right; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.pd-facts tr:last-child th, .pd-facts tr:last-child td { border-bottom: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--mist); color: var(--ink); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 500; }
.epc-badge { display: inline-block; padding: .12rem .55rem; border-radius: 6px; font-weight: 700; color: #fff; }
.epc-a{background:#1a9641}.epc-b{background:#66bd63}.epc-c{background:#a6d96a;color:var(--ink)}
.epc-d{background:#fee08b;color:var(--ink)}.epc-e{background:#fdae61;color:var(--ink)}.epc-f{background:#f46d43}.epc-g{background:#d73027}

/* Carte cliquable + bouton « Voir le bien » */
.property-card__media[role="button"] { cursor: pointer; }
.property-card__media[role="button"]:focus-visible { outline: 3px solid var(--queri-blue); outline-offset: 2px; }
.btn--view { margin-top: .9rem; }

/* Modale « Voir le bien » */
body.pm-lock { overflow: hidden; }
.pm-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10, 15, 28, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: clamp(12px, 4vw, 48px); overflow: auto;
}
.pm-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }
.pm-dialog {
  position: relative; width: 100%; max-width: 1080px; margin: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: pm-in .22s ease;
}
@keyframes pm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pm-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.pm-close svg { width: 20px; height: 20px; color: var(--ink); }
.pm-close:hover { background: var(--mist); }
.pm-body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.pd-head { padding-right: 3rem; margin-bottom: 1.4rem; }
.pd-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.pd-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 780px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-col--side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 780px) { .pd-col--side { position: static; } }

/* Boutons de prise de contact par bien (carte + fiche) */
.btn--visit { margin-top: .9rem; }
.btn--info { margin-top: .55rem; }
.pd-col--side .btn--visit { margin-top: 0; }

/* Masquage fiable via l'attribut [hidden] (sinon .field/.stack en display:flex l'emportent) */
.qc-personal[hidden], .qc-tpl-preview[hidden], .ct-land[hidden], .qc-visit-sched[hidden], .field[hidden] { display: none !important; }

/* Disponibilités souhaitées (demande de visite) */
.qc-visit-sched { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: 1rem; }
.qc-sched-row { margin-top: .7rem; }
.qc-sched-lab { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .35rem; }
.qc-sched-note { margin-top: .5rem; }

/* Pop-up de prise de contact (« Je souhaite visiter » / « … des informations ») */
.qc-overlay {
  position: fixed; inset: 0; z-index: 320; display: none;
  background: rgba(10, 15, 28, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: clamp(12px, 4vw, 48px); overflow: auto;
}
.qc-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }
.qc-dialog {
  position: relative; width: 100%; max-width: 560px; margin: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: pm-in .22s ease;
}
.qc-scroll { padding: clamp(1.4rem, 3vw, 2.2rem); }
.qc-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.qc-close svg { width: 20px; height: 20px; color: var(--ink); }
.qc-close:hover { background: var(--mist); }
.qc-head { padding-right: 2.6rem; margin-bottom: 1.3rem; }
.qc-head h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: .15rem 0 .3rem; }
.qc-head .qc-sub { margin: 0; font-size: .9rem; }
.qc-tpl-preview { white-space: pre-line; }
.qc-usetpl label { font-weight: 500; }
.qc-concern__opts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: .5rem; }
.qc-radio { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink-80); cursor: pointer; }
.qc-radio input { width: 18px; height: 18px; accent-color: var(--queri-blue); }

/* ----------------------------------------------------------------------
   11. Footer (injecté par brand.js) — cross-links entre les deux sites
   ---------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 80px) 2rem; }
.site-footer a { color: var(--on-blue-70); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand svg { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--on-blue-70); max-width: 34ch; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer__cross {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer__cross-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .9rem; }
.footer__legal {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer__legal a { color: rgba(255,255,255,.5); }

/* Bandeau cross-site vers l'autre marque */
.cross-cta { background: var(--queri-blue); color: #fff; }
.cross-cta .cross-cta__inner {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between;
}
.cross-cta h3 { color: #fff; margin: 0; max-width: 24ch; }
.cross-cta p { color: var(--on-blue-70); margin: .3rem 0 0; }

/* ----------------------------------------------------------------------
   12. Bannière cookies (RGPD)
   ---------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-inline: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .9rem; color: var(--ink-80); }
.cookie-banner .btn-row { margin-top: .9rem; }
.cookie-banner .btn { padding: .7rem 1.1rem; font-size: .92rem; }

/* ----------------------------------------------------------------------
   13. Page hero léger (pages internes) + fil d'Ariane
   ---------------------------------------------------------------------- */
.page-hero { background: var(--mist); padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 64px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; margin-top: 1rem; }

/* Hero avec vidéo d'arrière-plan */
.page-hero--media { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.page-hero--media > .container { position: relative; z-index: 1; }
.page-hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  border: 0; pointer-events: none;
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,15,28,.85) 0%, rgba(10,15,28,.65) 55%, rgba(10,15,28,.45) 100%);
}
/* Texte lisible sur la vidéo */
.page-hero--media h1 { color: var(--white); }
.page-hero--media .lead { color: var(--on-blue-70); }
.page-hero--media .eyebrow { color: var(--queri-yellow); }
.page-hero--media .breadcrumb,
.page-hero--media .breadcrumb a { color: var(--on-blue-70); }
.page-hero--media .breadcrumb span { color: rgba(255,255,255,.4); }
@media (prefers-reduced-motion: reduce) {
  .page-hero__video, .bg-video { display: none; }
}

/* Vidéo d'arrière-plan générique (hero, sections) */
.bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  border: 0; pointer-events: none;
}
.bg-video__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10,15,28,.86) 0%, rgba(10,15,28,.62) 55%, rgba(10,15,28,.4) 100%);
}

/* Hero (déjà sombre) avec vidéo : le contenu reste au-dessus via hero__inner (z-index 2) */
.hero .bg-video, .hero .bg-video__scrim { z-index: 0; }

/* Section claire convertie en fond vidéo sombre */
.section--media { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.section--media > .container { position: relative; z-index: 1; }
.section--media h2 { color: var(--white); }
.section--media .eyebrow { color: var(--queri-yellow); }
.section--media .lead,
.section--media p { color: var(--on-blue-70); }

.breadcrumb { font-size: .84rem; color: var(--slate); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--slate); }
.breadcrumb span { color: var(--line); }

/* Prose (pages légales) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .placeholder { background: #FDF7B8; padding: 0 .3rem; border-radius: 4px; }

/* ----------------------------------------------------------------------
   14. Animations reveal
   ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------
   15. Divers
   ---------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.kicker-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.4rem); color: var(--queri-blue); line-height: 1; }
.stat { text-align: left; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink); display: block; }
.stat span { color: var(--slate); font-size: .9rem; }
.tag-mono { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
