/* =========================================================
   Horizon Immobilier — premium.css
   Couche "haut de gamme" : header compact, hover cards,
   shine boutons, curseur custom, ornements, indicateur scroll
   ========================================================= */

/* ---------- 1. Header compact au scroll ---------- */
.site-header {
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, .96);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.site-header.is-scrolled .nav { padding: 10px 0; }
.site-header.is-scrolled .nav__logo img { height: 30px; transition: height .35s ease; }
.nav, .nav__logo img { transition: padding .35s ease, height .35s ease; }

/* ---------- 2. Eyebrow ornemental (tirets dorés) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-gold);
  display: inline-block;
}
.section--dark .eyebrow::before { background: var(--c-gold-light); }
/* Sur le hero, eyebrow déjà décalé en blanc/or */
.hero .eyebrow::before { background: var(--c-gold-light); }

/* ---------- 3. Bouton or — effet "shine" ---------- */
.btn--gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--gold::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,.35) 50%,
    transparent 100%);
  transform: skewX(-20deg);
  transition: left .8s ease;
  z-index: 1;
}
.btn--gold:hover::before { left: 130%; }
.btn--gold > * { position: relative; z-index: 2; }

/* ---------- 4. Cartes biens — overlay premium au hover ---------- */
.bien-card {
  position: relative;
  cursor: pointer;
}
.bien-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15, 31, 31, .85) 0%,
    rgba(15, 31, 31, .35) 40%,
    transparent 70%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.bien-card:hover .bien-card__media::after { opacity: 1; }

.bien-card__cta {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  background: var(--c-gold);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  z-index: 2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bien-card:hover .bien-card__cta {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bien-card__cta::after {
  content: "→";
  transition: transform .3s ease;
}
.bien-card:hover .bien-card__cta::after { transform: translateX(4px); }

/* Le badge gagne un léger reflet permanent */
.bien-card__badge {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(26, 58, 58, .85);
}

/* ---------- 5. Hero — indicateur de scroll ---------- */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: none;
  animation: scroll-fade-in 1.2s ease 1.5s both;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--c-gold-light));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--c-gold);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { top: -50%; }
  100% { top: 100%; }
}
@keyframes scroll-fade-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 6. Témoignages — guillemet ornemental ---------- */
.testimonial {
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "\201C"; /* « curly quote */
  position: absolute;
  top: -22px;
  left: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: .18;
  pointer-events: none;
}
.testimonial__quote { position: relative; z-index: 1; }

/* ---------- 7. Section "soft" — accent décoratif au-dessus du h2 ---------- */
.section-head h2 {
  position: relative;
}

/* Décoratif au-dessus de chaque section-head éligible */
.section .section-head::before,
.section--soft .section-head::before,
.section--dark .section-head::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  margin-bottom: 20px;
  opacity: .8;
}

/* ---------- 8. Section split À propos — déjà géré par .reveal--left/right ---------- */
/* (les classes sont déjà dans animations.css) */

/* ---------- 9. Section dark — subtile texture lumineuse ---------- */
.section--dark {
  background:
    radial-gradient(ellipse at top right, rgba(184, 153, 104, .08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(36, 81, 81, .15) 0%, transparent 50%),
    var(--c-dark);
}

/* ---------- 10. Stats — accent gold sur le compteur ---------- */
.stat {
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--c-line);
}
.stat__value {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 11. Curseur custom (desktop uniquement) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--c-gold);
  transition: transform .15s ease, opacity .2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(184, 153, 104, .55);
  transition: width .3s ease, height .3s ease, border-color .3s ease, opacity .2s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--c-gold);
  background: rgba(184, 153, 104, .08);
}
.cursor-dot.is-hover { transform: translate(-50%, -50%) scale(1.6); }

/* On masque sur tactile / souris non précise */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  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: none; }
}

/* ---------- 12. Réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn--gold::before,
  .hero__scroll,
  .hero__scroll-line::after,
  .cursor-dot, .cursor-ring { display: none !important; animation: none !important; }
  .bien-card__cta { opacity: 1; transform: translate(-50%, 0); }
}
