/* Eclipse Location — style.css */

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up { animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-in { animation: fadeIn 1s ease both; }

/* ── Header — titre lueur externe ── */
.header-brand-title {
  filter:
    drop-shadow(0 0 8px rgba(201,168,76,.45))
    drop-shadow(0 0 20px rgba(201,168,76,.20));
}
.header-brand:hover .header-brand-title {
  filter:
    drop-shadow(0 0 12px rgba(201,168,76,.65))
    drop-shadow(0 0 28px rgba(201,168,76,.30));
}

/* ── Header — icône building animée ── */
@keyframes building-pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(201,168,76,.22), 0 0 10px rgba(201,168,76,.12);
    color: #C9A84C;
  }
  50% {
    box-shadow: 0 0 0 1px rgba(201,168,76,.52), 0 0 22px rgba(201,168,76,.28);
    color: #e8c87a;
  }
}
.header-building-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(201,168,76,.13) 0%, rgba(201,168,76,.04) 100%);
  border: 1px solid rgba(201,168,76,.26);
  color: #C9A84C;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background .3s, border-color .3s;
  animation: building-pulse 4s ease-in-out infinite;
}
.header-brand:hover .header-building-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.22) 0%, rgba(201,168,76,.08) 100%);
  border-color: rgba(201,168,76,.55);
}

/* ── Header — nav links ── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(245,240,232,.72);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.nav-link i { font-size: .82em; transition: color .25s; }
.nav-link:hover {
  color: #C9A84C;
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.2);
}
.nav-link:hover i { color: #C9A84C; }

/* ── Burger — caché sur desktop, visible sur mobile ── */
.nav-toggle { display: none; flex-direction: column; }

/* ── Header — alignement icône/texte ── */
.header-building-icon {
  vertical-align: middle;
}

/* ── Hero — logo glow pulsé ── */
@keyframes logo-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 52px rgba(201,168,76,.30)) drop-shadow(0 0 18px rgba(201,168,76,.14)); }
  50%       { filter: drop-shadow(0 0 80px rgba(201,168,76,.56)) drop-shadow(0 0 32px rgba(201,168,76,.30)); }
}
.hero-logo-img {
  filter: drop-shadow(0 0 52px rgba(201,168,76,.30)) drop-shadow(0 0 18px rgba(201,168,76,.14));
  animation: logo-pulse-glow 4.5s ease-in-out infinite 1.4s;
}

/* ── Hero — titre shimmer doré gauche → droite ── */
@keyframes text-shimmer {
  0%   { background-position: 100% center; }
  100% { background-position:   0% center; }
}
.hero-title {
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 800;
  background: linear-gradient(90deg,
    #F5F0E8  0%,
    #F5F0E8 34%,
    #C9A84C 43%,
    #ffe8a0 50%,
    #C9A84C 57%,
    #F5F0E8 66%,
    #F5F0E8 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 6s linear infinite 1.5s;
}

/* ── Hero — badge adresse ── */
.hero-address-badge {
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 100px;
  padding: .38rem 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(201,168,76,.07);
}

/* ── Hero — tagline stylisée ── */
.hero-tagline {
  font-family: "Inter", sans-serif; /* déjà la police globale */
  font-style: italic;
  font-weight: 300;
  color: #C4956A;
  letter-spacing: .015em;
  opacity: .9;
}

/* ── Hero — séparateur pulsé ── */
@keyframes separator-pulse {
  0%, 100% { opacity: .40; }
  50%       { opacity: .72; }
}
.hero-separator-line {
  animation: separator-pulse 3.5s ease-in-out infinite 1.2s;
}

/* ── Hero — orbes ambiantes flottantes ── */
@keyframes orb-drift {
  0%, 100% { transform: translate(0,  0)   scale(1);    }
  35%       { transform: translate(3%, -4%) scale(1.07); }
  70%       { transform: translate(-2%, 3%) scale(.94);  }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb-drift ease-in-out infinite;
}
.hero-orb-1 {
  width: clamp(420px,62vw,780px);
  height: clamp(260px,36vw,460px);
  background: radial-gradient(ellipse, rgba(201,168,76,.13) 0%, transparent 68%);
  top: -18%; left: -10%;
  filter: blur(55px);
  animation-duration: 16s;
  animation-delay: -3s;
}
.hero-orb-2 {
  width: clamp(280px,38vw,520px);
  height: clamp(180px,26vw,360px);
  background: radial-gradient(ellipse, rgba(196,149,106,.10) 0%, transparent 68%);
  bottom: 8%; right: 3%;
  filter: blur(70px);
  animation-duration: 22s;
  animation-delay: -9s;
}

/* ── Hero — grain cinématique ── */
@keyframes grain-shift {
  0%   { background-position:   0%   0%; }
  20%  { background-position:  -4%  -8%; }
  40%  { background-position:   6%   5%; }
  60%  { background-position:  -3%   9%; }
  80%  { background-position:   5%  -4%; }
  100% { background-position:   0%   0%; }
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  animation: grain-shift 0.55s steps(1) infinite;
}

/* ── Hero — particules dorées flottantes ── */
@keyframes particle-float {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  8%   {                                           opacity: .65; }
  92%  {                                           opacity: .65; }
  100% { transform: translateY(-110px) scale(.4); opacity: 0; }
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,168,76,.6);
  pointer-events: none;
  animation: particle-float linear infinite;
}

/* ── Hero — fondu bas renforcé ── */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  pointer-events: none;
  z-index: 15;
  background: linear-gradient(to bottom,
    transparent          0%,
    rgba(17,18,20,.30)  30%,
    rgba(17,18,20,.68)  58%,
    rgba(17,18,20,.92)  78%,
    #111214             100%
  );
}
/* Ligne or fine à la jonction */
.hero-bottom-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.28) 30%, rgba(201,168,76,.28) 70%, transparent);
}

/* ── Hero — indicateur de défilement ── */
@keyframes scroll-dot-anim {
  0%   { transform: translateX(-50%) translateY(0);    opacity: 1; }
  75%  { transform: translateX(-50%) translateY(11px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0);    opacity: 0; }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
.hero-scroll-wrapper {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: fadeIn 0.9s ease both 0.9s;
}
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  animation: scroll-bounce 2.4s ease-in-out infinite 2s;
}
.scroll-mouse {
  width: 23px;
  height: 38px;
  border: 1.5px solid rgba(201,168,76,.42);
  border-radius: 12px;
  position: relative;
  background: rgba(201,168,76,.04);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 16px rgba(201,168,76,.10);
}
.scroll-mouse-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(201,168,76,.82);
  border-radius: 2px;
  animation: scroll-dot-anim 2s ease-in-out infinite;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed { opacity: 1; transform: none; }

/* ── Sélection de texte désactivée ── */
* { user-select: none; -webkit-user-select: none; }

/* ── Smooth scroll & font rendering ── */
html {
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #C9A84C #111111;
}
body { -webkit-font-smoothing: antialiased; }

/* ── Scrollbar personnalisée (Webkit/Blink) ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #a07830, #C9A84C, #a07830);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #C9A84C, #ffe4a0, #C9A84C);
}

/* ── Section backgrounds ── */
.bg-section-apt {
  background:
    radial-gradient(ellipse 75% 55% at 8% 90%,  rgba(201,168,76,.06)  0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 10%,  rgba(196,149,106,.04) 0%, transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 40px,
      rgba(201,168,76,.012) 40px, rgba(201,168,76,.012) 41px
    ),
    #111214;
}

.bg-section-contact {
  background:
    radial-gradient(ellipse 75% 55% at 92% 90%,  rgba(201,168,76,.06)  0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 8%  10%,  rgba(196,149,106,.04) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 40px,
      rgba(201,168,76,.012) 40px, rgba(201,168,76,.012) 41px
    ),
    #0f0f11;
}

/* ── Carousel (inside .apt-img-wrap) ── */
.carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ── Image zoom on hover ── */
.apt-photo-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.apt-card:hover .apt-photo-img { transform: scale(1.05); }

/* ── Inset gold border on hover ── */
.apt-card {
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.apt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(0,0,0,.55), 0 0 0 1.5px rgba(201,168,76,.5);
}

/* ── Carousel controls: appear on hover ── */
.carousel-btn, .carousel-dots {
  transition: opacity 0.3s ease;
  opacity: 0;
}
.apt-card:hover .carousel-btn,
.apt-card:hover .carousel-dots { opacity: 1; }

@media (max-width: 768px) {
  .carousel-btn, .carousel-dots { opacity: 1; }
}
