/*
 * Newton — Front-office CSS
 * @version 2.4.1
 * Design minimaliste pour phase de test
 */

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

:root {
  --navy:      #1B3A5C;
  --navy-dark: #152d47;
  --gold:      #C9A84C;
  --white:     #ffffff;
  --gray-50:   #F7F8FC;
  --gray-100:  #EAEDF3;
  --gray-300:  #C5CBD8;
  --gray-500:  #6B7280;
  --gray-700:  #374151;
  --ink:       #0D1F33;
  --success:   #16a34a;
  --danger:    #dc2626;

  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --container: 1200px;
  --navbar-h:  68px;
  --transition: .2s ease;
}

html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
address { font-style: normal; }
::selection { background: rgba(27,58,92,.12); color: var(--ink); }

/* ── Accessibilité ───────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: var(--radius); font-size: .85rem; z-index: 999; transition: top .2s; }
.skip-link:focus { top: 8px; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Typographie ─────────────────────────────────────────────── */
h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; color: var(--ink); font-weight: 500; }
h2 { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.2; color: var(--navy); font-weight: 500; margin-bottom: .75rem; }
h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: .88rem; font-weight: 600; padding: 10px 20px; border-radius: 50px; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: .95rem; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); box-shadow: 0 4px 16px rgba(27,58,92,.25); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8963e; }
.btn-loue { background: var(--gray-100); color: var(--gray-500); cursor: default; border-radius: 50px; padding: 10px 20px; font-size: .88rem; font-weight: 600; display: inline-block; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-dispo { background: #dcfce7; color: #166534; }
.badge-loue  { background: var(--gray-100); color: var(--gray-500); }
.badge-lg    { padding: 8px 18px; font-size: .88rem; border-radius: 50px; }

/* ── Header / Nav ────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-100); height: var(--navbar-h); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 36px; width: auto; }
.logo-fallback { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.logo-tag { font-size: .7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .1em; border-left: 1px solid var(--gray-300); padding-left: 12px; display: none; }
@media (min-width: 640px) { .logo-tag { display: block; } }

#main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
#main-nav a { font-size: .85rem; font-weight: 500; color: var(--gray-700); padding: 8px 12px; border-radius: var(--radius); transition: all var(--transition); white-space: nowrap; }
#main-nav a:hover { color: var(--navy); background: var(--gray-50); }
#main-nav a.nav-cta { background: var(--navy); color: var(--white); padding: 8px 18px; border-radius: 50px; }
#main-nav a.nav-cta:hover { background: var(--navy-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #main-nav { display: none; position: fixed; inset: var(--navbar-h) 0 0; background: var(--white); flex-direction: column; padding: 24px; gap: 8px; overflow-y: auto; }
  #main-nav.open { display: flex; }
  #main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  #main-nav a { padding: 12px 16px; border-radius: var(--radius); }
}

/* ── Back to top ─────────────────────────────────────────────── */
#back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--navy); color: var(--white); border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 50; transition: all var(--transition); }
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--navy-dark); transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; background: var(--white); }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { max-width: 680px; margin-bottom: 20px; }
.hero-sub { font-size: 1.05rem; color: var(--gray-500); max-width: 520px; margin-bottom: 32px; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Réassurance ─────────────────────────────────────────────── */
.reassurance { background: var(--navy); padding: 20px 0; }
.reassurance-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.reassurance-list li { flex: 1 1 200px; padding: 16px 24px; font-size: .82rem; color: rgba(255,255,255,.55); border-right: 1px solid rgba(255,255,255,.1); }
.reassurance-list li:last-child { border-right: none; }
.reassurance-list strong { display: block; font-size: 1.3rem; font-family: var(--font-serif); color: var(--gold); margin-bottom: 2px; }

/* ── Sections communes ───────────────────────────────────────── */
section { padding: 64px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-header h2 { margin-bottom: 0; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li { font-size: .78rem; color: var(--gray-500); }
.breadcrumb li::after { content: '/'; margin-left: 4px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li[aria-current] { color: var(--navy); font-weight: 500; }

/* ── Cards bien ──────────────────────────────────────────────── */
.biens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.bien-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.bien-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img-wrap { display: block; position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--gray-50); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bien-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-wrap .badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 18px 20px; }
.card-imm  { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.card-titre { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.card-titre a { color: inherit; }
.card-titre a:hover { color: var(--gold); }
.card-type { font-size: .75rem; color: var(--gray-500); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.card-desc { font-size: .85rem; color: var(--gray-500); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { }

/* ── Fiche bien ──────────────────────────────────────────────── */
.fiche-bien { padding: 40px 0 64px; }

/* En-tête fiche */
.fiche-head { margin-bottom: 28px; }
.fiche-ref { font-size: .75rem; font-family: monospace; color: var(--gray-500); margin-bottom: 8px; }
.fiche-head h1 { margin-bottom: 12px; }
.fiche-desc { font-size: 1.05rem; color: var(--gray-500); margin-bottom: 20px; font-weight: 300; }
.fiche-cta { margin-bottom: 24px; }

/* Navigation ancres */
.fiche-anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; padding: 16px 20px; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-100); }
.fiche-anchors a { font-size: .78rem; font-weight: 500; color: var(--navy); padding: 5px 12px; border: 1px solid var(--gray-300); border-radius: 50px; transition: all var(--transition); white-space: nowrap; }
.fiche-anchors a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Sous-titres de section */
.fiche-section { margin-bottom: 48px; scroll-margin-top: calc(var(--navbar-h) + 16px); }
.fiche-section-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); font-weight: 500; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }

/* Layout fiche */
.fiche-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.fiche-content { min-width: 0; }
@media (max-width: 900px) { .fiche-body { grid-template-columns: 1fr; } .fiche-sidebar { order: -1; } }

/* Sidebar */
.fiche-sidebar { position: sticky; top: calc(var(--navbar-h) + 16px); }
.sidebar-box { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-box h3 { margin-bottom: 10px; font-size: 1rem; }
.sidebar-box p { font-size: .88rem; margin-bottom: 16px; color: var(--gray-500); }
.sidebar-box .btn { width: 100%; justify-content: center; }

/* ── Galerie ─────────────────────────────────────────────────── */
.galerie-slider { position: relative; margin-bottom: 12px; }
.galerie-main-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}
.galerie-main-wrap img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galerie-main-wrap img.active { display: block; }

/* ── Lightbox modale ─────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,31,51,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1001;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1001;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin-top: 14px;
}

.galerie-nav { position: absolute; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; width: 100%; padding: 0 12px; pointer-events: none; }
.galerie-btn { pointer-events: all; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.galerie-btn:hover { background: var(--white); box-shadow: var(--shadow-md); }
.galerie-btn svg { width: 18px; height: 18px; color: var(--navy); }
.galerie-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.55); color: var(--white); font-size: .72rem; padding: 3px 10px; border-radius: 20px; }

.galerie-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.galerie-thumbs .thumb { width: 80px; height: 56px; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); flex-shrink: 0; }
.galerie-thumbs .thumb.active { border-color: var(--navy); }
.galerie-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Plans */
.plans { margin-top: 8px; }
.intro-plan { font-size: .9rem; color: var(--gray-500); margin-bottom: 16px; font-style: italic; }
.plans figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); }
.plans img { width: 100%; height: auto; }

/* ── Caractéristiques ────────────────────────────────────────── */
.carac-sections { display: flex; flex-direction: column; gap: 20px; }
.carac-section { }
.carac-section-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); padding: 8px 12px; background: var(--gray-50); border-left: 3px solid var(--gold); margin-bottom: 0; }
.carac-table { width: 100%; border-collapse: collapse; }
.carac-table tr { border-bottom: 1px solid var(--gray-100); }
.carac-table tr:last-child { border-bottom: none; }
.carac-table td { padding: 9px 12px; font-size: .88rem; }
.carac-table td:first-child { color: var(--gray-500); width: 55%; }
.carac-table td:last-child { color: var(--ink); font-weight: 500; }
.carac-table tr:nth-child(even) td { background: var(--gray-50); }

/* ── DPE / GES ───────────────────────────────────────────────── */
.dpe-ges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px) { .dpe-ges-grid { grid-template-columns: 1fr; } }

.dpe-block h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); margin-bottom: 16px; }

.dpe-scale { display: flex; flex-direction: column; gap: 3px; }
.dpe-bar { display: flex; align-items: center; gap: 10px; }
.dpe-bar-label { width: 20px; font-size: .78rem; font-weight: 700; color: var(--white); text-align: center; border-radius: 3px; padding: 2px 4px; flex-shrink: 0; }
.dpe-bar-fill { height: 22px; border-radius: 0 3px 3px 0; display: flex; align-items: center; padding-right: 8px; justify-content: flex-end; font-size: .72rem; color: rgba(255,255,255,.8); min-width: 30px; transition: all var(--transition); }
.dpe-bar-val { font-size: .75rem; color: var(--gray-500); }
.dpe-bar.active .dpe-bar-fill { box-shadow: 0 0 0 2px var(--navy); }
.dpe-bar.active .dpe-bar-val { font-weight: 700; color: var(--navy); }

/* Couleurs DPE */
.dpe-A .dpe-bar-label, .dpe-A .dpe-bar-fill { background: #00a550; }
.dpe-B .dpe-bar-label, .dpe-B .dpe-bar-fill { background: #50b747; }
.dpe-C .dpe-bar-label, .dpe-C .dpe-bar-fill { background: #afcc42; }
.dpe-D .dpe-bar-label, .dpe-D .dpe-bar-fill { background: #f6eb15; color: #333; }
.dpe-D .dpe-bar-label { color: #333; }
.dpe-E .dpe-bar-label, .dpe-E .dpe-bar-fill { background: #f8b130; }
.dpe-F .dpe-bar-label, .dpe-F .dpe-bar-fill { background: #ee7024; }
.dpe-G .dpe-bar-label, .dpe-G .dpe-bar-fill { background: #e7202d; }
.dpe-NC .dpe-bar-label, .dpe-NC .dpe-bar-fill { background: var(--gray-300); color: var(--gray-500); }
.dpe-note-display { margin-top: 10px; font-size: .85rem; color: var(--gray-500); }
.dpe-en-cours { font-size: .85rem; color: var(--gray-500); font-style: italic; padding: 12px; background: var(--gray-50); border-radius: var(--radius); margin-top: 8px; }

/* ── Carte OSM ───────────────────────────────────────────────── */
.map-section { margin-top: 16px; }
.osm-map { height: 340px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); z-index: 1; }
.localisation-texte { margin-top: 16px; font-size: .9rem; color: var(--gray-500); }

/* ── Géolocalisation bien ────────────────────────────────────── */
.geo-imm-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--navy); font-weight: 500; margin-bottom: 16px; padding: 10px 16px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-100); transition: all var(--transition); }
.geo-imm-link:hover { background: var(--navy); color: var(--white); }
.geo-imm-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── PDF button ──────────────────────────────────────────────── */
.btn-pdf { background: #e53e3e; color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.btn-pdf:hover { background: #c53030; }
.btn-pdf svg { width: 16px; height: 16px; }

/* ── Fiche immeuble ──────────────────────────────────────────── */
.fiche-immeuble { padding: 40px 0 64px; }
.imm-header { margin-bottom: 8px; }
.imm-adresse { font-size: .9rem; color: var(--gray-500); margin-bottom: 4px; }
.imm-niveaux { font-size: .88rem; color: var(--gray-500); margin-bottom: 16px; }
.imm-niveaux strong { color: var(--navy); }
.imm-desc-court { font-size: 1.05rem; color: var(--gray-700); font-weight: 300; margin-bottom: 28px; max-width: 680px; }

.imm-body { display: flex; flex-direction: column; gap: 0; }

/* Tableau surfaces */
.surfaces-table { width: 100%; border-collapse: collapse; }
.surfaces-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); padding: 8px 12px; border-bottom: 2px solid var(--navy); }
.surfaces-table td { padding: 12px 12px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.surfaces-table tr:last-child td { border-bottom: none; }
.surfaces-table tr:hover td { background: var(--gray-50); }
.surfaces-table .ref-cell { font-family: monospace; font-size: .78rem; color: var(--gray-500); }
.surfaces-table a { color: var(--navy); font-weight: 500; }
.surfaces-table a:hover { color: var(--gold); text-decoration: underline; }

/* ── Listing immeubles ───────────────────────────────────────── */
.imm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.imm-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.imm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.imm-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-50); }
.imm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.imm-card:hover .imm-card-img img { transform: scale(1.04); }
.imm-card-body { padding: 20px; }
.imm-card-body h2 { font-size: 1.1rem; margin-bottom: 4px; }
.imm-ville { font-size: .8rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 8px; }
.imm-desc { font-size: .85rem; color: var(--gray-500); margin-bottom: 12px; }
.imm-stats { font-size: .8rem; color: var(--gray-500); margin-bottom: 16px; }

/* ── Listing biens ───────────────────────────────────────────── */
.page-listing { padding: 40px 0 64px; }
.page-listing h1 { margin-bottom: 28px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtre-btn { font-size: .78rem; font-weight: 500; padding: 6px 14px; border-radius: 50px; border: 1px solid var(--gray-300); color: var(--gray-700); transition: all var(--transition); cursor: pointer; background: var(--white); }
.filtre-btn:hover, .filtre-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination { display: flex; gap: 8px; margin-top: 36px; justify-content: center; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--gray-300); font-size: .85rem; color: var(--gray-700); transition: all var(--transition); }
.page-btn.active, .page-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty-state { text-align: center; padding: 48px; color: var(--gray-500); font-size: .95rem; background: var(--gray-50); border-radius: var(--radius-lg); }

/* ── Contact ─────────────────────────────────────────────────── */
.page-contact { padding: 40px 0 64px; }
.page-contact h1 { margin-bottom: 10px; }
.page-intro { font-size: 1rem; color: var(--gray-500); margin-bottom: 36px; max-width: 600px; }
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius); padding: 10px 14px;
  font-family: var(--font-sans); font-size: .9rem; color: var(--ink);
  transition: border-color var(--transition); background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,92,.1); }
textarea { resize: vertical; min-height: 120px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; cursor: pointer; }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.form-note { font-size: .75rem; color: var(--gray-500); margin-top: 10px; }
.form-rgpd { margin-top: 4px; }
#form-feedback { margin-top: 12px; padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; display: none; }
#form-feedback.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; display: block; }
#form-feedback.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }

.contact-infos { background: var(--gray-50); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--gray-100); }
.contact-infos h2 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-infos address { font-size: .88rem; line-height: 1.9; color: var(--gray-700); margin-bottom: 16px; }
.contact-infos a { color: var(--navy); }
.contact-infos a:hover { color: var(--gold); }
.contact-delai { font-size: .85rem; color: var(--gray-500); padding-top: 16px; border-top: 1px solid var(--gray-100); margin-top: 0; }
.contact-liens { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.contact-liens a { font-size: .82rem; color: var(--navy); font-weight: 500; }
.contact-liens a:hover { color: var(--gold); }

/* ── À propos ────────────────────────────────────────────────── */
.page-apropos { padding: 40px 0 64px; }
.apropos-hero { margin-bottom: 48px; max-width: 700px; }
.apropos-hero h1 { margin-bottom: 16px; }
.apropos-intro { font-size: 1.1rem; color: var(--gray-500); font-weight: 300; }
.apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .apropos-grid { grid-template-columns: 1fr; } }
.apropos-block h2 { margin-bottom: 20px; }
.apropos-texte p { font-size: .9rem; }
.avantages-liste { display: flex; flex-direction: column; gap: 20px; }
.avantage-item h3 { font-size: .95rem; margin-bottom: 6px; }
.avantage-item p { font-size: .88rem; }
.apropos-cta { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 40px 48px; text-align: center; }
.apropos-cta h2 { color: var(--white); margin-bottom: 10px; }
.apropos-cta p  { color: rgba(255,255,255,.6); margin-bottom: 24px; }
.apropos-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.apropos-cta .btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.apropos-cta .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── Section biens accueil ───────────────────────────────────── */
.section-biens, .section-immeubles-home, .section-pourquoi { padding: 64px 0; }
.section-biens { background: var(--white); }
.section-immeubles-home { background: var(--gray-50); }
.section-pourquoi { background: var(--navy); }
.section-pourquoi h2 { color: var(--white); margin-bottom: 32px; }
.avantages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.avantage { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 24px; }
.avantage h3 { color: var(--gold); margin-bottom: 10px; }
.avantage p  { color: rgba(255,255,255,.55); font-size: .9rem; margin: 0; }
.section-cta-contact { background: var(--gray-50); text-align: center; padding: 64px 0; }
.section-cta-contact h2 { margin-bottom: 12px; }
.section-cta-contact p  { margin-bottom: 24px; color: var(--gray-500); }

.imm-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.imm-home-card { display: block; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); transition: all var(--transition); }
.imm-home-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.imm-home-img { aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100); }
.imm-home-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.imm-home-card:hover .imm-home-img img { transform: scale(1.04); }
.imm-home-body { padding: 16px; }
.imm-home-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.imm-home-body p  { font-size: .8rem; color: var(--gray-500); margin: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-col .footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1) opacity(.7); margin-bottom: 14px; }
.footer-grid address, .footer-grid p { font-size: .82rem; line-height: 1.8; }
.footer-grid a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-grid a:hover { color: var(--white); }
.footer-heading { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li a { font-size: .82rem; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; }

/* ── Page légale ─────────────────────────────────────────────── */
.page-legale { padding: 40px 0 64px; max-width: 760px; }
.page-legale h1 { margin-bottom: 32px; }
.page-legale h2 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 10px; }
.page-legale p  { font-size: .9rem; }

/* ── Responsive général ──────────────────────────────────────── */
@media (max-width: 600px) {
  section { padding: 40px 0; }
  .fiche-section-title { font-size: 1.1rem; }
  .dpe-ges-grid { grid-template-columns: 1fr; }
}

/* ── Print / PDF ─────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .fiche-anchors, .fiche-sidebar, #back-to-top, .btn-pdf, .breadcrumb { display: none !important; }
  body { font-size: 12px; }
  .fiche-bien { padding: 0; }
  .galerie-thumbs { display: none; }
}

/* ── Fix double saut de ligne Quill v1 ───────────────────────── */
/* Quill entoure chaque ligne dans un <p> avec margin-bottom par défaut */
/* On ramène à 0 pour que le rendu front corresponde à l'édition */
.descriptif-long p,
.localisation-texte p,
.ml-content p,
.apropos-texte p,
.imm-body p {
  margin-bottom: 0.15rem;
}
.descriptif-long p:last-child,
.localisation-texte p:last-child,
.ml-content p:last-child,
.apropos-texte p:last-child {
  margin-bottom: 0;
}

/* ── Galerie À propos ───────────────────────────────────────── */
.apropos-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.apropos-photo .galerie-main-wrap {
  aspect-ratio: 3/2;
  cursor: pointer;
}

/* ── Bouton Clients nav ─────────────────────────────────────── */
#main-nav a.nav-cta-clients {
  background: var(--gold);
  color: var(--white);
  margin-left: 6px;
}
#main-nav a.nav-cta-clients:hover { background: #b8963e; }
