/* ══════════════════════════════════════════════
   CBF CONSEILS — Feuille de style commune
   ══════════════════════════════════════════════ */

/* Fonts loaded via <link> in HTML head — no @import needed */

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

:root {
  --accent:      #FFDE59;
  --accent-h:    #FFE97A;
  --dark:        #0D0D0D;
  --charcoal:    #1A1A1A;
  --grey:        #777777;
  --grey-light:  #BBBBBB;
  --light:       #F5F5F5;
  --white:       #FFFFFF;
  --border:      rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.1);
  --nav-h:       82px;
  /* compat alias */
  --gold:        #FFDE59;
  --gold-light:  #FFE97A;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; }

/* ══ NAVIGATION ══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.dark,
nav.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
nav .nav-logo { justify-self: start; }
nav .nav-links { justify-self: center; }
.nav-cta-wrap  { justify-self: end; }
nav .hamburger { justify-self: end; }

.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 62px; width: auto; display: block;
  /* logo PNG is already white, no filter needed */
  transition: opacity 0.3s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white) !important; }
.nav-links a.active::after { width: 100%; }

.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  padding: 11px 26px;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  transition: background 0.25s, transform 0.2s !important;
  text-decoration: none;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-h) !important; transform: translateY(-1px); }

.nav-cta-rdv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cta-rdv::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFDE59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.nav-cta-rdv:hover { color: #fff !important; border-bottom-color: #FFDE59; }
.nav-cta-rdv::after { display: none !important; }
@media (max-width: 1100px) { .nav-cta-rdv { display: none; } }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 12px;
  /* iOS : élimine le délai 300ms + grande zone tap (44px+ recommandé Apple) */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: transform 0.3s; pointer-events: none; }

/* ══ FOCUS STATES (accessibilité) ══════════════ */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ══ BOUTONS ══════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--dark); color: var(--white);
  padding: 16px 44px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); }

.btn-accent {
  display: inline-block;
  background: var(--accent); color: var(--dark);
  padding: 16px 44px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-accent:hover { background: var(--accent-h); transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-block;
  background: transparent; color: var(--dark);
  padding: 15px 44px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1.5px solid rgba(0,0,0,0.25); cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline-dark:hover { border-color: var(--dark); background: var(--dark); color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 15px 44px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.28); cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline-light:hover { border-color: var(--white); background: var(--white); color: var(--dark); transform: translateY(-2px); }

/* ══ SECTION HEADER ══════════════════════════ */
.section-tag {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 400; line-height: 1.1;
  color: var(--dark);
}
.section-title em { font-style: italic; color: var(--dark); }
.section-line {
  width: 36px; height: 2px;
  background: var(--accent);
  margin-top: 20px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-line { margin-left: auto; margin-right: auto; }

/* ══ MARQUEE ══════════════════════════════════ */
.marquee-band {
  background: var(--light);
  overflow: hidden; padding: 18px 0;
  white-space: nowrap; user-select: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marquee 72s linear infinite;
}
.marquee-item {
  display: inline-block;
  font-size: 12px; font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding: 0 56px;
}
.marquee-dot {
  display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
  vertical-align: middle; flex-shrink: 0;
  margin: 0 -40px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ PAGE HERO (sous-pages) ══════════════════ */
.page-hero {
  height: 52vh; min-height: 360px;
  position: relative; display: flex;
  align-items: flex-end; padding: 0 64px 64px;
  overflow: hidden; margin-top: var(--nav-h);
}
.page-hero-bg { position: absolute; inset: 0; background: var(--charcoal); }
.page-hero-bg img { opacity: 0.45; object-position: center 60%; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-bread {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 14px;
}
.page-hero-bread a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.page-hero-bread a:hover { color: var(--white); }
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 68px); font-weight: 400;
  color: var(--white); line-height: 1.08;
}
.page-hero-title em { font-style: italic; color: rgba(255,255,255,0.85); }

/* ══ STATS BAR ════════════════════════════════ */
.stats-bar {
  background: var(--white);
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.stats-bar .stat {
  flex: 1; max-width: 240px; text-align: center;
  padding: 52px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stats-bar .stat:last-child { border-right: none; }
.stats-bar .stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.stats-bar .stat:hover::after { width: 40px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 400;
  color: var(--dark); line-height: 1;
}
.stat-num sup { font-size: 22px; vertical-align: super; }
.stat-lbl {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey-light); margin-top: 10px;
}

/* ══ CARDS BIENS ══════════════════════════════ */
.property-card {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--charcoal);
}
.property-card .card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
}
.property-card:hover .card-img { transform: scale(1.06); }
.property-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 32px;
  transition: background 0.4s;
}
.property-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.08) 100%);
}
.card-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--white); color: var(--dark);
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 14px;
}
.card-badge.off-market { background: var(--dark); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.card-location {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--white);
  line-height: 1.25; margin-bottom: 12px;
}
.card-specs { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.card-spec { font-size: 9.5px; font-weight: 400; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
.spec-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.18); }
.card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white); margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.card-arrow {
  position: absolute; bottom: 28px; right: 28px;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 15px;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.35s;
}
.property-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ══ FOOTER ══════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 80px 64px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-logo { margin-bottom: 20px; }
.footer-desc {
  font-size: 12.5px; font-weight: 300;
  line-height: 2; color: rgba(255,255,255,0.6);
  max-width: 240px;
}
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 12px;
  transition: border-color 0.3s, color 0.3s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col-title {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 22px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 12.5px; font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s; letter-spacing: 0.02em;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 28px;
}
.footer-copy { font-size: 10.5px; font-weight: 300; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a {
  font-size: 10.5px; font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--white); }

/* ══ ANIMATIONS ══════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1200px) {
  nav { padding: 0 40px; }
  footer { padding: 60px 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-hero { padding: 0 40px 52px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  nav { padding: 0 24px; }
  .nav-cta-wrap { display: none; }
  .hamburger { display: flex; z-index: 1001; position: relative; }
  .hamburger span { transition: transform .35s cubic-bezier(.6,0,.4,1), opacity .25s; transform-origin: center; }

  /* Menu mobile = panneau plein écran */
  nav .nav-links,
  .nav-links {
    display: flex !important;
    position: fixed; inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(13,13,13,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    gap: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 22px 8px;
    font-size: 14px !important;
    letter-spacing: .26em !important;
    color: rgba(255,255,255,.9) !important;
    font-weight: 500 !important;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active {
    color: #FFDE59 !important;
  }

  /* Hamburger → X quand menu ouvert */
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Bloque le scroll body quand menu ouvert */
  body.nav-open { overflow: hidden; }

  footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .page-hero { padding: 0 24px 40px; }
  .stats-bar { flex-wrap: wrap; }
  .stats-bar .stat { border-right: none; border-bottom: 1px solid var(--border); max-width: 100%; width: 50%; }
}
@media (max-width: 480px) {
  .stats-bar .stat { width: 100%; }
}
