/* ============================================================
   Côte d'Azur Immobilier — Design tokens & composants
   Éditorial Riviera raffiné : encre profonde, sable, accent or
   ============================================================ */

:root {
  --ink: #0B2440;
  --ink-deep: #06182b;
  --ink-2: #123a5e;
  --gold: #C6A15B;
  --gold-soft: #dcc189;
  --sand: #F5F1EA;
  --sand-deep: #eae3d6;
  --seateal: #1E5D6B;
  --paper: #ffffff;
  --graphite: #22303a;
  --slate: #5b6b77;
  --line: rgba(11, 36, 64, 0.14);
  --maxw: 76rem;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--graphite);
  background-color: var(--sand);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: "Cormorant Garamond", Georgia, serif; }

::selection { background: var(--gold); color: var(--ink-deep); }

/* ---------- Typographie éditoriale ---------- */

.eyebrow {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.eyebrow--light { color: var(--gold-soft); }

.display-hero {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.text-balance { text-wrap: balance; }

/* Ornement : trait + losange or */
.rule {
  display: inline-block;
  width: 2.75rem;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.85rem;
}
.rule::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-4px);
  margin-left: 0.55rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.95rem 1.6rem;
  border-radius: 9999px;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink-deep);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--sand); transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.btn-outline-ink {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline-ink:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--gold-soft); }

.site-nav button {
  color: rgba(255, 255, 255, 0.86);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-nav button:hover { color: #fff; }
.site-nav button[aria-current="page"] { color: var(--gold-soft); }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }

/* Dropdown desktop */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 1.25rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 17rem;
  background: var(--ink-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.55);
}
.has-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-panel a { display: block; padding: 0.55rem 1.4rem; color: rgba(255,255,255,0.8); font-size: 0.86rem; }
.dropdown-panel a:hover { color: var(--gold-soft); background: rgba(255,255,255,0.04); }
.dropdown-panel a::after { display: none; }
.dropdown-panel a + a { margin-top: 0.15rem; }

.dropdown-title { padding: 0.4rem 1.4rem 0.6rem; font-family: "Cormorant Garamond", serif; font-size: 1.05rem; color: #fff; }

/* ---------- Héro ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 0rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,24,43,0.42) 0%, rgba(6,24,43,0.05) 40%, rgba(6,24,43,0.78) 100%),
    linear-gradient(90deg, rgba(6,24,43,0.38) 0%, rgba(6,24,43,0) 55%);
}
.hero-content { position: relative; z-index: 2; }

/* Entrée en cascade du héros */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: riseIn 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.rise.d1 { animation-delay: 0.10s; }
.rise.d2 { animation-delay: 0.22s; }
.rise.d3 { animation-delay: 0.34s; }
.rise.d4 { animation-delay: 0.46s; }

/* ---------- Sections réutilisables ---------- */

.section-pad { padding-top: 7rem; padding-bottom: 7rem; }

.bg-ink { background-color: var(--ink); }
.bg-ink-deep { background-color: var(--ink-deep); }
.bg-sand-light { background-color: var(--sand); }
.bg-sand-deep { background-color: var(--sand-deep); }
.text-ink { color: var(--ink); }
.text-gold { color: var(--gold); }
.text-slate { color: var(--slate); }

/* Divider oraison */
.wave-divider { height: 5px; background: repeating-linear-gradient(90deg, var(--gold) 0 30px, transparent 30px 62px); opacity: 0.55; }

/* Carte discrète (uniquement quand utile) */
.feature-item { border-top: 1px solid var(--line); padding: 1.9rem 0; }

/* Chiffres géants */
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--gold);
}

/* Grille des 9 sections */
.section-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.section-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 22px 44px -22px rgba(11,36,64,0.28);
}
.section-tile .num { font-family: "Cormorant Garamond", serif; color: var(--gold); font-size: 1.6rem; }

/* Liens en savoir + */
.link-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; letter-spacing: 0.03em; color: var(--ink);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 0.15rem;
}
.link-more .arrow { transition: transform 0.25s ease; }
.link-more:hover .arrow { transform: translateX(5px); }

/* Blockquote éditorial */
.pull-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 1.6rem;
}

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer a { color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-soft); }

/* Focus visible accessibilité */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}