/* ─────────────────────────────────────────────────────────────────────────
   VILLA SUN — BASE & COMPONENTS
   ───────────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--vs-sans);
  font-size: var(--vs-text-base);
  line-height: var(--vs-lh-base);
  color: var(--vs-fg);
  background: var(--vs-bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--vs-dur-3) var(--vs-ease),
              color var(--vs-dur-3) var(--vs-ease);
}

/* ─────────────────────────────────────────────────────────────────────────
   TYPOGRAPHIE
   ───────────────────────────────────────────────────────────────────────── */

.vs-display {
  font-family: var(--vs-serif);
  font-weight: 300;
  line-height: var(--vs-lh-7xl);
  letter-spacing: var(--vs-tracking-tight);
  color: var(--vs-fg);
}
.vs-display em { font-style: italic; font-weight: 300; }

.vs-h1 {
  font-family: var(--vs-serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.vs-h1 em { font-style: italic; }

.vs-h2 {
  font-family: var(--vs-serif);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.vs-h2 em { font-style: italic; }

.vs-h3 {
  font-family: var(--vs-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.vs-eyebrow {
  font-family: var(--vs-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--vs-tracking-widest);
  text-transform: uppercase;
  color: var(--vs-accent-deep);
}

.vs-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--vs-accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-1px);
}

.vs-body {
  font-family: var(--vs-sans);
  font-size: var(--vs-text-base);
  line-height: 1.7;
  color: var(--vs-fg-soft);
  text-wrap: pretty;
}
.vs-body-lg {
  font-family: var(--vs-sans);
  font-size: var(--vs-text-lg);
  line-height: 1.7;
  color: var(--vs-fg-soft);
  text-wrap: pretty;
}

.vs-lead {
  font-family: var(--vs-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--vs-fg-soft);
}

.vs-quote {
  font-family: var(--vs-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--vs-fg);
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────── */

.vs-container {
  width: 100%;
  max-width: var(--vs-container);
  margin: 0 auto;
  padding-inline: var(--vs-gutter);
}
@media (min-width: 1024px) {
  .vs-container { padding-inline: var(--vs-gutter-lg); }
}

.vs-section { padding-block: clamp(64px, 10vw, 144px); }
.vs-section-sm { padding-block: clamp(48px, 7vw, 96px); }

.vs-rule {
  height: 1px;
  border: 0;
  background: var(--vs-line);
  margin: 0;
}
.vs-rule-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--vs-accent), transparent);
  width: 64px;
  margin: 24px auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   BOUTONS
   ───────────────────────────────────────────────────────────────────────── */

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--vs-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--vs-tracking-wider);
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all var(--vs-dur-2) var(--vs-ease);
  position: relative;
  overflow: hidden;
}

.vs-btn--primary {
  background: var(--vs-warm);
  color: var(--vs-pearl);
  border-color: var(--vs-warm);
}
.vs-btn--primary:hover {
  background: var(--vs-warm-deep);
  border-color: var(--vs-warm-deep);
  transform: translateY(-1px);
}

.vs-btn--secondary {
  background: transparent;
  color: var(--vs-fg);
  border-color: var(--vs-fg);
}
.vs-btn--secondary:hover {
  background: var(--vs-fg);
  color: var(--vs-bg);
}
.vs-btn--secondary-light {
  background: transparent;
  color: var(--vs-pearl);
  border-color: rgba(250, 247, 242, 0.6);
}
.vs-btn--secondary-light:hover {
  background: var(--vs-pearl);
  color: var(--vs-ink-700);
  border-color: var(--vs-pearl);
}

.vs-btn--ghost {
  background: transparent;
  color: var(--vs-fg);
  border-color: transparent;
  padding: 8px 0;
}
.vs-btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--vs-dur-2) var(--vs-ease);
  opacity: 0.6;
}
.vs-btn--ghost:hover::after { transform: scaleX(1); opacity: 1; }

.vs-btn--gold {
  background: var(--vs-accent);
  color: var(--vs-ink-700);
  border-color: var(--vs-accent);
}
.vs-btn--gold:hover {
  background: var(--vs-accent-deep);
  border-color: var(--vs-accent-deep);
  color: var(--vs-pearl);
}

.vs-btn-arrow {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform var(--vs-dur-2) var(--vs-ease);
}
.vs-btn-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.vs-btn:hover .vs-btn-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────────────
   INPUTS
   ───────────────────────────────────────────────────────────────────────── */

.vs-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.vs-field-label {
  font-family: var(--vs-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--vs-tracking-widest);
  text-transform: uppercase;
  color: var(--vs-fg-muted);
  margin-bottom: 6px;
}

.vs-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--vs-line);
  padding: 8px 0;
  font-family: var(--vs-sans);
  font-size: var(--vs-text-base);
  color: var(--vs-fg);
  width: 100%;
  outline: none;
  transition: border-color var(--vs-dur-2) var(--vs-ease);
}
.vs-input::placeholder { color: var(--vs-fg-muted); }
.vs-input:focus { border-bottom-color: var(--vs-accent); }

.vs-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--vs-line);
  padding: 8px 0;
}
.vs-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--vs-line);
  background: transparent;
  color: var(--vs-fg);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vs-dur-1) var(--vs-ease);
  font-family: var(--vs-sans);
  line-height: 1;
}
.vs-stepper button:hover { border-color: var(--vs-accent); color: var(--vs-accent-deep); }
.vs-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.vs-stepper-val { flex: 1; font-variant-numeric: tabular-nums; color: var(--vs-fg); }

/* ─────────────────────────────────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────────────────────────────────── */

.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--vs-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--vs-tracking-wider);
  text-transform: uppercase;
  color: var(--vs-fg-soft);
  padding: 6px 12px;
  border: 0.5px solid var(--vs-line);
  border-radius: var(--vs-radius-pill);
  background: var(--vs-bg-elev);
  white-space: nowrap;
}
.vs-badge--gold {
  color: var(--vs-accent-deep);
  border-color: var(--vs-accent);
  background: rgba(194, 168, 117, 0.08);
}
.vs-badge--marine {
  color: var(--vs-cool);
  border-color: var(--vs-cool-soft);
  background: rgba(31, 70, 81, 0.05);
}

/* ─────────────────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────────────────── */

.vs-card {
  background: var(--vs-bg-elev);
  border: 0.5px solid var(--vs-line-soft);
  padding: 32px;
  transition: all var(--vs-dur-3) var(--vs-ease);
}
.vs-card:hover {
  border-color: var(--vs-accent);
  transform: translateY(-2px);
  box-shadow: var(--vs-shadow);
}

/* ─────────────────────────────────────────────────────────────────────────
   IMAGES & SLOTS
   ───────────────────────────────────────────────────────────────────────── */

image-slot {
  --image-slot-border-color: var(--vs-line);
  --image-slot-bg: var(--vs-bg-deep);
  --image-slot-fg: var(--vs-fg-muted);
}

.vs-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--vs-bg-deep);
}
.vs-img-wrap img,
.vs-img-wrap image-slot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--vs-dur-4) var(--vs-ease-out);
}
.vs-img-wrap:hover img,
.vs-img-wrap:hover image-slot { transform: scale(1.04); }

/* ─────────────────────────────────────────────────────────────────────────
   GLASS / PANEL
   ───────────────────────────────────────────────────────────────────────── */

.vs-glass {
  background: rgba(250, 247, 242, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--vs-shadow-glass);
}
.vs-glass--dark {
  background: rgba(20, 17, 13, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: var(--vs-pearl);
}

/* ─────────────────────────────────────────────────────────────────────────
   FADE-UP ON SCROLL
   ───────────────────────────────────────────────────────────────────────── */

.vs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--vs-ease), transform 800ms var(--vs-ease);
}
.vs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────
   FOCUS
   ───────────────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 1.5px solid var(--vs-accent);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────
   UTIL
   ───────────────────────────────────────────────────────────────────────── */

.vs-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────────────────────────────────── */

@media print { .vs-no-print { display: none !important; } }
