/* ===== Niambo Immobilier — styles ===== */
:root {
  --dark-900: #17171a;
  --dark-800: #232328;
  --dark-700: #34343b;
  --tint: #f6f1f1;
  --red: #b3141d;
  --red-dark: #8f0f17;
  --red-bright: #d61f29;
  --red-light: #f0646b;
  --sand: #faf7f1;
  --ink: #1c2526;
  --muted: #5d6b6c;
  --line: #e3e7e4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 23, 26, .10);
  --shadow-lg: 0 20px 50px rgba(23, 23, 26, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--dark-900); }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--red-light); margin-bottom: .8em; }
.eyebrow--dark { color: var(--red); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font: 600 .95rem var(--font); border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--red); color: var(--white); }
.btn--accent:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(179, 20, 29, .35); }
.btn--primary { background: var(--dark-800); color: var(--white); }
.btn--primary:hover { background: var(--dark-700); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border-color: var(--dark-800); color: var(--dark-800); }
.btn--outline:hover { background: var(--dark-800); color: var(--white); }

/* En-tête */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0, 0, 0, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo { display: flex; align-items: center; gap: .6rem; color: var(--white); transition: color .3s; }
.header.is-scrolled .logo { color: var(--dark-900); }
.logo__svg { width: auto; height: 64px; stroke: none; overflow: visible; }
.footer .logo__svg { height: 76px; }
.logo__name { font-family: var(--serif); font-weight: 700; font-size: 38px; fill: var(--red); }
.logo__sub { font-family: var(--font); font-weight: 600; font-size: 10.5px; }
.header:not(.is-scrolled):not(.menu-open) .logo__name, .logo--light .logo__name { fill: var(--red-bright); }
.logo--light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .9); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink); }
.nav__cta { padding: .65em 1.2em; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.header.is-scrolled .burger span, .header.menu-open .burger span { background: var(--dark-900); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; color: var(--white);
  background: var(--dark-900) url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=1920&q=70") center/cover no-repeat; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(23, 23, 26, .92) 0%, rgba(23, 23, 26, .7) 45%, rgba(23, 23, 26, .3) 100%); }
.hero__content { position: relative; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--red-light); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 56ch; color: rgba(255, 255, 255, .85); margin-bottom: 2.2rem; }

/* Recherche */
.search { max-width: 920px; }
.search__tabs { display: inline-flex; background: rgba(255, 255, 255, .12); border-radius: 12px 12px 0 0; padding: 6px 6px 0; }
.search__tab { background: none; border: 0; color: var(--white); font: 600 .95rem var(--font); padding: .7em 1.6em; border-radius: 8px 8px 0 0; cursor: pointer; }
.search__tab.is-active { background: var(--white); color: var(--dark-900); }
.search__fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; background: var(--white); padding: 18px; border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.search__submit { height: 50px; border-radius: 10px; }
.search__submit svg { width: 20px; height: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field select, .field input, .field textarea { width: 100%; font: 500 .98rem var(--font); color: var(--ink); background: var(--sand); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; height: 50px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b6c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field :is(select, input, textarea):focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 20, 29, .15); }
.field--light :is(input, select, textarea) { background: var(--white); }
.field .is-invalid { border-color: #c0392b; }

/* Chiffres */
.stats { background: var(--red); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--white); line-height: 1.1; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .85); }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--dark-900); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 48px; }
.section__lead { color: var(--muted); max-width: 60ch; margin: 12px 0 0; }

/* Annonces */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--white); border: 1.5px solid var(--line); color: var(--ink); font: 600 .9rem var(--font); padding: .55em 1.2em; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--dark-800); }
.chip.is-active { background: var(--dark-800); border-color: var(--dark-800); color: var(--white); }
.results-info { color: var(--muted); font-size: .92rem; margin-bottom: 22px; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; cursor: pointer; display: flex; flex-direction: column; animation: fadeUp .5s both; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--dark-700), var(--dark-900)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.06); }
.badge { position: absolute; top: 14px; left: 14px; padding: .35em .9em; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge--vente { background: var(--red); color: var(--white); }
.badge--location { background: var(--white); color: var(--dark-800); }
.card__type { position: absolute; bottom: 14px; left: 14px; background: rgba(23, 23, 26, .8); color: var(--white); font-size: .78rem; padding: .3em .8em; border-radius: 6px; }
.card__count { position: absolute; bottom: 14px; right: 14px; background: rgba(23, 23, 26, .8); color: var(--white); font-size: .78rem; padding: .3em .8em; border-radius: 6px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__price { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--red); }
.card__price small { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 500; }
.card__title { font-size: 1.08rem; margin: 4px 0 6px; }
.card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.card__loc svg { width: 16px; height: 16px; }
.features { display: flex; gap: 18px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.features span { display: inline-flex; align-items: center; gap: 6px; }
.features svg { width: 18px; height: 18px; color: var(--red); }

.more { text-align: center; margin-top: 40px; }
.empty { text-align: center; padding: 48px 16px; background: var(--sand); border-radius: var(--radius); color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--white); padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: var(--red); margin-bottom: 18px; transition: background .3s, color .3s; }
.service:hover .service__icon { background: var(--red); color: var(--white); }
.service h3 { font-size: 1.15rem; color: var(--dark-900); }
.service p { color: var(--muted); margin: 0; font-size: .96rem; }

/* À propos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 20px; aspect-ratio: 5 / 6; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); background: var(--tint); }
.about__badge { position: absolute; right: -18px; bottom: 32px; background: var(--red); color: var(--white); padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.about__badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.about__badge span { font-size: .88rem; font-weight: 500; }
.about__text > p { color: var(--muted); }
.about__text > .about__sign { border-left: 3px solid var(--red); padding-left: 14px; color: var(--ink); }
.about__sign strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--dark-900); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--red); color: var(--white); }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.stars { color: #f2b632; letter-spacing: 3px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 22px; color: rgba(255, 255, 255, .85); font-size: 1.02rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption strong { display: block; }
.review figcaption span:last-child { font-size: .88rem; color: rgba(255, 255, 255, .6); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--tint); color: var(--red); }
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact__list a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.map iframe { display: block; width: 100%; height: 240px; border: 0; }
.map__link { display: block; padding: 10px 14px; font-size: .9rem; font-weight: 600; color: var(--dark-800); }
.map__link:hover { color: var(--red); }
.form { background: var(--sand); padding: clamp(24px, 4vw, 40px); border-radius: 20px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__error { color: #c0392b; font-size: .92rem; margin: 0; }

/* Pied de page */
.footer { background: var(--dark-900); color: rgba(255, 255, 255, .7); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer__grid > div > a:not(.logo) { display: block; margin-bottom: 10px; font-size: .95rem; }
.footer__grid a:hover { color: var(--red-light); }
.footer__about { margin-top: 16px; max-width: 32ch; font-size: .95rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, color .2s; }
.socials a:hover { background: var(--red); color: var(--white); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* WhatsApp flottant */
.whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s; }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }

/* Fenêtre détail */
.modal { width: min(920px, 100% - 32px); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(23, 23, 26, .7); backdrop-filter: blur(3px); }
.modal[open] { animation: fadeUp .3s both; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.modal__body { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal__media { position: relative; background: linear-gradient(135deg, var(--dark-700), var(--dark-900)); min-height: 320px; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--dark-900); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.modal__nav:hover { background: var(--red); color: var(--white); }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(23, 23, 26, .75); color: var(--white); font-size: .8rem; padding: .25em .8em; border-radius: 999px; }
.modal__desc { white-space: pre-line; }
.modal__info { padding: 36px 32px; }
.modal__info h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--dark-900); padding-right: 40px; }
.modal__info .card__price { font-size: 1.7rem; margin-bottom: 6px; }
.modal__info p { color: var(--muted); }
.modal__info .features { margin: 18px 0 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__ref { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.work { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; animation: fadeUp .5s both; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.work__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(135deg, var(--dark-700), var(--dark-900)); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover .work__media img { transform: scale(1.06); }
.work__body { padding: 18px 20px 20px; }
.work__body h3 { font-size: 1.08rem; color: var(--dark-900); margin-bottom: 4px; }
.work__body .card__loc { margin-bottom: 8px; }
.work__desc { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.works__info { text-align: center; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 15, 17, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 780px); max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 12px; font-size: .95rem; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: var(--red); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .search__fields { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem; background: var(--white); transform: translateX(100%); transition: transform .35s ease; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { color: var(--ink) !important; font-size: 1.25rem; }
  .header.menu-open .logo { color: var(--dark-900); position: relative; z-index: 2; }
  .about, .contact, .modal__body { grid-template-columns: 1fr; }
  .about__badge { right: 16px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .modal__media { min-height: 260px; }
}

@media (max-width: 600px) {
  .services, .reviews, .form__row { grid-template-columns: 1fr; }
  .search__fields { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .stat strong { font-size: 1.9rem; }
  .modal__info { padding: 28px 22px; }
  .hero { padding-top: 110px; }
}
