/* Base styles for Villa Maravistah */
/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background-color: #F5F1E8;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
/* Bouton hamburger (desktop : caché) */
/* Bouton hamburger */
.nav-toggle {
  display: none;
  /* sera affiché en mobile dans le @media */
  background: none;
  border: 0;
  padding: 0.3rem 0.45rem;
  margin-left: auto;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(27, 58, 87, 0.25);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1B3A57;
}

.nav-toggle-bar+.nav-toggle-bar {
  margin-top: 4px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1B3A57;
  font-family: "Josefin Sans", sans-serif;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #C9A36A;
  font-size: 18px;
  margin-right: 0.5rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1B3A57;
}

.btn-nav {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #1B3A57;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #666;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.lang-link:hover {
  opacity: 1;
  color: #1B3A57;
}

.lang-link.active {
  color: #1B3A57;
  opacity: 1;
}

.lang-sep {
  opacity: 0.5;
}

.flag {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* Container des slides */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Chaque slide (image ou vidéo) */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Image ou vidéo plein écran */
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenu par-dessus les images/vidéos */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  display: flex;
  align-items: center;
}

/* Bloc overlay LOCAL derrière le texte */
.hero-content-inner {
  background: radial-gradient(circle at top left,
      rgba(15, 34, 54, 0.4),
      rgba(15, 34, 54, 0.75));
  border-radius: 0.5rem;
  padding: 1.8rem 2.1rem;
  max-width: 40rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-family: "Josefin Sans", sans-serif;
}

.hero h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero-name {
  font-weight: 300;
}

.hero-price {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-extra .hero-scroll {
  font-size: 0.85rem;
  text-decoration: none;
  color: #f5f1e8;
  opacity: 0.85;
}

/* Flèches de navigation */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(10, 20, 35, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  z-index: 2;
}

.hero-arrow--prev {
  left: 1.25rem;
}

.hero-arrow--next {
  right: 1.25rem;
}

.hero-arrow:hover {
  background: rgba(10, 20, 35, 0.55);
  border-color: #fff;
  transform: translateY(-50%) translateX(0);
}

/* Dots en bas du hero */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease;
}

.hero-dot.is-active {
  background: #C9A36A;
  width: 18px;
}

/* Focus accessible */
.hero-dot:focus-visible,
.hero-arrow:focus-visible {
  outline: 2px solid #C9A36A;
  outline-offset: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline-light,
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #1B3A57;
  color: #F5F1E8;
}

.btn-secondary {
  background: transparent;
  color: #1B3A57;
  border-color: #1B3A57;
}

.btn-outline-light {
  background: transparent;
  color: #F5F1E8;
  border-color: rgba(255,255,255,0.85);
}

.btn-primary-light {
  background: #C9A36A;
  color: #1B2A3A;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-light {
  background: #F5F1E8;
}

.section-dark {
  background: #1B3A57;
  color: #F5F1E8;
}

.section-cta {
  background: #1B3A57;
  color: #F5F1E8;
}

.section-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 2rem;
}

.section-title-light {
  color: #F5F1E8;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding: 10px;
}

.feature-card {
  background: rgba(255,255,255,0.7);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-card h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.2rem;
  margin-top: 0;
}

/* Visit teaser */
.visit-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.visit-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.visit-preview-box {
  border-radius: 1.5rem;
  border: 1px dashed rgba(255,255,255,0.4);
  padding: 1rem;
}

.visit-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.visit-preview-inner {
  margin-top: 0.75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(0,0,0,0.25);
  font-size: 0.9rem;
}

.visit-preview-media {
  margin: 0 0 0.75rem;
}

.visit-preview-media img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stat-value {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

.section-cta-center {
  text-align: center;
}

/* Page hero / internes */
.page-hero {
  padding: 3rem 0 1.5rem;
  background: white;
}

.page-hero h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.page-intro {
  max-width: 100%;
}

/* Layout 2 colonnes */
.two-columns {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 2.5rem;
  align-items: center;
}

.two-columns.reverse {
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
}

.img-block img {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1B3A57;
  border-bottom: 1px solid rgba(27,58,87,0.4);
}

/* Contact form */
.contact-form {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #FAF7F0;
}

.form-row textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 1.2rem;
}

.form-note {
  margin-top: 0.75rem;
}

.small-text {
  font-size: 0.8rem;
  color: #555;
}

/* CTA section */
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  background: #F5F1E8;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {

  /* Header : wrap doux */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.3rem;
  }

  /* Hero plus souple en hauteur */
  .hero {
    height: auto;
  }

  /* Grilles en 1 colonne */
  .visit-teaser,
  .stats-grid,
  .grid-3,
  .two-columns {
    grid-template-columns: 1fr;
  }

  /* CTA en colonne */
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {

  /* Header empilé + hamburger */
  .site-header {
    padding: 0.6rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 0.8rem;
  }

  /* On affiche le hamburger */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Le menu est replié par défaut */
  .main-nav {
    display: none;
    width: 100%;
  }

  /* Menu ouvert quand .is-open est présent (JS) */
  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav a {
    padding: 0.2rem 0;
  }

  .lang-switch {
    font-size: 0.75rem;
  }

  /* Hero : slider en haut, texte en dessous */
  .hero {
    display: block;
    padding: 0 0 2.5rem;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .hero-content {
    position: static;
    padding: 1.8rem 0 0;
  }

  .hero-content-inner {
    padding: 1.4rem 1.5rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    top: 30%;
  }

  .hero-dots {
    bottom: 0.9rem;
  }

  /* Sections un peu plus compactes */
  .section {
    padding: 2.5rem 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Immersive Player */
.immersive-player {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
  background: #000;
}

.immersive-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-immersive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.immersive-player-links {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}