/* ============================================================
   GEST'IMMO — Design System
   ============================================================ */

:root {
  /* Brand */
  --blue: #007be6;
  --blue-600: #0068c4;
  --blue-700: #00529e;
  --blue-deep: #00368a;
  --blue-ink: #051a3d;
  --blue-50: #eaf3ff;
  --blue-100: #d6e8ff;
  --blue-200: #b8d6fb;

  --red: #c1272d;
  --red-600: #a01f24;
  --red-soft: #f7e3e4;
  --red-tint: #fdf3f3;

  /* Neutrals */
  --paper: #ffffff;
  --bone: #faf8f3;
  --bone-2: #f4f1ea;
  --mist: #eef3f9;
  --mist-2: #e6edf6;
  --line: #e3e8f0;
  --line-strong: #cdd5e1;
  --muted: #5a6b85;
  --muted-2: #7a8aa3;
  --ink: #0a1530;
  --ink-soft: #1b2748;

  /* Effects */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 16px -6px rgba(16, 24, 40, 0.10), 0 2px 4px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 48px -20px rgba(16, 24, 40, 0.16), 0 8px 16px -12px rgba(16, 24, 40, 0.08);
  --shadow-xl: 0 44px 88px -32px rgba(16, 24, 40, 0.24), 0 12px 24px -16px rgba(16, 24, 40, 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Type */
  --f-display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Empêche tout glissement / défilement horizontal de la page (surtout mobile),
   provoqué par des éléments décoratifs en position absolue ou des champs trop
   larges. On utilise `clip` plutôt que `hidden` car il ne crée pas de conteneur
   de défilement et préserve donc le `position: sticky` du header. */
html, body { overflow-x: clip; }
body { max-width: 100%; }

/* ----- Détails premium globaux ----- */
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
* { scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* On garde les fondus & transitions douces (non-vestibulaires), mais on neutralise
     les boucles infinies, le smooth-scroll et les déplacements (slide/parallaxe/zoom). */
  *, *::before, *::after { animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }

/* ----- Layout ----- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ----- Type utilities ----- */
.serif { font-family: var(--f-display); font-weight: inherit; letter-spacing: -0.015em; }
.mono { font-family: var(--f-mono); }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.neutral { color: var(--muted); }
.eyebrow.neutral::before { background: var(--line-strong); }

h1.display, h2.display, .display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.lead, .sect-head .right, .acc-text .acc-d, .cat-head p { text-wrap: pretty; }
h1.display { font-size: clamp(40px, 4.8vw, 64px); }
h2.display { font-size: clamp(27px, 3.1vw, 42px); line-height: 1.12; }
h3.display { font-size: clamp(22px, 2.1vw, 30px); font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* ----- Top utility bar (masquée) ----- */
.topbar { display: none; }
.topbar {
  background: var(--blue-ink);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar a { color: rgba(255,255,255,0.85); transition: color .2s; }
.topbar a:hover { color: white; }
.topbar .left, .topbar .right { display: flex; gap: 24px; align-items: center; }
.topbar .pip { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Fond quasi opaque au lieu d'un backdrop-filter blur : le flou se recalcule
     à chaque frame de défilement (surtout au-dessus de contenu animé) et
     provoque de fortes saccades. Un fond opaque est visuellement quasi
     identique et infiniment plus fluide. */
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
  /* On élargit la zone du header (au lieu de 1320px centré) pour décaler
     l'ensemble vers les bords et laisser de la place au logo + menu complet. */
  max-width: 1560px;
  padding: 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand img { height: 48px; width: auto; flex: 0 0 auto; object-fit: contain; transition: transform var(--dur, .28s) var(--ease); }
.brand:hover img { transform: scale(1.03); }
/* Sur petits écrans, on réduit un peu le logo pour laisser de la place aux actions. */
@media (max-width: 600px) {
  .brand img { height: 44px; }
}
.nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  padding: 10px 9px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  font-weight: 500;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); background: var(--blue-50); }
.nav a.has-caret::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  opacity: 0.5;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ----- Menus déroulants (mega) ----- */
.nav .nav-active { color: var(--blue); background: var(--blue-50); }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.has-menu > .nav-link { padding-right: 26px; }
.has-menu > .nav-link::after {
  content: ""; position: absolute; right: 11px; top: 50%; margin-top: -4px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.5;
  transition: transform .2s var(--ease);
}
.nav-item.has-menu:hover > .nav-link::after { transform: rotate(225deg); opacity: 0.9; }
.mega {
  position: absolute; top: 100%; left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 200;
}
.nav-item.has-menu:hover .mega,
.nav-item.has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-h { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding: 4px 12px 10px; }
.mega a {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
}
.mega a:hover { background: var(--blue-50); color: var(--blue); }
.mega a i {
  font-style: normal; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--blue);
  display: grid; place-items: center; font-size: 12px;
  transition: all .15s var(--ease);
}
.mega a:hover i { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 18px -6px rgba(0, 123, 230, 0.55);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 24px -6px rgba(0, 123, 230, 0.65); }
.btn-red {
  background: var(--red);
  color: white;
  box-shadow: 0 6px 18px -6px rgba(250, 60, 60, 0.55);
}
.btn-red:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-soft {
  background: var(--blue-50);
  color: var(--blue-deep);
}
.btn-soft:hover { background: var(--blue-100); }
.btn-dark {
  background: var(--blue);
  color: white;
}
.btn-dark:hover { background: var(--blue-600); }
.btn-link {
  padding: 8px 0;
  color: var(--blue);
  font-weight: 500;
  border-radius: 0;
}
.btn-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform .2s var(--ease);
  display: inline-block;
}
.btn-link:hover::after { transform: translateX(4px); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn:active { transform: translateY(0) scale(0.985); }

/* ----- Sections ----- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.large { padding: 120px 0; }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 56px 0 0;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(0,123,230,0.08), transparent 60%),
    radial-gradient(40% 60% at 0% 30%, rgba(250,60,60,0.04), transparent 60%),
    var(--bone);
  overflow: hidden;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 64px;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 5.8vw, 86px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
.hero h1 .red-dot {
  color: var(--red);
  font-style: normal;
}
.hero .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin: 28px 0 36px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero .meta .item .num {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero .meta .item .num sup { font-size: 16px; color: var(--blue); }
.hero .meta .item .lbl {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 16ch;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 620px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a6b 0%, #0a1d3f 100%);
  box-shadow: var(--shadow-xl);
}
.hero-photo .img-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1a3a6b 0%, #0a1d3f 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hero-photo .img-placeholder span {
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(255,255,255,0.25);
}

/* Floating cards on hero */
.float-card {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 14px;
  align-items: center;
}
.float-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.float-card .ic.blue { background: var(--blue-50); color: var(--blue); }
.float-card .ic.red { background: var(--red-soft); color: var(--red); }
.float-card .ic.green { background: var(--blue-100); color: var(--blue-deep); }
.float-card .title { font-size: 14px; font-weight: 600; color: var(--ink); }
.float-card .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.fc-1 { top: 40px; left: -36px; }
.fc-2 { bottom: 110px; right: -20px; }
.fc-3 { bottom: 24px; left: 40px; }

/* Trust strip */
.trust-strip {
  margin-top: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.trust-strip .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-strip .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.trust-strip .partners {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
}
.trust-strip .partners span { opacity: 0.7; }

/* ----- Section heads ----- */
.sect-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.sect-head .right { color: var(--muted); max-width: 48ch; justify-self: end; }
/* Variante inversée : description à gauche, titre à droite (alternance) */
.sect-head.reverse .right { order: -1; justify-self: start; }
/* Variante centrée : casse la répétition gauche/droite */
.sect-head.center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  gap: 20px;
}
.sect-head.center .eyebrow { display: inline-flex; justify-content: center; }
.sect-head.center .right { justify-self: center; max-width: 58ch; }

/* ----- Service grid (12 métiers) ----- */
.services {
  background: var(--bone);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 44px;
  row-gap: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.svc-card {
  background: transparent;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: auto;
  position: relative;
  border-top: 1px solid var(--line);
  transition: color .2s var(--ease);
  cursor: pointer;
}
.svc-card:hover h4 { color: var(--blue); }
.svc-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.svc-card .ic {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--blue);
}
.svc-card .ic svg { width: 24px; height: 24px; }
.svc-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.svc-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.svc-card .arrow { display: none; }

/* Carrousel coulissant des expertises */
.svc-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.svc-hint { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.svc-nav { display: flex; gap: 8px; }
.svc-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.svc-nav button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.svc-nav button:disabled { opacity: 0.35; cursor: default; }
.svc-nav button:disabled:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }

.svc-slider {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.svc-slider .svc-card {
  flex: 0 0 clamp(232px, 25%, 300px);
  scroll-snap-align: start;
  border-top: none;
  border-left: 1px solid var(--line);
  padding: 4px 30px 6px 26px;
  min-height: 170px;
}
.svc-slider .svc-card:first-child { border-left: none; padding-left: 2px; }
.svc-slider::-webkit-scrollbar { height: 4px; }
.svc-slider::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.svc-slider::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
@media (max-width: 640px) {
  .svc-slider .svc-card { flex-basis: 78%; }
}

/* Carrousel groupé par service principal */
.cat-slider {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.cat-slide {
  flex: 0 0 clamp(320px, 40%, 440px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 26px 28px 8px;
  display: flex; flex-direction: column;
}
.cat-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.cat-head h3 { font-size: 24px; font-weight: 600; color: var(--ink); margin-top: 10px; letter-spacing: -0.02em; }
.cat-head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cat-items { display: flex; flex-direction: column; }
.cat-item { display: flex; flex-direction: column; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s var(--ease); }
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { padding-left: 8px; }
.cat-item strong { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; }
.cat-item strong::after { content: "→"; margin-left: auto; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: all .2s var(--ease); }
.cat-item:hover strong { color: var(--blue); }
.cat-item:hover strong::after { opacity: 1; transform: translateX(0); }
.cat-item span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .cat-slide { flex-basis: 86%; } }

/* Accordéon des services (tout visible, déplié au clic) */
.cat-acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 22px;
  padding: 26px 6px; text-align: left; background: none; cursor: pointer;
}
.acc-num { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--muted-2); }
.acc-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.acc-text strong { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; transition: color .2s var(--ease); }
.acc-text .acc-d { font-size: 13.5px; color: var(--muted); }
.acc-head:hover .acc-text strong { color: var(--blue); }
.acc-sign { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-sign::before, .acc-sign::after { content: ""; position: absolute; background: var(--blue); transition: transform .25s var(--ease); }
.acc-sign::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.acc-sign::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.acc-item.open .acc-sign::after { transform: translateX(-50%) scaleY(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; padding-left: 51px; }
.acc-inner .cat-item:first-child { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .acc-inner { padding-left: 0; } }

/* ----- Investir tri-card ----- */
.invest-tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.invest-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s var(--ease);
}
.invest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.invest-card .photo {
  aspect-ratio: 5/3;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  position: relative;
}
.invest-card .photo .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: rgba(0,53,138,0.55);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 12px);
}
.invest-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.invest-card .body h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.invest-card .body .pitch { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.invest-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.invest-card li {
  font-size: 13.5px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.invest-card li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-50);
  flex-shrink: 0;
  margin-top: 3px;
  background-image: radial-gradient(circle, var(--blue) 3px, transparent 4px);
}
.invest-card .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.invest-card .foot .price { font-size: 12px; color: var(--muted); }
.invest-card .foot .price b { color: var(--ink); font-family: var(--f-display); font-size: 18px; font-weight: 400; }

/* ----- Timeline (Investir Ancien) ----- */
.timeline-wrap {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(0,123,230,0.18), transparent 55%),
    radial-gradient(90% 130% at 0% 100%, rgba(193,39,45,0.06), transparent 60%),
    linear-gradient(160deg, #eaf3ff 0%, #d7e9ff 55%, #e8f1ff 100%);
  color: var(--ink);
  border: 1px solid var(--blue-200);
  border-radius: var(--r-2xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.timeline-wrap::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,123,230,0.12), transparent 70%);
}
.timeline-wrap .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; position: relative; }
.timeline-wrap h2 { color: var(--ink); }
.timeline-wrap .head p { color: var(--muted); max-width: 36ch; }
.timeline-wrap .eyebrow { color: var(--blue); }
.timeline-wrap .eyebrow::before { background: var(--blue); }

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  position: relative;
}
.timeline.timeline-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .timeline.timeline-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .timeline.timeline-4 { grid-template-columns: 1fr; } }
.timeline::before {
  content: "";
  position: absolute;
  top: 17px; left: 18px; right: 18px;
  height: 2px;
  background-image: linear-gradient(to right, var(--blue-600) 55%, transparent 55%);
  background-size: 14px 2px;
}
.tl-step { position: relative; }
.tl-step .dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  color: white;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 4px solid #eef5ff;
  position: relative;
  z-index: 1;
}
.tl-step:nth-child(1) .dot { background: var(--red); }
.tl-step h5 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.tl-step p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }

/* ----- Viager ----- */
.viager-section { background: var(--mist); }
.viager-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.viager-explain { display: flex; flex-direction: column; gap: 28px; }
.viager-row {
  display: flex; gap: 20px;
  padding: 24px; background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.viager-row .term {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--blue);
  font-weight: 400;
  width: 120px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.viager-row .def { font-size: 14px; color: var(--muted); }
.viager-row .def b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; font-size: 14.5px; }

.viager-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.viager-cards .card {
  padding: 28px;
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.viager-cards .card .badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--blue-50);
  color: var(--blue-deep);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  align-self: flex-start;
  text-transform: uppercase;
}
.viager-cards .card.alt .badge { background: var(--red-soft); color: var(--red-600); }
.viager-cards .card h4 { font-size: 20px; font-weight: 600; color: var(--ink); }
.viager-cards .card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ----- Estimator (Vendre) ----- */
.estimator-wrap {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(0,123,230,0.08), transparent 60%),
    var(--bone);
}
.estimator {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: white;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.est-left { padding: 56px 48px; }
.est-right { background: linear-gradient(165deg, #eef5ff 0%, #dcebff 100%); padding: 56px 48px; color: var(--ink); position: relative; overflow: hidden; border-left: 1px solid var(--blue-100); }
.est-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 100% 100%, rgba(0,123,230,0.14), transparent 70%);
}
.est-right > * { position: relative; }
.estimator > * { min-width: 0; } /* autorise les colonnes à rétrécir sur mobile */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
/* Les champs ne doivent jamais dépasser leur conteneur (sinon débordement
   horizontal sur petits écrans : la largeur intrinsèque d'un input/select/
   textarea peut excéder la colonne). */
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; }
.field input, .field select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bone);
  transition: all .2s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 4px var(--blue-50); }
/* Cases à cocher / boutons radio : ne pas hériter du width:100% ni du padding
   des champs texte (sinon la case s'étire et écrase le libellé à côté). */
.field input[type="checkbox"], .field input[type="radio"] {
  width: 18px; min-width: 18px; height: 18px; flex: 0 0 auto;
  padding: 0; border: 0; border-radius: 0; background: none;
  accent-color: var(--blue); cursor: pointer;
}
.field input[type="checkbox"]:focus, .field input[type="radio"]:focus { box-shadow: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.type-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.type-toggle button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: white;
  transition: all .2s var(--ease);
}
.type-toggle button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.est-result .lbl { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 16px; }
.est-result .value {
  font-family: var(--f-display);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.est-result .range { font-size: 13px; color: var(--muted); margin-top: 8px; }
.est-result .bars { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.est-bar { display: flex; flex-direction: column; gap: 6px; }
.est-bar .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.est-bar .track { height: 5px; background: rgba(0,53,138,0.14); border-radius: 99px; overflow: hidden; }
.est-bar .fill { height: 100%; background: linear-gradient(90deg, var(--blue), #6ab6ff); border-radius: 99px; transition: width .4s var(--ease); }
.est-bar.red .fill { background: linear-gradient(90deg, var(--red), #ff8585); }
.est-result .micro { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--blue-100); font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ----- Gestion section ----- */
.mgmt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.mgmt-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all .3s var(--ease);
}
.mgmt-card.feature {
  background: linear-gradient(170deg, #eaf3ff 0%, #d8e9ff 100%);
  color: var(--ink);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.mgmt-card.feature .tag { background: var(--red); color: white; }
.mgmt-card.feature h3 { color: var(--ink); }
.mgmt-card.feature .price-row .price { color: var(--ink); }
.mgmt-card.feature .price-row .unit { color: var(--muted); }
.mgmt-card.feature ul li { color: var(--ink-soft); }
.mgmt-card.feature ul li::before { background: var(--blue); }

.mgmt-card .tag {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 10.5px;
  padding: 4px 10px;
  background: var(--blue-50);
  color: var(--blue-deep);
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.mgmt-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.mgmt-card .pitch { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.mgmt-card.feature .pitch { color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price-row .price { font-family: var(--f-display); font-size: 52px; color: var(--ink); line-height: 1; letter-spacing: -0.025em; }
.price-row .unit { font-size: 13px; color: var(--muted); }
.price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.mgmt-card.feature .price-note { border-color: var(--blue-100); color: var(--muted); }
.mgmt-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mgmt-card ul li {
  font-size: 13.5px;
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft);
}
.mgmt-card ul li::before {
  content: "✓";
  color: white;
  background: var(--blue);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}
.mgmt-card .btn { margin-top: 24px; }

/* ----- Pillars (6 piliers gestion locative) ----- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 56px;
}
.pillar {
  background: white;
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar .num {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pillar h5 { font-size: 16px; font-weight: 600; color: var(--ink); }
.pillar p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ----- À la carte marketplace ----- */
.alacarte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ac-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: white;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.ac-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ac-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.ac-card .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue);
  display: grid; place-items: center;
}
.ac-card .price { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.ac-card h5 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.ac-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ----- Assurances ----- */
.assur-section {
  background: linear-gradient(180deg, var(--bone) 0%, white 100%);
}
.partners-row {
  display: flex; justify-content: center; gap: 64px; align-items: center;
  padding: 28px 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-logo {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.partner-logo b { color: var(--ink); font-weight: 400; }
@media (max-width: 640px) {
  .partners-row { flex-wrap: wrap; gap: 16px 28px; }
  .partner-logo { font-size: 21px; }
}

.assur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.assur-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.assur-card .stamp {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.assur-card .code {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.assur-card h4 { font-size: 28px; font-weight: 600; color: var(--ink); font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 6px; }
.assur-card .tag { font-size: 13.5px; color: var(--blue); margin-bottom: 24px; }
.assur-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.assur-card ul li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.assur-card ul li::before { content: "—"; color: var(--blue); }

/* ----- Pro Section ----- */
.pro-section { background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%); color: var(--ink); }
.pro-section h2 { color: var(--ink); }
.pro-section .lead { color: var(--muted); }
.pro-section .eyebrow { color: var(--blue); }
.pro-section .eyebrow::before { background: var(--blue); }

.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  transition: all .3s var(--ease);
}
.pro-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pro-card .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.pro-card h3 { font-size: 32px; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.pro-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; line-height: 1.6; }
.pro-card .features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 28px; }
.pro-card .features div {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.pro-card .features div::before { content: "+"; color: var(--blue); font-weight: 600; }

/* ----- État des Lieux ----- */
.edl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.edl-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  background: white;
  display: flex; flex-direction: column;
}
.edl-card.popular { background: var(--blue); color: white; border-color: var(--blue); }
.edl-card.popular .price-tag, .edl-card.popular h4 { color: white; }
.edl-card.popular .desc { color: rgba(255,255,255,0.85); }
.edl-card.popular ul li { color: rgba(255,255,255,0.9); }
.edl-card.popular ul li::before { background: white; color: var(--blue); }

.edl-card h4 { font-size: 20px; font-weight: 600; color: var(--ink); }
.edl-card .desc { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.edl-card .price-tag { font-family: var(--f-display); font-size: 42px; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.edl-card .price-from { font-size: 11.5px; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.edl-card.popular .price-from { color: rgba(255,255,255,0.7); }
.edl-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.edl-card ul li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.edl-card ul li::before {
  content: "✓"; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); color: white;
  display: grid; place-items: center;
  font-size: 9px; margin-top: 2px;
}
.edl-card .btn { margin-top: 24px; }

/* ----- Confiance band (stats) ----- */
.confiance {
  padding: 80px 0;
  background:
    radial-gradient(45% 85% at 0% 45%, rgba(0,123,230,0.16), transparent 62%),
    radial-gradient(42% 70% at 100% 6%, rgba(193,39,45,0.06), transparent 60%),
    linear-gradient(180deg, #e4f0ff 0%, #f3f9ff 55%, #ffffff 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.confiance::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 80% at 0% 50%, rgba(0,123,230,0.08), transparent 60%),
    radial-gradient(30% 50% at 100% 0%, rgba(193,39,45,0.06), transparent 60%);
}
.confiance .inner { position: relative; }
.confiance .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.stat .num {
  font-family: var(--f-display);
  font-size: 68px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.stat .num sup { font-size: 24px; color: var(--blue); }
.stat .num .red { color: var(--red); }
.stat .lbl { font-size: 13.5px; color: var(--muted); margin-top: 12px; max-width: 22ch; line-height: 1.45; }

/* ----- Testimonials ----- */
.testimonials .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 56px; }
.testi {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: white;
  display: flex; flex-direction: column; gap: 24px;
}
.testi .stars { color: var(--blue); letter-spacing: 4px; font-size: 14px; }
.testi .quote { font-family: var(--f-display); font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); flex: 1; }
.testi .who { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.testi .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; color: white; font-weight: 600; font-size: 14px; }
.testi .who .name { font-size: 14px; font-weight: 600; }
.testi .who .role { font-size: 12.5px; color: var(--muted); }

/* ----- Témoignages : mur 3D (colonnes verticales défilantes) ----- */
.testi-wall {
  position: relative;
  margin-top: 40px;
  height: 720px;
  overflow: hidden;
  perspective: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Limite la zone de repeinture à ce conteneur : le défilement du reste de
     la page ne provoque pas de recomposition de tout le mur d'avis. */
  contain: layout paint style;
}
.testi-wall-3d {
  display: flex;
  gap: 22px;
  /* PAS de `transform-style: preserve-3d` : les cartes sont coplanaires, donc
     inutile — et le préserver forçait le rendu 3D « vivant » des 4 colonnes
     animées à chaque frame (grosse perte de FPS). L'inclinaison reste identique. */
  transform: rotateX(14deg) rotateY(-11deg) rotateZ(11deg);
}
.testi-col { flex: 0 0 auto; }
.testi-coltrack {
  display: flex; flex-direction: column;
  animation: testi-vscroll 34s linear infinite;
  animation-iteration-count: infinite !important; /* survit au reset reduced-motion */
  will-change: transform;
  backface-visibility: hidden;
}
.testi-coltrack.rev { animation-direction: reverse; }
@keyframes testi-vscroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.testi-mini {
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 22px;             /* l'espacement fait partie de la carte -> boucle nette */
  box-shadow: var(--shadow-sm);
  contain: content;                /* chaque carte est isolée -> moins de repeinture */
}
.tm-head { display: flex; align-items: center; gap: 12px; }
.tm-avatar {
  position: relative; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 600;
}
.tm-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-id { display: flex; flex-direction: column; min-width: 0; }
.tm-name { font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.tm-flag { font-size: 13px; font-weight: 400; color: var(--muted); }
.tm-user { font-size: 13.5px; color: var(--muted-2); }
.tm-body { margin: 14px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
/* Fondus sur les 4 bords */
.testi-fade { position: absolute; pointer-events: none; z-index: 3; }
.testi-fade.t { top: 0; left: 0; right: 0; height: 26%; background: linear-gradient(to bottom, var(--paper), transparent); }
.testi-fade.b { bottom: 0; left: 0; right: 0; height: 26%; background: linear-gradient(to top, var(--paper), transparent); }
.testi-fade.l { top: 0; bottom: 0; left: 0; width: 18%; background: linear-gradient(to right, var(--paper), transparent); }
.testi-fade.r { top: 0; bottom: 0; right: 0; width: 18%; background: linear-gradient(to left, var(--paper), transparent); }
@media (max-width: 640px) {
  .testi-wall { height: 480px; perspective: 300px; }
  .testi-wall-3d { gap: 14px; transform: translateZ(-90px) rotateX(16deg) rotateY(-8deg) rotateZ(16deg); }
  .testi-mini { width: 200px; }
}

/* ----- FAQ ----- */
.faq-section { background: var(--bone); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 28px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.faq-item:hover { border-color: var(--blue-200); }
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .25s var(--ease);
  font-size: 16px;
  color: var(--blue);
}
.faq-item[open] .plus { background: var(--blue); color: white; border-color: var(--blue); transform: rotate(45deg); }
.faq-item[open] .plus::before { content: "+"; }
.faq-item .plus::before { content: "+"; }
.faq-item .answer { padding-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 80ch; }

/* ----- CTA Band ----- */
.cta-band {
  padding: 80px 0;
  background: var(--blue);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.cta-band .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; position: relative; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 50ch; margin: 20px 0 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ----- Footer ----- */
.footer {
  background: var(--mist);
  color: var(--muted);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer .top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer .brand-block .logo {
  background: white;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: inline-block;
  margin-bottom: 16px;
}
.footer .brand-block .logo img { height: 34px; width: auto; object-fit: contain; }
.footer .brand-block p { font-size: 13.5px; color: var(--muted); max-width: 32ch; line-height: 1.6; }
.footer h6 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--blue); }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; gap: 16px; }
.footer .bottom .legal { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer .bottom .legal a { color: var(--muted-2); transition: color .2s; }
.footer .bottom .legal a:hover { color: var(--blue); }
.footer .bottom a { color: var(--muted); }
.footer .bottom a:hover { color: var(--blue); }

/* Pill chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--blue-50);
  color: var(--blue-deep);
}
.chip.red { background: var(--red-soft); color: var(--red-600); }
.chip.green { background: var(--blue-200); color: var(--blue-deep); }
.chip.dark { background: var(--blue); color: white; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----- Mobile menu trigger ----- */
.menu-trigger { display: none; }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  /* .nav (tiroir mobile) et .menu-trigger : voir le bloc « MENU MOBILE » en fin de fichier */
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 480px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .invest-tri, .mgmt-grid, .assur-grid, .edl-grid, .pillars, .alacarte-grid, .pro-grid, .testimonials .grid, .confiance .grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .sect-head { grid-template-columns: 1fr; gap: 24px; }
  .sect-head .right { justify-self: start; }
  .estimator { grid-template-columns: 1fr; }
  .viager-grid { grid-template-columns: 1fr; }
  .cta-band .grid { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  section { padding: 64px 0; }
  .svc-grid, .invest-tri, .mgmt-grid, .assur-grid, .edl-grid, .pillars, .alacarte-grid, .pro-grid, .testimonials .grid, .confiance .grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-wrap { padding: 40px 28px; }
  .est-left, .est-right { padding: 32px 24px; }
  .hero .meta { gap: 18px; }
  .float-card { display: none; }
  .footer .top { grid-template-columns: 1fr; }
  .topbar .left .hide-sm { display: none; }
}

/* ============ SUBPAGE: page hero ============ */
.page-hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(0,123,230,0.08), transparent 60%),
    var(--bone);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.page-hero .crumb a { color: var(--muted); }
.page-hero .crumb a:hover { color: var(--blue); }
.page-hero .crumb span { color: var(--ink); }
.page-hero .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--blue); font-weight: 400; }
.page-hero .lead { margin-top: 24px; font-size: 18px; }
.page-hero .right-meta {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; background: white; border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.page-hero .right-meta .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.page-hero .right-meta .row:last-child { border: none; padding-bottom: 0; }
.page-hero .right-meta .k { font-size: 13px; color: var(--muted); }
.page-hero .right-meta .v { font-family: var(--f-display); font-size: 22px; color: var(--ink); }
@media (max-width: 860px) {
  .page-hero { padding: 52px 0 40px; }
  .page-hero .grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero .crumb { margin-bottom: 16px; }
  .page-hero .lead { font-size: 16.5px; margin-top: 18px; }
}

/* ============ Hero éditorial (texte large + frise chiffres + bandeau image) ============ */
.hero-editorial .he-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.hero-editorial .he-top h1 { margin-top: 18px; }
.hero-editorial .he-media {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  box-shadow: var(--shadow-lg);
}
.hero-editorial .he-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero-editorial .he-head { grid-template-columns: 1fr; gap: 32px; }
  .hero-editorial .he-media { aspect-ratio: 16/9; max-height: 320px; }
}
.he-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  margin-top: 48px;
}
.he-stats .s { padding: 22px 26px 0; border-left: 1px solid var(--line); position: relative; }
.he-stats .s:first-child { border-left: none; padding-left: 0; }
.he-stats .s::before { content: ""; position: absolute; top: -1px; left: 0; width: 38px; height: 2px; background: var(--blue); }
.he-stats .k { display: block; font-size: 12.5px; color: var(--muted); }
.he-stats .v { display: block; font-family: var(--f-display); font-weight: 600; font-size: 23px; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
@media (max-width: 860px) {
  .he-stats { grid-template-columns: 1fr 1fr; gap: 0 0; }
  .he-stats .s:nth-child(3) { border-left: none; padding-left: 0; }
  .he-stats .s { padding-bottom: 18px; }
}
@media (max-width: 520px) {
  .he-stats { grid-template-columns: 1fr; }
  .he-stats .s { border-left: none; padding-left: 0; }
}

/* Two col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
/* Variante inversée : pavé à gauche, titre à droite (alternance) */
.two-col.reverse { grid-template-columns: 1.2fr 1fr; }
.two-col.reverse .left { order: 2; }
.two-col .left h2 { margin-bottom: 16px; }
.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.bullets li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; background: white; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; color: var(--ink-soft);
}
.bullets li::before {
  content: "✓"; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

/* Residence cards (neuf sub) */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
}
.res-card .img {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  position: relative;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: rgba(0,53,138,0.55);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 12px), linear-gradient(160deg, #d6e8ff, #a5c8f4);
}
.res-card.alt .img { background: linear-gradient(160deg, #f6e6cf, #d4b07a); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 12px), linear-gradient(160deg, #f6e6cf, #d4b07a); color: rgba(100,60,10,0.55); }
.res-card.alt2 .img { background: linear-gradient(160deg, #dde9d6, #9bb892); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.3) 0 1px, transparent 1px 12px), linear-gradient(160deg, #dde9d6, #9bb892); color: rgba(40,80,40,0.55); }
.res-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.res-card h3 { font-size: 22px; font-weight: 600; color: var(--ink); }
.res-card .pitch { font-size: 14px; color: var(--muted); }
.res-card .data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.res-card .data div {
  padding: 10px 12px; background: var(--bone); border-radius: var(--r-sm);
  font-size: 12px; color: var(--muted);
}
.res-card .data div b { display: block; color: var(--ink); font-size: 16px; font-family: var(--f-display); font-weight: 400; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
/* min-width:0 : autorise les colonnes à rétrécir sous leur contenu intrinsèque
   (évite le débordement horizontal une fois empilées sur mobile). */
.contact-grid > *, .two-col > * { min-width: 0; }
.contact-form {
  background: white; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px;
}
.contact-info { padding: 8px 0; display: flex; flex-direction: column; gap: 24px; }
.contact-info .block { padding: 24px; background: var(--bone); border-radius: var(--r-lg); }
.contact-info .block h5 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-info .block p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.contact-info .block .big { font-family: var(--f-display); font-size: 26px; color: var(--blue); }
.map {
  height: 220px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    linear-gradient(transparent 49%, var(--line) 49%, var(--line) 51%, transparent 51%),
    linear-gradient(90deg, transparent 49%, var(--line) 49%, var(--line) 51%, transparent 51%),
    var(--mist);
  background-size: 30px 30px;
  position: relative;
  display: grid; place-items: center;
  color: var(--muted-2); font-family: var(--f-mono); font-size: 11px;
}
.map::before {
  content: "📍"; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0,123,230,0.4));
}

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: white; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; text-align: center;
}
.team-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  margin: 0 auto 14px;
  display: grid; place-items: center;
  color: white; font-family: var(--f-display); font-size: 26px;
}
.team-card .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.team-card .role { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value-card {
  padding: 32px; background: white; border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.value-card .num { font-family: var(--f-display); font-size: 48px; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.value-card h5 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Comparator */
.comparator {
  background: white; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
}
.comparator table { width: 100%; border-collapse: collapse; }
.comparator th, .comparator td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.comparator th {
  background: var(--bone);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}
.comparator td.col-feat { background: var(--blue); color: white; text-align: center; font-weight: 600; }
.comparator td .ico-yes { color: var(--blue); font-weight: 700; }
.comparator td .ico-no { color: var(--muted-2); }
.comparator tbody tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .comparator { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparator th, .comparator td { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 1100px) {
  .page-hero .grid, .two-col, .two-col.reverse, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse .left { order: 0; }
  .sect-head.reverse .right { order: 0; }
  .res-grid, .team-grid, .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .res-grid, .team-grid, .values-grid { grid-template-columns: 1fr; }
}

/* ============ Vidéo de fond du hero ============ */
.search-hero > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============ Galerie "Récemment vendus" ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prop-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: all .3s var(--ease);
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.prop-card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(160deg,#d6e8ff,#a5c8f4); }
.prop-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prop-card:hover .ph img { transform: scale(1.05); }
.prop-card .sold {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--red); color: white;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 12px -2px rgba(250,60,60,0.5);
}
.prop-card .sold.blue { background: var(--blue); box-shadow: 0 4px 12px -2px rgba(0,123,230,0.5); }
.prop-card .info { padding: 16px 18px; background: white; }
.prop-card .info .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prop-card .info h5 { font-size: 15px; font-weight: 600; color: var(--ink); }
.prop-card .info .price { font-family: var(--f-display); font-size: 18px; color: var(--blue); white-space: nowrap; }
.prop-card .info .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Photos rondes (avis & équipe) */
.testi .avatar { position: relative; overflow: hidden; }
.testi .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card .avatar { position: relative; overflow: hidden; }
.team-card .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ============ Autocomplétion d'adresse (estimateur) ============ */
.field.autocomplete { position: relative; }
.ac-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 40;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.ac-list.open { display: block; }
.ac-item {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background .12s var(--ease);
}
.ac-item:hover, .ac-item.active { background: var(--blue-50); }
.ac-item svg { color: var(--muted-2); flex-shrink: 0; }
.ac-item .label { color: var(--ink); font-weight: 500; }
.ac-item .ctx { color: var(--muted); font-size: 12.5px; margin-left: 4px; }

/* Toggle multi-sélection (atouts) : pas de bouton unique imposé */
.type-toggle.multi button.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ============ Hero de recherche (style iad / safti) ============ */
.search-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--blue-ink);
}
.search-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.search-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,26,61,0.35) 0%, rgba(5,26,61,0.55) 55%, rgba(5,26,61,0.7) 100%);
}
.search-hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.search-hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.94);
  max-width: 24ch;
  margin: 0 auto;
}
.search-hero h1 em { font-style: italic; color: #8fc4ff; }
.sh-rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft); font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}
.sh-rating b { font-size: 15px; color: var(--ink); }
.sh-rating .stars { color: #f5a623; letter-spacing: 1px; }

/* Bloc de recherche */
.sh-search { max-width: 880px; margin: 36px auto 0; }
.sh-tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.sh-tabs button {
  padding: 11px 26px;
  border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.sh-tabs button:hover { color: var(--blue); }
.sh-tabs button.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(0,123,230,0.5); }
.sh-card {
  background: white;
  border-radius: 34px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-xl);
}
.sh-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.sh-chips button {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px; color: var(--ink-soft);
  background: white; transition: all .2s var(--ease);
}
.sh-chips button:hover { border-color: var(--blue); color: var(--blue); }
.sh-chips button.active { background: var(--blue); color: white; border-color: var(--blue); }
.sh-form { display: flex; gap: 10px; }
.sh-form .input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bone);
  transition: all .2s var(--ease);
}
.sh-form .input:focus-within { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px var(--blue-50); }
.sh-form .input svg { color: var(--muted-2); flex-shrink: 0; }
.sh-form input {
  flex: 1; border: none; background: transparent;
  padding: 16px 0; font-family: inherit; font-size: 15px; color: var(--ink);
}
.sh-form input:focus { outline: none; }
.sh-form .btn { flex-shrink: 0; }

/* Suggestions d'autocomplétion de la barre de recherche */
.sh-form .input { position: relative; }
.sh-suggest {
  position: absolute;
  top: calc(100% + 10px); left: -1px; right: -1px;
  z-index: 60;
  list-style: none; margin: 0; padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -22px rgba(5,26,61,0.38);
  max-height: 296px; overflow-y: auto;
  text-align: left;
}
.sh-suggest[hidden] { display: none; }
.sh-suggest li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 13px;
  font-size: 14.5px; color: var(--ink); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.sh-suggest li svg { color: var(--muted-2); flex-shrink: 0; }
.sh-suggest li:hover, .sh-suggest li.is-active { background: var(--blue-50); color: var(--blue); }
.sh-suggest li:hover svg, .sh-suggest li.is-active svg { color: var(--blue); }
.sh-suggest mark { background: transparent; color: var(--blue); font-weight: 600; }
.sh-suggest .sh-cp { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted-2); }
.sh-suggest li:hover .sh-cp, .sh-suggest li.is-active .sh-cp { color: var(--blue); }

/* Footer — zones desservies / villes cliquables */
.footer-cities { padding: 36px 0; border-bottom: 1px solid var(--line); }
.footer-cities h6 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.footer-cities__intro { font-size: 13.5px; color: var(--muted); max-width: 78ch; line-height: 1.6; margin-bottom: 18px; }
.footer-cities__list { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cities__list a {
  font-size: 13px; color: var(--ink-soft);
  padding: 7px 15px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: #fff;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.footer-cities__list a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* Bande « Nos villes » en bas des pages de services */
.city-band { padding: 56px 0; background: var(--bone); border-top: 1px solid var(--line); }
.city-band .eyebrow { color: var(--blue); }
.city-band .eyebrow::before { background: var(--blue); }
.city-band__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.city-band__list a {
  font-size: 13px; color: var(--ink-soft);
  padding: 8px 16px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: #fff;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.city-band__list a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* Simulateurs */
.simulators {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(0,123,230,0.07), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(250,60,60,0.04), transparent 60%),
    var(--mist);
  padding: 88px 0;
}
/* Nouvelle disposition éditoriale (intro + liste d'outils) */
.sim-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 0; align-items: center; }
.sim-intro { padding-right: 64px; }
.sim-steps { border-left: 1px solid var(--line); padding-left: 64px; }
.sim-intro .lead { margin-top: 18px; }
.sim-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sim-points li { font-size: 14px; color: var(--ink-soft); display: flex; gap: 12px; align-items: center; }
.sim-points li::before {
  content: "✓"; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 11px;
}
/* Stepper vertical (schéma à pastilles reliées) */
.sim-steps { position: relative; }
.sim-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding-bottom: 30px; }
.sim-step:last-child { padding-bottom: 0; }
.sim-step::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: -2px; width: 2px; background: var(--line-strong); }
.sim-step:last-child::before { display: none; }
.sim-node {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 15px; font-weight: 600;
  position: relative; z-index: 1;
  transition: all .2s var(--ease);
}
.sim-step:hover .sim-node { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(0,123,230,0.6); }
.sim-step .c { padding-top: 7px; }
.sim-step .c strong { display: block; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sim-step .c .d { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.sim-step .c .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--blue); }
.sim-step .c .go::after { content: "→"; transition: transform .2s var(--ease); }
.sim-step:hover .c .go::after { transform: translateX(4px); }

.sim-rows { border-top: 1px solid var(--line-strong); }
.sim-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.sim-row:hover { padding-left: 16px; padding-right: 16px; background: rgba(255,255,255,0.6); }
.sim-row-n { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--muted-2); }
.sim-row-main { display: flex; flex-direction: column; gap: 4px; }
.sim-row-main strong { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sim-row-main span { font-size: 13.5px; color: var(--muted); }
.sim-row-go { color: var(--blue); font-size: 22px; transition: transform .2s var(--ease); }
.sim-row:hover .sim-row-main strong { color: var(--blue); }
.sim-row:hover .sim-row-go { transform: translateX(5px); }
@media (max-width: 860px) {
  .sim-layout { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .sim-intro { padding-right: 0; }
  .sim-steps { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 36px; }
}

.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-bottom: 52px; }
.sim-head-text { max-width: 580px; }
.sim-head h2 { margin-top: 16px; }
.sim-head .lead { margin: 18px 0 0; }
.sim-head-media {
  width: 320px; flex-shrink: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.sim-head-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .sim-head { flex-direction: column; text-align: center; }
  .sim-head .eyebrow { display: inline-flex; justify-content: center; }
  .sim-head .lead { margin-left: auto; margin-right: auto; }
  .sim-head-media { display: none; }
}
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sim-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: all .25s var(--ease);
}
.sim-card:hover { border-color: var(--blue-200); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sim-card .ic {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 16px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: all .25s var(--ease);
}
.sim-card .ic.red { background: var(--red-soft); color: var(--red); }
.sim-card .ic.green { background: var(--blue-100); color: var(--blue-deep); }
.sim-card:hover .ic { transform: scale(1.06); }
.sim-card h4 { font-size: 19px; font-weight: 600; color: var(--ink); }
.sim-card p { font-size: 14px; color: var(--muted); margin: 8px 0 22px; line-height: 1.55; flex: 1; }
.sim-card .sim-link {
  color: var(--blue); font-weight: 500; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sim-card .sim-link::after { content: "→"; transition: transform .2s var(--ease); }
.sim-card:hover .sim-link::after { transform: translateX(4px); }
.sim-trust { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.sim-trust .chip { background: white; border: 1px solid var(--line); color: var(--ink-soft); padding: 8px 14px; }
.sim-trust .chip .dot { background: #16b364; }

@media (max-width: 980px) { .sim-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

@media (max-width: 760px) {
  .search-hero { min-height: 540px; }
  .sh-form { flex-direction: column; }
  .sh-form .btn { width: 100%; }
  .sim-grid { grid-template-columns: 1fr; }
  .sh-tabs button { padding: 10px 16px; font-size: 13.5px; }
}

/* ============ Carte de chiffres avec image en fond ============ */
.right-meta.bg-card { position: relative; overflow: hidden; border: none; }
.right-meta.bg-card .rm-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.right-meta.bg-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(5,26,61,0.78) 0%, rgba(5,26,61,0.9) 100%);
  z-index: 0;
}
.right-meta.bg-card .row { position: relative; z-index: 1; border-bottom-color: rgba(255,255,255,0.18); }
.right-meta.bg-card .k { color: rgba(255,255,255,0.78); }
.right-meta.bg-card .v { color: #fff; }

/* ============ Flux de process (schéma à flèches + grands numéros) ============ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.flow-step { position: relative; padding-right: 30px; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 34px; right: 10px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
  opacity: 0.7;
}
.flow-step .n {
  font-family: var(--f-display);
  font-size: 68px; line-height: 1;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .flow-step .n {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.flow-step h5 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
}

/* ============ Liste schéma (garanties) : bordure accent + tuile carrée ============ */
.guarantee-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: white; }
.g-row {
  display: grid;
  grid-template-columns: 56px 1.05fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  transition: background .2s var(--ease);
}
.g-row:last-child { border-bottom: none; }
.g-row:hover { background: var(--blue-50); }
.g-tile {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--f-display); font-size: 22px;
}
.g-code { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 8px; }
.g-main h4 { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.g-tag { font-size: 13.5px; color: var(--blue); margin-top: 8px; }
.g-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-self: center; }
.g-feats li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; }
.g-feats li::before { content: "—"; color: var(--blue); }
@media (max-width: 860px) {
  .g-row { grid-template-columns: 48px 1fr; gap: 18px; }
  .g-feats { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 560px) { .g-feats { grid-template-columns: 1fr; } }

/* ============ Frise de valeurs : séparateurs au lieu de cartes ============ */
.value-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.value-rail .v-item { padding: 28px 28px 8px 0; border-left: 1px solid var(--line); padding-left: 28px; position: relative; }
.value-rail .v-item:first-child { border-left: none; padding-left: 0; }
.value-rail .v-item::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--blue); }
.value-rail .v-item:first-child::before { left: 0; }
.value-rail .v-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted-2); }
.value-rail .v-item h5 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.value-rail .v-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 860px) {
  .value-rail { grid-template-columns: 1fr 1fr; }
  .value-rail .v-item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .value-rail { grid-template-columns: 1fr; }
  .value-rail .v-item { border-left: none; padding-left: 0; }
}

/* ============ Imagerie de fond (confiance / CTA) ============ */
.section-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.confiance .section-bg { opacity: 0.13; }
.confiance .inner { z-index: 1; }
.cta-band .section-bg { opacity: 0.20; mix-blend-mode: luminosity; }
.cta-band .wrap { position: relative; z-index: 1; }

/* ============ FAQ deux colonnes avec visuel ============ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.faq-aside { position: sticky; top: 100px; }
.faq-aside h2 { margin-top: 18px; }
.faq-media {
  margin-top: 28px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  box-shadow: var(--shadow-lg);
}
.faq-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 980px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .faq-media { aspect-ratio: 16/9; max-height: 260px; }
}

/* ============ Photos réelles (Unsplash) ============ */
/* Conteneurs d'images : la photo remplit la zone, le dégradé reste en fallback */
.hero-photo, .invest-card .photo, .res-card .img, .media { position: relative; }
.hero-photo > img,
.invest-card .photo > img,
.res-card .img > img,
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* Léger voile pour lisibilité des libellés éventuels au-dessus */
.invest-card .photo > img { z-index: 1; }
.invest-card .photo .placeholder,
.res-card .img > span { display: none; }

/* Bloc média générique réutilisable */
.media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, #d6e8ff, #a5c8f4);
  box-shadow: var(--shadow-lg);
}
.media.tall { aspect-ratio: 4/5; }
.media.wide { aspect-ratio: 16/10; }
.media.square { aspect-ratio: 1/1; }

/* Bandeau image pleine largeur (confiance / preuve) */
.photo-band {
  position: relative;
  min-height: 360px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  align-items: end;
  color: white;
}
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,26,61,0.1) 0%, rgba(5,26,61,0.85) 100%);
}
.photo-band .caption { position: relative; z-index: 1; padding: 40px; max-width: 48ch; }
.photo-band .caption h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px,3vw,40px); color: white; letter-spacing: -0.02em; }
.photo-band .caption p { color: rgba(255,255,255,0.85); margin-top: 10px; }

/* Photo dans le hero des sous-pages */
.page-hero .grid .media { aspect-ratio: 4/3; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .8s var(--ease) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

/* ============================================================
   HERO ACCUEIL — photo de fond + voile bleu, texte blanc (intro retirée)
   ============================================================ */
.home-hero {
  position: relative;
  padding: 150px 0 116px;
  text-align: center;
  background: var(--blue-deep);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
/* Photo de fond plein cadre */
.home-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
/* Voile bleu léger (plus discret) pour la lisibilité du texte blanc */
.home-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 32%, rgba(0,44,110,0.16) 0%, rgba(0,44,110,0) 60%),
    linear-gradient(180deg, rgba(0,40,105,0.40) 0%, rgba(0,42,108,0.28) 45%, rgba(0,36,95,0.46) 100%);
}
.home-hero .wrap { position: relative; z-index: 2; }

.ch-eyebrow {
  display: block; text-align: center;
  margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,18,48,0.45);
}
.ch-dot { display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; width: 7px; height: 7px; border-radius: 50%; background: #8fc4ff; box-shadow: 0 0 0 4px rgba(143,196,255,0.25); }
.ch-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; max-width: 22ch; margin: 0 auto;
  text-shadow: 0 2px 24px rgba(0,18,48,0.55), 0 1px 3px rgba(0,18,48,0.4);
}
.ch-title em { font-style: italic; color: #8fc4ff; }

/* Trait ondulé animé sous « GEST'IMMO » */
.ch-underline{
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.ch-uline{
  position: absolute;
  left: 0; right: 0;
  bottom: -0.26em;
  width: 100%;
  height: 0.42em;
  overflow: visible;
  color: #8fc4ff;               /* bleu clair accent (lisible sur photo) */
  pointer-events: none;
}
.ch-uline path{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;          /* pathLength=1 → tracé normalisé */
  stroke-dashoffset: 1;         /* caché au départ */
  transition: d 1s ease;        /* morphing de l'ondulation au survol */
  transition-duration: 1s !important;   /* survit au reset global reduced-motion */
}
/* Tracé qui se dessine quand le titre apparaît (classe .draw ajoutée en JS) */
.ch-underline.draw .ch-uline path{
  animation: ch-draw 2.5s ease-in-out forwards;
  /* exception au reset global reduced-motion (ligne ~72) : on veut ce tracé */
  animation-duration: 2.5s !important;
}
@keyframes ch-draw{
  from{ stroke-dashoffset: 1; opacity: .4; }
  to  { stroke-dashoffset: 0; opacity: 1; }
}
/* Au survol : l'onde s'inverse en douceur */
.ch-underline:hover .ch-uline path{
  d: path("M 0,10 Q 75,20 150,10 Q 225,0 300,10");
}
.home-hero .sh-rating { margin-top: 22px; }
.home-hero .sh-search { max-width: 880px; margin: 36px auto 0; }

/* Note d'avis + onglets en verre dépoli (au-dessus de la photo) */
.home-hero .sh-rating {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.home-hero .sh-rating b { color: #fff; }
.home-hero .sh-tabs {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.home-hero .sh-tabs button { color: rgba(255,255,255,0.92); }
.home-hero .sh-tabs button:hover { color: #fff; }
.home-hero .sh-tabs button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-md); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .home-hero .sh-search { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  .home-hero { padding: 96px 0 72px; }
  .home-hero .sh-form { flex-direction: column; }
  .home-hero .sh-form .btn { width: 100%; }
}

/* ============================================================
   TIMELINE ORBITALE — Nos expertises (animation)
   Palette Gest'immo : fond clair --bone, bleu --blue, encre --ink
   ============================================================ */
#metiers { position: relative; z-index: 2; }  /* la fiche dépliée passe au-dessus de la section suivante */
.orbital{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  padding: 18px;
  border-radius: 24px;
  overflow: visible;   /* ne pas rogner la fiche dépliée (haut/bas) */
  background: transparent;
}
.orbital-stage{
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
  margin: 0 auto;
}

/* Hub central pulsant */
.orbital-hub{
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00a2ff 0%, var(--blue) 45%, var(--blue-deep) 100%);
  box-shadow: 0 0 30px rgba(0, 123, 230, 0.55);
  z-index: 20;
  animation: orb-pulse 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}
.orbital-core{
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}
.orbital-ping{
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 1px solid rgba(0,123,230,0.35);
  animation: orb-ping 2.2s cubic-bezier(0,0,0.2,1) infinite;
}
.orbital-ping--2{ animation-delay: 0.7s; border-color: rgba(0,123,230,0.20); }

/* Anneau d'orbite */
.orbital-ring{
  position: absolute; top: 50%; left: 50%;
  width: 370px; height: 370px;
  max-width: 88%; max-height: 88%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(5,26,61,0.12);
}

/* Nœuds */
.orb-node{
  position: absolute; top: 50%; left: 50%;
  /* Masqués tant que le JS ne les a pas posés sur l'orbite : évite le flash
     où tous les nœuds apparaissent empilés au centre au rafraîchissement.
     (Sans JS, aucun nœud n'est créé, donc rien à afficher de toute façon.) */
  opacity: 0;
  transition: transform .7s cubic-bezier(0.4,0,0.2,1), opacity .7s ease;
  cursor: pointer;
}
.orb-glow{
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,162,255,0.35) 0%, rgba(0,162,255,0) 70%);
  opacity: 0; transition: opacity .4s ease;
}
.orb-dot{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  border: 2px solid var(--line-strong);
  box-shadow: 0 4px 14px -6px rgba(5,26,61,0.3);
  transition: transform .35s ease, background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.orb-label{
  position: absolute; left: 50%; top: 54px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted);
  transition: color .3s ease, transform .3s ease;
  pointer-events: none;
}

/* État : lié au nœud actif */
.orb-node.is-related .orb-dot{
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.orb-node.is-related .orb-label{ color: var(--blue-deep); }
.orb-node.is-pulsing .orb-dot{ animation: orb-pulse 1.2s ease-in-out infinite; }
.orb-node.is-related .orb-glow{ opacity: 1; }

/* État : sélectionné (pendant la montée) + actif (fiche déployée) */
.orb-node.is-selected, .orb-node.is-active{ cursor: default; }
.orb-node.is-selected .orb-dot,
.orb-node.is-active .orb-dot{
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  transform: scale(1.5);
  box-shadow: 0 0 24px rgba(0,123,230,0.5);
}
.orb-node.is-selected .orb-glow,
.orb-node.is-active .orb-glow{ opacity: 1; width: 88px; height: 88px; }
.orb-node.is-selected .orb-label,
.orb-node.is-active .orb-label{
  color: var(--ink); transform: translateX(-50%) scale(1.15);
}

/* Carte déployée */
.orb-card{
  position: absolute; left: 50%; top: 72px;
  width: 276px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(5,26,61,0.55);
  padding: 16px;
  text-align: left;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  transform-origin: top center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .34s cubic-bezier(.22,.61,.36,1),
              transform .34s cubic-bezier(.22,.61,.36,1),
              visibility .34s;
  z-index: 5;
}
.orb-node.is-active .orb-card{
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: .07s;
}
.orb-card-stem{
  position: absolute; top: -10px; left: 50%;
  width: 1px; height: 10px; background: var(--line-strong);
  transform: translateX(-50%);
}
.orb-card-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.orb-chip{
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-50);
  padding: 4px 9px; border-radius: 99px;
}
.orb-card-num{ font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted-2); }
.orb-card-title{ font-size: 17px; font-weight: 800; color: var(--ink); margin: 2px 0 4px; }
.orb-card-desc{ font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.orb-card-links{ display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.orb-card-link{
  display: flex; flex-direction: column;
  position: relative;
  padding: 8px 28px 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .2s ease;
}
.orb-card-link strong{ font-size: 13px; color: var(--ink); font-weight: 700; }
.orb-card-link span{ font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.orb-card-link i{
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-style: normal; color: var(--blue); font-size: 16px; opacity: 0; transition: opacity .2s, transform .2s;
}
.orb-card-link:hover{ background: var(--blue-50); }
.orb-card-link:hover i{ opacity: 1; transform: translateY(-50%) translateX(2px); }

.orbital-hint{
  margin: 14px 0 4px;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* Animations */
@keyframes orb-pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.55; }
}
@keyframes orb-ping{
  0%{ transform: scale(1); opacity: 0.8; }
  75%, 100%{ transform: scale(2.2); opacity: 0; }
}

/* Responsive */
@media (max-width: 560px){
  .orbital-stage{ max-height: 64vh; }
  .orbital-ring{ width: 270px; height: 270px; }
  .orb-card{ width: 244px; }
}

/* ============================================================
   TYPEWRITER (effet machine à écrire — vanilla)
   ============================================================ */
.typewriter{ white-space: nowrap; display: inline-block; vertical-align: baseline; }
.tw-cursor{
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: currentColor;
  animation: tw-blink 1s steps(1) infinite;
}
@keyframes tw-blink{
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================
   VARIANTES DE HERO — pour que les pages ne se ressemblent pas
   ============================================================ */
/* Miroir : on inverse les deux colonnes du hero */
.page-hero.hero-reverse .grid { grid-template-columns: 1fr 1.2fr; }
.page-hero.hero-reverse .grid > :first-child { order: 2; }
.page-hero.hero-reverse .grid > :last-child  { order: 1; }
@media (max-width: 900px){
  .page-hero.hero-reverse .grid { grid-template-columns: 1fr; }
  .page-hero.hero-reverse .grid > :first-child,
  .page-hero.hero-reverse .grid > :last-child { order: 0; }
}

/* Hero sombre (navy) — texte clair */
.page-hero.hero-dark{
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(0,123,230,0.28), transparent 60%),
    linear-gradient(160deg, #0a2a5e 0%, #051a3d 60%, #03112b 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.page-hero.hero-dark h1{ color: #fff; }
.page-hero.hero-dark h1 em{ color: #7eb8ff; }
.page-hero.hero-dark .lead{ color: rgba(255,255,255,0.82); }
.page-hero.hero-dark .crumb,
.page-hero.hero-dark .crumb a{ color: rgba(255,255,255,0.6); }
.page-hero.hero-dark .crumb span{ color: #fff; }
.page-hero.hero-dark .eyebrow{ color: #7eb8ff; }
.page-hero.hero-dark .eyebrow::before{ background: #7eb8ff; }
/* Bouton ghost lisible sur fond sombre */
.page-hero.hero-dark .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.page-hero.hero-dark .btn-ghost:hover{ color: var(--ink); background: #fff; border-color: #fff; }
/* La carte stats blanche ressort sur le navy ; le curseur typewriter suit la couleur du em */

/* ============================================================
   COUCHE ANIMATIONS & TRANSITIONS GLOBALES (premium, cohérent)
   Durées/easing uniformes ; transitions ciblées (perf) ; reveal au scroll.
   ============================================================ */
:root{
  --dur-fast: .18s;
  --dur: .28s;
  --dur-slow: .55s;
  /* --ease déjà défini : cubic-bezier(0.22,0.61,0.36,1) */
}

/* --- Liens de contenu : transition de couleur douce --- */
a:not(.btn):not(.nav-link):not(.brand){
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

/* --- Cartes : léger soulèvement + ombre au survol --- */
.invest-card, .res-card, .prop-card, .sim-card, .pillar, .v-item, .tl-step{
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.invest-card:hover, .res-card:hover, .prop-card:hover, .sim-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 24px 60px -24px rgba(5,26,61,0.35));
}
.pillar:hover, .v-item:hover{ transform: translateY(-3px); }

/* --- Champs de formulaire : focus fluide --- */
input, select, textarea{
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

/* --- Liens du footer & légaux --- */
.footer a{ transition: color var(--dur-fast) var(--ease); }

/* --- Images de carte média : zoom doux au survol du conteneur --- */
.media img, .photo-band img, .right-meta.bg-card .rm-bg{
  transition: transform var(--dur-slow) var(--ease);
  will-change: transform;
}
.media:hover img, .photo-band:hover img{ transform: scale(1.04); }

/* --- Fondu d'entrée de page (hors accueil cinématique) --- */
@keyframes pageIn{ from{ opacity: 0; } to{ opacity: 1; } }
body:not(.home){ animation: pageIn .4s var(--ease) both; }

/* ============================================================
   REVEAL AU SCROLL — fail-open (visible si JS absent), opacité+translation
   Activé seulement quand <html class="reveal-ready"> (ajouté par ui.js)
   ============================================================ */
html.reveal-ready [data-reveal]{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease),
              transform .7s var(--ease);
  will-change: opacity, transform;
}
html.reveal-ready [data-reveal].in-view{
  opacity: 1;
  transform: none;
}
/* Bandes pleine largeur : fondu d'ensemble (transition douce entre sections) */
html.reveal-ready [data-reveal].reveal-band{ transform: none; opacity: 0; transition: opacity .8s var(--ease); }

/* ============================================================
   RÉALISATIONS — Carrousel de projets (vanilla, fail-open)
   ============================================================ */
.realisations { padding: 96px 0; background: linear-gradient(180deg, #ffffff 0%, var(--bone) 100%); }
.real-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.real-head h2 { margin-top: 18px; }
.real-head .real-intro { color: var(--muted); max-width: 38ch; font-size: 15px; line-height: 1.6; }

.real-carousel { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }

.real-stage { position: relative; width: 100%; height: 30rem; perspective: 1200px; }
.real-slide {
  position: absolute; inset: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-100), var(--blue-200));
  box-shadow: var(--shadow-xl);
  opacity: 0; z-index: 1; pointer-events: none;
  transform: scale(0.8);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  will-change: transform, opacity;
}
.real-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-slide.is-active { opacity: 1; z-index: 3; pointer-events: auto; transform: translateX(0) translateY(0) scale(1) rotateY(0deg); }
.real-slide.is-prev  { opacity: 0.55; z-index: 2; transform: translateX(-16%) translateY(-4%) scale(0.83) rotateY(12deg); }
.real-slide.is-next  { opacity: 0.55; z-index: 2; transform: translateX(16%) translateY(-4%) scale(0.83) rotateY(-12deg); }

.real-content { display: flex; flex-direction: column; }
.real-panel { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.real-panel.is-out { opacity: 0; transform: translateY(12px); }
.real-meta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.real-name { font-family: var(--f-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px; line-height: 1.15; }
.real-quote { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 22px; min-height: 6.8rem; }
.real-result {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100); padding: 8px 14px; border-radius: var(--r-pill);
}

.real-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.real-dots { display: flex; gap: 8px; }
.real-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: var(--r-pill); background: var(--line-strong); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.real-dot.is-active { width: 26px; background: var(--blue); }
.real-arrows { display: flex; gap: 12px; }
.real-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.real-arrow:hover { background: var(--blue); transform: translateY(-2px); }
.real-arrow svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .realisations { padding: 72px 0; }
  .real-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }
  .real-carousel { grid-template-columns: 1fr; gap: 36px; }
  .real-stage { height: 22rem; order: -1; }
  .real-quote { min-height: 0; }
}
@media (max-width: 520px) {
  .real-stage { height: 17rem; }
  .real-slide.is-prev, .real-slide.is-next { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .real-slide { transition: opacity 0.4s var(--ease); }
}

/* ============================================================
   MENU MOBILE (tiroir hamburger) — affiché ≤1100px
   ============================================================ */
.menu-trigger {
  width: 44px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  color: var(--ink); background: transparent; border: none;
}
.menu-trigger:hover { background: var(--blue-50); }
.mt-bars { position: relative; display: block; width: 21px; height: 14px; }
.mt-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.mt-bars span:nth-child(1) { top: 0; }
.mt-bars span:nth-child(2) { top: 6px; }
.mt-bars span:nth-child(3) { top: 12px; }
html.nav-open .mt-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
html.nav-open .mt-bars span:nth-child(2) { opacity: 0; }
html.nav-open .mt-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* CTA clonés : masqués par défaut (desktop), affichés seulement dans le tiroir mobile */
.nav-cta { display: none; }

@media (max-width: 1280px) {
  .menu-trigger { display: inline-flex; }
  .header-cta { display: none; }

  /* Le <nav> devient un tiroir plein écran sous le header */
  .header .nav {
    display: block;
    position: fixed;
    top: var(--header-h, 77px); left: 0; right: 0; bottom: 0;   /* sous le header fixe */
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
    z-index: 90;
    /* Tiroir fermé : il couvre tout l'écran (position:fixed) et ses méga-menus
       forcent visibility:visible, ce qui réactiverait la capture des clics par-
       dessus le contenu de la page (footer, etc.). On coupe donc les événements
       pointeur tant que le tiroir est fermé. */
    pointer-events: none;
  }
  html.nav-open .header .nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  /* Le backdrop-filter du header crée un bloc conteneur qui casse le position:fixed
     du tiroir une fois la page défilée (il part hors écran) → on le neutralise
     pendant l'ouverture du menu. */
  html.nav-open .header { position: fixed; top: 0; left: 0; right: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  html.nav-open, html.nav-open body { overflow: hidden; }

  .header .nav .nav-item { display: block; position: static; }
  .header .nav > .nav-link,
  .header .nav .nav-item > .nav-link {
    display: flex; align-items: center;
    padding: 15px 4px; font-size: 17px; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .header .nav .nav-item > .nav-link::after { display: none; }
  .header .nav > .nav-link:hover,
  .header .nav .nav-item > .nav-link:hover { background: transparent; color: var(--blue); }

  /* Sous-menus déployés directement dans le tiroir */
  .header .nav .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    min-width: 0; padding: 2px 0 10px 14px; margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .header .nav .mega-h { padding: 12px 6px 4px; }
  .header .nav .mega a {
    padding: 11px 6px; font-size: 15px; color: var(--muted);
    justify-content: flex-start; gap: 8px; border-radius: var(--r-sm);
  }
  .header .nav .mega a i { display: none; }
  .header .nav .mega a:hover { color: var(--blue); background: var(--blue-50); }

  /* CTA clonés en bas du tiroir */
  .header .nav .nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
  .header .nav .nav-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
}


/* ============================================================
   BARÈME D'HONORAIRES (accueil)
   ============================================================ */
.bareme { padding: 96px 0; background: linear-gradient(180deg, var(--bone) 0%, #ffffff 100%); }
.bareme-card { max-width: 1040px; margin: 6px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.bareme-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 22px 30px; background: linear-gradient(120deg, var(--blue-700), var(--blue)); color: #fff; }
.bareme-card__head h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.bareme-card__head span { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.82); }
.bareme-cols { display: grid; grid-template-columns: 1fr 1fr; }
.bareme-cols .bareme-table:first-child { border-right: 1px solid var(--line); }
.bareme-table { width: 100%; border-collapse: collapse; }
.bareme-table th, .bareme-table td { padding: 15px 30px; font-size: 14.5px; text-align: left; vertical-align: middle; }
.bareme-table thead th { background: var(--bone); color: var(--muted); font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--line); }
.bareme-table thead th.hono { color: var(--blue); }
.bareme-table tbody td { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.bareme-table tbody tr:last-child td { border-bottom: none; }
.bareme-table th.hono, .bareme-table td.hono { text-align: right; white-space: nowrap; }
.bareme-table td.hono { color: var(--blue); font-weight: 700; }
.bareme-table tbody tr:hover td { background: var(--blue-50); }
.bareme-notes { max-width: 1040px; margin: 26px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-md); padding: 26px 30px; }
.bareme-notes h4 { margin: 0 0 16px; font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.bareme-notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.bareme-notes li { position: relative; padding-left: 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bareme-notes li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  background: var(--blue); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.bareme-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px;
  color: var(--muted-2); line-height: 1.55; }
.bareme-foot a { color: var(--blue); }

@media (max-width: 760px) {
  .bareme { padding: 64px 0; }
  .bareme-cols { grid-template-columns: 1fr; }
  .bareme-cols .bareme-table:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .bareme-table th, .bareme-table td { padding: 13px 20px; font-size: 13.5px; }
  .bareme-notes, .bareme-card__head { padding-left: 20px; padding-right: 20px; }
}

/* Barème — page dédiée : encart d'intro + conditions générales */
.bareme-intro { max-width: 1040px; margin: 0 auto 26px; display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); padding: 24px 30px; }
.bareme-intro__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50);
  color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-style: italic;
  font-family: var(--f-display); font-size: 18px; }
.bareme-intro h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.bareme-intro p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.bareme-cgu { max-width: 1040px; margin: 26px auto 0; background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: 26px 30px; }
.bareme-cgu h4 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.bareme-cgu p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.bareme-cgu p:last-child { margin-bottom: 0; }
.bareme-cgu strong { color: var(--ink-soft); }
@media (max-width: 760px) { .bareme-intro, .bareme-cgu { padding-left: 20px; padding-right: 20px; } }

/* Footer — réseaux sociaux */
.footer-social { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: var(--muted); background: var(--bone-2); border: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.footer-social a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; display: block; }

/* Perf : pause des animations infinies hors écran (défilement plus fluide) */
.testi-wall.anim-idle .testi-coltrack { animation-play-state: paused; }
.orbital.anim-idle .orbital-ping,
.orbital.anim-idle .orbital-core { animation-play-state: paused; }
