/* =========================================================
   EDA Avocat — Maître Elodie DE ALMEIDA
   Style sobre : off-white, noir adouci, gris, sérif + sans
   ========================================================= */

:root {
  --bg:        #f4f3f0;   /* off-white légèrement gris */
  --bg-soft:   #eceae5;
  --surface:   #ffffff;
  --ink:       #1c1c1a;   /* noir adouci */
  --ink-soft:  #3a3a37;
  --muted:     #6c6b66;
  --line:      rgba(28, 28, 26, 0.12);
  --line-soft: rgba(28, 28, 26, 0.07);
  --accent:    #1c1c1a;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.section { padding-block: clamp(64px, 11vw, 140px); }
.section--tight { padding-block: clamp(48px, 8vw, 96px); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--muted);
  display: inline-block;
}

h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.serif { font-family: var(--serif); font-weight: 500; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}

p + p { margin-top: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--b);
  background: var(--b);
  color: var(--bg);
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(244, 243, 240, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 12px;
}
.nav__logo { color: var(--ink); display: flex; align-items: center; }
.nav__logo svg { height: 46px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.active { color: var(--ink); }

.nav__cta { display: inline-flex; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav__burger span {
  width: 16px; height: 1.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: flex;
  align-items: center;
  padding-bottom: clamp(40px, 6vh, 72px);
  padding-top: clamp(110px, 16vh, 150px);
  overflow: hidden;
}
.hero__inner { width: 100%; }
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
}
.hero__title { max-width: 14ch; }
.hero h1 { margin-top: 22px; }
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 15px;
  align-self: flex-end;
}
.hero__meta strong { color: var(--ink); font-weight: 500; }

.hero__divider {
  height: 1px;
  background: var(--line);
  margin-top: clamp(36px, 6vw, 64px);
  transform-origin: left;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.fact .num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  display: block;
}
.fact .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- About / portrait ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.02);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.portrait:hover img { transform: scale(1.035); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--surface);
}
.badge svg { width: 14px; height: 14px; flex: none; }

/* ---------- Domaines ---------- */
.domaines { display: grid; gap: 0; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.domaine {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px) 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease), background .45s var(--ease);
}
.domaine:hover { padding-left: 24px; background: var(--surface); }
.domaine__idx { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); }
.domaine__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); }
.domaine__desc { color: var(--muted); font-size: 15px; max-width: 46ch; }
.domaine__mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.domaine:hover .domaine__mark { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }

/* ---------- Compétences chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
a.chip { display: inline-flex; align-items: center; gap: 8px; }
a.chip.is-link { border-color: var(--ink); }
a.chip.is-link svg { width: 13px; height: 13px; }

/* ---------- Présentation (long text) ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.prose .lead { color: var(--ink); }

/* ---------- Two-column info (horaires / diplomes) ---------- */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }

.list-rows { border-top: 1px solid var(--line); }
.list-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.list-rows .row span:first-child { color: var(--muted); }
.list-rows .row.closed span:last-child { color: var(--muted); }

.timeline { list-style: none; border-left: 1px solid var(--line); padding-left: 26px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink);
}
.timeline .t-title { font-weight: 500; }
.timeline .t-sub { color: var(--muted); font-size: 14px; }

/* ---------- Contact / Adresse ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: stretch; }
.contact__card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.contact__card a { text-decoration: none; }
.contact__row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.contact__row .k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }
.contact__row .v { font-size: 17px; }
.contact__card .btn { --b: var(--bg); align-self: flex-start; background: var(--bg); color: var(--ink); }
.contact__card .btn:hover { background: transparent; color: var(--bg); }

.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid var(--line); filter: grayscale(100%) contrast(1.05); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Page header (sub pages) ---------- */
.pagehead { padding-top: 160px; padding-bottom: clamp(36px, 6vw, 72px); }
.pagehead .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.pagehead .crumbs a:hover { color: var(--ink); }

/* ---------- Honoraires ---------- */
.price-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.price-hero .amount { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.price-hero .amount small { font-size: .42em; color: var(--muted); font-family: var(--sans); }

.fee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.fee {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
  transition: background .4s var(--ease);
}
.fee:hover { background: var(--surface); }
.fee__idx { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); }
.fee h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 10px 0 12px; }
.fee p { color: var(--ink-soft); font-size: 15px; }
.fee .tag { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.info-card h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-card li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.info-card li svg { width: 15px; height: 15px; flex: none; color: var(--ink); }

.note { font-size: 14px; color: var(--muted); margin-top: 26px; max-width: 70ch; }

/* ---------- Ventes immobilières ---------- */
.listing-toolbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.listing-count { font-size: 14px; color: var(--muted); }

.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.listing {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.listing:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); }
.listing__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--bg-soft), #ddd9d2);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}
.listing__media .tagline { font-family: var(--serif); font-size: 2.4rem; opacity: .35; }
.listing__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); transition: transform 1s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.04); }
.listing.is-sold .listing__media img { opacity: .85; }
.listing.is-sold .listing__status { background: #6c6b66; }
.listing__status {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: 6px 12px; border-radius: 100px;
}
.listing__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.listing__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.listing__type { font-family: var(--serif); font-size: 1.5rem; }
.listing__loc { font-size: 14px; color: var(--muted); }
.listing__price { font-family: var(--serif); font-size: 1.7rem; white-space: nowrap; }
.listing__price small { font-size: .55em; color: var(--muted); display: block; text-align: right; font-family: var(--sans); }
.listing__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.listing__meta .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.listing__meta .v { font-size: 15px; }
.listing__desc { font-size: 14px; color: var(--ink-soft); }
.listing__desc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.listing__desc li { padding-left: 16px; position: relative; }
.listing__desc li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.listing__foot { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 16px; font-size: 13px; color: var(--muted); }
.listing__foot strong { color: var(--ink-soft); font-weight: 500; }

.empty-hint {
  margin-top: 36px; padding: 28px; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); font-size: 14px; text-align: center;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfcdc7; padding-block: clamp(56px, 8vw, 96px) 36px; }
.footer a { color: #cfcdc7; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand svg { color: #f4f3f0; height: 56px; }
.footer__brand p { margin-top: 18px; max-width: 36ch; font-size: 14px; color: #9a988f; }
.footer__col h5 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8a887f; margin-bottom: 16px; font-weight: 500; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: #8a887f; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="line"] { transform: scaleX(0); opacity: 1; }
[data-reveal="line"].in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn, .portrait img, .listing { transition: none !important; }
}

/* ---------- Mobile menu panel ---------- */
.mobile-panel {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.nav.open + .mobile-panel,
.mobile-panel.open { transform: translateY(0); visibility: visible; }
.mobile-panel ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mobile-panel a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--ink);
  padding: 6px 0;
  display: inline-block;
}
.mobile-panel .mp-foot { margin-top: 40px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  .cols2, .contact__grid { grid-template-columns: 1fr; }
  .fee-grid, .info-cards { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .domaine { grid-template-columns: 1fr auto; }
  .domaine__idx { display: none; }
  .domaine:hover { padding-left: 8px; }
  .price-hero { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
}
