/* ==========================================================================
   VARIABLES — Design system "Sint Maarten Coastal Prestige"
   Modifie ces valeurs pour changer les couleurs/polices sur tout le site
   ========================================================================== */
:root {
  /* Couleurs */
  --color-navy: #0b1926;         /* Bleu marine profond — titres, boutons foncés */
  --color-gold: #c5a880;         /* Champagne/laiton — boutons et texte sur fond foncé uniquement */
  --color-gold-hover: #d9b779;
  --color-gold-text: #8a6d3b;    /* Doré foncé — texte/icônes sur fond clair (contraste suffisant) */
  --color-teal: #132b3b;         /* Sarcelle marine — fonds secondaires */
  --color-sand: #fbf9f5;         /* Sable chaud — fond général du site */
  --color-sand-inset: #f4efe6;   /* Sable un peu plus foncé — cartes/encarts */
  --color-white: #ffffff;
  --color-text: #1f2937;         /* Texte principal (ardoise foncée) */
  --color-text-muted: #625c55;   /* Texte secondaire (taupe, contraste renforcé) */
  --color-border: rgba(197, 168, 128, 0.25); /* Liseré fin doré */

  /* Typographie */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Espacements (rythme 4px/8px) */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --margin-page: 1.25rem;

  /* Arrondis */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-card: 0 4px 20px -4px rgba(11, 25, 38, 0.08), 0 12px 32px -4px rgba(197, 168, 128, 0.08);
}

@media (min-width: 768px) {
  :root { --margin-page: 2.5rem; }
}
@media (min-width: 1200px) {
  :root { --margin-page: 5rem; }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-sand);
  background-image: url('/assets/images/noise.svg');
  background-repeat: repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: var(--color-navy);
}
h1 { font-size: 2.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 var(--space-md); }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--margin-page);
  padding-right: var(--margin-page);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn--primary:hover { background: var(--color-gold-hover); transform: translateY(-1px); }

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__logo {
  height: 34px;
  width: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-navy);
}
.brand__tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-text);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.7rem;
}
.lang-switch:hover { color: var(--color-navy); border-color: var(--color-navy); }

.site-nav {
  display: none;
  gap: var(--space-md);
}
.site-nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.site-nav a:hover { color: var(--color-navy); }

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

/* Bouton hamburger — visible uniquement sous 1024px */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* Menu mobile ouvert : panneau déroulant sous le header */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-sand);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open {
    display: flex;
    max-height: 400px;
  }
  .site-nav a {
    padding: var(--space-md) var(--margin-page);
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .site-header { position: relative; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: var(--space-xl) 0;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-sand-inset);
  margin-bottom: var(--space-md);
}
.hero__badge span.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold);
}
.hero__grid {
  display: grid;
  gap: var(--space-lg);
}
.hero__lead { color: var(--color-text-muted); font-size: 1.1rem; max-width: 40em; }
.hero__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin: var(--space-sm) 0 0;
}
.hero__price strong { font-size: 1.6rem; }
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: var(--space-lg);
}
.hero__image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .hero__image-wrap img { aspect-ratio: 21 / 9; }
}
.hero__caption {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: rgba(11, 25, 38, 0.55);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* Barre d'infos rapides */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 768px) {
  .quick-facts { grid-template-columns: repeat(4, 1fr); }
}
.quick-fact { display: flex; flex-direction: column; }
.quick-fact__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.quick-fact__value { font-weight: 600; color: var(--color-navy); }

.hero__reviews {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero__reviews-badge {
  background: var(--color-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}
.hero__reviews-score {
  color: var(--color-gold-text);
  font-weight: 700;
}

.review-stars {
  color: var(--color-gold-text);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}
.review-author {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================================
   GALERIE / L'APPARTEMENT
   ========================================================================== */
.section {
  padding: var(--space-xl) 0;
}
.section--muted {
  background: var(--color-sand-inset);
}
.section__intro { max-width: 40em; margin-bottom: var(--space-lg); }
.section__intro p { color: var(--color-text-muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-card__body { padding: var(--space-md); }
.gallery-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   INFOS VOYAGEURS
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}
.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}
.info-card h3 { margin-bottom: var(--space-xs); }
.info-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

.map-embed {
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-embed iframe { display: block; }

.faq-subheading {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}
.house-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}
.house-rules li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding-left: 2.2rem;
}
.house-rules li::before {
  content: "✓";
  position: absolute;
  left: var(--space-md);
  color: var(--color-gold-text);
  font-weight: 700;
}

.info-grid--reviews {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .info-grid--reviews { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   BLOC CTA / FORMULAIRE VOYAGEUR
   ========================================================================== */
.cta-panel {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.cta-panel h2 { color: var(--color-white); }
.cta-panel__text { color: rgba(255,255,255,0.75); max-width: 36em; margin-left: auto; margin-right: auto; }

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

.cta-panel__returning {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.cta-panel__returning a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cta-panel__small-link {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.cta-panel__small-link a {
  color: rgba(255,255,255,0.75);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}
.site-footer a { color: var(--color-white); }
.footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
@media (min-width: 768px) {
  .footer__grid { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__brand { font-family: var(--font-heading); color: var(--color-white); font-size: 1.1rem; }
.footer__small { font-size: 0.8rem; margin-top: var(--space-sm); }
