/* L'Agence Immobilière des Lavandes — Bédoin */
:root {
  --lavande: #5858a3;
  --lavande-fonce: #45458a;
  --lavande-clair: #eeeef8;
  --lavande-pale: #f7f7fc;
  --gris: #706f6f;
  --texte: #3d3d42;
  --fond: #ffffff;
  --pierre: #f6f2ec;
  --ocre: #c9a46a;
  --ligne: #e3e3ee;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(40, 40, 90, 0.08);
  --police: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavande); }
a:hover { color: var(--lavande-fonce); }
h1, h2, h3 { color: var(--texte); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lavande); font-weight: 700; margin-bottom: 14px;
}
.muted { color: var(--gris); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--texte); padding: 8px 12px; border-radius: 999px; font-size: 1rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--lavande-clair); color: var(--lavande-fonce); }
.nav .btn { margin-left: 6px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--lavande); }
.nav a.btn-primary:hover { background: var(--lavande-fonce); }
.lang { display: flex; gap: 4px; margin-left: 8px; font-size: .85rem; }
.lang a { padding: 4px 7px; color: var(--gris); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--ligne); border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--texte); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--lavande); color: #fff; }
.btn-primary:hover { background: var(--lavande-fonce); color: #fff; }
.btn-outline { border-color: var(--lavande); color: var(--lavande); background: #fff; }
.btn-outline:hover { background: var(--lavande-clair); }
.btn-light { background: #fff; color: var(--lavande-fonce); }
.btn-light:hover { background: var(--lavande-clair); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #f3f2fb 0%, #fbf8f3 100%); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding: 72px 0 210px; max-width: 760px; }
.hero p.lead { font-size: 1.25rem; color: var(--gris); max-width: 620px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: auto; }
.page-hero { background: linear-gradient(180deg, #f3f2fb 0%, #fff 100%); padding: 56px 0 36px; }
.page-hero p { color: var(--gris); font-size: 1.15rem; max-width: 680px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--lavande-pale); }
.section-stone { background: var(--pierre); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 28px;
  box-shadow: var(--ombre);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--lavande-clair); color: var(--lavande);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lavande); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--lavande); border-bottom: 2.5px solid var(--lavande); transform: rotate(-45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { background: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--lavande); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e6e6f6; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.form .hint { font-weight: 400; color: var(--gris); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfe0; border-radius: 10px; font: inherit; font-size: 1rem;
  background: #fff; color: var(--texte);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--lavande-clair); border-color: var(--lavande); }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; margin: 0; }
.form legend { font-weight: 700; padding: 0 6px; color: var(--lavande-fonce); }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfcfe0; border-radius: 999px; padding: 8px 14px; margin: 0; cursor: pointer; }
.choice input { width: auto; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--gris); }
.consent input { width: auto; margin-top: 5px; }
.consent label { font-weight: 400; margin: 0; }
.hidden { display: none !important; }
.notice { background: var(--lavande-clair); border-radius: var(--rayon); padding: 18px 20px; color: var(--lavande-fonce); }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.listing-photo { aspect-ratio: 4/3; background: var(--lavande-clair); position: relative; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--lavande); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.vendu { background: var(--ocre); }
.listing-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-price { font-size: 1.4rem; font-weight: 700; color: var(--lavande-fonce); }
.listing-meta { color: var(--gris); font-size: .95rem; }
.listing-legal { color: var(--gris); font-size: .8rem; margin-top: auto; }
.dpe { display: inline-block; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 6px; color: #fff; background: var(--gris); }
.empty-state { text-align: center; padding: 48px 24px; border: 2px dashed var(--ligne); border-radius: var(--rayon); background: var(--lavande-pale); }

/* Footer */
.site-footer { background: #2f2f4d; color: #d6d6e6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #a9a9c4; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

@media (max-width: 960px) {
  .grid-3, .grid-4, .listings { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--ligne);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .lang { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .listings, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 44px 0 140px; }
  .section { padding: 52px 0; }
  .brand img { height: 44px; }
}
