/* ================================================================
   PRESTIGEVILLASTAY — Design System Luxueux
   Police : Playfair Display (serif) + DM Sans (sans-serif)
   Palette : Ivoire · Or profond · Marine · Anthracite · Blanc pur
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --ivory:        #F9F6EF;
  --ivory-dark:   #EDE8DC;
  --gold:         #B89A5E;
  --gold-light:   #D4B98A;
  --gold-dark:    #8A6F3C;
  --navy:         #1A2540;
  --navy-light:   #243056;
  --charcoal:     #2D2D2D;
  --slate:        #5C6070;
  --silver:       #9DA3AE;
  --border:       #E4DFD4;
  --white:        #FFFFFF;
  --success:      #2E7D5A;
  --error:        #C0392B;

  /* Typographie */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Tailles */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md:   1.0625rem;  /* 17px */
  --text-lg:   1.1875rem;  /* 19px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  4.75rem;    /* 76px */

  /* Espacements */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w: 1320px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 76px;

  /* Rayon */
  --r-xs: 2px;   --r-sm: 4px;   --r-md: 8px;
  --r-lg: 12px;  --r-xl: 18px;  --r-2xl: 24px;

  /* Ombres */
  --sh-xs: 0 1px 3px rgba(26,37,64,.06);
  --sh-sm: 0 2px 8px rgba(26,37,64,.08);
  --sh-md: 0 6px 20px rgba(26,37,64,.10);
  --sh-lg: 0 16px 40px rgba(26,37,64,.12);
  --sh-xl: 0 30px 60px rgba(26,37,64,.15);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-base: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 480ms cubic-bezier(.4,0,.2,1);

  /* Legacy aliases pour compatibilité vues existantes */
  --color-sand:        var(--ivory);
  --color-sand-light:  var(--ivory);
  --color-sand-dark:   var(--ivory-dark);
  --color-primary:     var(--navy);
  --color-primary-dark: var(--navy-light);
  --color-primary-light: #3A4A7A;
  --color-gold:        var(--gold);
  --color-gold-dark:   var(--gold-dark);
  --color-dark:        var(--charcoal);
  --color-dark-800:    var(--navy);
  --color-white:       var(--white);
  --color-gray-50:     var(--ivory);
  --color-gray-100:    var(--ivory-dark);
  --color-gray-200:    var(--border);
  --color-gray-400:    var(--silver);
  --color-gray-500:    var(--slate);
  --color-gray-700:    #484848;
  --color-gray-900:    var(--charcoal);
  --color-success:     var(--success);
  --color-error:       var(--error);
  --font-heading:      var(--font-serif);
  --font-body:         var(--font-sans);
  --font-size-xs:      var(--text-xs);
  --font-size-sm:      var(--text-sm);
  --font-size-base:    var(--text-base);
  --font-size-lg:      var(--text-lg);
  --font-size-xl:      var(--text-xl);
  --font-size-2xl:     var(--text-2xl);
  --font-size-3xl:     var(--text-3xl);
  --font-size-4xl:     var(--text-4xl);
  --font-size-5xl:     var(--text-5xl);
  --space-1: var(--sp-1); --space-2: var(--sp-2); --space-3: var(--sp-3);
  --space-4: var(--sp-4); --space-5: var(--sp-5); --space-6: var(--sp-6);
  --space-8: var(--sp-8); --space-10: var(--sp-10); --space-12: var(--sp-12);
  --space-16: var(--sp-16); --space-20: var(--sp-20); --space-24: var(--sp-24);
  --space-32: var(--sp-32);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl); --radius-2xl: var(--r-2xl); --radius-full: 9999px;
  --shadow-sm: var(--sh-sm); --shadow-md: var(--sh-md); --shadow-lg: var(--sh-lg);
  --shadow-xl: var(--sh-xl); --shadow-2xl: var(--sh-xl);
  --transition-fast: var(--t-fast); --transition-base: var(--t-base); --transition-slow: var(--t-slow);
  --container-max: var(--max-w); --container-padding: var(--pad-x);
  --header-height: var(--header-h);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--sp-20) 0; }
@media (min-width: 768px) { .section { padding: var(--sp-32) 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.font-heading { font-family: var(--font-serif); }
.text-primary { color: var(--navy); }
.text-gold { color: var(--gold); }
.bg-sand { background: var(--ivory); }

/* ── LOGO ───────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--navy);
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; fill: var(--gold); }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo-text strong { color: var(--gold); font-weight: 700; }

/* ── HEADER / NAVIGATION ────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--t-base), background var(--t-base);
}
.header.scrolled {
  box-shadow: var(--sh-md);
  background: rgba(255,255,255,0.99);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--ivory); }
.nav-link.active { color: var(--navy); font-weight: 600; }

/* Lang switcher */
.lang-switcher { display: flex; gap: var(--sp-1); }
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--silver);
  cursor: pointer;
  transition: all var(--t-fast);
}
.lang-btn:hover { color: var(--navy); border-color: var(--border); }
.lang-btn.active { color: var(--navy); border-color: var(--navy); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Mobile burger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0 8px;
  flex-shrink: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.mobile-menu-btn:hover { background: var(--ivory); border-color: var(--navy); }
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t-base);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  z-index: 999;
  padding: var(--sp-6) var(--pad-x);
  flex-direction: column;
  gap: var(--sp-2);
}
.mobile-overlay.active { display: flex; }
@media (min-width: 1024px) { .mobile-overlay { display: none !important; } }
.mobile-nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--charcoal);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  letter-spacing: 0.01em;
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav-link:hover { background: var(--ivory); color: var(--navy); }

/* Flash messages */
.flash-message {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-4) var(--pad-x);
  font-size: var(--text-sm); font-weight: 500;
  border-left: 3px solid transparent;
}
.flash-error   { background: #FDF2F2; color: #922B21; border-color: var(--error); }
.flash-success { background: #F0FAF5; color: #1A5C3A; border-color: var(--success); }
.flash-message button { background: none; border: none; cursor: pointer; opacity: .5; font-size: 1.1rem; }
.flash-message button:hover { opacity: 1; }

/* ── BOUTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); box-shadow: var(--sh-md); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: var(--sh-md); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--navy); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--ivory); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1EAA53; border-color: #1EAA53; box-shadow: var(--sh-md); }

.btn-sm  { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg  { padding: 1rem 2.5rem; font-size: var(--text-base); letter-spacing: .1em; }

/* Spinner */
.btn.loading { color: transparent; position: relative; pointer-events: none; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-12); }
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: var(--sp-4);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--slate);
  max-width: 560px;
  line-height: 1.7;
}
.text-center .section-subtitle { margin: 0 auto; }

/* Divider or‍ gold accent line */
.section-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: var(--sp-6);
}
.text-center .section-line { margin-left: auto; margin-right: auto; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1800&q=80') center/cover no-repeat;
  transform-origin: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,16,35,0.72) 0%,
    rgba(10,16,35,0.45) 55%,
    rgba(10,16,35,0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  padding-top: var(--header-h);
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-5);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  max-width: 780px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--sp-12);
  font-weight: 300;
  letter-spacing: .01em;
  max-width: 520px;
}

/* Hero search card */
.hero-search {
  background: var(--white);
  border-radius: var(--r-xs);
  padding: var(--sp-6);
  box-shadow: var(--sh-xl);
  max-width: 840px;
  margin-bottom: var(--sp-10);
}
.hero-search-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}
.hero-search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}
@media (min-width: 600px) {
  .hero-search-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero-search-fields { grid-template-columns: repeat(4, 1fr); }
}
.search-field {
  background: var(--white);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.search-field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.search-select, .search-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--charcoal);
  cursor: pointer;
  width: 100%;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.search-select::placeholder, .search-input::placeholder { color: var(--silver); }
.hero-search-btn {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-sm);
  letter-spacing: .12em;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── VILLA CARDS ─────────────────────────────────────────────── */
.villa-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--border);
  transition: box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.villa-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

/* Image wrapper */
.villa-card-img-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--ivory-dark);
}
.villa-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.villa-card:hover .villa-card-img { transform: scale(1.04); }

/* Badge */
.villa-card-badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  background: var(--navy);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-xs);
}

/* Tags overlay */
.villa-card-overlay {
  position: absolute;
  bottom: var(--sp-3); left: var(--sp-3);
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}
.villa-tag {
  background: rgba(10,16,35,.65);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  letter-spacing: .04em;
}

/* Card body */
.villa-card-body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.villa-card-location {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.villa-card-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}
.villa-card-name a:hover { color: var(--gold); }
.villa-card-specs {
  display: flex;
  gap: var(--sp-4);
  color: var(--slate);
  font-size: var(--text-sm);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}
.villa-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.villa-card-price .price-amount {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
}
.villa-card-price .price-unit {
  font-size: var(--text-xs);
  color: var(--silver);
  margin-left: 2px;
}

/* Legacy aliases */
.villa-badge { position: absolute; top: var(--sp-4); left: var(--sp-4); background: var(--navy); color: var(--gold-light); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-xs); z-index: 2; }
.villa-card-image { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.villa-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.villa-card:hover .villa-card-image img { transform: scale(1.04); }
.villa-card-title { font-family: var(--font-serif); font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.villa-card-features { display: flex; gap: var(--sp-4); color: var(--slate); font-size: var(--text-sm); margin-bottom: var(--sp-4); }
.villa-price { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 600; color: var(--navy); }
.villa-price span { font-size: var(--text-xs); color: var(--silver); font-weight: 400; margin-left: 2px; }

/* ── DESTINATION CARDS ──────────────────────────────────────── */
.section-destinations .destination-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.section-destinations .destination-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.section-destinations .destination-card:hover img { transform: scale(1.06); }
.destination-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,35,.85) 0%, rgba(10,16,35,.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  color: var(--white);
}

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--charcoal);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,37,64,.08);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── VILLA DETAIL GALLERY ───────────────────────────────────── */
.villa-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .villa-gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .villa-gallery-main { grid-row: 1 / -1; }
}
.villa-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity var(--t-fast);
}
.villa-gallery img:hover { opacity: .92; }

/* ── VILLA INFO LAYOUT ──────────────────────────────────────── */
.villa-info-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); }
@media (min-width: 1024px) { .villa-info-grid { grid-template-columns: 2fr 1fr; } }

/* ── BOOKING WIDGET ─────────────────────────────────────────── */
.booking-widget {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-lg);
}
.booking-widget .price-summary {
  background: var(--ivory);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  margin-top: var(--sp-5);
}
.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--slate);
}
.price-breakdown-total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--navy);
}

/* ── VILLAS PAGE ────────────────────────────────────────────── */
.villas-page { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); }
@media (min-width: 1024px) { .villas-page { grid-template-columns: 280px 1fr; } }
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.section-how-it-works .step { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px;
  background: var(--ivory-dark);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 auto var(--sp-5);
  position: relative;
  z-index: 2;
  border: 2px solid var(--gold-light);
}
@media (min-width: 768px) {
  .section-how-it-works .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px; left: 50%;
    width: 100%; height: 1px;
    background: var(--border);
    z-index: 1;
  }
}

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.section-faq .accordion-item {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}
.accordion-header {
  width: 100%; text-align: left;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transition: color var(--t-fast);
}
.accordion-header:hover { color: var(--navy); }
.accordion-header::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--t-base);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.75;
}
.accordion-content.active { max-height: 500px; margin-top: var(--sp-4); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: var(--sp-20) 0 var(--sp-10);
}
.footer-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: var(--sp-5);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--sp-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  letter-spacing: .01em;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: var(--sp-16);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── IMAGE MODAL / LIGHTBOX ─────────────────────────────────── */
.image-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.image-modal.active { opacity: 1; pointer-events: auto; }
.image-modal img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: var(--r-xs); }
.image-modal-close {
  position: absolute; top: var(--sp-6); right: var(--sp-6);
  color: var(--white); font-size: 1.75rem;
  cursor: pointer; background: rgba(255,255,255,.1);
  border: none; width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.image-modal-close:hover { background: rgba(255,255,255,.2); }

/* ── ANIMATIONS / REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LEGAL PAGES ─────────────────────────────────────────────── */
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: var(--sp-12) 0 var(--sp-4);
  color: var(--navy);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin: var(--sp-6) 0 var(--sp-3);
  color: var(--charcoal);
}
.legal-content p { color: var(--slate); line-height: 1.8; margin-bottom: var(--sp-4); font-size: var(--text-base); }
.legal-content ul { padding-left: var(--sp-6); color: var(--slate); line-height: 1.8; margin-bottom: var(--sp-4); }
.legal-content ul li { margin-bottom: var(--sp-2); }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-section { margin-bottom: var(--sp-8); }

/* ── LOADING SPINNER ────────────────────────────────────────── */
.loading-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── RESPONSIVE UTILITIES ───────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}


/* ════════════════════════════════════════════════════════
   PAGES LÉGALES & INFORMATIVES
   ════════════════════════════════════════════════════════ */

/* Hero bandeau supérieur */
.page-legal-hero {
    background: var(--navy);
    padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-12);
    margin-top: calc(-1 * var(--header-h));
}
.page-legal-title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 600;
    color: var(--white);
    margin: var(--sp-3) 0 var(--sp-2);
    line-height: 1.2;
}
.page-legal-updated {
    font-size: var(--text-sm);
    color: rgba(255,255,255,.45);
    letter-spacing: .04em;
}
.page-legal-hero .section-eyebrow { color: var(--gold-light); }

/* Corps de la page légale */
.page-legal-body {
    padding: var(--sp-16) 0 var(--sp-20);
}

/* Layout sidebar + content */
.legal-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
}
@media (min-width: 900px) {
    .legal-sidebar-layout {
        grid-template-columns: 220px 1fr;
        gap: var(--sp-16);
        align-items: start;
    }
}

/* Sidebar navigation */
.legal-sidenav {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    background: var(--ivory);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    border: 1px solid var(--border);
    order: 2; /* mobile: après le contenu */
}
@media (min-width: 900px) { .legal-sidenav { order: 1; } }

.legal-sidenav-title {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.legal-sidenav a {
    font-size: var(--text-sm);
    color: var(--slate);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    transition: background var(--t-fast), color var(--t-fast);
    display: block;
}
.legal-sidenav a:hover { background: var(--white); color: var(--navy); }
.legal-sidenav hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-3) 0; }

/* Content area */
.legal-content { order: 1; }
@media (min-width: 900px) { .legal-content { order: 2; } }

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: var(--sp-10) 0 var(--sp-4);
    color: var(--navy);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: var(--sp-6) 0 var(--sp-3);
    color: var(--charcoal);
}
.legal-content p {
    color: var(--slate);
    line-height: 1.85;
    margin-bottom: var(--sp-4);
    font-size: var(--text-base);
}
.legal-content ul {
    padding-left: var(--sp-6);
    color: var(--slate);
    line-height: 1.85;
    margin-bottom: var(--sp-5);
}
.legal-content ul li { margin-bottom: var(--sp-2); }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-content a:hover { color: var(--navy); }
.legal-section { margin-bottom: var(--sp-8); }

/* ────────────────────────────────────────────────────────
   PAGE FONCTIONNEMENT — Timeline steps
   ──────────────────────────────────────────────────────── */
.how-steps-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.how-step-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-10) var(--sp-8);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow var(--t-base);
}
.how-step-row:hover { box-shadow: var(--sh-md); }
.how-step-row--alt { background: var(--ivory); }
@media (min-width: 640px) {
    .how-step-row {
        grid-template-columns: 80px 1fr;
        align-items: center;
    }
}
.how-step-number {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    opacity: .8;
}
.how-step-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--navy);
    margin-bottom: var(--sp-3);
}
.how-step-content p {
    color: var(--slate);
    line-height: 1.8;
    font-size: var(--text-base);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE — Corrections globales
   ════════════════════════════════════════════════════════ */

/* Mobile global padding fix */
@media (max-width: 639px) {
    .btn-lg { padding: .875rem 1.75rem; font-size: var(--text-sm); }
    .hero-title { font-size: var(--text-3xl); }
    .section-title { font-size: var(--text-2xl); }
    .hero-search { padding: var(--sp-5); }
    .hero-search-fields { border-radius: 0; }
    .hero-stats { gap: var(--sp-6); }
    .hero-stat strong { font-size: var(--text-xl); }
    .villa-card-body { padding: var(--sp-4); }
    .booking-widget { position: static; }
    .section { padding: var(--sp-12) 0; }
    .section-header { margin-bottom: var(--sp-8); }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .villa-info-grid { grid-template-columns: 1fr; }
    .booking-widget { position: static; }
}

/* Responsive navigation */
@media (max-width: 1023px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* Responsive footer grid */
@media (max-width: 767px) {
    .footer .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
}
@media (max-width: 479px) {
    .footer .grid-4 { grid-template-columns: 1fr; }
}

/* Responsive hero search */
@media (max-width: 599px) {
    .hero-search-fields { grid-template-columns: 1fr; }
    .hero-search-btn { border-radius: 0; }
}

/* Responsive villas grid */
@media (max-width: 479px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   FOOTER ENHANCED
   ════════════════════════════════════════════════════════ */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
    margin-top: var(--sp-4);
}
.footer-legal-links a {
    font-size: var(--text-xs);
    color: rgba(255,255,255,.35);
    transition: color var(--t-fast);
}
.footer-legal-links a:hover { color: var(--gold-light); }
.footer-legal-sep { color: rgba(255,255,255,.2); }