/* ==========================================================================
   ImP.Conseil — Agence immobilière, Libreville
   Design : minimalisme éditorial, accent ambre, hero cinématique
   ========================================================================== */

:root {
  --bg: #f2f1ec;
  --surface: #ffffff;
  --ink: #17150f;
  --ink-soft: #4c4a42;
  --muted: #8a867a;
  --line: #e2e0d8;
  --accent: #e8892c;
  --accent-deep: #c96f14;
  --night: #0b141d;
  --night-soft: #16222e;
  --on-night: #f4f2ec;
  --on-night-muted: rgba(244, 242, 236, 0.62);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-card: 22px;
  --r-pill: 999px;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine: cubic-bezier(0.65, 0, 0.15, 1);

  --z-nav: 50;
  --z-modal: 90;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: min(1280px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Composants communs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--night {
  background: var(--on-night);
  color: var(--night);
}

.btn--night:hover {
  background: #fff;
}

.btn .btn__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.btn--ghost .btn__dot {
  background: var(--accent);
  color: #fff;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Révélations au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  padding-top: 1.1rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.nav__brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav__brand em {
  font-style: normal;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-right: auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav__links a {
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
}

.nav__links a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
}

.nav__cta {
  min-height: 40px;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.nav__burger {
  display: none;
  color: #fff;
  padding: 0.4rem;
}

.nav__burger .icon {
  width: 26px;
  height: 26px;
}

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  padding: 0;
}

.hero__frame {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--hero-radius, 0px);
  transform: scale(var(--hero-scale, 1));
  transform-origin: center top;
  background: var(--night);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  filter: blur(18px);
  will-change: transform, filter;
}

.hero.is-loaded .hero__img {
  transform: scale(1.07) translateY(var(--hero-parallax, 0px));
  filter: blur(0);
  transition: transform 2.4s var(--ease-cine), filter 2.2s var(--ease-cine);
}

.hero.is-settled .hero__img {
  transition: none;
}

/* Copie de l'image masquée sur sa moitié basse : le wordmark passe derrière la villa */
.hero__img--front {
  -webkit-mask-image: linear-gradient(to bottom, transparent 24%, #000 52%);
  mask-image: linear-gradient(to bottom, transparent 24%, #000 52%);
}

.hero__wordmark {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 15.5vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(235, 242, 248, 0.17);
  user-select: none;
  opacity: 0;
  transition: opacity 1.6s ease 0.9s;
}

.hero.is-loaded .hero__wordmark {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 20, 29, 0.5) 0%, transparent 30%),
    linear-gradient(to top, rgba(11, 20, 29, 0.72) 0%, transparent 42%);
}

.hero__bottom {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 600;
  max-width: 11em;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out) 1.1s, transform 1.1s var(--ease-out) 1.1s;
}

.hero.is-loaded .hero__title {
  opacity: 1;
  transform: none;
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  border-radius: var(--r-pill);
  background: rgba(20, 30, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out) 1.3s, transform 1.1s var(--ease-out) 1.3s;
}

.hero.is-loaded .hero__search {
  opacity: 1;
  transform: none;
}

.hero__search input {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  width: clamp(150px, 22vw, 240px);
}

.hero__search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero__search input:focus {
  outline: none;
}

/* ---------- Bandeau sous le hero (pages internes) ---------- */

.page-hero {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 6vh, 4.5rem);
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--night) 4%, rgba(11, 20, 29, 0.35) 70%);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: #fff;
}

.page-hero p {
  margin-top: 1.2rem;
  max-width: 34em;
  color: var(--on-night-muted);
  font-size: 1.05rem;
}

/* ---------- Section « Notre agence » ---------- */

.story {
  padding: var(--section) 0;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2.2fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.story__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.story__note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26ch;
}

.story__note strong {
  color: var(--ink);
  font-weight: 600;
}

.story__lead {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.story__lead strong {
  color: var(--ink);
  font-weight: 500;
}

.story__cta {
  margin-top: 2.5rem;
}

/* ---------- Biens à la une ---------- */

.featured {
  padding-bottom: var(--section);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 1.1rem;
  min-height: 560px;
}

.tile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  cursor: pointer;
}

.tile--tall {
  grid-row: span 2;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.tile:hover img {
  transform: scale(1.05);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 18, 0.72), transparent 55%);
}

.tile__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.tile__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tile--tall .tile__title {
  font-size: 1.7rem;
}

.tile__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.tile:hover .tile__arrow {
  background: var(--accent);
}

/* ---------- Carrousel d'annonces ---------- */

.listings-strip {
  padding-bottom: var(--section);
}

.strip__nav {
  display: flex;
  gap: 0.6rem;
}

.strip__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.strip__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

/* ---------- Carte annonce ---------- */

.card {
  flex: 0 0 clamp(240px, 26vw, 320px);
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px -20px rgba(23, 21, 15, 0.28);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.card__badge--vente {
  background: var(--accent);
  color: #fff;
}

.card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__loc .icon {
  width: 14px;
  height: 14px;
}

.card__specs {
  display: flex;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card__specs .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.card__foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__price {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.card__price small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

.card__cta {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

/* ---------- Engagement (bandeau réponse 24 h) ---------- */

.pledge {
  padding-bottom: var(--section);
}

.pledge__box {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pledge__box::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 137, 44, 0.28), transparent 65%);
  pointer-events: none;
}

.pledge__box > * {
  position: relative;
}

.pledge h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  color: #fff;
}

.pledge p {
  margin-top: 1.1rem;
  color: var(--on-night-muted);
  max-width: 32em;
}

.pledge__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pledge__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.pledge__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pledge__step strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.pledge__step span {
  font-size: 0.85rem;
  color: var(--on-night-muted);
}

.pledge .btn {
  margin-top: 1.8rem;
}

/* ---------- Quartiers ---------- */

.areas {
  padding-bottom: var(--section);
}

.areas__band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.areas__chip {
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.areas__chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

/* ---------- Témoignages ---------- */

.reviews {
  padding-bottom: var(--section);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review__quote-mark {
  font-size: 3.4rem;
  line-height: 0.6;
  font-weight: 700;
  color: var(--accent);
}

.review__text {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.review__who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.review__who strong {
  display: block;
  font-size: 0.92rem;
}

.review__who span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  padding-bottom: var(--section);
}

.faq__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq__intro {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 38ch;
}

.faq__img {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  position: sticky;
  top: 2rem;
}

.faq__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.3s var(--ease-out);
  color: var(--muted);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq details p {
  padding: 0 2.5rem 1.3rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--night);
  color: var(--on-night);
  padding-top: var(--section);
  overflow: hidden;
}

.footer__cta {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.footer__cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
}

.footer__cta p {
  margin: 1.4rem auto 0;
  max-width: 36em;
  color: var(--on-night-muted);
}

.footer__cta .btn {
  margin-top: 2.2rem;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: var(--on-night-muted);
}

.footer__meta strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer__meta a {
  display: block;
  padding: 0.15rem 0;
  transition: color 0.2s ease;
}

.footer__meta a:hover {
  color: #fff;
}

.footer__wordmark {
  font-size: clamp(4rem, 15vw, 14.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-align: center;
  color: #fff;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: -0.12em;
  white-space: nowrap;
  user-select: none;
}

.footer__wordmark em {
  font-style: normal;
  color: var(--accent);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(244, 242, 236, 0.45);
}

/* ---------- Page Annonces ---------- */

.filters {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.filters__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filters__group {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}

.filters__pill {
  padding: 0.42rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filters__pill:hover {
  color: var(--ink);
}

.filters__pill.is-active {
  background: var(--ink);
  color: #fff;
}

.filters select {
  min-height: 44px;
  padding: 0.5rem 2.4rem 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a867a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.95rem center;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.filters__count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.listings {
  padding: 3rem 0 var(--section);
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.listings__grid .card {
  flex: initial;
}

.listings__empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Modale demande de visite ---------- */

.modal {
  border: 0;
  border-radius: var(--r-card);
  padding: 0;
  width: min(480px, calc(100vw - 2rem));
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.45);
}

.modal::backdrop {
  background: rgba(11, 20, 29, 0.55);
  backdrop-filter: blur(6px);
}

.modal__inner {
  padding: 2rem;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.modal__head h3 {
  font-size: 1.35rem;
}

.modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.modal__close:hover {
  border-color: var(--ink);
}

.modal__ref {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.modal__ref strong {
  color: var(--accent-deep);
}

/* ---------- Formulaires ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field select {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a867a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.95rem center;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  margin-bottom: 1.2rem;
}

.form-note .icon {
  color: var(--accent-deep);
  margin-top: 0.1rem;
}

/* ---------- Accusé de réception ---------- */

.receipt {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.receipt__check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
}

.receipt__check .icon {
  width: 28px;
  height: 28px;
}

.receipt h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.receipt p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-inline: auto;
}

.receipt__ref {
  display: inline-block;
  margin: 1.2rem 0;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px dashed var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}

/* ---------- Page Contact ---------- */

.routes {
  padding: var(--section) 0;
}

.routes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.route {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.route:hover {
  border-color: transparent;
  box-shadow: 0 24px 48px -22px rgba(23, 21, 15, 0.25);
}

.route__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.route__icon .icon {
  width: 22px;
  height: 22px;
}

.route h3 {
  font-size: 1.15rem;
}

.route__who {
  font-size: 0.85rem;
  color: var(--muted);
}

.route__who strong {
  color: var(--ink);
  font-weight: 600;
}

.route p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1;
}

.route .btn {
  align-self: flex-start;
}

.contact-form-section {
  padding-bottom: var(--section);
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-aside__item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.contact-aside__item .icon {
  color: var(--accent-deep);
  margin-top: 0.2rem;
}

.contact-aside__item strong {
  display: block;
  font-weight: 600;
}

.contact-aside__item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .featured__grid {
    min-height: 480px;
  }

  .listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
    margin-left: auto;
  }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 0.2rem;
    background: var(--night-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1rem 1.3rem;
  }

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

  .hero__search {
    width: 100%;
    justify-content: space-between;
  }

  .hero__search input {
    flex: 1;
    width: auto;
  }

  .story__grid,
  .faq__grid,
  .contact-form-wrap {
    grid-template-columns: 1fr;
  }

  .faq__img {
    position: static;
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .featured__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .tile {
    min-height: 260px;
  }

  .tile--tall {
    grid-row: auto;
    min-height: 340px;
  }

  .pledge__box {
    grid-template-columns: 1fr;
  }

  .reviews__grid,
  .routes__grid,
  .listings__grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .filters__count {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__img,
  .hero.is-loaded .hero__img {
    transform: scale(1.02);
    filter: none;
    transition: none;
  }

  .hero__wordmark,
  .hero__title,
  .hero__search,
  .hero.is-loaded .hero__wordmark,
  .hero.is-loaded .hero__title,
  .hero.is-loaded .hero__search {
    opacity: 1;
    transform: translateX(-50%);
    transition: none;
  }

  .hero.is-loaded .hero__title,
  .hero.is-loaded .hero__search {
    transform: none;
  }

  .tile img,
  .card__media img {
    transition: none;
  }
}

/* ==========================================================================
   Extensions v2 — structure alignée sur le site officiel
   ========================================================================== */

/* ---------- Chiffres clés ---------- */

.stats {
  padding-bottom: var(--section);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.8rem 1.6rem;
}

.stat__num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat__num em {
  font-style: normal;
  color: var(--accent);
}

.stat__label {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Bandeau partenaires / références ---------- */

.partners {
  padding-bottom: var(--section);
}

.partners__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners__logo {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  user-select: none;
}

.partners__logo:hover {
  color: var(--ink);
}

/* ---------- Grille services (accueil) ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* ---------- Pages service (Vendre / Gérer / AMO) ---------- */

.service-layout {
  padding: var(--section) 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}

.prose p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.prose li {
  margin-bottom: 0.4rem;
}

.service-form {
  position: sticky;
  top: 2rem;
}

/* ---------- Page L'agence : équipe ---------- */

.team {
  padding-bottom: var(--section);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2rem;
}

.member__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.member h3 {
  font-size: 1.2rem;
}

.member__role {
  font-size: 0.85rem;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0.25rem 0 0.9rem;
}

.member p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.member__contact {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.member__contact a:hover {
  color: var(--accent-deep);
}

/* ---------- Pôles / départements ---------- */

.poles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* ---------- Réseaux sociaux (footer) ---------- */

.footer__social {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer__social a:hover {
  border-color: var(--accent);
  background: rgba(232, 137, 44, 0.15);
}

/* ---------- Responsive v2 ---------- */

@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .stats__grid,
  .services__grid,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-form {
    position: static;
  }

  .partners__row {
    justify-content: flex-start;
  }
}
