/* ═══════════════════════════════════════════
   CABINET KANY — main.css
   Variables globales, reset, typographie, utilitaires
═══════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  /* Couleurs principales */
  --navy:       #1a2456;
  --navy-light: #243070;
  --navy-dark:  #0f1535;
  --gold:       #c9a84c;
  --gold-light: #e2c577;
  --gold-dark:  #a07830;

  /* Backgrounds */
  --cream:      #f8f5ef;
  --cream-dark: #ede8dd;
  --white:      #ffffff;

  /* Textes */
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
  --text-light: #8a8aaa;

  /* Typographies */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;

  /* Espacements */
  --section-padding: 92px 8%;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;

  /* WhatsApp */
  --wa-green: #25D366;
  --wa-dark:  #128C7E;

  /* Numéro WhatsApp (à mettre à jour si besoin) */
  --wa-number: '221711680592';
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); }
ul, ol { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── SECTION UTILITAIRES ── */
section { padding: var(--section-padding); }

.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy-dark);
}
.section-title em { color: var(--gold); font-style: italic; }
.section-title--white { color: #fff; }

.section-divider {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 18px 0 34px;
}
.section-divider--center { margin: 18px auto 34px; }
.section-divider--light { background: rgba(201, 168, 76, 0.4); }

/* ── BOUTONS ── */
.btn-gold {
  display: inline-block;
  padding: 13px 34px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  transition: var(--transition);
  border: none;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-navy {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--gold); }

.btn-outline-gold {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--wa-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
}
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-sans);
}
.badge--rent  { background: var(--gold); color: var(--navy-dark); }
.badge--sale  { background: var(--navy); color: var(--gold); }
.badge--new   { background: #27ae60; color: #fff; }
.badge--gold  { background: var(--gold); color: var(--navy-dark); }

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition);
  animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); background: var(--wa-dark); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 8px 42px rgba(37,211,102,0.7), 0 0 0 7px rgba(37,211,102,0.1); }
}

/* ── TEXTE CENTRÉ ── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-white  { color: #fff; }
.text-navy   { color: var(--navy); }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 768px) {
  section { padding: 60px 4%; }
  :root { --section-padding: 60px 4%; }
}

/* ── ANTI-FLICKER GLOBAL ── */
img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}