/* ===========================================================
   RÉFÉRENCE IMMO — Style éditorial inspiré de findrealestate.com
   Lora (serif, headlines) + Instrument Sans (body, UI)
   =========================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f1f1f1;
  --bg-cream:  #f5f1ea;
  --ink:       #151717;
  --ink-soft:  #4a4d4d;
  --muted:     #8a8d8d;
  --line:      #e6e6e6;
  --line-soft: #ededed;
  --white:     #ffffff;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter:    24px;

  --radius-pill: 100px;
  --radius:      8px;
  --radius-lg:   16px;

  --t-fast: .25s cubic-bezier(.2,.7,.2,1);
  --t-base: .5s cubic-bezier(.2,.7,.2,1);
  --t-slow: .9s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }
p { margin: 0 0 1em; }

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

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
}
.eyebrow--light { color: rgba(255,255,255,.7); }

.title-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -.02em;
}
.title-xl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.title-lg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn--pill { border-radius: var(--radius-pill); }
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: #2a2c2c; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--ink);
}
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }

/* arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap var(--t-fast);
}
.link-arrow::after { content: "→"; transition: transform var(--t-fast); }
.link-arrow:hover { gap: 10px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--t-base), padding var(--t-base), box-shadow var(--t-base);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo {
  height: 42px;
  width: auto;
  transition: filter var(--t-base);
  filter: brightness(0) invert(1);
}
.nav.is-scrolled .nav__logo { filter: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--t-fast), opacity var(--t-fast);
}
.nav.is-scrolled .nav__link { color: var(--ink); }
.nav__link:hover { opacity: .7; }

.nav__cta {
  background: var(--white);
  color: var(--ink);
  padding: 11px 22px;
  font-size: 14px;
}
.nav.is-scrolled .nav__cta {
  background: var(--ink);
  color: var(--white);
}
.nav.is-scrolled .nav__cta:hover { background: #2a2c2c; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.20) 35%,
    rgba(0,0,0,.55) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px var(--gutter) 80px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 144px);
  line-height: .95;
  letter-spacing: -.025em;
  margin-bottom: 32px;
  max-width: 14ch;
  animation: fadeUp 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.85);
}
.hero__lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: .92;
  animation: fadeUp 1.2s .3s cubic-bezier(.2,.7,.2,1) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 1.3s .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 6px;
  width: 2px; height: 8px;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; top: 6px; }
  40%  { opacity: 1; }
  80%  { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 140px 0; }
.section--why,
.section--mosaic,
.section--help,
.section--about,
.section--projets { background: var(--bg); }
.section--manifesto { background: var(--bg-alt); padding: 180px 0; }
.section--testimonials { background: var(--bg-alt); }
.section--beyond { background: var(--bg-cream); }
.section--final { background: var(--ink); color: var(--white); padding: 180px 0; }

.head { max-width: 760px; margin-bottom: 80px; }
.head--center { margin: 0 auto 80px; text-align: center; }
.head--center .eyebrow::before { display: none; }
.head--center .eyebrow { margin-left: 0; }

/* ---------- WHY ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.why__text .lead { max-width: 460px; margin-bottom: 24px; }
.why__text .btn { margin-top: 24px; }
.why__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.why__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.why__media:hover img { transform: scale(1.04); }

/* ---------- MANIFESTO ---------- */
.section--manifesto .container { text-align: center; }
.section--manifesto .title-display { max-width: 18ch; margin: 0 auto 32px; }
.section--manifesto .title-display em { color: var(--ink-soft); font-weight: 400; }
.manifesto__lead {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- MOSAIC ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 360px 360px;
  gap: 16px;
}
.mosaic__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.mosaic__item--lg { grid-row: 1 / 3; }
.mosaic__item--tall { grid-row: 1 / 3; }
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__status {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245,158,11,.95);
  color: #1a1a1a;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
}
.mosaic__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a1a1a;
}
.mosaic__item figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
  z-index: 2;
}
.mosaic__item figcaption span {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.mosaic__item figcaption em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  opacity: .85;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial blockquote {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.testimonial figcaption {
  font-family: var(--sans);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.testimonial figcaption strong {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}
.testimonial figcaption span { color: var(--muted); }

/* ---------- HELP ---------- */
.help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.help__card {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help__num {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.help__card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 4px;
}
.help__card p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 12px;
  flex: 1;
}

/* ---------- BEYOND ---------- */
.beyond {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.beyond__media {
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.beyond__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.beyond__text p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 32px;
}
.beyond__text .title-lg em {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- PROJETS ---------- */
.projets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.projet {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base);
  border: 1px solid var(--line-soft);
}
.projet:hover { transform: translateY(-4px); }
.projet__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}
.projet__status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(245,158,11,.95);
  color: #1a1a1a;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.projet__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a1a1a;
}
.projet__status--soon {
  background: rgba(255,255,255,.95);
  color: var(--ink);
}
.projet__status--soon::before { background: var(--muted); }
.projet__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.projet:hover .projet__media img { transform: scale(1.04); }
.projet__body {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.projet__location {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}
.projet__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.1;
}
.projet__meta {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ---------- ABOUT ---------- */
.about__title { max-width: 16ch; margin-bottom: 64px; }
.about__title em { color: var(--ink-soft); font-weight: 400; }
.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.about__col {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.about__metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about__metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
}
.about__metrics span {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FINAL ---------- */
.final { text-align: center; }
.final__title { max-width: 18ch; margin: 0 auto 56px; }
.final__title em { color: rgba(255,255,255,.7); font-weight: 400; }
.final__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 80px 0 32px;
  font-family: var(--sans);
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer__brand p { line-height: 1.55; margin: 0; }
.footer__col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,.7);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer__bottom p { margin: 0; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,.55);
  transition: transform var(--t-fast);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .why, .beyond { grid-template-columns: 1fr; gap: 48px; }
  .why__media, .beyond__media { aspect-ratio: 16/10; }
  .testimonials { grid-template-columns: 1fr; gap: 16px; }
  .help { grid-template-columns: 1fr; gap: 32px; }
  .projets { grid-template-columns: 1fr; }
  .about__cols { grid-template-columns: 1fr; gap: 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 96px 0; }
  .section--manifesto, .section--final { padding: 120px 0; }
  .head, .head--center { margin-bottom: 56px; }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform var(--t-base);
    pointer-events: none;
  }
  .nav__menu.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__menu .nav__link { color: var(--ink); font-size: 26px; font-family: var(--serif); }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .hero__inner { padding-top: 120px; padding-bottom: 60px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 280px);
  }
  .mosaic__item--lg, .mosaic__item--tall { grid-row: auto; }

  .about__metrics { grid-template-columns: 1fr; gap: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .final__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .final__actions .btn { width: 100%; }
}
