/* --- Variables & base --- */
:root {
  --brown: #7a4d2b;
  --brown-dark: #5f3b21;
  --cream: #f8f4ef;
  --beige: #efe5d9;
  --text: #1e1e1e;
  --text-muted: #4a4a4a;
  --white: #ffffff;
  --surface: #ffffff;
  --border: #ebdfd3;
  --border-input: #dacbbc;
  --accent-hover: #6b4428;
  --focus-ring: var(--brown);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  /* Hauteur zone sous le menu sticky pour ancres (#viande, etc.) — évite les titres coupés */
  --header-offset: 50px;
  /* Sections « pleine largeur fond » : même cadence que section { } */
  --section-pad-y: 58px;
  --section-border: 1px solid #ece4db;
  /* Largeur contenu : le % compte surtout < ~1200px ; au-delà c’est le px qui limite */
  --container-max-pct: 96%;
  --container-max-px: 1240px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

/* Accessibilité : focus clavier visible */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.menu a:focus-visible {
  outline-offset: 3px;
}
.container {
  width: 100%;
  max-width: min(var(--container-max-px), var(--container-max-pct));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6dfd7;
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brown-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.nav-toggle:hover {
  background: #f0e8de;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brown-dark);
  text-decoration: none;
  font-size: 1.15rem;
}
.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  background: var(--beige);
  border: 1px solid #dfcfbf;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.logo-text {
  min-width: 0;
}
.menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.menu a {
  text-decoration: none;
  color: #2f2f2f;
  font-size: 0.95rem;
  padding: 4px 5px;
  border-radius: 8px;
}
.menu a:hover { background: #f0e8de; }

h1,
h2,
.section-title,
section h3 {
  font-family: var(--font-display);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .menu {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    order: 3;
    gap: 4px;
    padding: var(--space-3) 0 var(--space-4);
    margin: 0;
    border-top: 1px solid #e6dfd7;
  }
  .menu a {
    padding: 12px 10px;
    font-size: 1rem;
  }
  .topbar.nav-open .menu {
    display: flex;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }
  .menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: auto;
    order: 0;
    padding: 0;
    margin: 0;
    border-top: 0;
    gap: 6px;
  }
}
/* --- En-tête & accueil (fond plein écran) --- */
.accueil {  /* Même marge verticale + filet bas que les autres <section> (hors blocs .hero) */
  padding: var(--section-pad-y) 0;
  /* Hauteur mini type « hero » (tu avais 85vh avant) — dvh/svh pour barres mobiles */
  min-height: 85vh;
  min-height: 85dvh;
  min-height: 85svh;
  /* Pas de display:flex ici : sinon le .container enfant casse la largeur % et colle au viewport */

  position: relative;
  color: white;

  background-image: url("./assets/fond_accueil_V4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-bottom: var(--section-border);
}
.accueil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.accueil-grid {
  position: relative;
  z-index: 1;
}
.accueil-intro {
  width: 100%;
  max-width: 100%;
}
/*
 * Accueil : grille responsive (grid-template-areas).
 * — Petit écran : logo au-dessus, texte + boutons en dessous (colonne unique).
 * — Large écran : [ texte | logo ] deux colonnes, proportions type carte « pro ».
 */
.accueil-layout {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "aside"
    "main";
  gap: clamp(20px, 4.5vw, 32px);
  align-items: start;
  justify-items: stretch;
}
.accueil-aside {
  grid-area: aside;
  justify-self: center;
  width: 100%;
  /* Logo plus lisible sur mobile : borne haute plus large */
  max-width: min(320px, 94vw);
}
.accueil-main {
  grid-area: main;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.accueil-main h1 {
  margin: 0 0 0.75rem;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw + 0.5rem, 2.85rem);
  color: var(--brown);
  line-height: 1.18;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.5);
}
.accueil-main .accueil-subtitle {
  margin: 0 0 12px;
  width: 100%;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.5;
}
.accueil .accueil-subtitle {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.accueil-logo-card {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  box-sizing: border-box;
  background: #efe5d9;
  border: 1px solid #dfcfbf;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
}
.accueil-logo-card .accueil-logo {
  width: 88%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .accueil-layout {
    /* Texte un peu moins large que le bloc logo pour une grille plus harmonieuse */
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, min(40vw, 400px));
    grid-template-rows: auto;
    grid-template-areas: "main aside";
    column-gap: clamp(32px, 5vw, 56px);
    row-gap: 0;
    align-items: center;
    justify-items: stretch;
  }
  .accueil-main {
    text-align: left;
  }
  .accueil-aside {
    justify-self: stretch;
    align-self: center;
    width: auto;
    max-width: none;
  }
  .accueil-main h1 {
    margin-bottom: 1.15rem;
    font-size: clamp(2.1rem, 2.8vw + 1.15rem, 3.5rem);
    line-height: 1.12;
  }
  .accueil-main .accueil-subtitle {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.08rem;
    max-width: min(62ch, 100%);
    text-align: left;
  }
  .accueil-logo-card {
    max-width: none;
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
  }
  .accueil-logo-card .accueil-logo {
    width: 90%;
  }
  .accueil-cta {
    justify-content: flex-start;
  }
}
@media (max-width: 479px) {
  .accueil-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .accueil-cta .btn {
    width: 100%;
    text-align: center;
  }
}
.hero {
  padding: 72px 0 44px;
  background:
    linear-gradient(180deg, rgba(122, 77, 43, 0.10), rgba(122, 77, 43, 0.04)),
    var(--white);
  border-bottom: var(--section-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.15;
  font-size: clamp(2.3rem, 4.1vw, 3rem);
  text-shadow:
    0 0 8px rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.5);
}
.subtitle { margin: 0 0 32px; font-size: 1.05rem; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Air au-dessus des boutons (ne dépend pas du collapse des marges des <p>) */
  padding-top: 10px;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(95, 59, 33, 0.28);
}
.btn-light { background: #efe5d9; color: #3a2b20; }
.btn-light:hover {
  background: #e8dfd2;
  transform: translateY(-1px);
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.hero-card.plain {
  background: #efe5d9;
  border: 1px solid #dfcfbf;
  box-shadow: var(--shadow);
  padding: 12px;
  border-radius: 14px;
}
.hero-card.plain img {
  width: 86%;
  margin: 0 auto;
  min-height: 0;
  object-fit: contain;
}
.hero-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  min-height: 260px;
  cursor: zoom-in;
}
section { padding: var(--section-pad-y) 0; }
.section-title {
  margin: 0 0 18px;
  font-size: 1.8rem;
  color: var(--brown-dark);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.list {
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li { margin-bottom: 8px; }
.price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #ded2c4;
}
.price:last-child { border-bottom: 0; }
/* --- Galerie randonnées (bandeau + lightbox) --- */
.rando-content {
  background: transparent;
  border: 0;
  padding: 0;
}
.rando-gallery-wrap { margin-top: 20px; }
.rando-scroll {
  position: relative;
  border-radius: 14px;
}
.rando-gallery {
  --visible-count: 4;
  display: flex;
  gap: 12px;
  overflow-x: hidden;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.rando-gallery::-webkit-scrollbar { height: 8px; }
.rando-gallery::-webkit-scrollbar-thumb {
  background: #cdb9a7;
  border-radius: 999px;
}
.rando-item {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 calc((100% - (var(--visible-count) - 1) * 12px) / var(--visible-count));
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 1;
  transition: transform 0.2s ease;
  transform: translateY(0);
}
.rando-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.rando-item.is-visible { opacity: 1; transform: translateY(0); }
.rando-item:hover img { transform: scale(1.02); }
.rando-item.more img { opacity: 0.42; }
.more-dots {
  position: absolute;
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  border: 0;
  border-radius: 999px;
  background: rgba(40, 28, 20, 0.72);
  color: #fff;
  width: 56px;
  height: 56px;
  font-size: 34px;
  line-height: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  letter-spacing: 2px;
}
.scroll-edge {
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 72px;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.scroll-edge.left {
  left: 0;
  justify-content: flex-start;
  background: transparent;
}
.scroll-edge.right {
  right: 0;
  justify-content: flex-end;
  background: transparent;
}
.scroll-btn {
  margin: 0 8px;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  background: rgba(56, 35, 21, 0.9);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.scroll-btn:hover { background: rgba(56, 35, 21, 1); }
.rando-progress {
  margin-top: 10px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #ddcec0;
  overflow: hidden;
}
.rando-progress-fill {
  width: 0;
  height: 100%;
  background: var(--brown);
  border-radius: 999px;
  transition: width 0.25s ease;
}
/* --- Lightbox (plein écran) --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: min(var(--container-max-px), 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 6px 10px 8px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-nav.show { display: block; }
.lightbox-footer {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(4px);
}
.lightbox-counter {
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: 46px;
  text-align: center;
}
.lightbox-progress {
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.lightbox-progress-fill {
  width: 0;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.2s ease;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}
.contact-info p { margin: 8px 0; }
.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}
.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brown);
}
.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.contact-icon--facebook {
  width: 22px;
  height: 22px;
  color: inherit;
}
.contact-icon--facebook svg path {
  fill: #1877f2;
}
.contact-line-body strong {
  color: var(--text);
}
.label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fffefc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(122, 77, 43, 0.2);
}
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; gap: 12px; }
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.form-status.error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}
.map {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 10px;
}
footer {
  border-top: 1px solid #eadfce;
  padding: 22px 0 34px;
  color: #5e5e5e;
  font-size: 0.95rem;
  background: var(--white);
}
@media (max-width: 880px) {
  .hero-grid, .grid-2, .contact-grid, .activities-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rando-gallery { --visible-count: 2; }
  .rando-item { flex-basis: calc((100% - 12px) / 2); }
  .rando-item img { height: 190px; }
}

/* --- Grille « Autres activités » --- */
.activities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.activity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;

  flex: 0 1 320px; 
}

.activity:hover {
  transform: translateY(-3px);
}

.activity img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.activity h3 {
  margin: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brown-dark);
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .activity,
  .nav-toggle {
    transition: none;
  }
  .btn-primary:hover,
  .btn-light:hover,
  .activity:hover {
    transform: none;
  }
}
