/* ================================================================
   MA-LOCATION V2 — Design System
   Custom CSS, no Bootstrap dependency
   Fonts: Montserrat + Lato (Google Fonts, loaded in layout)
   ================================================================ */

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

:root {
  --navy:        #1b2d6e;
  --blue:        #1f5abf;
  --cyan:        #00a8d6;
  --cyan-light:  #33c0e8;
  --cyan-pale:   #e8f7fc;
  --orange:      #f0622a;
  --orange-light:#ff7d48;
  --orange-pale: #fff0eb;
  --ink:         #1a2036;
  --ink-soft:    #455070;
  --ink-muted:   #8a93b0;
  --bg:          #f4f6fb;
  --white:       #ffffff;
  --border:      #dde3f0;
  --dispo:       #0b8a5e;
  --bientot:     #c47a00;
  --radius:      10px;
  --shadow:      0 2px 14px rgba(27,45,110,.08);
  --shadow-hover:0 8px 32px rgba(27,45,110,.16);
}

html { scroll-behavior: smooth; }
body.v2 {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* Topbar supprimée — remplacée par une bande dégradée dans le layout */

/* ================================================================
   HEADER
   ================================================================ */
.v2-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(27,45,110,.07);
}
.v2-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v2-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.v2-logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.v2-logo-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
  line-height: 1;
}
.v2-logo-wordmark .dot-be { color: var(--cyan); }
.v2-logo-tagline {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
.v2-nav { display: flex; gap: 2px; align-items: center; }
.v2-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.v2-nav a:hover { background: var(--cyan-pale); color: var(--navy); }
.v2-nav a.active { background: var(--navy); color: white; }
.v2-nav a.nav-cta { margin-left: 8px; background: var(--orange); color: white; }
.v2-nav a.nav-cta:hover { background: var(--orange-light); }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.v2-flash { max-width: 1200px; margin: 16px auto 0; padding: 0 28px; }

/* ================================================================
   FOOTER
   ================================================================ */
.v2-footer { background: var(--navy); padding: 40px 28px 24px; }
.v2-footer-top {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.v2-footer-brand .v2-logo-wordmark { color: white; font-size: 18px; }
.v2-footer-brand .v2-logo-tagline { color: rgba(255,255,255,.4); margin-top: 4px; }
.v2-footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.v2-footer-nav a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s;
}
.v2-footer-nav a:hover { color: var(--cyan-light); }
.v2-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ================================================================
   INDEX — HERO
   ================================================================ */
.v2-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162358 45%, #0d3d7a 100%);
  padding: 56px 28px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,168,214,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(240,98,42,.08) 0%, transparent 50%);
}
.v2-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 56px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.v2-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,168,214,.15);
  color: var(--cyan-light);
  border: 1px solid rgba(0,168,214,.3);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.v2-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.v2-hero h1 em { font-style: normal; color: var(--cyan); }
.v2-hero p { color: rgba(255,255,255,.5); font-size: 15px; font-weight: 300; }

/* ================================================================
   INDEX — FILTERS
   ================================================================ */
.v2-filters-wrap {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}
.v2-filters-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(27,45,110,.13);
  padding: 22px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}
.v2-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 160px;
}
.v2-filter-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v2-filter-select {
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 36px 10px 13px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238a93b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  cursor: pointer;
  transition: border-color .15s;
  width: 100%;
}
.v2-filter-select:focus { outline: none; border-color: var(--cyan); }
.v2-filter-sep { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; align-self: center; }
.v2-filter-info { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; align-self: center; }
.v2-filter-count-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.v2-filter-count-label { font-size: 12px; color: var(--ink-muted); }

/* ================================================================
   INDEX — MAIN GRID
   ================================================================ */
.v2-main {
  max-width: 1200px;
  margin: 44px auto 90px;
  padding: 0 28px;
}
.v2-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.v2-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.2px;
}
.v2-section-title span {
  font-family: 'Lato', sans-serif;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}
.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ================================================================
   INDEX — CARDS
   ================================================================ */
.v2-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: v2FadeUp .45s ease both;
  text-decoration: none;
  color: inherit;
}
.v2-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.v2-card-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 190px;
  gap: 2px;
  background: #c8d3ea;
  position: relative;
}
.v2-photo-main { grid-row: 1 / 3; overflow: hidden; }
.v2-photo-main img,
.v2-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.v2-card:hover .v2-photo-main img { transform: scale(1.05); }
.v2-photo-thumb { overflow: hidden; }
.v2-card:hover .v2-photo-thumb img { transform: scale(1.04); }

.v2-photo-count-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(27,45,110,.75);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.v2-badge-avail {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 11px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}
.v2-badge-avail.dispo { color: var(--dispo); }
.v2-badge-avail.dispo::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--dispo);
  border-radius: 50%;
  flex-shrink: 0;
}
.v2-badge-avail.bientot { color: var(--bientot); }
.v2-badge-avail.bientot::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--bientot);
  border-radius: 50%;
  flex-shrink: 0;
}

/* PEB badge — official arrow look */
.v2-peb-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
}
.v2-peb-badge .peb-label {
  background: #3d3d3d;
  color: white;
  padding: 0 7px 0 6px;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 3px 0 0 3px;
  font-size: 9px;
  letter-spacing: .04em;
}
.v2-peb-badge .peb-value {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px 0 6px;
  color: white;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  font-size: 12px;
}
.v2-peb-badge.peb-a .peb-value { background: #00a651; }
.v2-peb-badge.peb-b .peb-value { background: #51b748; }
.v2-peb-badge.peb-c .peb-value { background: #bdd730; color: #222; }
.v2-peb-badge.peb-d .peb-value { background: #fff100; color: #222; }
.v2-peb-badge.peb-e .peb-value { background: #f7941d; }
.v2-peb-badge.peb-f .peb-value { background: #f15a24; }
.v2-peb-badge.peb-g .peb-value { background: #ed1c24; }

.v2-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.v2-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 3px;
}
.v2-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.v2-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v2-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cyan-pale);
  border: 1px solid rgba(0,168,214,.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}
.v2-price-block { display: flex; flex-direction: column; align-items: flex-end; }
.v2-price-inline {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.v2-price-inline span { font-size: 11px; color: var(--ink-muted); font-weight: 400; }
.v2-price-charges { font-size: 11px; color: var(--ink-muted); margin-top: 1px; white-space: nowrap; text-align: right; }

.v2-card-divider { height: 1px; background: var(--border); margin-bottom: 10px; }
.v2-card-specs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.v2-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-soft);
}
.v2-spec svg { color: var(--blue); opacity: .65; }

.v2-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
  transition: background .15s;
  margin-top: auto;
}
.v2-card-cta:hover { background: var(--orange-light); color: white; }
.v2-card-cta svg { transition: transform .15s; }
.v2-card-cta:hover svg { transform: translateX(3px); }

/* No results */
.v2-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ================================================================
   VIEW — BREADCRUMB
   ================================================================ */
.v2-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}
.v2-breadcrumb a { color: var(--ink-muted); text-decoration: none; transition: color .15s; }
.v2-breadcrumb a:hover { color: var(--cyan); }
.v2-breadcrumb .sep { font-size: 11px; }

/* ================================================================
   VIEW — PAGE LAYOUT
   ================================================================ */
.v2-page-wrap {
  max-width: 1200px;
  margin: 20px auto 80px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.v2-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s;
}
.v2-back-link:hover { color: var(--cyan); }

.v2-prop-head { margin-bottom: 20px; }
.v2-prop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.v2-prop-status.dispo { border: 1.5px solid var(--dispo); color: var(--dispo); }
.v2-prop-status.dispo::before { content: ''; width: 7px; height: 7px; background: var(--dispo); border-radius: 50%; }
.v2-prop-status.bientot { border: 1.5px solid var(--bientot); color: var(--bientot); }
.v2-prop-status.bientot::before { content: ''; width: 7px; height: 7px; background: var(--bientot); border-radius: 50%; }

.v2-prop-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.v2-prop-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 14px;
}
.v2-prop-location strong { color: var(--ink-soft); }

/* ================================================================
   VIEW — GALLERY
   ================================================================ */
.v2-gallery-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 6px;
}
.v2-gallery-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #f8f9fd;
}
.v2-gtab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  user-select: none;
}
.v2-gtab:hover { color: var(--blue); }
.v2-gtab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.v2-gtab .count {
  background: var(--cyan-pale);
  color: var(--cyan);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 700;
}
.v2-gtab.disabled { opacity: .4; cursor: default; pointer-events: none; }

.v2-gallery-main { position: relative; height: 400px; background: #c8d3ea; overflow: hidden; }
.v2-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-gallery-see-all {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(27,45,110,.8);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  border: none;
}
.v2-gallery-see-all:hover { background: var(--navy); }

.v2-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  background: #f8f9fd;
}
.v2-gallery-thumbs .v2-thumb {
  height: 68px;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s;
  border: 2px solid transparent;
}
.v2-gallery-thumbs .v2-thumb:hover,
.v2-gallery-thumbs .v2-thumb.active { opacity: 1; border-color: var(--cyan); }
.v2-gallery-thumbs .v2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-gallery-thumbs .v2-thumb-more {
  height: 68px;
  border-radius: 5px;
  background: rgba(27,45,110,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s;
}
.v2-gallery-thumbs .v2-thumb-more:hover { background: var(--cyan-pale); color: var(--cyan); }

.v2-panel-placeholder {
  height: 400px;
  background: #f0f3fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.v2-panel-placeholder svg { opacity: .3; }
.v2-panel-placeholder strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
}

.v2-gallery-panel { display: none; }
.v2-gallery-panel.active { display: block; }

/* ================================================================
   VIEW — SECTION BLOCKS
   ================================================================ */
.v2-section-block {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.v2-block-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-block-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

.v2-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.v2-spec-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-spec-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v2-spec-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.v2-spec-icon { color: var(--cyan); margin-bottom: 2px; }

.v2-description p { color: var(--ink-soft); line-height: 1.75; font-size: 14.5px; }
.v2-description p + p { margin-top: 12px; }

.v2-features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.v2-feature-item svg { color: var(--cyan); flex-shrink: 0; }

/* ================================================================
   VIEW — SIDEBAR
   ================================================================ */
.v2-col-side { position: sticky; top: 90px; }
.v2-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(27,45,110,.1);
  overflow: hidden;
}
.v2-sidebar-header { background: var(--navy); padding: 22px 22px 18px; }
.v2-sidebar-price-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}
.v2-sidebar-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.v2-sidebar-price span { font-size: 14px; font-weight: 400; opacity: .6; }
.v2-sidebar-charges { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }
.v2-sidebar-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.v2-sidebar-status.dispo {
  background: rgba(11,138,94,.2);
  border: 1px solid rgba(11,138,94,.4);
  color: #4dffa8;
}
.v2-sidebar-status.dispo::before { content: ''; width: 6px; height: 6px; background: #4dffa8; border-radius: 50%; }
.v2-sidebar-status.bientot {
  background: rgba(196,122,0,.2);
  border: 1px solid rgba(196,122,0,.4);
  color: #ffd04d;
}
.v2-sidebar-status.bientot::before { content: ''; width: 6px; height: 6px; background: #ffd04d; border-radius: 50%; }

.v2-sidebar-body { padding: 20px 22px; }
.v2-sidebar-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.v2-sspec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.v2-sspec svg { color: var(--blue); flex-shrink: 0; opacity: .7; }
.v2-sspec strong { font-weight: 600; color: var(--ink); }

.v2-sidebar-divider { height: 1px; background: var(--border); margin-bottom: 20px; }

/* PEB in sidebar */
.v2-peb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.v2-peb-badge-lg {
  display: flex;
  align-items: center;
  height: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.2));
}
.v2-peb-badge-lg .peb-label {
  background: #3d3d3d;
  color: white;
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 4px 0 0 4px;
  font-size: 10px;
  letter-spacing: .04em;
}
.v2-peb-badge-lg .peb-value {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px 0 8px;
  color: white;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  font-size: 14px;
}
.v2-peb-badge-lg.peb-a .peb-value { background: #00a651; }
.v2-peb-badge-lg.peb-b .peb-value { background: #51b748; }
.v2-peb-badge-lg.peb-c .peb-value { background: #bdd730; color: #222; }
.v2-peb-badge-lg.peb-d .peb-value { background: #fff100; color: #222; }
.v2-peb-badge-lg.peb-e .peb-value { background: #f7941d; }
.v2-peb-badge-lg.peb-f .peb-value { background: #f15a24; }
.v2-peb-badge-lg.peb-g .peb-value { background: #ed1c24; }

.v2-peb-info { font-size: 12px; color: var(--ink-muted); }
.v2-peb-info strong { color: var(--ink-soft); display: block; font-size: 13px; }

/* Sidebar CTAs */
.v2-btn-visite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 9px;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}
.v2-btn-visite:hover { background: var(--orange-light); transform: translateY(-1px); color: white; }

.v2-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 16px;
}
.v2-btn-contact:hover { border-color: var(--cyan); background: var(--cyan-pale); color: var(--blue); }

.v2-sidebar-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-muted);
}
.v2-sidebar-tel a {
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: color .15s;
}
.v2-sidebar-tel a:hover { color: var(--cyan); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes v2FadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.v2-card:nth-child(1){animation-delay:.06s}
.v2-card:nth-child(2){animation-delay:.12s}
.v2-card:nth-child(3){animation-delay:.18s}
.v2-card:nth-child(4){animation-delay:.24s}
.v2-card:nth-child(5){animation-delay:.30s}
.v2-card:nth-child(6){animation-delay:.36s}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .v2-page-wrap { grid-template-columns: 1fr; }
  .v2-col-side { position: static; }
  .v2-specs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .v2-filters-card { flex-direction: column; gap: 12px; }
  .v2-filter-sep { display: none; }
  .v2-filter-info {
    order: -1;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .v2-filter-count-num { font-size: 20px; }
  .v2-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   BOOTSTRAP MODALS — support minimal (pas de Bootstrap CSS chargé)
   Nécessaire pour que les modales soient cachées par défaut et
   que Bootstrap JS puisse les afficher via data-toggle="modal"
   ================================================================ */
/* Bootstrap 3 + 4 — hide by default, show via .in (B3) or .show (B4) */
.modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; outline: 0; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal.in, .modal.show { display: block; }
.modal.fade .modal-dialog { transform: translate(0, -25%); transition: transform .3s ease-out; }
.modal.in .modal-dialog, .modal.show .modal-dialog { transform: translate(0, 0); }
.modal-dialog { position: relative; width: auto; margin: 30px auto; max-width: 860px; }
.modal-content { position: relative; background: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; outline: 0; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background: #000; opacity: 0; transition: opacity .15s; }
.modal-backdrop.in, .modal-backdrop.show { opacity: .5; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); }
.modal-header .close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--ink-muted); cursor: pointer; padding: 0 4px; }
.modal-header .close:hover { color: var(--ink); }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); text-align: right; }
.modal-lg { max-width: 860px; }
body.modal-open { overflow: hidden; }

/* Formulaire dans #infoModal — styles v2 sur markup Bootstrap généré */
#infoModal .form-group { margin-bottom: 14px; }
#infoModal label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); display: block; margin-bottom: 5px;
}
#infoModal .form-control {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Lato', sans-serif; font-size: 14px;
  color: var(--ink); transition: border-color .15s;
  background: var(--white); box-shadow: none;
}
#infoModal .form-control:focus { outline: none; border-color: var(--cyan); box-shadow: none; }
#infoModal textarea.form-control { resize: vertical; min-height: 90px; }
#infoModal .btn[type="submit"] {
  width: 100%; background: var(--orange); color: white;
  border: none; border-radius: 9px; padding: 13px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 14px; cursor: pointer; transition: background .15s; margin-top: 8px;
}
#infoModal .btn[type="submit"]:hover { background: var(--orange-light); }

/* ================================================================
   FORMS — Bootstrap compat layer (demande de visite / candidature)
   Cible les classes HTML existantes — aucune modification de template
   ================================================================ */

/* ── Container ── */
.container {
  width: 100%; max-width: 960px;
  margin-right: auto; margin-left: auto;
  padding-right: 20px; padding-left: 20px;
}

/* ── Grid Bootstrap 4 ── */
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
[class*="col-"] { padding-right: 12px; padding-left: 12px; box-sizing: border-box; width: 100%; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%;      max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%;  max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.667%;  max-width: 41.667%; }
  .col-md-6 { flex: 0 0 50%;      max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%;  max-width: 58.333%; }
  .col-md-8 { flex: 0 0 66.667%;  max-width: 66.667%; }
}

/* ── Form controls ── */
.form-group { margin-bottom: 16px; }
.form-group label,
.form-group .control-label {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-muted); display: block; margin-bottom: 5px;
}
.form-control {
  display: block; width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Lato', sans-serif; font-size: 14px; color: var(--ink);
  background: var(--white); box-shadow: none; transition: border-color .15s;
  -webkit-appearance: none; appearance: none; line-height: 1.5;
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: none; }
textarea.form-control { resize: vertical; min-height: 90px; }
input[type="date"].form-control { min-height: 42px; }
.invalid-feedback { font-size: 12px; color: #d32f2f; margin-top: 4px; display: block; }
.form-group.is-invalid .form-control { border-color: #d32f2f; }
.form-group.is-invalid .invalid-feedback { display: block; }
.form-group.is-invalid label { color: #d32f2f; }

/* legend utilisé comme titre de section dans les formulaires */
legend {
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
  border: none; width: 100%; padding: 0; float: none;
}

/* ── Boutons ── */
.btn {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 13px; padding: 10px 20px;
  border-radius: 8px; cursor: pointer; border: 1.5px solid transparent;
  transition: .15s; text-align: center; line-height: 1.4; text-decoration: none;
}
/* "Étape suivante" — BootstrapUI génère btn-secondary par défaut */
button[name="btnvalid"],
.btn[name="btnvalid"] {
  background: var(--orange) !important; color: white !important;
  border-color: var(--orange) !important; font-weight: 700;
}
button[name="btnvalid"]:hover,
.btn[name="btnvalid"]:hover { background: var(--orange-light) !important; border-color: var(--orange-light) !important; }

.btn-primary   { background: var(--blue);   color: white; border-color: var(--blue); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-secondary { background: var(--ink-muted); color: white; border-color: var(--ink-muted); }
.btn-secondary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-default   { background: var(--orange); color: white; border-color: var(--orange); }
.btn-default:hover { background: var(--orange-light); border-color: var(--orange-light); }

.btn-outline-secondary {
  background: transparent; border-color: var(--border); color: var(--ink-soft);
}
.btn-outline-secondary:hover { border-color: var(--navy); color: var(--navy); background: transparent; }

.btn-outline-danger {
  background: transparent; border-color: #d32f2f; color: #d32f2f;
}
.btn-outline-danger:hover { background: #fdf0f0; }

.btn-link {
  background: transparent; border-color: transparent;
  color: var(--cyan); text-decoration: underline; padding: 6px 8px;
}
.btn-link:hover { color: var(--blue); }
.btn-link.text-danger { color: #d32f2f; }

.btn-sm { font-size: 12px; padding: 6px 12px; }

/* ── Cards ── */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.card-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 14px 20px; border-radius: var(--radius) var(--radius) 0 0;
}
.card-header legend { margin-bottom: 0; }
.card-body { padding: 20px; }

/* ── Alertes ── */
.alert { border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-info    { background: var(--cyan-pale); border-color: var(--cyan); color: var(--navy); }
.alert-warning { background: #fff8e1; border-color: #ffd54f; color: #6b5000; }
.alert-light   { background: var(--bg); border-color: var(--border); color: var(--ink-soft); }
.alert-success {
  background: #edf7f1;
  border-color: #7dbc96;
  color: #1f5c35;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
}
.alert-success i { font-size: 13px; color: #2e8b57; flex-shrink: 0; }

/* Upload field — aperçu document existant */
.upload-field__existing {
  background: #f5fcf8 !important;
  border-color: #7dbc96 !important;
}
.text-success { color: #1f5c35; }
.text-success i { color: #2e8b57; }

/* ── Barre de progression ── */
.progress { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar { background: var(--blue); height: 8px; }
.progress-bar.cf-progress-bar { background: var(--cyan); }

/* ── Utilitaires Bootstrap ── */
.text-center { text-align: center; }
.text-muted  { color: var(--ink-muted); }
.text-danger { color: #d32f2f; }
.font-weight-bold { font-weight: 700; }
.small, small { font-size: 12px; }
.border { border: 1px solid var(--border) !important; }

.d-flex { display: flex; }
.d-none { display: none !important; }
.align-items-center   { align-items: center; }
.justify-content-between { justify-content: space-between; }
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-flex { display: flex !important; }
}

/* Spacing */
.mt-1 { margin-top: 4px; }   .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }  .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }  .mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.ml-1 { margin-left: 4px; }  .ml-2 { margin-left: 8px; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 16px; }
.p-0  { padding: 0; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
