/*
Theme Name: Villa Souleillous
Theme URI: https://villasouleillous.fr
Author: Villa Souleillous
Author URI: https://villasouleillous.fr
Description: Thème WordPress élégant et moderne pour Villa Souleillous - Location de villa de luxe à Capbreton
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villasouleillous
Tags: luxury, vacation-rental, responsive, modern, bilingual
*/

/* ==========================================
   CSS VARIABLES - Palette Luxe Côtier
   ========================================== */
:root {
  /* Couleurs principales */
  --color-primary: #2C5F7D;        /* Bleu océan profond */
  --color-secondary: #B8956A;      /* Or discret */
  --color-accent: #C07855;         /* Terracotta doux */
  --color-nature: #3A5A40;         /* Vert pinède */
  --color-sand: #D4C5B0;           /* Beige sable */
  --color-cream: #FAF8F5;          /* Blanc crème */
  --color-dark: #1A2F3A;           /* Bleu très foncé */
  --color-light: #FFFFFF;
  
  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  /* Ombres */
  --shadow-soft: 0 10px 40px rgba(44, 95, 125, 0.1);
  --shadow-medium: 0 20px 60px rgba(44, 95, 125, 0.15);
  --shadow-strong: 0 30px 80px rgba(44, 95, 125, 0.25);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 95, 125, 0.1);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo h1 {
  font-size: 1.5rem;
  margin: 0;
  font-family: var(--font-accent);
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

/* Styles bureau explicites — protège contre toute fuite CSS du drawer mobile */
@media (min-width: 769px) {
  .main-navigation {
    position: static;
    right: auto;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }
  .main-navigation ul {
    flex-direction: row;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(44, 95, 125, 0.2);
}

.lang-switcher a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--color-primary);
  color: var(--color-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 95, 125, 0.3),
    rgba(58, 90, 64, 0.2)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-light);
  max-width: 1000px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--color-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  font-family: var(--font-accent);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 4px 20px rgba(44, 95, 125, 0.3);
}

.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(44, 95, 125, 0.4);
  color: var(--color-light);
}

/* Bouton secondaire — visible sur fond clair (défaut) */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-light);
}

/* Bouton secondaire sur fond sombre (section hero, bannières dark) */
.hero-buttons .btn-secondary,
.hero-section .btn-secondary,
.property-hero .btn-secondary {
  color: var(--color-light);
  border-color: var(--color-light);
}

.hero-buttons .btn-secondary:hover,
.hero-section .btn-secondary:hover,
.property-hero .btn-secondary:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

.btn-accent {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.btn-accent:hover {
  background: var(--color-accent);
  color: var(--color-light);
  transform: translateY(-2px);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: var(--spacing-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-small {
  padding: var(--spacing-lg) 2rem;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-secondary);
}

.section-description {
  font-size: 1.1rem;
  color: rgba(26, 47, 58, 0.7);
  font-weight: 300;
  line-height: 1.8;
}

/* ==========================================
   PAGE HEADER SIMPLE (équipements, capbreton, tarifs)
   ========================================== */
.page-header-simple {
  background: var(--color-primary);
  color: white;
  padding: 6rem 2rem 3rem;
  margin-top: 80px;
  text-align: center;
}

.page-header-simple h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header-simple p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0;
}

/* ==========================================
   PROPERTY PAGE HERO (page-villa / page-dependance)
   ========================================== */
.property-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: 80px; /* offset header */
}

.property-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,47,58,0.2) 0%, rgba(26,47,58,0.65) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.property-hero-content {
  color: white;
}

.property-hero-content h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.5rem 0;
}

.property-hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 0.05em;
}

.property-hero-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================
   PROPERTY CARDS
   ========================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
  margin-top: var(--spacing-lg);
}

.property-card {
  background: var(--color-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.property-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-medium);
}

.property-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.property-features {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(26, 47, 58, 0.7);
}

.feature-icon {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.property-description {
  margin: 1.5rem 0;
  line-height: 1.8;
}

.property-highlights {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}

.property-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(26, 47, 58, 0.8);
}

.property-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-nature);
  font-weight: bold;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: var(--spacing-lg);
}

.feature-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-light);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-box-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-box p {
  color: rgba(26, 47, 58, 0.7);
  margin-bottom: 0;
}

/* ==========================================
   PHOTO FEATURE CARDS
   ========================================== */
.photo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.photo-feature-card {
  background: var(--color-light);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.photo-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.photo-feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.photo-feature-card:hover img {
  transform: scale(1.04);
}

.photo-feature-content {
  padding: 1.5rem;
}

.photo-feature-content h3,
.photo-feature-content h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.photo-feature-content p {
  color: rgba(26, 47, 58, 0.7);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Photo card avec liste (équipements) */
.photo-feature-content ul.property-highlights {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(44, 95, 125, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--color-light);
  font-size: 1.1rem;
  font-weight: 300;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: var(--spacing-lg);
}

.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  color: rgba(26, 47, 58, 0.7);
}

.contact-form {
  background: var(--color-light);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(44, 95, 125, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--color-cream);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-light);
  box-shadow: 0 0 0 3px rgba(44, 95, 125, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 2rem var(--spacing-md);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  color: var(--color-light);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-accent);
}

.footer-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.platform-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.platform-btn {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.platform-btn:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ==========================================
   MOBILE — Toutes corrections 768px
   ========================================== */
@media (max-width: 768px) {

  /* Sécurité : toutes les images ne débordent pas */
  img { max-width: 100%; height: auto; }

  /* Hero propriétés */
  .property-hero { min-height: 260px; }
  .property-hero-content h1 { font-size: 1.6rem; }
  .property-hero-content p  { font-size: 0.9rem; }

  /* Sections — padding réduit */
  .section { padding: 2.5rem 1.2rem; }
  .section-header { margin-bottom: 2rem; }

  /* Card équipements avec image */
  .photo-feature-card { display: block !important; }
  .photo-feature-card img { width: 100% !important; height: 200px !important; }

  /* Formulaire de contact : info + form en colonne */
  .contact-container { grid-template-columns: 1fr !important; }

  /* Boutons pleine largeur sur mobile */
  .btn { display: block; width: 100%; text-align: center; margin-bottom: 0.6rem; }
  .platform-links { flex-direction: column; }
  .platform-btn { width: 100%; text-align: center; }

  /* Feature boxes */
  .features-grid { grid-template-columns: 1fr !important; gap: 1.2rem; }

  /* Header */
  .header-container { padding: 1rem 1.5rem; }

  /* Navigation mobile — drawer latéral */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.active {
    right: 0;
  }

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

  .lang-switcher {
    border-left: none;
    border-top: 1px solid rgba(44, 95, 125, 0.2);
    padding-left: 0;
    padding-top: 1rem;
    margin-left: 0;
    margin-top: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    min-height: 500px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.bg-cream {
  background-color: var(--color-cream);
}

.bg-light {
  background-color: var(--color-light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.spacer {
  height: var(--spacing-md);
}

.spacer-lg {
  height: var(--spacing-lg);
}

/* ==========================================
   WORDPRESS SPECIFIC
   ========================================== */
.alignleft {
  float: left;
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.9rem;
  color: rgba(26, 47, 58, 0.6);
  margin-top: 0.5rem;
  text-align: center;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .hero-section {
    display: none;
  }
}

/* ============================================================
   INTERACTIVITÉ V24 — Barre de progression, Stats, Hover, Lightbox
   ============================================================ */

/* --- Barre de progression lecture (haut de page) --- */
#vs-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
  z-index: 2000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Stats Bar Homepage --- */
.vs-stats-bar {
  background: var(--color-primary);
  padding: 2rem 0;
}

.vs-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.vs-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
  text-align: center;
}

.vs-stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-sand);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.vs-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.vs-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .vs-stats-inner {
    gap: 1rem;
  }
  .vs-stat-divider { display: none; }
  .vs-stat-item { padding: 0.5rem 1rem; }
  .vs-stat-number { font-size: 1.8rem; }
}

/* --- Hover zoom sur toutes les images de section --- */
.property-image,
.photo-feature-card img,
.gallery-lightbox-item img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  will-change: transform;
}

.property-card:hover .property-image,
.photo-feature-card:hover img {
  transform: scale(1.06);
}

.photo-feature-card {
  overflow: hidden;
  border-radius: 4px;
}

/* --- Hover lift sur les cartes propriété --- */
.property-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26,47,58,0.18);
}

/* --- Stagger animation sur les listes --- */
.property-highlights.stagger-ready li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.property-highlights.stagger-ready li.stagger-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Lightbox amélioré avec navigation --- */
.vs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: vsLbIn 0.25s ease;
}

@keyframes vsLbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.vs-lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}

.vs-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.vs-lightbox-close:hover { color: #fff; transform: scale(1.2); }

.vs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.vs-lightbox-nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
.vs-lightbox-prev { left: 1.5rem; }
.vs-lightbox-next { right: 1.5rem; }

.vs-lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  max-width: 70%;
  font-style: italic;
  letter-spacing: 0.03em;
}

.vs-lightbox-counter {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Rendre toutes les images de la page Capbreton cliquables */
.gallery-lightbox-item {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  position: relative;
}
.gallery-lightbox-item::after {
  content: '⤢';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-lightbox-item:hover::after { opacity: 1; }

/* --- Boutons — effet ripple au clic --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:active::after { opacity: 1; }

/* --- Section reveal — classe ajoutée par JS --- */
.vs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.vs-reveal.vs-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DESTINATION PHOTO CARDS (V25) — 3 blocs Capbreton homepage
   ============================================================ */
.vs-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}

.vs-destination-card {
  background: var(--color-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,47,58,0.10);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.vs-destination-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,47,58,0.18);
}

.vs-destination-img {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.vs-destination-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}

.vs-destination-card:hover .vs-destination-img img {
  transform: scale(1.07);
}

.vs-destination-body {
  padding: 1.4rem 1.5rem 1.6rem;
  text-align: center;
  flex: 1;
}

.vs-destination-body h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.vs-destination-body p {
  font-size: 0.9rem;
  color: rgba(26,47,58,0.65);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .vs-destination-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .vs-destination-img { height: 160px; }
}
