/* ================================================================
   CABINET PIERRE CONTI — style.css
   Base 62.5% · Jost · Palette crème/ardoise
================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Variables ────────────────────────────────────────────────── */
:root {
  /* Palette */
  --bg: #faf7f4;
  --bg-alt: #f0ebe4;
  --bg-dk: #e8e2da;
  --white: #fff;
  --text: #1e1e1e;
  --muted: #6b6560;
  --accent: #2d5a6b;
  --accent-dk: #1e3d4a;
  --accent-lt: #edf3f5;
  --yellow: #f3d58b;
  --yellow-lt: #fdf6e3;
  --border: #ddd8d2;

  /* Typographie */
  --fs-xs: 1.2rem;
  --fs-sm: 1.4rem;
  --fs-base: 1.6rem;
  --fs-md: 1.8rem;
  --fs-lg: 2.2rem;
  --fs-xl: 2.8rem;
  --fs-2xl: 3.6rem;
  --fs-3xl: 4.8rem;

  /* Espacements */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --sp-xl: 64px;
  --sp-2xl: 96px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;

  /* Transitions */
  --tr: .2s ease;
}

/* ── Typographie globale ──────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: 1.6rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 500;
}

/* ── Utilitaires ──────────────────────────────────────────────── */
.gWrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.gSection {
  padding-block: var(--sp-2xl);
  background: var(--bg);
}

.gSection--w {
  padding-block: var(--sp-2xl);
  background: var(--white);
}

.gSection--alt {
  padding-block: var(--sp-2xl);
  background: var(--bg-alt);
}

.gSection--dk {
  padding-block: var(--sp-2xl);
  background: var(--accent-dk);
  color: var(--white);
}

.gSection--dk .gLabel {
  color: var(--yellow);
}

.gSection--dk .gDivider {
  background: var(--yellow);
}

.gLabel {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.gLabel--white {
  color: rgba(255, 255, 255, .7);
}

.tC {
  text-align: center;
}

.mb1 {
  margin-bottom: var(--sp-sm);
}

.mb2 {
  margin-bottom: var(--sp-md);
}

.mb3 {
  margin-bottom: var(--sp-lg);
}

/* ── Boutons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--accent-dk);
}

/* ── Séparateur ───────────────────────────────────────────────── */
.gDivider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-block: var(--sp-md);
}

.gDivider--center {
  margin-inline: auto;
}

/* ── Header ───────────────────────────────────────────────────── */

#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 108px;
}

#siteHeader.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

#headerInner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

#headerLogo {
  flex-shrink: 0;
  color: var(--text);
  transition: opacity var(--tr);
  margin-right: 10%;
}

#headerLogo:hover {
  opacity: .75;
}

#headerLogo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 1rem auto 0.2rem auto;
}

#mainNav {
  flex: 1;
}

#mainNav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

#mainNav a {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text);
  letter-spacing: .02em;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}

#mainNav a:hover,
#mainNav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

#headerActions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.headerAction {
  font-size: var(--fs-sm);
  font-weight: 400;
  transition: color var(--tr);
}

.headerAction--clients {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.headerAction--clients svg {
  width: 16px;
  height: 16px;
}

.headerAction--clients:hover {
  color: var(--accent);
}

.headerAction--contact {
  padding: 8px 18px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-sm);
  transition: background var(--tr);
}

.headerAction--contact:hover {
  background: var(--accent-dk);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}

/* ── Panel mobile ─────────────────────────────────────────────── */
#mobileOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 190;
}

#mobileOverlay.open {
  display: block;
}

#mobilePanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

#mobilePanel.open {
  transform: translateX(0);
}

#mobilePanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--sp-md);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

#mobilePanelClose svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

#mobilePanel nav {
  padding: var(--sp-md);
}

#mobilePanel nav ul {
  display: flex;
  flex-direction: column;
}

#mobilePanel nav li a {
  display: block;
  padding: 12px 0;
  font-size: var(--fs-base);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--tr);
}

#mobilePanel nav li a:hover,
#mobilePanel nav li a.active {
  color: var(--accent);
}

.mobileSep {
  height: var(--sp-sm);
}

/* ── Panel overlay global ─────────────────────────────────────── */
#panelOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 490;
}

#panelOverlay.open {
  display: block;
}

/* ── Panneau latéral générique ────────────────────────────────── */
.sidePanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 500;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidePanel.open {
  transform: translateX(0);
}

.sidePanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.sidePanelTitle {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--accent);
}

.sidePanelClose {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--tr);
}

.sidePanelClose:hover {
  color: var(--text);
}

.sidePanelClose svg {
  width: 20px;
  height: 20px;
}

.sidePanelBody {
  padding: var(--sp-md);
  flex: 1;
}

/* ── Footer ───────────────────────────────────────────────────── */
#siteFooter {
  background: var(--text);
  color: rgba(255, 255, 255, .7);
  padding-top: var(--sp-2xl);
}

#footerInner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}

.footerLogo {
  color: var(--white);
  display: inline-block;
  margin-bottom: var(--sp-md);
}

.footerLogo svg {
  height: 32px;
  width: auto;
}

.footerLogo:hover {
  opacity: .8;
}

.footerTagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
  color: rgba(255, 255, 255, .55);
}

.footerAddress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .55);
}

.footerAddress a:hover {
  color: var(--white);
}

.footerColTitle {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.footerCol ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footerCol ul li a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .55);
  transition: color var(--tr);
}

.footerCol ul li a:hover {
  color: var(--white);
}

.footerEspaceClients {
  margin-top: var(--sp-lg);
}

#footerBottom {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
  padding-block: var(--sp-md);
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .35);
}

.footerCredit a {
  color: rgba(255, 255, 255, .35);
}

.footerCredit a:hover {
  color: rgba(255, 255, 255, .7);
}

/* ── Formulaires ──────────────────────────────────────────────── */
.fGroup {
  margin-bottom: var(--sp-md);
}

.fLabel {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.fInput,
.fTextarea,
.fSelect {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--tr);
  appearance: none;
}

.fInput:focus,
.fTextarea:focus,
.fSelect:focus {
  outline: none;
  border-color: var(--accent);
}

.fTextarea {
  resize: vertical;
  min-height: 120px;
}

.fError {
  font-size: var(--fs-xs);
  color: #c0392b;
  margin-top: 4px;
  display: none;
}

.fError.visible {
  display: block;
}

/* ── Confirmation globale ─────────────────────────────────────── */
#globalConfirm {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globalConfirmOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

#globalConfirmBox {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 48px 40px;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
}

#globalConfirmIco svg {
  width: 48px;
  height: 48px;
}

#globalConfirmBox.confirm--ok #globalConfirmIco {
  color: #2e7d32;
}

#globalConfirmBox.confirm--err #globalConfirmIco {
  color: #c0392b;
}

#globalConfirmTitle {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--accent);
}

#globalConfirmBox.confirm--err #globalConfirmTitle {
  color: #c0392b;
}

#globalConfirmMsg {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
}

#globalConfirmClose {
  margin-top: 8px;
  padding: 10px 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--tr);
}

#globalConfirmClose:hover {
  background: var(--accent-dk);
}

/* ── Cookies ──────────────────────────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: var(--sp-md);
  left: var(--sp-md);
  right: var(--sp-md);
  max-width: 560px;
  background: var(--text);
  color: rgba(255, 255, 255, .8);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  z-index: 2000;
  display: none;
  align-items: center;
  gap: var(--sp-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

#cookieText {
  font-size: var(--fs-sm);
  flex: 1;
  margin: 0;
}

#cookieText a {
  color: var(--white);
  text-decoration: underline;
}

#cookieActions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#cookieRefuse,
#cookieAccept {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

#cookieRefuse {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

#cookieRefuse:hover {
  background: rgba(255, 255, 255, .25);
}

#cookieAccept {
  background: var(--accent);
  color: var(--white);
}

#cookieAccept:hover {
  background: var(--accent-dk);
}

/* ── Alerte aucun résultat ────────────────────────────────────── */
#alerteSection {
  display: none;
  padding: var(--sp-xl);
  text-align: center;
  color: var(--muted);
}

#alerteSection.visible {
  display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--tr);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: .5;
}

/* ── Page header générique ────────────────────────────────────── */
.pageHeader {
  background: var(--bg-alt);
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-bottom: 1px solid var(--border);
}

/* ================================================================
   PAGE HEADER AVEC PHOTO + PANNEAU SLIDE
   Utilisé sur gestion.php et syndic.php
================================================================ */

.pageHeaderPhoto {
  position: relative;
  min-height: 360px;
  max-height: 50vh;
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Overlay sombre sur la partie droite de la photo */
.pageHeaderPhoto__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      transparent 38%,
      rgba(20, 40, 50, .45) 70%,
      rgba(20, 40, 50, .6) 100%);
  z-index: 1;
}

/* Panneau blanc qui slide depuis la gauche */
.pageHeaderPhoto__panel {
  position: relative;
  z-index: 2;
  background: rgba(250, 247, 244, .95);
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 480px;
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-sm);
  overflow: hidden;
  border-right: 3px solid var(--yellow);

  /* Animation slide depuis la gauche */
  animation: slideInPanel .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideInPanel {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pageHeaderPhoto__panel .breadcrumb {
  margin-bottom: var(--sp-xs);
}

.pageHeaderPhoto__panel .gLabel {
  margin-bottom: 4px;
}

.pageHeaderPhoto__panel h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--sp-xs);
}

.pageHeaderPhoto__intro {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1024px) {
  .pageHeaderPhoto__panel {
    padding-left: var(--sp-md);
  }
}

@media (max-width: 768px) {
  .pageHeaderPhoto {
    height: auto;
    max-height: none;
    min-height: auto;
    flex-direction: column;
  }

  .pageHeaderPhoto__overlay {
    display: none;
  }

  .pageHeaderPhoto__panel {
    max-width: 100%;
    border-right: none;
    border-bottom: 3px solid var(--yellow);
    padding: var(--sp-lg) var(--sp-md);
    animation: none;
    /* pas de slide sur mobile */
  }
}

.pageHeader__label {
  margin-bottom: var(--sp-xs);
}

.pageHeader__h1 {
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.pageHeader__intro {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #mainNav {
    display: none;
  }

  #headerActions {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #footerInner {
    grid-template-columns: 1fr 1fr;
  }

  .footerCol--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 56.25%;
  }

  #footerInner {
    grid-template-columns: 1fr;
  }

  #cookieBanner {
    flex-direction: column;
    align-items: flex-start;
  }

  #cookieActions {
    width: 100%;
    justify-content: flex-end;
  }

  h1 {
    font-size: var(--fs-2xl);
  }

  h2 {
    font-size: var(--fs-xl);
  }
}

/* ================================================================
   HOME
================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
#homeHero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#homeHeroBg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/pages/vue-marseille.jpg') center center / cover no-repeat;
}

#homeHeroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(20, 40, 50, .88) 0%,
      rgba(20, 40, 50, .65) 45%,
      rgba(20, 40, 50, .15) 100%);
}

#homeHeroContent {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-2xl);
  max-width: 700px;
}

#homeHeroContent h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--sp-md);
}

#homeHeroLead {
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-lg);
}

#homeHeroBtns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.btn--ghost-white {
  background: transparent;
  color: rgba(255, 255, 255, .75);
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .04em;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.btn--ghost-white:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
  color: var(--white);
}

#homeHeroScroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

#homeHeroScroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, .4);
  margin: auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  60% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ── Stats ────────────────────────────────────────────────────── */
#homeStatsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.homeStat {
  background: var(--bg);
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
}

.homeStat__num {
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  font-weight: 300;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.homeStat__label {
  font-size: var(--fs-sm);
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── Service (sections gestion / syndic / why) ────────────────── */
.homeService {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.homeService--rev {
  direction: rtl;
}

.homeService--rev>* {
  direction: ltr;
}

.homeService__text h2 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  margin-bottom: var(--sp-sm);
}

.homeService__list {
  margin-block: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.homeService__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text);
}

.homeService__list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.homeService__btns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-md);
}

.homeService__visual {
  position: relative;
}

.homeService__img {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dk);
}

.homeService__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.homeService__img:hover img {
  transform: scale(1.03);
}

.homeService__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent);
  color: var(--white);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(45, 90, 107, .25);
}

.homeService__badge--right {
  left: auto;
  right: -20px;
}

.homeService__badge svg {
  width: 32px;
  height: 32px;
}

/* ── Transactions ─────────────────────────────────────────────── */
.homeSectionHead {
  margin-bottom: var(--sp-xl);
}

.homeSectionHead h2 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
}

.homeSectionLead {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  margin-top: var(--sp-sm);
}

#homeTransGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.homeTrans {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: box-shadow var(--tr), transform var(--tr);
}

.homeTrans:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.homeTrans__ico {
  width: 52px;
  height: 52px;
  background: var(--accent-dk);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--yellow);
}

.homeTrans__ico svg {
  width: 28px;
  height: 28px;
}

.homeTrans h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
  margin-bottom: var(--sp-xs);
}

.homeTrans p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

.homeTransLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--tr);
}

.homeTransLink:hover {
  gap: 10px;
}

.homeTransLink svg {
  width: 14px;
  height: 14px;
}

/* ── Why cards ────────────────────────────────────────────────── */
.homeWhy__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.homeWhyCard {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  transition: background var(--tr);
}

.homeWhyCard:hover {
  background: var(--bg-dk);
}

.homeWhyCard svg {
  width: 32px;
  height: 32px;
  color: var(--yellow);
  margin-bottom: var(--sp-sm);
}

.homeWhyCard__title {
  font-size: var(--fs-base);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.homeWhyCard p:last-child {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ── CTA band ─────────────────────────────────────────────────── */
#homeCtaInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

#homeCtaText h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  margin-bottom: var(--sp-xs);
}

#homeCtaSub {
  color: rgba(255, 255, 255, .6);
  font-size: var(--fs-sm);
  max-width: 440px;
  line-height: 1.7;
}

#homeCtaBtns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Responsive home ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  #homeStatsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .homeService {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .homeService--rev {
    direction: ltr;
  }

  .homeService__badge {
    display: none;
  }

  #homeTransGrid {
    grid-template-columns: 1fr 1fr;
  }

  .homeWhy__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #homeHero {
    min-height: 100svh;
  }

  #homeStatsGrid {
    grid-template-columns: 1fr 1fr;
  }

  #homeTransGrid {
    grid-template-columns: 1fr;
  }

  .homeWhy__cards {
    grid-template-columns: 1fr;
  }

  #homeCtaInner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   PAGES DE SERVICES — commun
================================================================ */

/* ── Layout service (2 colonnes) ──────────────────────────────── */
.serviceLayout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.serviceLayout--rev {
  direction: rtl;
}

.serviceLayout--rev>* {
  direction: ltr;
}

.serviceLayout__text h2 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  margin-bottom: var(--sp-sm);
}

.serviceLayout__btns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
}

.serviceImg {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dk);
}

.serviceImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.serviceImg:hover img {
  transform: scale(1.03);
}

/* ── Titre de section ─────────────────────────────────────────── */
.sectionHead {
  max-width: 540px;
  margin-bottom: var(--sp-xl);
}

.sectionHead h2 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
}

/* ── Liste check ──────────────────────────────────────────────── */
.checkList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: var(--sp-md);
}

.checkList li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
}

.checkList li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ── CTA bande commune ────────────────────────────────────────── */
.gCtaBand {
  padding-block: var(--sp-xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.gCtaBandInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.gCtaBandText h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
}

.gCtaBandText p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}

.gCtaBandBtns {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ================================================================
   GESTION LOCATIVE
================================================================ */

/* ── Grille prestations ───────────────────────────────────────── */
.prestGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.prestCard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: box-shadow var(--tr), transform var(--tr);
}

.prestCard:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

.prestCard__ico {
  width: 48px;
  height: 48px;
  background: var(--accent-dk);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: var(--sp-md);
}

.prestCard__ico svg {
  width: 26px;
  height: 26px;
}

.prestCard h3 {
  font-size: var(--fs-md);
  font-weight: 400;
  margin-bottom: var(--sp-xs);
}

.prestCard p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ================================================================
   SYNDIC
================================================================ */

/* ── Missions ─────────────────────────────────────────────────── */

#syndicHeader {
  min-height: 58vh;
  background: url('/assets/images/pages/syndic-editorial-bg-1.jpg') center bottom / cover no-repeat;
  border: none;
}

.missionGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  overflow: hidden;
}

.missionItem {
  background: rgba(255, 255, 255, .04);
  padding: var(--sp-lg);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  transition: background var(--tr);
}

.missionItem:hover {
  background: rgba(255, 255, 255, .09);
}

.missionItem__num {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--yellow);
  opacity: .7;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.missionItem__body h3 {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.missionItem__body p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .6);
}

/* ================================================================
   INVESTISSEMENT
================================================================ */

/* ── Étapes ───────────────────────────────────────────────────── */
.etapesList {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.etape {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  padding: var(--sp-lg);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}

.etape:last-child {
  border-bottom: none;
}

.etape:hover {
  background: var(--accent-lt);
}

.etape__num {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 500;
  flex-shrink: 0;
}

.etape__body h3 {
  font-size: var(--fs-md);
  font-weight: 400;
  margin-bottom: 6px;
}

.etape__body p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}

/* ── Responsive services ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .serviceLayout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .serviceLayout--rev {
    direction: ltr;
  }

  .prestGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .missionGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .prestGrid {
    grid-template-columns: 1fr;
  }

  .gCtaBandInner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   ANNONCES — liste simple
================================================================ */

#adsList {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

/* ── Item annonce ─────────────────────────────────────────────── */
.adsItem {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
}

.adsItem:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
  transform: translateY(-2px);
}

.adsItem__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  min-height: 260px;
}

/* Alternance photo droite/gauche */
.adsItem:nth-child(even) .adsItem__link {
  direction: rtl;
}

.adsItem:nth-child(even) .adsItem__link>* {
  direction: ltr;
}

/* ── Photo ────────────────────────────────────────────────────── */
.adsItem__photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-dk);
}

.adsItem__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.adsItem:hover .adsItem__photo img {
  transform: scale(1.05);
}

/* Overlay hover */
.adsItem__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 61, 74, .52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.adsItem:hover .adsItem__overlay {
  opacity: 1;
}

.adsItem__overlayBtn {
  background: var(--white);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  letter-spacing: .03em;
  transform: translateY(8px);
  transition: transform .3s ease, background var(--tr), color var(--tr);
  white-space: nowrap;
}

.adsItem:hover .adsItem__overlayBtn {
  transform: translateY(0);
}

.adsItem__overlayBtn:hover {
  background: var(--accent);
  color: var(--white);
}

/* Badge statut */
.adsItem__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* ── Corps ────────────────────────────────────────────────────── */
.adsItem__body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-sm);
}

/* CP / arrondissement */
.adsItem__cp {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
}

/* Type de bien */
.adsItem__type {
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

/* Localisation */
.adsItem__lieu {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.adsItem__lieu svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Extrait descriptif */
.adsItem__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs avec pastilles */
.adsItem__specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.adsItem__spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text);
}

.adsItem__specIco {
  width: 32px;
  height: 32px;
  background: var(--accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adsItem__specIco svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Pied : ref + prix */
.adsItem__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border);
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.adsItem__ref {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .05em;
}

.adsItem__prix {
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1;
}

/* Aucun bien */
.adsEmpty {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.adsEmpty svg {
  width: 56px;
  height: 56px;
  color: var(--border);
}

.adsEmpty__title {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text);
}

.adsEmpty__sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.7;
}

.pageHeader__liens {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-md);
}

.pageHeader__lien {
  font-size: var(--fs-sm);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================
   FICHE BIEN — FIL D'ARIANE
   ================================================================ */

#breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #888;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

#breadcrumb li::after {
  content: '›';
  color: #ccc;
  font-size: 14px;
}

#breadcrumb li:last-child::after {
  content: none;
}

#breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color .15s;
}

#breadcrumb a:hover {
  color: var(--dark);
}

#breadcrumb li[aria-current="page"] {
  color: var(--dark);
  font-weight: 600;
}

/* Flèche retour dans le fil d'ariane */
.breadcrumbBack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.breadcrumbBack:hover {
  border-color: var(--dark);
  background: #f5f5f5;
}

.backArrow {
  display: block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

#breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================================================================
   FICHE BIEN — BANDEAU PHOTOS
   ================================================================ */

#photoBandeau {
  max-width: 1500px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

/* Grille photos */
#photoGrid {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 600px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

/* Image principale — occupe les 2 lignes */
.photoMain {
  grid-column: 1;
  grid-row: 1 / 3;
}

.photoSec1 {
  grid-column: 2;
  grid-row: 1;
}

.photoSec2 {
  grid-column: 3;
  grid-row: 1;
}

.photoSec3 {
  grid-column: 2;
  grid-row: 2;
}

.photoSec4 {
  grid-column: 3;
  grid-row: 2;
}

/* Cellule générique */
.photoCell {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
}

.photoCell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.photoCell:hover img {
  transform: scale(1.04);
}

/* Filigrane */
.photoWatermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to top, rgba(0, 0, 0, .35) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
  pointer-events: none;
}

.photoWatermark span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

/* Étiquette statut */
.photoStatut {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

/* Bouton "X photos" */
#photoShowAll {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, .92);
  color: var(--dark);
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  border-radius: 3px;
  transition: background .15s;
}

#photoShowAll:hover {
  background: var(--white);
}

/* Bandeau agence sans photos */
#photoBandeauAgence {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 4px;
}

#bandeauAgenceImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- Responsive grille photos ---- */

/* < 1536px : 1 grande + 2 petites empilées */
@media (max-width: 1536px) {
  #photoGrid {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 600px;
  }

  .photoSec1 {
    grid-column: 2;
    grid-row: 1;
  }

  .photoSec2 {
    grid-column: 2;
    grid-row: 2;
  }

  .photoSec3,
  .photoSec4 {
    display: none;
  }
}

/* < 1200px : grande seule, ratio 3/2 pleine largeur */
@media (max-width: 1200px) {
  #photoBandeau {
    padding: 0;
  }

  #photoGrid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 0;
  }

  .photoSec1,
  .photoSec2,
  .photoSec3,
  .photoSec4 {
    display: none;
  }

  .photoMain {
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  #breadcrumb {
    padding: 10px 16px;
  }
}

/* ================================================================
   FICHE BIEN — LIGHTBOX
   ================================================================ */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* bloque tout scroll interne */
}

#lbMain {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 0;
  /* indispensable pour que flex:1 ne déborde pas */
  padding: 48px 80px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

#lbImg {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  /* 180px = hauteur bande miniatures + nav + counter */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

#lbCounter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  letter-spacing: .06em;
}

/* Boutons nav lightbox */
#lbClose,
#lbPrev,
#lbNext {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: opacity .15s;
  z-index: 10;
  line-height: 1;
}

#lbClose:hover,
#lbPrev:hover,
#lbNext:hover {
  opacity: .6;
}

#lbClose {
  top: 16px;
  right: 20px;
  font-size: 24px;
}

#lbPrev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 0 16px;
}

#lbNext {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  padding: 0 16px;
}

/* Bande miniatures */
#lbThumbs {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  flex-shrink: 0;
  width: 100%;
}

.lbThumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  overflow: hidden;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s;
  border: 2px solid transparent;
  border-radius: 2px;
}

.lbThumb:hover {
  opacity: .75;
}

.lbThumb.active {
  opacity: 1;
  border-color: var(--white);
}

.lbThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #lbMain {
    padding: 48px 48px 0;
  }

  #lbPrev {
    font-size: 36px;
    padding: 0 8px;
  }

  #lbNext {
    font-size: 36px;
    padding: 0 8px;
  }

  .lbThumb {
    width: 54px;
    height: 40px;
  }
}

/* ================================================================
   FICHE BIEN
   ================================================================ */

#cardTitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

/* --- Section 1 : layout deux colonnes --- */
/* ================================================================
   FICHE BIEN — En-tête + Corps central
   Remplace les blocs #cardTitle, #ficheSection1, #ficheBody,
   #ficheTabs, .ficheTab*, #tabLocaliser, .ficheRightTitle
================================================================ */

/* ── En-tête de fiche ─────────────────────────────────────────── */
#ficheHead {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-lg) 0;
  background: var(--bg-alt);
  margin-bottom: var(--sp-lg);
}

#ficheHeadInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

#ficheHeadText h1 {
  font-size: clamp(2.2rem, 2.8vw, 3.2rem);
  font-weight: 300;
  text-transform: capitalize;
  margin-bottom: 4px;
  line-height: 1.2;
}

#ficheH2 {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}

#fichePrixRef {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

#fichePrixBig {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  color: var(--accent);
  white-space: nowrap;
}

#ficheRefNum {
  font-size: var(--fs-sm);
  color: var(--muted);
  letter-spacing: .04em;
}

/* Bouton contact sticky mobile */
.btnContactSticky {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(45, 90, 107, .35);
  cursor: pointer;
  transition: background var(--tr);
}

.btnContactSticky:hover {
  background: var(--accent-dk);
}

.fichePanelBien {
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--bg-alt);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-md);
}

.ficheRgpd {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.ficheRgpd a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Section 1 : layout deux colonnes ────────────────────────── */
#ficheSection1 {
  padding-bottom: var(--sp-2xl);
}

#ficheBody {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

/* ── Titres de colonnes ───────────────────────────────────────── */
.ficheColTitle {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-xs);
  border-bottom: 1px solid var(--border);
}

.ficheColTitle--map {
  margin-top: var(--sp-xl);
}

/* ── Lignes caractéristiques ──────────────────────────────────── */
.ficheRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: var(--fs-sm);
  color: var(--text);
}

.ficheRow:last-of-type {
  border-bottom: none;
}

.ficheRow span:last-child {
  margin-left: auto;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.ficheRow--bold {
  font-weight: 500;
  background: var(--accent-lt);
  padding: 10px 8px;
  border-radius: var(--r-sm);
  border-bottom: none;
  margin-bottom: 4px;
}

.ficheRow--bold span:last-child {
  color: var(--accent);
}

.ficheRow--sub {
  padding-left: 20px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.ficheRow--tag {
  color: var(--accent);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  border-bottom: none;
  padding: 4px 0 8px;
}

.ficheSubNote {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: normal;
}

/* ── Icônes ───────────────────────────────────────────────────── */
.ficheIcon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .5;
}

.ficheIcon--surf {
  background-image: url('/assets/images/icons/surf.svg');
}

.ficheIcon--door {
  background-image: url('/assets/images/icons/door.svg');
}

.ficheIcon--bed {
  background-image: url('/assets/images/icons/bed.svg');
}

.ficheIcon--balcony {
  background-image: url('/assets/images/icons/balcony.svg');
}

.ficheIcon--terrace {
  background-image: url('/assets/images/icons/terrace.svg');
}

.ficheIcon--kitchen {
  background-image: url('/assets/images/icons/kitchen.svg');
}

.ficheIcon--sdb {
  background-image: url('/assets/images/icons/sdb.svg');
}

.ficheIcon--sde {
  background-image: url('/assets/images/icons/sde.svg');
}

.ficheIcon--wc {
  background-image: url('/assets/images/icons/wc.svg');
}

.ficheIcon--parking {
  background-image: url('/assets/images/icons/parking.svg');
}

.ficheIcon--box {
  background-image: url('/assets/images/icons/box.svg');
}

.ficheIcon--pool {
  background-image: url('/assets/images/icons/pool.svg');
}

.ficheIcon--elevator {
  background-image: url('/assets/images/icons/elevator.svg');
}

.ficheIcon--stairs {
  background-image: url('/assets/images/icons/stairs.svg');
}

.ficheIcon--furniture {
  background-image: url('/assets/images/icons/furniture.svg');
}

.ficheIcon--heating {
  background-image: url('/assets/images/icons/heating.svg');
}

.ficheIcon--room {
  background-image: url('/assets/images/icons/room.svg');
}

/* ── Carte inline ─────────────────────────────────────────────── */
#ficheMapWrap {
  margin-top: var(--sp-lg);
}

#cardmap {
  width: 100%;
  height: 260px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── Colonne droite ───────────────────────────────────────────── */
#ficheDesc {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text);
  margin-bottom: var(--sp-lg);
}

.ficheDispo {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-md);
}

.ficheGeorisques {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-style: italic;
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--border);
}

.ficheGeorisques a {
  color: var(--muted);
  text-decoration: underline;
}

/* ── Prix / honoraires ────────────────────────────────────────── */
#fichePrix {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
}

.fichePrixRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: var(--fs-sm);
}

.fichePrixRow:last-of-type {
  border-bottom: none;
}

.fichePrixRow strong {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--accent);
  white-space: nowrap;
}

.fichePrixNote {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #ficheBody {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  #ficheMapWrap {
    margin-top: var(--sp-md);
  }

  #cardmap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  #ficheHeadInner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btnContactSticky {
    display: block;
  }

  #ficheHead .btn--accent {
    display: none;
  }

  /* remplacé par le sticky */
}

/* --- Section 2 : DPE + Copropriété --- */
#ficheSection2 {
  padding: 40px 24px 48px;
  max-width: 1200px;
  margin: 40px auto 0;
  border-top: 1px solid #eee;
}

#ficheBody2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ficheSection2Title {
  font-weight: 600;
  margin: 0 0 20px;
}

/* ================================================================
   DPE — diagramme barres horizontales + panneau détaillé
   ================================================================ */

.dpeSubTitle {
  font-weight: 600;
  color: #333;
  margin: 16px 0 8px;
}

.dpeBar {
  display: flex;
  gap: 4px;
}

.dpeBarItem {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  border-radius: 4px;
  opacity: .45;
  transition: opacity .2s, transform .2s;
}

.dpeBarItem--active {
  opacity: 1;
  transform: scaleY(1.15);
}

.dpeBarPointer {
  display: flex;
  gap: 4px;
  min-height: 40px;
  align-items: flex-start;
  margin-top: 2px;
}

.dpeBarCell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dpeArrow {
  color: #333;
  line-height: 1;
}

.dpeVal {
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.dpeUnit {
  color: #999;
  font-size: 10px;
}

.ficheDpeRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ficheDpeDetail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 16px;
  background: none;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 3px;
  transition: background .15s, color .15s;
}

.ficheDpeDetail:hover {
  background: var(--dark);
  color: var(--white);
}

.ficheDpeNote {
  color: var(--muted);
  margin: 8px 0 0;
}

/* Panneau DPE — échelles détaillées */
.dpePanelTitle {
  font-weight: 600;
  color: var(--dark);
  margin: 16px 0 4px;
}

.dpePanelSub {
  font-size: 11px;
  color: #999;
  margin: 0 0 8px;
  font-style: italic;
}

.dpePanelNote {
  color: var(--muted);
  margin-top: 8px;
}

/* Conteneur — position relative pour l'encadré absolu */
.dpeScale {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.dpeScaleRow {
  display: flex;
  align-items: center;
}

.dpeScaleBar {
  height: 32px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 20px;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  max-width: 250px;
  transition: height .15s;
}

.dpeScaleBar--active {
  height: 38px;
  opacity: 1;
  position: relative;
  overflow: visible;
}

.dpeScaleBar--active::after {
  content: '';
  position: absolute;
  right: calc(-1 * var(--trait-width, 0px));
  top: 50%;
  transform: translateY(-50%);
  width: var(--trait-width, 0px);
  height: 2px;
  background: var(--dpe-color, #999);
  z-index: 1;
}

.dpeScaleTag {
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
  opacity: .9;
}

/* Encadré absolu — ne perturbe pas le flux des barres */
.dpeScaleDetail {
  position: absolute;
  right: 1rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  gap: 3px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  z-index: 10;
  /* top calculé en JS via data-index */
}

.dpeScaleDetail strong {
  color: var(--dark);
}

/* DPE preview */
.ficheDpeRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.ficheDpePreview {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.ficheDpeLetter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: 6px;
  text-align: center;
}

.ficheDpeLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 8px;
}

.ficheDpeVal {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.ficheDpeNum {
  font-size: 10px;
  margin-top: 6px;
  opacity: .8;
}

.ficheDpeLetter--A {
  background: #00b050;
  color: var(--white);
}

.ficheDpeLetter--B {
  background: #92d050;
  color: var(--white);
}

.ficheDpeLetter--C {
  background: #ffff00;
  color: #333;
}

.ficheDpeLetter--D {
  background: #ffc000;
  color: var(--white);
}

.ficheDpeLetter--E {
  background: #ff8000;
  color: var(--white);
}

.ficheDpeLetter--F {
  background: #ff0000;
  color: var(--white);
}

.ficheDpeLetter--G {
  background: #c00000;
  color: var(--white);
}

.ficheDpeDetail {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  background: none;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 3px;
  transition: background .15s, color .15s;
}

.ficheDpeDetail:hover {
  background: var(--dark);
  color: var(--white);
}

.ficheDpeNote {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Panneau DPE */
.dpePanelIntro {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin: 20px 0 12px;
}

.dpePanelNote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Copropriété */
.ficheCoproRow {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ficheCoproRow:last-child {
  border-bottom: none;
}

.ficheCoproRow--split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ficheCoproRow--split span:last-child {
  font-weight: 600;
  color: var(--dark);
}

.ficheCoproRow--alert {
  color: #c0392b;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {

  #ficheBody,
  #ficheBody2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #ficheSection2 {
    border-top: none;
  }
}

/* ================================================================
   OVERLAY ET PANNEAUX LATÉRAUX GÉNÉRIQUES
   ================================================================ */

#panelOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1500;
}

#panelOverlay.open {
  display: block;
}

.sidePanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  z-index: 1501;
  padding: 32px 28px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}

.sidePanel.open {
  transform: translateX(0);
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.panelTitle {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--red);
  letter-spacing: .01em;
  text-transform: none;
  font-family: 'Jost', sans-serif;
}

.panelClose {
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .15s;
}

.panelClose:hover {
  color: var(--red);
}

/* ================================================================
   PANNEAU CONTACT FICHE BIEN
   ================================================================ */

.btnContact {
  margin: auto;
  padding: 12px 28px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity .15s;
  white-space: nowrap;
}

.btnContact:hover {
  opacity: .85;
}

#contactPanelRef {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* ── Champs formulaire contact ────────────────────────────────── */

.contactField {
  margin-bottom: 18px;
}

.contactField label {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 6px;
}

.contactField input,
.contactField textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 1.5rem;
  font-family: 'Jost', sans-serif;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  background: #fcfbfa;
  transition: border-color .15s;
}

.contactField input:focus,
.contactField textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contactField textarea {
  min-height: 110px;
  resize: vertical;
}

/* ── Bouton envoi ─────────────────────────────────────────────── */

#contactFicheSubmit,
#contactPageSubmit {
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0 13px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 2rem;
  transition: background .15s;
}

#contactFicheSubmit:hover,
#contactPageSubmit:hover {
  background: var(--red-dk);
}

#contactFicheSubmit:disabled,
#contactPageSubmit:disabled {
  opacity: .5;
  cursor: default;
}

#contactFicheConfirm {
  padding: 24px 0;
  text-align: center;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
}

.btnContactSticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 16px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {
  .btnContact {
    display: none;
  }

  .btnContactSticky {
    display: block;
  }

  .sidePanel {
    width: 100%;
  }
}

/* ================================================================
   CONTACT
================================================================ */

#contactLayout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-xl);
  align-items: flex-start;
}

#contactServices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.serviceBtn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
}

.serviceBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.serviceBtn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.fRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.contactInfoBlock {
  margin-bottom: var(--sp-lg);
}

.contactInfoBlock__title {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contactInfoBlock p {
  font-size: var(--fs-sm);
  color: var(--text);
}

.contactInfoLink {
  font-size: var(--fs-sm);
  color: var(--accent);
  transition: opacity var(--tr);
}

.contactInfoLink:hover {
  opacity: .75;
}

/* ================================================================
   AGENCE
================================================================ */

.valeursGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.valeurCard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: box-shadow var(--tr), transform var(--tr);
}

.valeurCard:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

.valeurCard__ico {
  width: 48px;
  height: 48px;
  background: var(--accent-dk);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: var(--sp-md);
}

.valeurCard__ico svg {
  width: 26px;
  height: 26px;
}

.valeurCard h3 {
  font-size: var(--fs-md);
  font-weight: 400;
  margin-bottom: 8px;
}

.valeurCard p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.partenairesGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.partenaireItem {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   ESPACE CLIENTS
================================================================ */

#espaceClientsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.espaceCard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: box-shadow var(--tr);
}

.espaceCard:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
}

.espaceCard__ico {
  width: 64px;
  height: 64px;
  background: var(--accent-lt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.espaceCard__ico svg {
  width: 36px;
  height: 36px;
}

.espaceCard h2 {
  font-size: var(--fs-xl);
  font-weight: 300;
}

.espaceCard p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.espaceCard .btn {
  align-self: flex-start;
}

.espaceCard .btn svg {
  width: 13px;
  height: 13px;
}

.espaceCard__note {
  font-size: var(--fs-xs) !important;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-sm);
  margin-top: auto;
}

#espaceClientsHelp {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--muted);
}

#espaceClientsHelp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

#espaceClientsHelp a {
  color: var(--accent);
  text-decoration: underline;
}

/* ================================================================
   RESPONSIVE — pages intérieures
================================================================ */

@media (max-width: 1024px) {
  .valeursGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partenairesGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  #bienCorpsLayout {
    grid-template-columns: 1fr;
  }

  #bienSide {
    position: static;
  }

  #bienGalerieGrid {
    grid-template-rows: 200px 200px;
  }

  #contactLayout {
    grid-template-columns: 1fr;
  }

  #espaceClientsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .adsItem__link {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .adsItem:nth-child(even) .adsItem__link {
    direction: ltr;
  }

  .adsItem__photo {
    aspect-ratio: 16 / 9;
  }

  .adsItem__body {
    padding: var(--sp-md);
  }

  .adsItem__type {
    font-size: var(--fs-lg);
  }

  .adsItem__prix {
    font-size: var(--fs-xl);
  }

  #bienGalerieGrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }

  .bienGalerieItem--main {
    grid-row: auto;
  }

  #bienHeaderInner {
    flex-direction: column;
  }

  #bienHeaderPrix {
    text-align: left;
  }

  .fRow {
    grid-template-columns: 1fr;
  }

  .valeursGrid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   DEVIS SYNDIC
================================================================ */

#devisLayout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-xl);
  align-items: flex-start;
}

#devisFormWrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
}

#devisProgress {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: var(--sp-xs);
  overflow: hidden;
}

#devisProgressBar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s ease;
  width: 0%;
}

#devisStepLabel {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--sp-lg);
}

.devisStepTitle {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

.devisCheckGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.devisCheckLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--tr), background var(--tr);
}

.devisCheckLabel:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.devisCheckLabel input {
  accent-color: var(--accent);
}

.devisRadioGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.devisRadioLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--tr), background var(--tr);
}

.devisRadioLabel:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.devisRadioLabel input {
  accent-color: var(--accent);
}

#devisNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
  gap: var(--sp-sm);
}

/* Aside devis -->
#devisInfo {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.devisInfoBlock {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
}

.devisInfoBlock__ico {
  width: 36px;
  height: 36px;
  background: var(--accent-lt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.devisInfoBlock__ico svg { width: 20px; height: 20px; }

.devisInfoBlock h3 {
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 2px;
}
.devisInfoBlock p { font-size: var(--fs-sm); color: var(--muted); }

.devisInfoSep {
  height: 1px;
  background: var(--border);
  margin-block: var(--sp-xs);
}

.devisInfoContact {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.devisInfoContact a {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 4px;
  font-size: var(--fs-md);
}

/* ================================================================
   PAGES LÉGALES
================================================================ */

.legalContent {
  max-width: 760px;
}

.legalContent h2 {
  font-size: var(--fs-lg);
  font-weight: 400;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legalContent h2:first-child {
  margin-top: 0;
}

.legalContent p {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.8;
}

.legalContent a {
  color: var(--accent);
  text-decoration: underline;
}

.legalContent ul li {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* ================================================================
   RESPONSIVE — devis + légales
================================================================ */

@media (max-width: 1024px) {
  #devisLayout {
    grid-template-columns: 1fr;
  }

  #devisInfo {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .devisInfoSep {
    display: none;
  }
}

@media (max-width: 640px) {
  #devisFormWrap {
    padding: var(--sp-md);
  }

  .devisCheckGrid {
    grid-template-columns: 1fr;
  }

  #devisNav {
    flex-wrap: wrap;
  }
}

/* ================================================================
   GESTION — Section intro
================================================================ */

#gestionIntro {
  background-color: #fff;
  position: relative;
  padding: 0;
}

#gestionIntro .gWrap {
  position: relative;
  z-index: 1;
}

#gestionIntro .serviceLayout {
  display: block;
  width: 52%;
  min-width: 380px;
  padding: var(--sp-2xl) 0;
}

#gestionIntro .serviceLayout__text>p:first-of-type {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--accent-dk);
  border-left: 3px solid var(--yellow);
  padding-left: var(--sp-md);
  margin-bottom: var(--sp-md);
  line-height: 1.7;
}

/* Masquer la colonne visuelle — l'image est en background */
#gestionIntro .serviceLayout__visual {
  display: none;
}

@media (max-width: 1024px) {
  #gestionIntro {
    background-size: cover;
    background-position: center top;
  }

  #gestionIntro::before {
    background: linear-gradient(to bottom,
        var(--yellow-lt) 0%,
        rgba(253, 246, 227, .92) 40%,
        rgba(253, 246, 227, .7) 100%);
  }

  #gestionIntro .serviceLayout {
    width: 100%;
    min-width: auto;
    padding: var(--sp-xl) 0;
  }
}

/* ================================================================
   GESTION — Section GLI (image gauche, texte droite — inversé)
================================================================ */

#gestionGLI {
  background-color: var(--bg);
  background-image: url('/assets/images/pages/gestion-gli.jpg');
  background-size: 52% auto;
  background-position: left center;
  background-repeat: no-repeat;
  position: relative;
  padding: 0;
}

/* Fondu : recouvre la photo de gauche à droite */
#gestionGLI::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
      var(--bg) 40%,
      rgba(250, 247, 244, .85) 55%,
      transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#gestionGLI .gWrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

#gestionGLI .serviceLayout {
  display: block;
  width: 52%;
  min-width: 380px;
  padding: var(--sp-2xl) 0;
}

/* Masquer la colonne visuelle */
#gestionGLI .serviceLayout__visual {
  display: none;
}

@media (max-width: 1024px) {
  #gestionGLI {
    background-size: cover;
    background-position: center top;
  }

  #gestionGLI::before {
    background: linear-gradient(to bottom,
        var(--bg) 0%,
        rgba(250, 247, 244, .92) 40%,
        rgba(250, 247, 244, .7) 100%);
  }

  #gestionGLI .gWrap {
    justify-content: flex-start;
  }

  #gestionGLI .serviceLayout {
    width: 100%;
    min-width: auto;
    padding: var(--sp-xl) 0;
  }
}

/* ================================================================
   SYNDIC — Section intro
================================================================ */

#syndicIntro {
  background: var(--bg);
  color: var(--text);
}

#syndicIntroInner {
  max-width: 760px;
  margin: 0 auto;
  padding: 5% 0;
  text-align: center;
}

#syndicIntroInner .gLabel {
  color: var(--accent);
}

#syndicIntroInner h2 {
  color: var(--text);
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  margin-bottom: var(--sp-sm);
}

#syndicIntroInner .gDivider {
  background: var(--accent);
  margin-inline: auto;
  margin-bottom: var(--sp-lg);
}

#syndicIntroInner>p {
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 300;
  margin-bottom: var(--sp-xl);
}

.syndicPoints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  text-align: left;
}

.syndicPoint {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: background var(--tr), box-shadow var(--tr);
}

.syndicPoint:hover {
  background: var(--accent-lt);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.syndicPoint__ico {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dk);
  margin-bottom: var(--sp-md);
}

.syndicPoint__ico svg {
  width: 22px;
  height: 22px;
}

.syndicPoint__title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.syndicPoint p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

#syndicIntroBtns {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   INVESTISSEMENT — Section intro
================================================================ */

#investIntro .serviceLayout {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

#investIntroVisual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

#investIntroVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}

#investIntroVisual:hover img {
  transform: scale(1.03);
}

#investIntroText {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#investIntroText h2 {
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 300;
  margin-bottom: var(--sp-sm);
}

.investCompetence {
  background: var(--yellow-lt);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-md);
  margin-block: var(--sp-lg);
}

.investCompetence__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.investCompetence p {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive nouvelles sections ───────────────────────────── */
@media (max-width: 1024px) {
  .syndicPoints {
    grid-template-columns: 1fr;
  }

  #investIntro .serviceLayout {
    grid-template-columns: 1fr;
  }

  #investIntroVisual {
    min-height: 280px;
  }

  #investIntroText {
    padding: var(--sp-lg) 0;
  }
}

@media (max-width: 640px) {
  .syndicPoints {
    grid-template-columns: 1fr;
  }
}

/* ── Section missions syndic — fond sombre ───────────────────── */
#syndicMissions {
  background: var(--accent-dk);
  color: var(--white);
}

#syndicMissions .sectionHead h2 {
  color: var(--white);
}

#syndicMissions .sectionHead .gLabel {
  color: var(--yellow);
}

#syndicMissions .sectionHead .gDivider {
  background: var(--yellow);
}