/* ========================================
   Évasion Prestige — Style Premium
   Mobile-first, RGPD-compliant
   ======================================== */

/* --- Variables --- */
:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #1a1a24;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --text: #f5f5f0;
  --text-muted: rgba(245,245,240,0.6);
  --text-dim: rgba(245,245,240,0.4);
  --border: rgba(245,245,240,0.08);
  --border-hover: rgba(245,245,240,0.15);
  --primary: #c9a84c;
  --primary-dark: #a88a3c;
  --accent: #e8c96a;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  min-height: 48px;
}
.btn-primary {
  background: var(--gold);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #0a0a0f;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #0a0a0f;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow-y: auto;
  min-height: 100vh;
}
.nav-links.open { transform: translateX(0); }
.nav-links ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-links a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10,10,15,0.95);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-close:hover { color: var(--gold); border-color: var(--gold); }
.nav-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10,10,15,0.92);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.25);
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); }

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 510;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle, .nav-close { display: none; }
  .nav-links {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    transform: none;
    z-index: auto;
    overflow: visible;
    min-height: 0;
    min-width: 0;
  }
  .nav-links ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-links a {
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.9375rem;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    margin: 0;
    display: inline-block;
  }
  .nav-links a:hover { background: rgba(201,168,76,0.1); }
}

/* --- Hero --- */

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a24;
  background-image: url('https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1600&q=85');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero overlay for text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.5) 60%,
    rgba(10, 10, 15, 0.7) 100%
  );
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1a1a24;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 5rem;
  max-width: 780px;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold); font-style: italic; }
.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero .btn { font-size: 1rem; }

/* Mobile hero */
@media (max-width: 768px) {
  .hero { min-height: 65vh; min-height: 65dvh; }
  .hero-inner { padding: 6rem 1.5rem 4rem; }
}
@media (max-width: 480px) {
  .hero { min-height: 60vh; min-height: 60dvh; }
}

/* --- Section commons --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
}

/* --- Destinations --- */
.destinations {
  padding: 6rem 0;
}
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}
.destination-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.destination-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-image {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.card-content { padding: 1.5rem; }
.card-location {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text);
}
.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.card-price {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.price-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

/* --- Why Us --- */
.why-us {
  padding: 6rem 0;
  background: var(--bg-card);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}
.feature-item {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.feature-item:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text);
}
.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Testimonials --- */
.testimonials {
  padding: 6rem 0;
}
.testimonials-slider {
  max-width: 720px;
  margin: 0 auto;
}
.testimonials-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
cite.author-name {
  font-style: normal;
  font-weight: 600;
  display: block;
}
.author-location {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
  transition: background 0.2s;
  cursor: pointer;
  min-height: 10px;
}
.dot.active { background: var(--gold); }

/* --- Contact --- */
.contact {
  padding: 6rem 0;
  background: var(--bg-card);
}
.contact .section-header { margin-bottom: 2.5rem; }
.contact-form { max-width: 680px; margin: 0 auto; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  min-height: 48px;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.contact-form .btn { width: 100%; margin-top: 0.5rem; }

/* --- Footer --- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 0.375rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Focus visible --- */
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
