/**
 * Entre Bourges et Sancerre - Version 2.0 "Respire"
 * Design System & Styles
 *
 * @author Atlas x Claude
 * @date 30 décembre 2025
 */

/* ==========================================================================
   1. CSS VARIABLES (Design Tokens)
   ========================================================================== */

:root {
  /* ===== COULEURS PRINCIPALES ===== */
  --color-sage: #8FA98C;
  --color-sage-dark: #6B8568;
  --color-sage-light: #B5C9B3;
  --color-sage-50: rgba(143, 169, 140, 0.5);
  --color-sage-20: rgba(143, 169, 140, 0.2);
  --color-sage-10: rgba(143, 169, 140, 0.1);

  --color-dusty-blue: #7A9BA8;
  --color-dusty-blue-dark: #5C8291;
  --color-dusty-blue-light: #A3BCC7;

  /* ===== NEUTRES ===== */
  --color-sand: #E8DFD5;
  --color-sand-light: #F5F0EB;
  --color-stone: #9A8F86;
  --color-stone-dark: #7A7068;
  --color-cream: #FDFBF8;
  --color-white: #FFFFFF;

  /* ===== TEXTE ===== */
  --color-text: #2D3830;
  --color-text-light: #5A6B5E;
  --color-text-muted: #8A9A8E;
  --color-text-inverse: #FDFBF8;

  /* ===== FONCTIONNELS ===== */
  --color-success: #8FA98C;
  --color-error: #C97B7B;
  --color-warning: #D4A96A;
  --color-info: #7A9BA8;

  /* ===== TYPOGRAPHIE ===== */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Josefin Sans', 'Helvetica Neue', sans-serif;

  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.125rem;    /* 18px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 2.5rem;     /* 40px */
  --font-size-4xl: 3rem;       /* 48px */
  --font-size-5xl: 4rem;       /* 64px */

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;

  /* ===== ESPACEMENTS ===== */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* ===== RAYONS ===== */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ===== OMBRES ===== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-sage: 0 4px 20px rgba(143, 169, 140, 0.25);
  --shadow-sage-lg: 0 8px 32px rgba(143, 169, 140, 0.3);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===== Z-INDEX ===== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ===== LAYOUT ===== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  --header-height: 80px;
  --header-height-scrolled: 64px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* iOS/Chrome scroll stability */
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* iOS/Chrome scroll stability */
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

/* ===== Images ===== */
img,
picture,
video,
canvas,
svg {
  display: block;
}

/* SVG icons dans les composants gardent leurs dimensions */
svg:not([width]):not([height]) {
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-sage-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sage);
}

a:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
  border-radius: 2px;
}

strong, b {
  font-weight: 600;
}

/* ===== Lists ===== */
ul, ol {
  list-style: none;
}

/* ===== Forms ===== */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Selection ===== */
::selection {
  background-color: var(--color-sage-20);
  color: var(--color-text);
}

/* ==========================================================================
   3. LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

/* ===== Sections ===== */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              height var(--transition-base);
  /* GPU acceleration for smooth scroll */
  will-change: background-color, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.site-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-6);
  max-width: var(--container-2xl);
  margin: 0 auto;
}

/* ===== État initial (transparent) ===== */
.site-header:not(.scrolled) {
  background: transparent;
}

.site-header:not(.scrolled) .navbar-brand,
.site-header:not(.scrolled) .navbar-menu a,
.site-header:not(.scrolled) .navbar-toggle span {
  color: var(--color-white);
}

/* ===== État scrollé (opaque) ===== */
.site-header.scrolled {
  background: rgba(253, 251, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height-scrolled);
}

.site-header.scrolled .navbar {
  height: var(--header-height-scrolled);
}

.site-header.scrolled .navbar-brand,
.site-header.scrolled .navbar-menu a {
  color: var(--color-text);
}

/* ===== Mobile : hauteur fixe pour éviter les sauts avec la barre Chrome ===== */
@media (max-width: 1023.98px) {
  :root {
    --header-height: 64px;
    --header-height-scrolled: 64px;
  }

  .site-header,
  .site-header.scrolled,
  .site-header .navbar,
  .site-header.scrolled .navbar {
    height: 64px !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .navbar-brand img {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ===== Logo ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-header.scrolled .navbar-brand img {
  width: 40px;
  height: 40px;
}

.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  line-height: 1.3;
}

/* ===== Menu Desktop ===== */
.navbar-menu {
  display: none;
  align-items: center;
  gap: var(--space-1);
  /* Reset des styles par défaut du ul */
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-menu li {
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-menu a {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background-color: var(--color-sage);
  transition: transform var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.site-header:not(.scrolled) .navbar-menu a::after {
  background-color: var(--color-white);
}

/* ===== CTA Navbar ===== */
.navbar-cta {
  display: none;
  margin-left: var(--space-4);
}

/* Desktop : toujours visible */
@media (min-width: 1024px) {
  .navbar-cta {
    display: inline-flex;
  }
}

/* Mobile : caché par défaut, visible uniquement au scroll */
@media (max-width: 1023.98px) {
  .navbar-cta {
    display: none !important;
  }

  .site-header.scrolled .navbar-cta {
    display: inline-flex !important;
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-3);
    margin-left: auto;
    margin-right: var(--space-3);
  }
}

/* ===== Hamburger Menu ===== */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: var(--z-modal);
}

@media (min-width: 1024px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
}

.navbar-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.navbar-toggle span:nth-child(3) {
  transform: translateY(6px);
}

/* Hamburger open state */
.navbar-toggle.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

/* ===== Mobile Menu Panel ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--color-white);
  padding: var(--space-20) var(--space-6) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: var(--z-modal);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-modal-backdrop);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu-nav a {
  display: block;
  padding: var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  background-color: var(--color-sage-10);
  color: var(--color-sage-dark);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: var(--space-6);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  /* iOS/Chrome: hauteur stable qui ne change pas avec la barre d'adresse */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Mobile: hauteur fixe calculée pour éviter les sauts */
@media (max-width: 767.98px) {
  .hero {
    min-height: calc(100vh - env(safe-area-inset-bottom, 0px));
    min-height: 100svh;
  }
}

.hero-compact {
  min-height: 50vh;
  padding-top: var(--header-height);
}

.hero-small {
  min-height: 35vh;
  padding-top: var(--header-height);
}

/* Centrage vertical amélioré pour les sous-pages */
.hero-compact .hero-content,
.hero-small .hero-content {
  padding: var(--space-6);
}

.hero-small .hero-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  margin-bottom: var(--space-2);
}

.hero-small .hero-subtitle {
  font-size: var(--font-size-base);
}

/* ===== Background avec Parallax ===== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  filter: blur(4px);
  transform: scale(1.02); /* Compense les bords du blur */
}

/* ===== Overlay Gradient ===== */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: -1;
}

/* ===== Contenu Hero ===== */
.hero-content {
  position: relative;
  text-align: center;
  padding: var(--space-8);
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, var(--font-size-5xl));
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--font-size-lg);
  font-weight: 300;
  color: var(--color-sand-light);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-8);
}

/* ===== Scroll Indicator ===== */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll span {
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.hero-scroll-arrow {
  width: 24px;
  height: 24px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Focus visible state for accessibility */
.btn:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

/* ===== Primary Button ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-sage);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sage-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--shadow-xs);
}

/* ===== Secondary Button ===== */
.btn-secondary {
  background: var(--color-white);
  color: var(--color-sage-dark);
  border-color: var(--color-sage);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-sage-10);
}

.btn-secondary:active:not(:disabled) {
  background: var(--color-sage-20);
  transform: translateY(1px);
}

/* ===== Outline Button ===== */
.btn-outline {
  background: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-outline:active:not(:disabled) {
  background: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
  transform: translateY(1px);
}

/* ===== White Button ===== */
.btn-white {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.btn-white:hover:not(:disabled) {
  background: var(--color-sand-light);
  border-color: var(--color-sand-light);
}

.btn-white:active:not(:disabled) {
  background: var(--color-sand);
  border-color: var(--color-sand);
  transform: translateY(1px);
}

/* ===== Ghost Button ===== */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-sage-10);
  color: var(--color-sage-dark);
}

.btn-ghost:active:not(:disabled) {
  background: var(--color-sage-20);
  transform: translateY(1px);
}

/* ===== Button Sizes ===== */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--font-size-base);
}

/* ===== Button Icons ===== */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
}

.btn-icon.btn-lg {
  width: 56px;
  height: 56px;
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.card-text {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ===== Card Service (avec image cliquable) ===== */
a.card-service {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

a.card-service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.card-service-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

a.card-service:hover .card-service-image img {
  transform: scale(1.1);
}

.card-service-content {
  padding: var(--space-6);
}

.card-service-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.card-service-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.card-service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-sage);
  letter-spacing: var(--letter-spacing-wide);
  transition: gap var(--transition-fast);
}

a.card-service:hover .card-service-link {
  gap: var(--space-3);
}

/* ===== Card Feature (avec icône centrée) ===== */
.card-feature {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-base);
}

.card-feature:hover {
  box-shadow: var(--shadow-sage);
  transform: translateY(-4px);
}

.card-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sage-10);
  border-radius: var(--radius-lg);
  color: var(--color-sage);
  transition: all var(--transition-base);
  position: relative;
}

.card-feature:hover .card-feature-icon {
  background: var(--color-sage);
  color: var(--color-white);
}

.card-feature-icon svg {
  width: 32px !important;
  height: 32px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
}

.card-feature-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.card-feature-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

.card-feature-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-sage);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-feature-link:hover {
  color: var(--color-sage-dark);
}

/* ===== Card Link (clickable) ===== */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-wide);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 4px var(--color-sage-20);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

/* ===== Textarea ===== */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ===== Select ===== */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A8F86' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-12);
}

/* ===== Checkbox & Radio ===== */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-stone);
  border-radius: var(--radius-sm);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-check-input:checked {
  background-color: var(--color-sage);
  border-color: var(--color-sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--color-sage-20);
}

.form-check-input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-check-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ===== Form Validation States ===== */
.form-control.is-valid {
  border-color: var(--color-success);
}

.form-control.is-valid:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(143, 169, 140, 0.2);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.form-control.is-invalid:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(201, 123, 123, 0.2);
}

.form-feedback {
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

.form-feedback.valid {
  color: var(--color-success);
}

.form-feedback.invalid {
  color: var(--color-error);
}

/* ===== Select Dropdown Focus ===== */
select.form-control:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 4px var(--color-sage-20);
}

/* ==========================================================================
   9. GALLERY & IMAGES
   ========================================================================== */

.gallery {
  display: grid;
  gap: var(--space-4);
}

.gallery-masonry {
  columns: 3;
  column-gap: var(--space-4);
}

@media (max-width: 1023px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 639px) {
  .gallery-masonry {
    columns: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: var(--space-4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(143, 169, 140, 0) 50%,
    rgba(143, 169, 140, 0.3) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===== Gallery Large Item ===== */
.gallery-item-large {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .gallery-item-large {
    grid-column: span 1;
  }
}

/* ===== Gallery Tabs ===== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.gallery-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-stone);
  background: var(--color-white);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-tab:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

.gallery-tab.active {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

.gallery-tab svg {
  width: 18px;
  height: 18px;
}

/* ===== Gîte Gallery (grid layout for tabbed galleries) ===== */
.gite-gallery {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gite-gallery.active {
  display: block;
  opacity: 1;
  animation: galleryFadeIn 0.4s ease forwards;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gite-gallery .gallery-item {
  display: block;
  height: 250px;
  margin-bottom: 0;
}

.gite-gallery .gallery-item img {
  height: 100%;
}

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */

.testimonials {
  background: var(--color-sand-light);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: var(--color-warning);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: var(--letter-spacing-wide);
}

/* ==========================================================================
   11. CTA SECTIONS
   ========================================================================== */

.cta-section {
  position: relative;
  padding: var(--space-24) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.cta-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 56, 48, 0.75);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-text {
  color: var(--color-sand-light);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-text);
  color: var(--color-sand-light);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-white);
}

.footer-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer-title {
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-sage-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer-copyright a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-copyright a:hover {
  color: var(--color-sage-light);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-sage-light);
}

/* ==========================================================================
   12b. SECTION STYLING
   ========================================================================== */

.section-padding {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-10) 0;
  }
}

.section-label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-sage);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 400;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */

/* ===== Text ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sage { color: var(--color-sage); }
.text-sage-dark { color: var(--color-sage-dark); }
.text-sage-light { color: var(--color-sage-light); }
.text-stone { color: var(--color-stone); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }

.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.font-heading { font-family: var(--font-heading); }
.font-accent { font-family: var(--font-accent); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: var(--letter-spacing-wide); }

/* ===== Backgrounds ===== */
.bg-cream { background-color: var(--color-cream); }
.bg-sand { background-color: var(--color-sand); }
.bg-sand-light { background-color: var(--color-sand-light); }
.bg-sage { background-color: var(--color-sage); }
.bg-sage-dark { background-color: var(--color-sage-dark); }
.bg-sage-light { background-color: var(--color-sage-light); }
.bg-sage-10 { background-color: var(--color-sage-10); }
.bg-white { background-color: var(--color-white); }

/* ===== Spacing ===== */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* ===== Display ===== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ===== Visibility ===== */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ===== Miscellaneous ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-lg { max-width: 600px; }
.max-w-xl { max-width: 800px; }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.overflow-hidden { overflow: hidden; }

/* ===== Object Fit ===== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }

/* ===== Opacity ===== */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== Pointer Events ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ===== Cursor ===== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ===== Inset ===== */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ==========================================================================
   14. ANIMATIONS (AOS fallback + custom)
   ========================================================================== */

/* ===== Fade animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease forwards;
}

/* ===== Delay utilities ===== */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }


/* ==========================================================================
   15. PRINT STYLES
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .btn,
  .hero-scroll {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   16. ACTIVITY CARDS (Page À Découvrir)
   ========================================================================== */

.activity-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.activity-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.activity-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.activity-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-card:hover .activity-card-image img {
  transform: scale(1.08);
}

.activity-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(45, 56, 48, 0.6) 100%
  );
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.activity-card:hover .activity-card-overlay {
  opacity: 1;
}

.activity-card-content {
  padding: var(--space-5);
}

.activity-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-sage-dark);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.activity-card-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.activity-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  transition: color var(--transition-base);
}

.activity-card:hover .activity-card-title {
  color: var(--color-sage-dark);
}

.activity-card-excerpt {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.activity-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.activity-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.activity-card:hover .activity-card-cta {
  color: var(--color-sage);
}

.activity-card:hover .activity-card-cta svg {
  transform: translateX(4px);
}

/* ===== Activity Card - Responsive ===== */
@media (max-width: 767.98px) {
  .activity-card-image {
    height: 220px;
  }

  .activity-card-content {
    padding: var(--space-4);
  }

  .activity-card-title {
    font-size: var(--font-size-lg);
  }
}

/* ==========================================================================
   17. BOOKING WIZARD (Activités à la carte)
   ========================================================================== */

.booking-wizard-container {
  padding: var(--space-8) 0 var(--space-10);
  background: var(--color-cream);
  min-height: calc(100vh - 200px);
}

/* ===== Wizard Progress Bar ===== */
.wizard-progress {
  padding: var(--space-6) 0;
  margin-bottom: var(--space-6);
}

.wizard-progress-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
}

.step-number {
  transition: opacity var(--transition-base);
}

.step-check {
  position: absolute;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.step-check svg {
  width: 20px;
  height: 20px;
}

.wizard-step.active .step-circle {
  background: var(--color-sage);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(143, 169, 140, 0.4);
}

.wizard-step.completed .step-circle {
  background: var(--color-sage-dark);
  color: var(--color-white);
}

.wizard-step.completed .step-number {
  opacity: 0;
}

.wizard-step.completed .step-check {
  opacity: 1;
}

.step-label {
  margin-top: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-stone);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.wizard-step.active .step-label {
  color: var(--color-sage-dark);
  font-weight: 600;
}

.step-line {
  width: 50px;
  height: 3px;
  background: var(--color-sand);
  margin: 0 var(--space-2);
  margin-bottom: 28px;
  border-radius: 2px;
  transition: background var(--transition-base);
}

.step-line.completed {
  background: var(--color-sage);
}

/* ===== Wizard Content ===== */
.wizard-content {
  animation: wizardFadeIn 0.4s ease;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-header {
  margin-bottom: var(--space-6);
}

.wizard-header .section-label {
  margin-bottom: var(--space-2);
}

.wizard-header .section-title {
  margin-bottom: var(--space-3);
}

.wizard-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
}

/* ===== Wellness Cards (Choix activité) ===== */
.wellness-card {
  height: 100%;
  transition: all var(--transition-base);
}

.wellness-card-inner {
  background: var(--color-white);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  height: 100%;
  display: flex;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.wellness-card:hover .wellness-card-inner {
  border-color: var(--color-sage);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.wellness-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-sage-10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
}

.wellness-card-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wellness-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wellness-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.wellness-card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.wellness-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.wellness-duration {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-stone);
}

.wellness-price {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-sage-dark);
}

.wellness-card .btn-choose {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== Booking Cards ===== */
.booking-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.booking-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-sage-10);
  border-bottom: 1px solid var(--color-sand);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-sage-dark);
}

.booking-card-header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.booking-card-body {
  padding: var(--space-5);
}

/* ===== Calendar ===== */
.booking-calendar {
  user-select: none;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.calendar-nav {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.calendar-nav:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
  background: var(--color-sage-10);
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--space-2);
}

.calendar-weekdays .weekday {
  text-align: center;
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-sand-light);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  border-color: var(--color-sage);
  background: var(--color-sage-10);
}

.calendar-day.selected {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

.calendar-day.today:not(.selected) {
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
  font-weight: 700;
}

.calendar-day.disabled {
  color: var(--color-stone);
  opacity: 0.4;
  background: var(--color-sand-light);
  cursor: not-allowed;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

/* ===== Slots ===== */
.slots-panel {
  display: flex;
  flex-direction: column;
}

#slots-container {
  overflow-y: auto;
  flex: 1;
}

#slots-container::-webkit-scrollbar {
  width: 6px;
}

#slots-container::-webkit-scrollbar-track {
  background: var(--color-sand-light);
  border-radius: 3px;
}

#slots-container::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: 3px;
}

.slots-placeholder,
.slots-empty,
.slots-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--color-stone);
}

.slots-placeholder svg,
.slots-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.slots-placeholder p,
.slots-empty p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

.slots-loading {
  gap: var(--space-3);
}

.slots-error {
  text-align: center;
  padding: var(--space-4);
  color: var(--color-error);
  font-size: var(--font-size-sm);
}

.slots-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.slot-btn {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slot-btn:hover {
  border-color: var(--color-sage);
  background: var(--color-sage-10);
}

.slot-btn.selected {
  border-color: var(--color-sage);
  background: var(--color-sage);
  color: var(--color-white);
}

/* ===== Recap Card ===== */
.recap-card .booking-card-body {
  padding: var(--space-6);
}

.recap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-sand);
  gap: var(--space-4);
}

.recap-label {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.recap-value {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  margin-top: var(--space-3);
  border-top: 2px solid var(--color-sage);
}

.recap-total-label {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
}

.recap-total-value {
  font-family: var(--font-body);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-sage-dark);
  letter-spacing: -0.02em;
}

/* ===== Payment Options ===== */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 2px solid var(--color-sand);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-base);
}

.payment-option:hover {
  border-color: var(--color-sage);
}

.payment-option.selected {
  border-color: var(--color-sage);
  background: var(--color-sage-10);
}

.payment-option-icon {
  width: 56px;
  height: 56px;
  background: var(--color-sand-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
  transition: all var(--transition-base);
}

.payment-option-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.payment-option.selected .payment-option-icon {
  background: var(--color-sage);
  color: var(--color-white);
}

.payment-option-content {
  flex: 1;
}

.payment-option-content h6 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}

.payment-option-content p {
  font-size: var(--font-size-sm);
  color: var(--color-stone);
  margin: 0;
}

.payment-option-check {
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-base);
}

.payment-option.selected .payment-option-check {
  background: var(--color-sage);
  border-color: var(--color-sage);
}

.payment-option-check svg {
  width: 14px;
  height: 14px;
}

.payment-option:not(.selected) .payment-option-check svg {
  opacity: 0;
}

.payment-container {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-sand);
  margin-top: var(--space-5);
}

.payment-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-stone);
  margin-bottom: var(--space-4);
}

.payment-secure svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.payment-info {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-stone);
  margin-bottom: var(--space-4);
}

/* ===== Spinner ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-sand);
  border-top-color: var(--color-sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Booking Wizard - Responsive ===== */
@media (max-width: 991.98px) {
  .step-line {
    width: 30px;
  }
}

@media (max-width: 767.98px) {
  .booking-wizard-container {
    padding: var(--space-6) 0;
  }

  .wizard-progress {
    padding: var(--space-4) 0;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }

  .step-label {
    font-size: 9px;
  }

  .step-line {
    width: 15px;
    height: 2px;
    margin: 0 var(--space-1);
    margin-bottom: 24px;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .wellness-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .wellness-card-icon {
    margin: 0 auto;
  }

  .wellness-card-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .wellness-card .btn-choose {
    align-self: center;
    width: 100%;
  }

  .calendar-day {
    font-size: var(--font-size-xs);
  }

  .payment-option {
    flex-wrap: wrap;
  }

  .payment-option-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-xs);
  }

  .step-line {
    width: 10px;
  }

  .step-label {
    font-size: 8px;
    max-width: 50px;
  }
}

/* ==========================================================================
   18. RESERVATION PAGE SPECIFIC
   ========================================================================== */

/* ===== Calendar Instructions ===== */
.calendar-instruction {
  padding: var(--space-4);
  background: var(--color-sage-10);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  min-height: 52px;
}

.instruction-item {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.instruction-item.active {
  display: flex;
}

.instruction-step {
  width: 28px;
  height: 28px;
  background: var(--color-sage);
  color: var(--color-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.instruction-text {
  font-size: var(--font-size-base);
  color: var(--color-text);
}

/* ===== Calendar Range Selection ===== */
.calendar-day.start-date {
  background: var(--color-sage) !important;
  color: var(--color-white) !important;
  border-color: var(--color-sage) !important;
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
  font-weight: 700;
}

.calendar-day.end-date {
  background: var(--color-sage) !important;
  color: var(--color-white) !important;
  border-color: var(--color-sage) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  font-weight: 700;
}

.calendar-day.in-range {
  background: rgba(143, 169, 140, 0.35) !important;
  color: var(--color-text) !important;
  border-color: rgba(143, 169, 140, 0.5) !important;
  border-radius: 0 !important;
}

.calendar-day.start-date.end-date {
  border-radius: var(--radius-md) !important;
}

.calendar-day.reserved {
  background: rgba(201, 123, 123, 0.15);
  color: var(--color-error);
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.departure-eligible,
.calendar-day.arrival-eligible {
  background: var(--color-sage-10);
  border-color: var(--color-sage-20);
}

.calendar-day.departure-eligible:hover,
.calendar-day.arrival-eligible:hover {
  background: var(--color-sage-20);
  border-color: var(--color-sage);
}

/* ===== Gîte Gallery (Airbnb style) ===== */
.gite-gallery {
  cursor: pointer;
}

.gite-gallery .gallery-link {
  display: block;
  overflow: hidden;
}

.gite-gallery .gallery-link img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gite-gallery .gallery-link:hover img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

.gite-gallery .gallery-main {
  min-height: 180px;
  max-height: 180px;
}

.gite-gallery .col-4 .gallery-link img {
  height: 86px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 56, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-link:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-text);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all var(--transition-base);
}

.gallery-btn:hover {
  background: var(--color-sand-light);
}

/* ===== Option Card Selected ===== */
.option-card.selected .wellness-card-inner {
  border-color: var(--color-sage);
  background: var(--color-sage-10);
}

/* ===== Extra Badge Utilities ===== */
.bg-sage-10 {
  background: var(--color-sage-10);
}

.text-sage-dark {
  color: var(--color-sage-dark);
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-sand-light) 25%,
    var(--color-sand) 50%,
    var(--color-sand-light) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== Smooth Scroll Snap for Mobile ===== */
@media (max-width: 767.98px) {
  .scroll-snap-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .scroll-snap-x::-webkit-scrollbar {
    display: none;
  }

  .scroll-snap-x > * {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ===== Touch Feedback ===== */
@media (hover: none) {
  .card:active,
  .btn:active,
  .gallery-tab:active {
    opacity: 0.85;
  }
}

/* ===================================================
   19. PAGES LÉGALES
   =================================================== */

.legal-content {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-sage-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-sage-10);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content a {
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-sage);
}

.legal-content strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

.legal-content em {
  font-style: italic;
  color: var(--color-text-muted);
}

/* ===================================================
   20. UX CALENDRIER RÉSERVATION - Transitions fluides
   =================================================== */

/* Transition fluide pour le décalage du calendrier */
#calendar-row {
  transition: justify-content 0.3s ease;
}

#calendar-panel {
  transition: transform 0.3s ease;
}

/* Panel résumé avec animation d'apparition */
#summary-panel {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#summary-panel.visible {
  opacity: 1;
  transform: translateX(0);
}
