/* =============================================
   VARIABLES & RESET
============================================= */
:root {
  --stone:   transparent;
  --chalk:   rgba(255, 255, 255, 0.05);
  --moss:    #4a6b46;
  --forest:  #ffffff;
  --granite: #f0f0f0;
  --slate:   #dcdcdc;
  --summit:  #d5e0cd;
  --pulse:   #22a154;
  --pulse-light: #22a154;
  --sand:    #e6decb;
  --shadow:  rgba(0,0,0,0.15);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  padding-top: 18px;
  font-family: var(--ff-body);
  color: var(--granite);
  overflow-x: hidden;
  background:
    linear-gradient(160deg, rgba(46, 46, 46, 0.75) 0%, rgba(46, 46, 46, 0.65) 50%, rgba(46, 46, 46, 0.85) 100%),
    url('./Grande voie 1.jpg') center center / cover no-repeat fixed;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3 { font-family: var(--ff-display); line-height: 1.15; }

.section-label {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pulse);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.8;
  max-width: 560px;
}

/* =============================================
   LAYOUT HELPERS
============================================= */
.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

section { padding: 100px 0; }
/* =============================================
   FORM
============================================= */

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.93rem;
  padding: 12px 16px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(192,57,43,0.7);
  background: rgba(0,0,0,0.4);
}
.form-group select option { background: #1a1a1a; color: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }

/* =============================================
   IMAGES
============================================= */
.initiationescalade-visual-via {
  width: 79%; /* Prend toute la largeur de sa colonne de grille */
  max-width: 500px; /* Limite la largeur maximale (ajustez ce chiffre) */
  margin: 0 auto; /* Centre l'image si elle est plus petite que sa colonne */
}

.initiationescalade-visual-via2 {
  width: 100%; /* Prend toute la largeur de sa colonne de grille */
  max-width: 500px; /* Limite la largeur maximale (ajustez ce chiffre) */
  margin-top: 1rem;
  margin-right: 4rem;
}

.pres-img-via {
  width: 100%;
  height: auto;
  border-radius: var(--radius); /* Utilise vos variables existantes */
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  .pres-img-via {
    height: 300px; /* On réduit un peu la hauteur sur mobile */
    max-width: 100%;
  }
}

/* =============================================
   NAVIGATION
============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(15, 25, 15, 0.85);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-pulse {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}

.logo-pulse svg { animation: heartbeat 1.8s ease-in-out infinite; }

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.15); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.1); }
  56%      { transform: scale(1); }
}

.logo-text {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo-text span { color: var(--pulse-light); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-links a:hover { color: #fff; }

.nav-links a.active { color: #fff; border-bottom: 2px solid var(--pulse); padding-bottom: 2px; }

.nav-cta {
  background: var(--pulse);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--pulse-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;           /* zone tactile élargie 44x44px minimum */
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active {
  background: rgba(255,255,255,0.08);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

/* Transformation hamburger → croix */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   PRESTATIONS CARD
============================================= */

.presta-card::after {
  content: "→";
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: 0.3s;
}

.presta-card-link:hover .presta-card::after {
  opacity: 1;
  transform: translateX(5px);
}

.presta-more {
  display: inline-block;
  margin-top: 1.2rem;

  color: #e63946; /* rouge */
  font-style: italic;
  text-decoration: underline;
  font-weight: 500;

  transition: all 0.3s ease;
}

.presta-card-link:hover .presta-more {
  color: #ff4d5a;
  transform: translateX(4px);
}

.presta-card {
  position: relative;
}

@media (max-width: 540px) {
  .presta-card {
    padding: 24px 20px;
  }

  .presta-title {
    font-size: 1.2rem;
  }

  .presta-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .presta-benefits li {
    font-size: 0.82rem;
    gap: 8px;
  }

  .presta-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
}

/* =============================================
   PAGE HERO (inner pages)
============================================= */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--pulse);
  border-radius: 2px;
}

.page-hero .section-label { justify-content: center; display: flex; }
.page-hero .section-title { font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero .section-subtitle { margin: 0 auto; text-align: center; }

@media (max-width: 540px) {
  .page-hero {
    padding: 110px 0 48px;
  }

  .page-hero .section-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .page-hero .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
}

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  justify-content: center;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* =============================================
   BUTTONS
============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pulse);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--pulse-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 15px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* === BOUTONS MOBILE — CRITIQUE === */
.btn-primary,
.btn-secondary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* supprime le délai 300ms iOS */
  user-select: none;
  min-height: 48px;             /* taille tactile minimum recommandée */
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(192,57,43,0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-secondary:active {
  background: rgba(255,255,255,0.12);
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

@media (max-width: 540px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 0.9rem;
  }
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: transparent;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.1rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.footer-socials { display: flex; gap: 12px; }

.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-btn:hover {
  border-color: var(--pulse);
  color: #fff;
  background: rgba(192,57,43,0.2);
}

/* =============================================
   SCROLL REVEAL
============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* =============================================
   MENU DÉROULANT (DROPDOWN)
============================================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--chalk);
  border-radius: var(--radius);
  padding: 10px 0;
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 100;
}

/* Apparition au survol */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--granite);
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pulse); /* Rouge ABO Escalade */
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  
  section { padding: 72px 0; }

  /* Bouton Hamburger */
  .nav-toggle { 
    display: flex; 
    z-index: 1010; 
  }

  /* Conteneur principal du menu mobile */
  .nav-links {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    gap: 10px;
    background: rgba(10, 18, 10, 0.98); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 24px 60px; 
    z-index: 1000;
    
    /* Animation */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    
    /* Scroll interne si le menu est long */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
  }

  /* Affichage du menu quand il est ouvert */
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Liens principaux */
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--granite);
  }

  /* =============================================
     AJUSTEMENTS DROPDOWN (MENU DÉROULANT) MOBILE
     ============================================= */
  .dropdown-menu {
    position: static;     /* Remet le menu dans le flux (plus de flottement) */
    display: none;        /* On force l'affichage en colonne */
    flex-direction: column;
    align-items: center;
    transform: none;      /* Supprime les décalages du mode bureau */
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;           /* Visible par défaut dans le menu ouvert */
    visibility: visible;
    pointer-events: auto;
    padding: 10px 0 20px 0;
    width: 100%;
  }

  .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  .dropdown.is-active .dropdown-menu {
    display: flex; 
  }

  /* Annule les effets de survol du bureau qui ne marchent pas sur mobile */
  .dropdown:hover .dropdown-menu {
    transform: none; 
  }

  /* Liens à l'intérieur du menu déroulant */
  .dropdown-menu a {
    padding: 8px;
    font-size: 1.1rem;
    color: #aaaaaa; /* Gris plus clair pour contraster avec les liens parents */
    transition: color 0.3s ease;
  }

  .nav-links a:active {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  /* CTA "Réserver" spécifique dans le menu mobile */
  .nav-links .nav-cta {
    display: inline-flex;
    width: auto; /* Ne prend pas toute la largeur pour rester élégant */
    margin-top: 20px;
    padding: 14px 40px;
    background: var(--moss);
    color: white;
    border-radius: 4px;
  }
}

@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col h4 {
    margin-bottom: 0.75rem;
  }

  .footer-col ul li {
    margin-bottom: 0;
  }

  .footer-col ul li a {
    display: block;
    padding: 10px 0;          /* zone tactile confortable */
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .footer-col ul li:last-child a {
    border-bottom: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
}