/* ============================================
   PARCOURS AVENTURE 60 — VALLÉE DES PEAUX ROUGES
   Stylesheet principal partagé
   ============================================ */

:root {
  /* Palette inspirée du parc original — tons terre & forêt */
  --rouge-tribu: #8B2A1F;
  --rouge-feu: #C0392B;
  --orange-coucher: #D9622B;
  --jaune-ocre: #E8A33D;
  --vert-foret: #2D4A2B;
  --vert-mousse: #5A7A4A;
  --beige-cuir: #D4B896;
  --creme: #F5EBD8;
  --noir-corbeau: #1A0F0A;
  --brun-bois: #3E2817;
  --shadow-soft: 0 10px 40px rgba(26, 15, 10, 0.15);
  --shadow-strong: 0 20px 60px rgba(26, 15, 10, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--creme);
  color: var(--noir-corbeau);
  overflow-x: hidden;
  line-height: 1.6;
}

.display-font { font-family: 'Rye', cursive; }
.impact-font { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; }

/* ============ NAVIGATION ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--rouge-tribu);
  transition: transform 0.3s ease;
}
nav.hidden { transform: translateY(-100%); }
.nav-container {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--creme); text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--rouge-tribu);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--jaune-ocre);
  position: relative;
}
.logo-icon svg { width: 26px; height: 26px; fill: var(--creme); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .top { font-family: 'Rye'; font-size: 0.95rem; color: var(--jaune-ocre); }
.logo-text .bottom { font-family: 'Bebas Neue'; font-size: 1.1rem; letter-spacing: 0.1em; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--creme); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--jaune-ocre); }
.nav-links a:not(.btn-reserver)::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--jaune-ocre);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn-reserver):hover::after { width: 100%; }

/* Dropdown groupes */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--noir-corbeau);
  border: 1px solid var(--rouge-tribu);
  border-radius: 8px;
  min-width: 240px;
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-strong);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 0.9rem;
  border-radius: 4px;
  color: var(--creme);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-dropdown-menu a:hover {
  background: var(--rouge-tribu);
  color: var(--creme);
}
.nav-dropdown-menu a::after { display: none !important; }

.btn-reserver {
  background: var(--rouge-feu) !important;
  color: var(--creme) !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem !important;
  letter-spacing: 0.1em;
  border: 2px solid var(--rouge-feu);
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 0 var(--rouge-tribu);
}
.btn-reserver:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--rouge-tribu);
  background: var(--orange-coucher) !important;
  border-color: var(--orange-coucher);
}
.btn-reserver:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--rouge-tribu); }
.btn-reserver::after { display: none !important; }

.mobile-toggle { display: none; background: none; border: none; color: var(--creme); cursor: pointer; }

/* ============ HEADERS DE PAGE ============ */
.page-header {
  padding: 9rem 2rem 5rem;
  background:
    radial-gradient(ellipse at top, rgba(217, 98, 43, 0.3), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(45, 74, 43, 0.5), transparent 60%),
    linear-gradient(180deg, #1a0f0a 0%, #2d4a2b 60%, #3e2817 100%);
  color: var(--creme);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.15; pointer-events: none; mix-blend-mode: overlay;
}
.page-header-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.breadcrumb {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--jaune-ocre);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--jaune-ocre); text-decoration: none; opacity: 0.7; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }
.page-title {
  font-family: 'Rye', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.page-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(245, 235, 216, 0.85);
  max-width: 700px; margin: 0 auto;
}

/* ============ COMMUN ============ */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}
.section-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--rouge-feu);
  letter-spacing: 0.3em;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Rye', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--brun-bois);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: rgba(26, 15, 10, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.btn-primary {
  background: var(--rouge-feu);
  color: var(--creme);
  padding: 1.1rem 2.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 6px 0 var(--rouge-tribu), 0 12px 30px rgba(192, 57, 43, 0.4);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--rouge-tribu), 0 15px 35px rgba(192, 57, 43, 0.5);
  background: var(--orange-coucher);
}
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--rouge-tribu); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  background: transparent;
  color: var(--brun-bois);
  padding: 1.1rem 2.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  border: 2px solid var(--brun-bois);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--brun-bois); color: var(--creme);
  transform: translateY(-2px);
}

.btn-secondary.light {
  color: var(--creme);
  border-color: var(--creme);
}
.btn-secondary.light:hover {
  background: var(--creme); color: var(--brun-bois);
}

/* ============ FOOTER ============ */
footer {
  background: var(--noir-corbeau);
  color: var(--creme);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.95rem; opacity: 0.7; max-width: 320px; }
.footer-col h4 {
  font-family: 'Bebas Neue';
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--jaune-ocre);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  color: rgba(245, 235, 216, 0.7);
  text-decoration: none;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--jaune-ocre); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid rgba(245, 235, 216, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  padding: 0;
  color: rgba(245, 235, 216, 0.7);
}
.social-links a:hover {
  background: var(--rouge-feu);
  border-color: var(--rouge-feu);
  color: var(--creme);
  transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(245, 235, 216, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============ FLOATING CTA MOBILE ============ */
.floating-cta {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 999;
  display: none;
  background: var(--rouge-feu);
  color: var(--creme);
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-family: 'Bebas Neue';
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
  animation: pulse-cta 2s infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5); }
  50% { box-shadow: 0 6px 30px rgba(192, 57, 43, 0.8); }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--noir-corbeau);
    padding: 1.5rem; gap: 0.5rem;
    border-bottom: 2px solid var(--rouge-tribu);
    align-items: stretch;
  }
  .nav-links.open a {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    text-align: left;
  }
  .nav-links.open a:hover { background: rgba(192, 57, 43, 0.2); }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1; visibility: visible;
    background: rgba(245, 235, 216, 0.05);
    margin: 0.3rem 0 0.5rem 1rem;
    border: none;
    box-shadow: none;
    min-width: auto;
  }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floating-cta { display: block; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-header { padding: 7rem 1rem 3rem; }
}
