/* =========================================================
   Horizon Immobilier — clean.css
   Couche "épurée" : nav recentrée, logo 3D, suppression des
   ornements trop chargés, plus de respiration.
   ========================================================= */

/* ---------- 1. Navigation recentrée ---------- */
.nav {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  padding: 24px 0;
  align-items: center;
}
.nav__logo,
.nav__cta { display: none !important; }

.nav__menu {
  display: flex;
  margin: 0;
  gap: 36px;
  list-style: none;
  padding: 0;
}
.nav__menu--left  { justify-self: end; }
.nav__menu--right { justify-self: start; }

.nav__menu a {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }

/* ---------- 2. Logo 3D centré ---------- */
.logo-3d {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: transform .35s ease;
}
.logo-3d:hover { transform: translateY(-2px); }

/* Logo image — plus grand, apparition 3D + parallaxe au mouvement */
.logo-3d {
  perspective: 900px;
  transform-style: preserve-3d;
}
.logo-3d__img {
  height: 92px;
  width: auto;
  display: block;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0);
  transform-origin: center center;
  transition: filter .35s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  backface-visibility: hidden;
  /* Le PNG du logo est désormais réellement transparent (fond blanc supprimé),
     plus besoin de mix-blend-mode (qui était neutralisé par la perspective 3D). */
}
.logo-3d:hover .logo-3d__img {
  /* Pas de filter ici : casserait mix-blend-mode et ferait réapparaître le rectangle blanc. */
  transform: perspective(900px) translateZ(0) scale(1.04);
}

/* Header rétréci au scroll : logo passe en taille moyenne */
.site-header.is-scrolled .logo-3d__img { height: 62px; }
@media (max-width: 900px) {
  .logo-3d__img { height: 56px; }
  .site-header.is-scrolled .logo-3d__img { height: 48px; }
}

/* Apparition centrale : le logo émerge depuis la profondeur, axe central,
   zoom + flou qui se résorbe + léger glow rouge qui retombe. */
.logo-3d__img {
  animation: logo-enter 1.5s cubic-bezier(.2,.8,.2,1) .25s both;
  transform-origin: center center;
}
@keyframes logo-enter {
  /* Pas de "filter" ici : un filter (même blur 0) crée un stacking context
     qui désactive mix-blend-mode → le rectangle blanc réapparaîtrait. */
  0% {
    opacity: 0;
    transform: perspective(900px) translateZ(-500px) scale(.25);
  }
  80% {
    opacity: 1;
    transform: perspective(900px) translateZ(40px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) translateZ(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-3d__img { animation: none; opacity: 1; transform: none; }
}

.logo-3d__main {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--c-text, #0a0a0a);
  letter-spacing: .02em;
  line-height: 1;
  position: relative;
  text-shadow:
    1px 1px 0 #ffb3b0,
    2px 2px 0 #ff7d7a,
    3px 3px 0 #E10600,
    4px 4px 0 #B30500,
    5px 5px 0 #800400,
    6px 6px 12px rgba(0,0,0,.18);
  transition: text-shadow .4s ease, transform .4s ease;
}
.logo-3d:hover .logo-3d__main {
  text-shadow:
    1px 1px 0 #ffb3b0,
    2px 2px 0 #ff7d7a,
    3px 3px 0 #E10600,
    4px 4px 0 #B30500,
    5px 5px 0 #800400,
    6px 6px 0 #4d0200,
    7px 7px 18px rgba(0,0,0,.22);
}

.logo-3d__sub {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--c-stone, #8a8377);
  font-weight: 500;
  margin-left: .42em; /* compense le tracking */
}

/* Header compact : on rétrécit le logo */
.site-header.is-scrolled .logo-3d__main { font-size: 1.55rem; }
.site-header.is-scrolled .logo-3d__sub  { font-size: .58rem; }

/* ---------- 3. Mobile nav ---------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--c-text);
  transition: transform .3s;
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__menu--left, .nav__menu--right { display: none; }
  .nav__toggle { display: flex; }
  .logo-3d__main { font-size: 1.6rem; }
  .logo-3d__sub  { font-size: .58rem; letter-spacing: .35em; }
}

/* ---------- 4. Épuration : on cache les ornements trop chargés ---------- */
.section[data-section-num]::before { display: none !important; }
.section-head__number { display: none !important; }
.testimonial::before { display: none; }

/* On enlève le curseur custom (qui peut sembler gimmick sur "épuré") */
.cursor-dot, .cursor-ring { display: none !important; }
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor select,
body.has-custom-cursor .bien-card,
body.has-custom-cursor .service-card { cursor: auto !important; }

/* ---------- 5. Plus de respiration entre sections ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 60px; }
@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- 6. Hero accueil simplifié ---------- */
.hero { min-height: 92vh; }
.hero__cta { margin-bottom: 28px; }

/* La searchbar est un peu lourde ; on l'allège */
.searchbar {
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

/* ---------- 6b. Hero CLEAN (image seule, sans texte) ---------- */
.hero--clean { min-height: 70vh; position: relative; }
.hero--clean > .container { display: none; }
.hero--clean::after { display: none; } /* on retire l'overlay : pas de texte à faire ressortir */

/* Dégradé doux en bas du hero : l'image fond progressivement vers la couleur
   de fond du site, ce qui supprime la ligne nette entre le hero et la section suivante. */
.hero--clean::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--c-bg) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Section recherche : carte qui chevauche le bas du hero */
.search-section {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 24px;
}
.searchbar--standalone {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
  border-radius: 999px;
  padding: 10px;
  grid-template-columns: 1fr 1fr 1.4fr auto;
}
.searchbar--standalone input::placeholder { color: var(--c-muted); }
@media (max-width: 900px) {
  .hero--clean { min-height: 56vh; }
  .search-section { margin-top: -36px; padding-bottom: 16px; }
  .searchbar--standalone { border-radius: 14px; padding: 8px; }
}

/* ---------- 7. Cartes biens minimales ---------- */
.bien-card__media { aspect-ratio: 4 / 5; }
.bien-card__cta { display: none; } /* l'overlay CTA était un peu chargé */
.bien-card__media::after { display: none; } /* on garde juste le zoom doux */
.bien-card:hover { transform: translateY(-3px); }

/* Biens vedettes accueil : 2 colonnes, largeur contenue */
[data-biens-vedette] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 0 auto;
  gap: 40px;
}
@media (max-width: 700px) {
  [data-biens-vedette] { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 8. Stats : simplifié ---------- */
.stats {
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border-radius: 4px;
}

/* ---------- 9. Footer un peu plus aéré ---------- */
.site-footer { padding: 80px 0 30px; }
.footer-grid { padding-bottom: 40px; }

/* ---------- 10. Mobile menu drawer (overlay simple) ---------- */
.nav__mobile {
  display: none; /* caché par défaut sur desktop */
}
@media (max-width: 900px) {
  .nav__mobile {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.76,0,.24,1);
    pointer-events: none;
  }
}
.nav__mobile.is-open {
  transform: translateY(0);
  pointer-events: all;
}
.nav__mobile a {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--c-accent);
  text-decoration: none;
}

/* =========================================================
   11. PASSE MINIMALISTE & ERGONOMIQUE (refonte sections)
   ========================================================= */

/* 11a. Tuer les ornements résiduels */
.eyebrow::before { display: none !important; }                   /* tiret rouge avant eyebrow */
.section[data-section-num]::before { display: none !important; } /* labels verticaux "01 — L'AGENCE" */
.section-head__number { display: none !important; }              /* chiffre filigrane */
.testimonial::before { display: none !important; }               /* guillemet géant Playfair */
.section .section-head::before,
.section--soft .section-head::before,
.section--dark .section-head::before { display: none !important; }

/* 11b. Typographie : moins d'italique éditorial */
h2,
.split h2,
.bien-card__title { font-style: normal; }
.bien-card__title { font-weight: 500; letter-spacing: -.005em; }

/* Eyebrows sobres : tracking, taille, couleur muted */
.eyebrow {
  display: inline-block;
  gap: 0;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

/* 11c. Espacement des sections : un cran plus serré */
.section { padding: 90px 0; }
.section-head { margin-bottom: 48px; }
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* 11d. Service cards : tuile minimale, sans hover-lift */
.service-card {
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color .25s ease, background .25s ease;
}
.service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-text);
  background: var(--c-soft);
}
.service-card__icon {
  background: transparent;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 600; font-style: normal; }
.service-card p { font-size: .88rem; line-height: 1.55; }

/* 11e. Bouton gold/red — on tue le shine (gimmick) */
.btn--gold::before { display: none !important; }
.btn { letter-spacing: .02em; }

/* 11f. Témoignages : on passe la section en blanc, citation sobre */
.section--dark {
  background: #fff;
  color: var(--c-text);
}
.section--dark h2 { color: var(--c-text); }
.section--dark .eyebrow { color: var(--c-muted); }
.testimonial {
  background: transparent;
  border: none;
  border-top: 1px solid var(--c-line);
  padding: 28px 0 0;
  border-radius: 0;
}
.testimonial__quote {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-text);
  margin-bottom: 20px;
}
.testimonial__author { font-weight: 600; font-size: .9rem; color: var(--c-text); }
.testimonial__role { font-size: .8rem; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }

/* 11g. Section split (À propos) : prose plus directe */
.split { gap: 60px; align-items: center; }
.split h2 { font-style: normal; max-width: 480px; }
.split .prose { font-size: 1rem; line-height: 1.7; color: var(--c-text); }
.split img { border-radius: 8px; max-height: 480px; object-fit: cover; }

/* 11h. CTA finale : centrée, sobre */
.section .text-center h2 { font-style: normal; }

/* 11i. Footer plus discret */
.site-footer {
  background: var(--c-soft);
  color: var(--c-muted);
}
.site-footer h4 { color: var(--c-text); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.site-footer a { color: var(--c-muted); }
.site-footer a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid var(--c-line); padding-top: 24px; font-size: .82rem; }

/* =========================================================
   Page détail d'un bien (bien.html)
   ========================================================= */
.bien-detail__hero {
  padding: 40px 0 0;
}
.bien-detail__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--c-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s ease;
}
.bien-detail__back:hover { color: var(--c-accent); }

.bien-gallery__main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--c-soft);
}
.bien-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
}
.bien-gallery__img.is-active {
  opacity: 1;
}
.bien-gallery__main .bien-card__badge {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
}

/* Badge « Exclusivité » : en haut à droite, couleurs inversées du badge type */
.bien-card__badge--exclu {
  left: auto;
  right: 14px;
  background: var(--c-accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
}
.bien-gallery__main .bien-card__badge--exclu {
  left: auto;
  right: 20px;
}
.bien-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .2s ease, transform .2s ease;
  z-index: 3;
}
.bien-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.bien-gallery__nav--prev { left: 20px; padding-right: 4px; }
.bien-gallery__nav--next { right: 20px; padding-left: 4px; }
.bien-gallery__counter {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  z-index: 3;
}
@media (max-width: 600px) {
  .bien-gallery__nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .bien-gallery__nav--prev { left: 10px; }
  .bien-gallery__nav--next { right: 10px; }
}
.bien-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.bien-gallery__thumb {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.bien-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bien-gallery__thumb:hover { transform: translateY(-2px); }
.bien-gallery__thumb.is-active { border-color: var(--c-accent); }
.bien-gallery__placeholder {
  margin-top: 16px;
  padding: 16px;
  background: var(--c-soft);
  border-radius: 10px;
  text-align: center;
  color: var(--c-muted);
  font-size: .9rem;
  font-style: italic;
}

.bien-detail__body { padding-top: 50px; }
.bien-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .bien-detail__grid { grid-template-columns: 1fr; }
}

.bien-detail__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 500;
  margin: 8px 0 6px;
  letter-spacing: -.01em;
}
.bien-detail__location {
  color: var(--c-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}
.bien-detail__price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--c-accent);
  margin-bottom: 32px;
}

.bien-detail__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.bien-spec {
  background: #fff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bien-spec__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
}
.bien-spec__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
}
.bien-spec__value--dpe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}
.bien-spec__value--dpe-a { background: #2dab66; }
.bien-spec__value--dpe-b { background: #4eb84b; }
.bien-spec__value--dpe-c { background: #c9d83b; color: #333; }
.bien-spec__value--dpe-d { background: #f6d949; color: #333; }
.bien-spec__value--dpe-e { background: #efa137; }
.bien-spec__value--dpe-f { background: #e36a3b; }
.bien-spec__value--dpe-g { background: #d63b3b; }

.bien-detail__section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 16px;
}

.bien-equipements {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.bien-equipements li {
  padding: 10px 14px;
  background: var(--c-soft);
  border-radius: 8px;
  font-size: .92rem;
  position: relative;
  padding-left: 32px;
}
.bien-equipements li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: var(--c-accent);
  font-weight: 700;
}

.bien-detail__aside {
  position: sticky;
  top: 90px;
}
.bien-contact-card {
  background: var(--c-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.bien-contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.bien-contact-card p {
  color: var(--c-muted);
  font-size: .92rem;
  margin: 0 0 20px;
}
.btn--block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
.bien-contact-card__hours {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .bien-detail__title { font-size: 1.8rem; }
  .bien-detail__price { font-size: 1.5rem; }
}
