/* ==========================================================================
   Agence des Facultés — Feuille de styles
   Palette dérivée de la carte de visite : bleu marine profond + or chaud
   ========================================================================== */

:root {
  /* Couleurs - bleus */
  --navy-950: #070E1C;
  --navy-900: #0A1428;
  --navy-800: #0F1A2E;   /* couleur principale carte de visite */
  --navy-700: #182645;
  --navy-600: #243558;
  --navy-500: #3A4E78;

  /* Couleurs - or / champagne */
  --gold-600: #B7873A;
  --gold-500: #C99A4F;   /* or principal logo */
  --gold-400: #D8B274;
  --gold-300: #E8D5A8;   /* champagne pâle */
  --gold-100: #F5ECD7;

  /* Neutres chauds */
  --cream:    #F8F4ED;
  --sand:     #EFE6D5;
  --stone:    #D9CFBC;
  --ink:      #1A2942;
  --muted:    #6B7385;
  --line:     rgba(15, 26, 46, 0.10);
  --line-dark:rgba(232, 213, 168, 0.18);

  /* Typo */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Outfit", system-ui, -apple-system, sans-serif;
  --font-script:  "Caveat", cursive;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 12px rgba(10, 20, 40, 0.06);
  --shadow:    0 12px 32px rgba(10, 20, 40, 0.10);
  --shadow-xl: 0 24px 60px rgba(10, 20, 40, 0.18);

  --header-h: 84px;
  --crumb-h:  44px;
}

/* ==========================================================================
   Reset léger & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

[hidden] { display: none !important; }

/* ==========================================================================
   Typographie utilitaire
   ========================================================================== */
.display, .display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.display    { font-size: clamp(2.2rem, 5vw + 0.5rem, 4.4rem); }
.display-2  { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.8rem); }
.display em, .display-2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-600);
}

.lead {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold-600); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;       /* doit rester au-dessus des tuiles Leaflet (z-index ~800) */
  background: var(--navy-800);
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
}
.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: 'Times New Roman';
  /* font-family: var(--font-script); */
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.brand-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  border-radius: 8px;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  height: 2px;
  width: 0;
  background: var(--gold-500);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover { color: var(--gold-300); }
.nav-link.active { color: var(--gold-400); }
.nav-link.active::after { width: 26px; left: calc(50% - 13px); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Fil d'Ariane
   ========================================================================== */
.breadcrumb-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 990;        /* juste sous le header, mais au-dessus de Leaflet */
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  height: var(--crumb-h);
  display: flex;
  align-items: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb .crumb-sep {
  color: var(--gold-500);
  font-weight: 600;
}
.breadcrumb .crumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   Hero (Accueil)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--cream);
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 9vw, 130px);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 10%, rgba(201, 154, 79, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(201, 154, 79, 0.10), transparent 70%),
    var(--navy-800);
  z-index: -1;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,213,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,213,168,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 85%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-text .display { color: var(--cream); margin-bottom: 24px; }
.hero-text .display em { color: var(--gold-400); }
.hero-text .lead { color: rgba(248, 244, 237, 0.72); margin-bottom: 36px; }
.hero-text .eyebrow { color: var(--gold-300); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--line-dark);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span {
  font-size: 0.85rem;
  color: rgba(248, 244, 237, 0.6);
  letter-spacing: 0.04em;
}

/* visuel "fenêtres" empilées en référence au logo */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(232, 213, 168, 0.15);
}
.hero-card-1 {
  width: 75%; height: 80%;
  top: 0; left: 0;
  background-image: url("./images/IMG_20260512_103204.png");  /* url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=900&q=80"); */
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-card-2 {
  width: 55%; height: 55%;
  bottom: 0; right: 0;
  background-image: url("./images/IMG_20260521_102339.png"); /* url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=700&q=80"); */
  transform: rotate(4deg);
  z-index: 3;
}
.hero-card-3 {
  width: 42%; height: 38%;
  top: 6%; right: 4%;
  background-image: url("./images/IMG_20260521_102344.png"); /* url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=600&q=80"); */
  transform: rotate(-6deg);
  z-index: 1;
  opacity: 0.85;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(201, 154, 79, 0.30);
}
.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(201, 154, 79, 0.40);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(232, 213, 168, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ==========================================================================
   Section : Services
   ========================================================================== */
.services { padding: clamp(70px, 8vw, 120px) 0; background: var(--cream); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .lead { margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-300);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-600);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--muted); margin: 0; }

/* ==========================================================================
   Section : À propos + carte
   ========================================================================== */
.about {
  padding: clamp(70px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
}
.about-text .display-2 { margin-bottom: 24px; }
.about-text p { color: var(--muted); margin: 0 0 18px; }

.about-contacts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-contacts .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy-800);
  color: var(--gold-400);
  border-radius: 50%;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.about-contacts div { font-size: 0.9rem; line-height: 1.4; }
.about-contacts strong { color: var(--ink); font-weight: 600; }

.about-map { position: sticky; top: calc(var(--header-h) + var(--crumb-h) + 20px); }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrap.small { margin-top: 20px; }
.map {
  width: 100%;
  height: 420px;
  background: var(--stone);
  position: relative;   /* crée un contexte d'empilement local */
  z-index: 0;           /* bloque les panes Leaflet à l'intérieur de cette boîte */
}
.map-wrap.small .map { height: 240px; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--gold-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.2s;
}
.map-link:hover { gap: 12px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  padding: 60px 0;
  background: var(--navy-800);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(201, 154, 79, 0.18), transparent 60%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner .display-2 { color: var(--cream); margin-top: 8px; }
.cta-inner .eyebrow { color: var(--gold-300); margin-bottom: 0; }

/* ==========================================================================
   Vue Biens : page head, filtres, grille
   ========================================================================== */
.page-head {
  padding: clamp(50px, 6vw, 80px) 0 36px;
  text-align: left;
  max-width: 800px;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.chip:hover { background: var(--stone); }
.chip.active {
  background: var(--navy-800);
  color: var(--gold-300);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sand);
  padding: 10px 16px;
  border-radius: 999px;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  color: var(--muted);
}
.filter-search input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.92rem;
  color: var(--ink);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 4px 28px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.sort { display: flex; align-items: center; gap: 8px; }
.sort select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.9rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.property-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.prop-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.prop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.property-card:hover .prop-img-wrap img { transform: scale(1.06); }

.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: var(--navy-800);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.prop-badge.location { background: var(--gold-500); color: var(--navy-900); }

.prop-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.05rem;
  backdrop-filter: blur(4px);
  transition: color 0.2s, transform 0.2s;
}
.prop-fav:hover { color: #d23a3a; transform: scale(1.1); }

.prop-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.prop-meta .dot { width: 3px; height: 3px; background: var(--gold-500); border-radius: 50%; }

.prop-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prop-loc {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.prop-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.prop-features span {
  font-size: 0.85rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prop-features span small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.prop-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-600);
  margin-top: 14px;
}
.prop-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Vue détail d'un bien
   ========================================================================== */
.view-detail { padding: 40px 0 100px; }

.detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.detail-header-text { flex: 1; min-width: 280px; }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  transition: color 0.2s, gap 0.2s;
}
.detail-back:hover { color: var(--gold-600); gap: 10px; }

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw + 0.6rem, 2.8rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.detail-loc {
  color: var(--muted);
  font-size: 1.05rem;
}
.detail-price-block {
  text-align: right;
  flex-shrink: 0;
}
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--gold-600);
  line-height: 1;
}
.detail-price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.detail-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--navy-800);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.detail-tag.location { background: var(--gold-500); color: var(--navy-900); }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  margin-bottom: 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s;
}
.gallery img:hover { transform: scale(1.04); }
.gallery img:first-child {
  grid-row: span 2;
}

/* Grille détail : description + sidebar */
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}
.detail-section {
  margin-bottom: 40px;
}
.detail-section h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.detail-section p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.feature-item {
  background: var(--sand);
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.feature-item small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.feature-item strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink);
}
.amenities li::before {
  content: "✓";
  color: var(--gold-600);
  font-weight: 700;
}

/* Sidebar contact agent */
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--crumb-h) + 20px);
  background: var(--navy-800);
  color: var(--cream);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.detail-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 6px;
}
.detail-sidebar .sub {
  color: rgba(248, 244, 237, 0.6);
  font-size: 0.9rem;
  margin: 0 0 24px;
}
.agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(232, 213, 168, 0.07);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--line-dark);
}
.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.agent-info strong { display: block; color: var(--cream); }
.agent-info span { font-size: 0.85rem; color: rgba(248, 244, 237, 0.6); }

.sidebar-form label {
  display: block;
  margin-bottom: 12px;
}
.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(232, 213, 168, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.92rem;
  margin-top: 4px;
}
.sidebar-form input::placeholder,
.sidebar-form textarea::placeholder { color: rgba(248, 244, 237, 0.4); }
.sidebar-form input:focus,
.sidebar-form textarea:focus { outline: 1px solid var(--gold-400); }
.sidebar-form textarea { resize: vertical; min-height: 90px; }
.sidebar-form .btn { width: 100%; margin-top: 4px; }

.sidebar-direct {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.sidebar-direct a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--gold-300);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.sidebar-direct a:hover { background: rgba(201, 154, 79, 0.15); border-color: var(--gold-400); }

/* ==========================================================================
   Contact (page)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 100px;
}
.contact-info h3,
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 22px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list strong {
  color: var(--gold-600);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-list span { color: var(--ink); }
.contact-list a { color: var(--ink); border-bottom: 1px solid var(--gold-400); transition: color 0.2s; }
.contact-list a:hover { color: var(--gold-600); }

.contact-form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label > span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: white;
}
.contact-form textarea { resize: vertical; }
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.contact-form .consent input { width: auto; }
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(201, 154, 79, 0.15);
  color: var(--gold-600);
  font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(248, 244, 237, 0.7);
  padding: 70px 0 30px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .brand-name {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}
.foot-brand p { font-size: 0.9rem; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-400);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.site-footer ul a:hover { color: var(--gold-300); }
.foot-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   Animations à l'apparition des vues
   ========================================================================== */
.view {
  animation: viewIn 0.45s ease-out;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 340px; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-map { position: static; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; }
  .gallery img:first-child { grid-column: span 2; grid-row: 1; }
  .gallery img:nth-child(n+4) { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 999;        /* sous le header (1000) mais au-dessus du reste */
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 18px; border-radius: 10px; }
  .nav-link.active { background: rgba(201, 154, 79, 0.1); }
  .nav-link::after { display: none; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }

  .header-inner { gap: 12px; }
  .brand { min-width: 0; flex: 1; }   /* permet au texte de se contracter */
  .brand-name { font-size: 1.25rem; white-space: nowrap; }
  .brand-tagline { display: none; }
  .brand-logo { width: 36px; height: 36px; }

  /* La déco du hero ne tient pas en colonne étroite : on la cache. */
  .hero-visual { display: none; }

  .hero { padding: 50px 0 70px; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.6rem; }

  .about-contacts { grid-template-columns: 1fr; }

  .detail-header { flex-direction: column; align-items: flex-start; }
  .detail-price-block { text-align: left; }

  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

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