/* ========================================
   VILLA VENTOURETTE - STYLE MODERNE
   ======================================== */

/* === VARIABLES CSS === */
:root {
  /* Palette Sauvage & Maritime */
  --color-primary: #3F5E75;      /* Bleu Ardoise */
  --color-secondary: #8DA399;    /* Vert Sauge */
  --color-accent: #A69076;       /* Bois Flotté */
  --color-light: #F0F2F5;        /* Gris Galet */
  --color-white: #FFFFFF;
  --color-dark: #2C3E50;
  --color-text: #333333;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typographie */
  --font-primary: 'Lato', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

h4 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

strong {
  font-weight: 700;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 400;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-links a:hover {
  color: var(--color-primary);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

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

.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(63, 94, 117, 0.6), rgba(141, 163, 153, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: var(--spacing-md);
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-feature {
  text-align: center;
  padding: 1rem 1.5rem;
  min-width: 120px;
}

.hero-feature-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-feature-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-feature-separator {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 0.5rem;
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #2f4958;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* === SECTIONS === */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* === GRID === */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* === CARDS === */
.card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: #666;
  font-size: 0.95rem;
}

/* === FEATURES === */
.feature-box {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.feature-description {
  color: #666;
  font-size: 0.95rem;
}

/* === TARIFS === */
.pricing-table {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
}

.pricing-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-light);
}

.pricing-table tr:hover {
  background: var(--color-light);
}

.price-highlight {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

/* === FORMULAIRE === */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(63, 94, 117, 0.1);
}

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

/* === FOOTER === */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-section p, .footer-section li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-feature-separator {
    display: none;
  }
  
  .hero-feature {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-features {
    grid-template-columns: 1fr;
  }
}

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

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

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

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

/* === CALENDRIER === */
.calendars-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.calendar-month {
  background: var(--color-white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-month-title {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  width: 100%;
}

.calendar-day-name {
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.5rem 0.25rem;
  font-size: 0.85rem;
  line-height: 1;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: default;
  position: relative;
  font-weight: 500;
  transition: var(--transition);
  min-height: 40px;
  max-height: 50px;
  font-size: 0.9rem;
}

.calendar-day-number {
  font-size: 0.95rem;
}

.calendar-day-empty {
  background: transparent;
}

.calendar-day-unavailable {
  background: var(--color-light);
  color: #ccc;
}

.calendar-day-available {
  background: #d4edda;
  color: #155724;
  cursor: pointer;
  border: 2px solid #c3e6cb;
}

.calendar-day-available:hover {
  background: #28a745;
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.calendar-day-booked {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.1);
}

.legend-available {
  background: #d4edda;
}

.legend-booked {
  background: #f8d7da;
}

.calendar-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  font-weight: 500;
}

.calendar-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

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

/* === ICÔNES (Emojis modernes) === */
.icon {
  display: inline-block;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  cursor: default;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--color-white);
  color: var(--color-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.lightbox-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
}

/* Images cliquables */
img[data-lightbox] {
  cursor: zoom-in;
  transition: var(--transition);
}

img[data-lightbox]:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* === CARROUSEL === */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 600px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--color-white);
  padding: 2rem 1.5rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  font-family: var(--font-heading);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-light);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot:hover {
  background: var(--color-accent);
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.carousel-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Responsive Carrousel */
@media (max-width: 768px) {
  .carousel-slides {
    height: 400px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .carousel-btn-prev {
    left: 10px;
  }
  
  .carousel-btn-next {
    right: 10px;
  }
  
  .carousel-caption {
    font-size: 0.95rem;
    padding: 1.5rem 1rem 1rem;
  }
}

/* === RESPONSIVE CALENDRIER === */
@media (max-width: 768px) {
  .calendars-wrapper {
    grid-template-columns: 1fr;
  }
  
  .calendar-day {
    min-height: 40px;
  }
  
  .calendar-day-number {
    font-size: 0.85rem;
  }
  
  .lightbox-content {
    max-width: 95%;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-caption {
    position: static;
    margin-top: 1rem;
  }
}

