:root {
  /* Palette de couleurs - Maoka x Xiuh Cacalotl */
  --terre-cacao: #C76B3B;
  --vert-foret: #0D1A1A;
  --ocre-feu: #E27D47;
  --sable-clair: #F2E8D5;
  --noir-nuit: #050505;
  
  /* Couleurs sémantiques */
  --primary: var(--terre-cacao);
  --secondary: var(--ocre-feu);
  --background: var(--vert-foret);
  --foreground: var(--sable-clair);
  --accent: var(--ocre-feu);
  --muted: rgba(242, 232, 213, 0.6);
  
  /* Typographie */
  --font-title: 'Cinzel Decorative', serif;
  --font-heading: 'Questrial', 'Cormorant Garamond', serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  
  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Bordures */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(5, 5, 5, 0.15);
  --shadow-md: 0 4px 16px rgba(5, 5, 5, 0.25);
  --shadow-lg: 0 8px 32px rgba(5, 5, 5, 0.3);
  --shadow-halo: 0 0 20px rgba(226, 125, 71, 0.3);
  
  /* Z-index */
  --z-modal: 1000;
  --z-header: 100;
  --z-tooltip: 10;
}

/* Reset et styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--vert-foret);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(199, 107, 59, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(226, 125, 71, 0.03) 0%, transparent 50%);
}

/* Conteneur principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

/* Bannière */
.banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-md);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* En-tête et navigation */
.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  gap: 3rem;
  width: 100%;
  margin: 0 auto;
}

/* Logo de gauche */
.brand {
  display: flex;
  align-items: center;
  z-index: 1001;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(5, 5, 5, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 232, 213, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.brand img {
  height: 60px;
  width: auto;
  max-width: 150px;
  transition: transform var(--transition-normal);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.brand:hover img {
  transform: scale(1.05);
}

/* Séparateur entre les logos */
.logo-separator {
  width: 1px;
  height: 50px;
  background-color: rgba(242, 232, 213, 0.5);
  margin: 0 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
}

/* Logo de droite */
.right-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: rgba(5, 5, 5, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 232, 213, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.right-logo img {
  height: 60px;
  width: auto;
  max-width: 150px;
  transition: transform var(--transition-normal);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.right-logo:hover img {
  transform: scale(1.05);
}

/* Styles responsifs du header */
@media (max-width: 768px) {
  .header-content {
    gap: 1.5rem;
  }

  .logo-separator {
    height: 40px;
    margin: 0 0.75rem;
  }

  .brand img,
  .right-logo img {
    height: 50px;
    max-width: 120px;
  }

  .brand,
  .right-logo {
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    gap: 1rem;
  }

  .logo-separator {
    height: 35px;
    margin: 0 0.5rem;
  }

  .brand img,
  .right-logo img {
    height: 40px;
    max-width: 100px;
  }

  .brand,
  .right-logo {
    padding: 0.35rem 0.6rem;
  }
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 125, 71, 0.2);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(13, 26, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Section Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--noir-nuit) 0%, var(--vert-foret) 50%, var(--noir-nuit) 100%);
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(226, 125, 71, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(199, 107, 59, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.4);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ocre-feu);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  animation: fadeInDown 0.8s ease-out;
  text-align: center;
}

.hero .lead {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--sable-clair);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .meta {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn {
  background: linear-gradient(135deg, var(--terre-cacao), var(--ocre-feu));
  color: var(--sable-clair);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ocre-feu);
  border: 2px solid var(--ocre-feu);
}

.btn-ghost:hover {
  background: rgba(226, 125, 71, 0.1);
}

/* Sections de contenu */
.card {
  background: rgba(13, 26, 26, 0.6);
  border: 1px solid rgba(226, 125, 71, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) auto;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease-out;
}

.card h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--ocre-feu);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-md);
  text-align: center;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ocre-feu), transparent);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--terre-cacao);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.card p {
  color: var(--foreground);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.card strong {
  color: var(--ocre-feu);
}

.card a {
  color: var(--ocre-feu);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.card a:hover {
  color: var(--sable-clair);
  border-bottom-color: var(--ocre-feu);
}

/* Prose et texte */
.prose {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--foreground);
  text-align: center;
  font-style: italic;
}

.prose p {
  margin-bottom: var(--space-md);
}

/* Listes */
.card ul, .card ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.card li {
  margin-bottom: var(--space-sm);
  color: var(--foreground);
}

.card li::marker {
  color: var(--ocre-feu);
}

/* Rituals */
.rituals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.rituals article {
  background: rgba(199, 107, 59, 0.1);
  border-left: 3px solid var(--ocre-feu);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.rituals article:hover {
  background: rgba(199, 107, 59, 0.15);
  box-shadow: var(--shadow-halo);
  transform: translateY(-2px);
}

.rituals h4 {
  font-family: var(--font-heading);
  color: var(--ocre-feu);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.rituals p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Guide Profile */
.guide-profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.guide-photo {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--ocre-feu);
  box-shadow: var(--shadow-halo);
  margin: 0 auto;
}

.guide-info h2 {
  color: var(--ocre-feu);
  text-align: center;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(226, 125, 71, 0.3) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* Formulaire */
.form-card {
  max-width: 600px;
  margin: var(--space-lg) auto;
}

.form-row {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-weight: 600;
  color: var(--ocre-feu);
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.form-row input,
.form-row textarea {
  padding: 0.75rem;
  border: 1px solid rgba(226, 125, 71, 0.3);
  border-radius: var(--radius-md);
  background: rgba(242, 232, 213, 0.05);
  color: var(--foreground);
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ocre-feu);
  background: rgba(242, 232, 213, 0.1);
  box-shadow: 0 0 10px rgba(226, 125, 71, 0.2);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(242, 232, 213, 0.5);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
}

#waFallback {
  margin-top: var(--space-md);
  text-align: center;
}

#waFallback a {
  color: var(--sable-clair);
  font-weight: 600;
  text-decoration: underline;
}

/* Texte petit */
.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.tiny {
  font-size: 0.8rem;
  color: rgba(242, 232, 213, 0.4);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

img.lazy {
  filter: blur(6px);
  transform: scale(1.01);
  transition: filter 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.7;
}

img.lazy.lazy-loaded {
  filter: none;
  transform: none;
  opacity: 1;
}

/* Section À propos */
.about-section {
  padding: 0;
  overflow: hidden;
}

.about-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.about-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.about-banner:hover .about-banner-image {
  transform: scale(1.05);
}

.about-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.3) 0%,
    rgba(13, 26, 26, 0.5) 50%,
    rgba(13, 26, 26, 0.8) 100%
  );
  pointer-events: none;
}

.about-content {
  padding: var(--space-lg);
}

.about-content h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--ocre-feu);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-md);
  text-align: center;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ocre-feu), transparent);
}

.about-content p {
  color: var(--foreground);
  margin-bottom: var(--space-md);
  line-height: 1.9;
  text-align: center;
  font-size: 1.05rem;
}

.about-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(226, 125, 71, 0.2);
}

.about-link {
  color: var(--ocre-feu);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.about-link:hover {
  color: var(--sable-clair);
  background: rgba(226, 125, 71, 0.1);
  transform: translateY(-2px);
}

.about-separator {
  color: var(--muted);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .about-banner {
    height: 300px;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-links {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .about-separator {
    display: none;
  }
}

/* Pied de page */
.site-footer {
  background: var(--noir-nuit);
  border-top: 1px solid rgba(226, 125, 71, 0.2);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: var(--space-xs);
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  z-index: var(--z-modal);
  animation: slideInUp 0.3s ease-out;
  box-shadow: var(--shadow-lg);
}

.toast.hidden {
  display: none;
}

.toast.info {
  background: var(--terre-cacao);
  color: var(--sable-clair);
}

.toast.success {
  background: #4CAF50;
  color: white;
}

.toast.error {
  background: #f44336;
  color: white;
}

.toast.warning {
  background: var(--ocre-feu);
  color: var(--noir-nuit);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: var(--space-md) 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .lead {
    font-size: 1.2rem;
  }

  .card {
    padding: var(--space-md);
    margin: var(--space-md) auto;
  }

  .guide-profile {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .guide-photo {
    width: 150px;
    height: 150px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    padding: var(--space-lg) 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

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

  .rituals {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .brand img,
  .right-logo img {
    height: 40px;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}
