/* ==========================================================
   Palm Events — V3
   1. Hero slider (à conserver dans toutes les versions)
   2. Barre de navigation de l'accueil (apparaît après le slider)
   3. Ouverture : calque transparent au-dessus du slider
   4. Carrousel des lieux (données dans site-v3.js, nombre libre)
   5. Rythme des sections : crème / brun / image, sans abus de brun
   6. Correctifs
   Couleurs d'interface : brun #472B12 et crème #EDE8D3 uniquement.
   ========================================================== */

/* ---------- 1. HERO SLIDER ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--brown);
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide.on { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.slide.on img { transform: scale(1); }
.slide:nth-child(2) img { object-position: 58% 55%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(36, 21, 8, .46) 0%,
    rgba(36, 21, 8, 0) 30%,
    rgba(36, 21, 8, 0) 50%,
    rgba(36, 21, 8, .64) 100%);
}

.bar {
  position: absolute; z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding: max(22px, env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
}
.bar a { display: block; pointer-events: auto; }
.bar img {
  width: clamp(128px, 20vmin, 176px);
  height: auto;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.caption {
  position: absolute; z-index: 3;
  left: 0; right: 0;
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 24px));
  text-align: center;
  color: var(--cream);
  padding: 0 16px;
}
.caption .kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease .15s, transform 1.2s ease .15s;
}
.hero .caption h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
  color: var(--cream);
  font-size: clamp(30px, 5.6vw, 62px);
  line-height: 1.12;
  margin: .38em 0 .62em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s ease .3s, transform 1.4s ease .3s;
}
.scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .38em;
  padding-left: .38em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.2s ease .7s;
}
.scroll i {
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(var(--cream), transparent);
  transform-origin: top;
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.dots {
  position: absolute; z-index: 3;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0;
  transition: opacity 1.2s ease .9s;
}
.dots button { /* zone tactile 26px, point visible 6px */
  width: 26px; height: 26px;
  padding: 0; border: 0;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  transition: background .4s;
}
.dots button.on::before { background: var(--cream); }
.dots button:focus-visible { outline: 1px solid var(--cream); outline-offset: 0; }

body.ready .caption .kicker,
body.ready .hero .caption h1 { opacity: 1; transform: none; }
body.ready .scroll,
body.ready .dots { opacity: 1; }
body.landed .bar img { opacity: 1; }
body.landed.no-fade .bar img { transition: none; }

/* ---------- 2. Barre de navigation de l'accueil ---------- */
.home-v2 .masthead {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 78px;
  background: var(--brown);
  box-shadow: 0 1px 0 rgba(237, 232, 211, .12);
  transform: translateY(-101%);
  transition: transform .55s var(--e);
}
.home-v2.past-hero .masthead,
.home-v2.menu-open .masthead { transform: none; }
.home-v2 .masthead .brand img { width: 118px; height: auto; }

/* ---------- 3. Ouverture ---------- */
.opener-layer { background: var(--brown); }
.opener-layer.is-live { background: transparent; }
.opener-layer iframe { background: transparent; color-scheme: normal; }
.skip-opener { min-height: 44px; }

/* ---------- 4. Carrousel des lieux ---------- */
.places .venue-interface { width: 100%; max-width: none; }
.venue-stage {
  position: relative;
  height: clamp(470px, 46vw, 650px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.venue-stage.is-dragging { cursor: grabbing; }
.venue-stage:focus-visible { outline: 1px solid var(--cream); outline-offset: -6px; }
.venue-cards { position: absolute; inset: 0; transition: transform .5s var(--e); }
.venue-stage.is-dragging .venue-cards { transition: none; }

.places .venue-card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card-w, 460px);
  height: var(--card-h, 540px);
  margin: 0; padding: 0; border: 0;
  background: transparent;
  filter: none;
  opacity: 1;
  transform: translate(-50%, -50%) translateX(var(--x, 0px)) scale(var(--s, 1));
  transform-origin: 50% 50%;
  transition: transform .9s var(--e), opacity .6s ease;
  will-change: transform;
}
.places .venue-card.active { width: var(--card-w, 460px); height: var(--card-h, 540px); transform: translate(-50%, -50%) translateX(var(--x, 0px)) scale(var(--s, 1)); }
.places .venue-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 28px 60px -22px rgba(12, 6, 2, .65);
  transition: filter .6s ease;
  filter: brightness(.62) saturate(.9);
}
.places .venue-card.active img { filter: none; }
.places .venue-card:not(.active):hover img { filter: brightness(.82); }
.places .venue-card.is-hidden { opacity: 0; pointer-events: none; }

.places .venue-card .card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 70px 26px 24px;
  background: linear-gradient(transparent, rgba(30, 16, 6, .78));
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 27px);
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: left;
  opacity: 0;
  transition: opacity .5s ease .15s;
}
.places .venue-card.active .card-label { opacity: 1; }
.card-ext {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(237, 232, 211, .6);
  padding-bottom: 3px;
  margin-bottom: 4px;
}

.places .venue-controls { width: min(1100px, calc(100% - 10vw)); margin: 18px auto 22px; display: flex; justify-content: space-between; align-items: center; }
.places .round-arrow { min-width: 44px; min-height: 44px; }
.places .venue-description { min-height: 150px; }
.places .venue-description,
.places .venue-description h3,
.places .venue-description p,
.places .venue-description .overline,
.places .venue-description a { color: var(--brown); }
.places .venue-description p#venue-copy { font-size: 13px; opacity: .88; }

/* ---------- 5. Rythme : la section prestations devient crème ---------- */
.service-teaser,
.service-teaser .service-details,
.service-teaser .service-display { background: var(--cream); color: var(--brown); }
.service-teaser { border-top: 1px solid rgba(71, 43, 18, .12); }
.service-teaser .service-details .overline,
.service-teaser .service-detail summary,
.service-teaser .service-detail p,
.service-teaser .service-detail summary span { color: var(--brown); }
.service-teaser .service-detail { border-color: rgba(71, 43, 18, .2); }
.service-teaser .service-detail summary { border-color: rgba(71, 43, 18, .2); }
.service-teaser .service-detail p { opacity: .82; }

/* ---------- 6. Correctifs ---------- */
/* l'onglet actif était brun sur brun (invisible) */
.experiences .experience-tab:hover,
.experiences .experience-tab.active { color: var(--cream); }
.experiences .experience-tab.active span:last-child { color: var(--cream); }

@media (max-width: 780px) {
  .home-v2 .masthead { height: 70px; }
  .home-v2 .masthead .brand img { width: 108px; }
  .venue-stage { height: clamp(400px, 112vw, 470px); }
  .places .venue-card .card-label { padding: 50px 18px 18px; }
  .places .venue-controls { width: calc(100% - 46px); margin: 10px auto 14px; }
  .places .venue-description { min-height: 0; }
  .experiences .experience-tab.active,
  .experiences .experience-tab:hover { background: var(--cream); color: var(--brown); }
  .experiences .experience-tab.active span:last-child { color: var(--brown); }
  .service-teaser .service-details { padding-top: 10px; }
  .dots { right: 8px; }
}
@media (max-width: 390px) {
  .venue-stage { height: 400px; }
  .caption .kicker { letter-spacing: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll i { animation: none; }
  .slide, .slide img, .places .venue-card, .venue-cards, .home-v2 .masthead { transition: none !important; }
}

/* ---------- 5b. Pages intérieures : la bande finale passe en crème (évite brun + pied de page brun) ---------- */
body .next-place,
body .cta-band {
  background: var(--cream) !important;
  color: var(--brown) !important;
  border-top: 1px solid rgba(71, 43, 18, .14);
}
body .next-place a,
body .next-place strong,
body .next-place span,
body .cta-band h2 { color: var(--brown) !important; }
body .cta-band .btn-solid { background: var(--brown); color: var(--cream); }
.textlink-site { margin-left: 28px; }
@media (max-width: 780px) { .textlink-site { margin: 18px 0 0; display: inline-flex; } }
/* légende des photos de lieux : était crème sur crème */
.inner-hero .inner-cover p { color: var(--brown) !important; }
