/* =========================================================================
   Eden Immobilier — feuille de style
   Pour adapter à la charte exacte : modifie les variables ci-dessous.
   ========================================================================= */
:root {
  /* --- Couleurs de marque (à ajuster si besoin) --- */
  --ink:    #23262e;   /* anthracite (texte du logo) — titres, texte fort */
  --brand:  #2b317b;   /* bleu Eden — couleur primaire */
  --brand-d:#21265f;   /* bleu foncé — survols */
  --gold:   #b08d57;   /* laiton — accent discret (badge location, CTA) */
  --gold-d: #92703c;
  --cream:  #f5f5f8;   /* fond clair légèrement bleuté */
  --card:   #ffffff;
  --line:   #e7e6ee;
  --muted:  #6c707c;
  --ink-soft:#44474f;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,26,46,.06), 0 12px 30px -12px rgba(23,26,46,.20);
  --shadow-lg: 0 24px 60px -20px rgba(23,26,46,.38);
  --maxw: 1240px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----------------------------- En-tête ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand .brand-fallback {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  letter-spacing: .14em; color: var(--brand);
}
.header-right { display: flex; align-items: center; gap: 22px; }
.header-phone {
  font-weight: 600; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.header-phone span { color: var(--gold); }
.btn-contact {
  background: var(--brand); color: #fff; border: 0;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .2s ease;
}
.btn-contact:hover { background: var(--brand-d); }

/* --- Navigation principale (en-tête) --- */
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 8px; }
.main-nav a {
  position: relative; text-decoration: none; color: var(--ink-soft);
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em; padding: 4px 0;
  transition: color .18s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brand); }

/* ------------------------------- Hero ------------------------------ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23,26,46,.55), rgba(23,26,46,.78)),
    radial-gradient(120% 120% at 80% 0%, var(--brand) 0%, var(--ink) 70%);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease; z-index: 0;
}
.hero-bg.on { opacity: .35; }
.hero .wrap { position: relative; z-index: 1; padding-top: 78px; padding-bottom: 132px; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .26em; font-size: 12px;
  font-weight: 600; color: var(--gold); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04;
  margin: 0 0 18px; max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; margin: 0;
  color: rgba(255,255,255,.88);
}

/* ------------------------- Barre de recherche ---------------------- */
.search {
  position: relative; z-index: 5;
  margin: -76px auto 0; max-width: var(--maxw);
  padding: 0 24px;
}
.search-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 20px;
}
.seg { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button {
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all .18s ease;
}
.seg button.active { background: var(--brand); color: #fff; }

.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--muted);
}
.field select, .field input {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 10px; padding: 11px 12px; font-size: 14px; font-family: inherit;
  width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f756f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43,49,123,.18);
}
.btn-reset {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: all .15s ease; height: 44px;
}
.btn-reset:hover { border-color: var(--gold); color: var(--gold-d); }

/* ------------------------------ Résultats -------------------------- */
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 44px 0 22px; flex-wrap: wrap;
}
.results-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0;
}
.results-head .count { color: var(--muted); font-weight: 500; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 13px; color: var(--muted); }
.sort select {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 30px 8px 12px; font-size: 13px; font-family: inherit; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f756f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding-bottom: 80px;
}

/* ------------------------------- Carte ----------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: left;
  cursor: pointer; transition: transform .22s ease, box-shadow .22s ease;
  padding: 0; width: 100%; font: inherit; color: inherit;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--brand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--brand-d);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
}
.badge.loc { background: var(--gold); color: #fff; }
.card-cat {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 600;
  background: rgba(23,26,46,.55); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-loc { font-size: 13px; color: var(--gold-d); font-weight: 600; letter-spacing: .02em; }
.card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  line-height: 1.22; margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft);
  font-size: 13.5px; margin-top: auto; padding-top: 6px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { opacity: .55; }
.card-price {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--brand); margin-top: 6px;
}
.card-price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 500; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted);
}
.empty strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* ------------------------- Placeholder image ----------------------- */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%);
  color: rgba(255,255,255,.4);
  font-family: var(--font-display); font-size: clamp(40px, 8vw, 88px); font-weight: 600;
  letter-spacing: .1em;
}

/* ------------------------------- Modale ---------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 20px;
  background: rgba(20,28,24,.62); overflow-y: auto;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--card); border-radius: 16px; max-width: 980px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.modal-close:hover { background: #fff; }

.gallery { position: relative; background: var(--ink); aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { aspect-ratio: 16/10; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 20px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.gal-nav.prev { left: 16px; } .gal-nav.next { right: 16px; }
.gal-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.gal-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.5); transition: all .2s; }
.gal-dots i.on { background: #fff; width: 22px; border-radius: 999px; }
.gal-count {
  position: absolute; top: 16px; left: 16px; background: rgba(23,26,46,.6); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(3px);
}

.modal-body { padding: 28px 32px 32px; }
.modal-body .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-d); background: var(--cream); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.modal-body .tag.loc { color: #fff; background: var(--gold); }
.modal-body h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12; margin: 0 0 6px;
}
.modal-loc { color: var(--gold-d); font-weight: 600; margin-bottom: 20px; }
.modal-price {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--brand); margin: 0 0 22px;
}
.modal-price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 500; }

.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 26px;
}
.spec { background: #fff; padding: 14px 16px; }
.spec .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.spec .v { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 3px; }

.desc { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; white-space: pre-line; margin-bottom: 28px; }

.modal-cta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.modal-cta .agency { flex: 1; min-width: 200px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.modal-cta .agency strong { color: var(--ink); display: block; font-size: 14px; }
.btn-primary {
  background: var(--gold); color: #fff; border: 0; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .2s ease;
}
.btn-primary:hover { background: var(--gold-d); }
.btn-ghost {
  border: 1px solid var(--brand); color: var(--brand); background: #fff; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.btn-ghost:hover { background: var(--cream); }

/* ------------------------------ Pied ------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 20px; }
.site-footer .wrap { padding: 54px 24px 40px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .f-brand { max-width: 320px; }
.site-footer .f-brand img { height: 66px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer .f-brand .brand-fallback { color: #fff; font-family: var(--font-display); font-size: 26px; letter-spacing: .14em; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-col p { margin: 0 0 8px; font-size: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 13px; }
.copyright .wrap { padding: 18px 24px; }

/* ----------------------------- Responsive -------------------------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters .field.search-text { grid-column: 1 / -1; }
  .btn-reset { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .header-right .btn-contact { display: none; }
  .hero .wrap { padding-bottom: 116px; }
  .search { padding: 0 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field.search-text, .btn-reset { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-card { border-radius: 0; min-height: 100%; }
  .modal-body { padding: 22px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* =========================================================================
   Page « À propos »
   ========================================================================= */

/* --- Bandeau de titre --- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23,26,46,.60), rgba(23,26,46,.82)),
    radial-gradient(120% 130% at 85% 0%, var(--brand) 0%, var(--ink) 72%);
}
.page-hero .wrap { padding: 90px 24px 100px; position: relative; z-index: 1; }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: .26em; font-size: 12px;
  font-weight: 600; color: var(--gold); margin: 0 0 16px;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; max-width: 18ch;
}
.page-hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; margin: 0; color: rgba(255,255,255,.88);
}

/* --- Points forts : photo pleine hauteur + contenu --- */
.about-strong {
  display: grid; grid-template-columns: 44% 1fr; align-items: stretch;
  background: var(--card);
}
.as-photo { margin: 0; position: relative; min-height: 580px; overflow: hidden; }
.as-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.as-content { display: flex; align-items: center; padding: clamp(48px, 5.5vw, 88px) clamp(34px, 5vw, 76px); }
.as-inner { width: 100%; max-width: 760px; }

.as-title {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: .005em; font-size: clamp(27px, 3.1vw, 43px); line-height: 1.1;
  color: var(--brand); margin: 0 0 22px;
}
.as-intro {
  text-transform: uppercase; letter-spacing: .045em; font-size: 12.5px;
  font-weight: 600; color: var(--muted); line-height: 1.75; margin: 0 0 42px; max-width: 54ch;
}

.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 44px; }
.as-item .as-ico { color: var(--ink-soft); margin-bottom: 14px; line-height: 0; }
.as-item .as-ico svg { width: 40px; height: 40px; }
.as-item h3 {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; font-size: 15px; color: var(--brand); margin: 0 0 11px; line-height: 1.3;
}
.as-item p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* --- Présentation longue (centrée) --- */
.about-intro { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-intro .wrap { max-width: 920px; padding: 84px 24px; text-align: center; }
.about-intro h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 42px);
  color: var(--brand); margin: 0 0 30px; line-height: 1.12;
}
.about-intro p { color: var(--ink-soft); font-size: 16px; line-height: 1.8; margin: 0 0 22px; }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro p strong { color: var(--ink); font-weight: 600; }

/* --- Appel à l'action --- */
.about-cta { background: var(--cream); }
.about-cta .wrap { padding: 72px 24px; text-align: center; }
.about-cta h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 32px);
  color: var(--ink); margin: 0 0 10px;
}
.about-cta p { color: var(--muted); margin: 0 0 28px; }
.about-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.about-cta .btn-primary, .about-cta .btn-ghost { padding: 14px 28px; }

/* --- Responsive « À propos » + nav --- */
@media (max-width: 980px) {
  .about-strong { grid-template-columns: 1fr; }
  .as-photo { min-height: 340px; order: -1; }
  .as-content { padding: 56px clamp(24px, 6vw, 56px) 64px; }
  .as-inner { max-width: none; }
}
@media (max-width: 760px) {
  .header-phone { display: none; }
  .main-nav { gap: 18px; margin-right: 0; }
}
@media (max-width: 680px) {
  .page-hero .wrap { padding: 68px 18px 76px; }
  .as-photo { min-height: 260px; }
  .as-content { padding: 44px 18px 52px; }
  .as-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-intro .wrap { padding: 60px 18px; }
  .about-cta .wrap { padding: 56px 18px; }
  .main-nav a { font-size: 13.5px; }
}
