/* =============================================================
   RideWild — Format standard des pages "Trip" (destinations RWR)
   Composants additionnels au design system rw-theme.css.
   Partage par toutes les pages TRIP/<destination>/index.html.
   ============================================================= */

/* ── Quick facts (hero) ── */
.trip-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0 0.5rem;
}
.trip-facts .fact {
  background: var(--bg-2);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.trip-facts .fact .fact-icon { font-size: 1.1rem; margin-right: 0.4rem; }
.trip-facts .fact .fact-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}
.trip-facts .fact .fact-value {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-top: 0.15rem;
}

/* ── Hero plein ecran (video Beach Boheme) ── */
/* position: fixed, cale sur le viewport plutot que sur le conteneur centre
   "main" (max-width) : garantit un plein ecran quelle que soit la forme de
   l'ecran, sans dependre d'un calcul de marge negative fragile. */
.hero-splash {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
.hero-splash.is-dismissed { display: none; }
.hero-splash-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-splash-logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: clamp(64px, 9vw, 110px);
  height: auto;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.45));
}
.hero-splash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.25) 35%, rgba(5, 5, 5, 0.65) 100%);
}
.hero-splash-overlay .kicker { margin: 0; }
.hero-splash-overlay .hero-title { margin: 0; }
.hero-splash-tagline {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  max-width: 480px;
}
.hero-splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.trip-video-hero-credit {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(240, 235, 224, 0.6);
  text-align: center;
}

@media (max-width: 640px) {
  .hero-splash { min-height: 560px; }
}

/* ── Disclaimer / honesty banner ── */
.honesty-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: linear-gradient(170deg, rgba(212,168,83,0.08), rgba(17,17,17,0.9));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.1rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.honesty-note .icon { font-size: 1.1rem; flex-shrink: 0; }
.honesty-note strong { color: var(--gold); }

/* ── Wind fiche ── */
.wind-fiche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.wind-fiche .wf-item {
  background: var(--bg-2);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.wind-fiche .wf-item .wf-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.35rem;
}
.wind-fiche .wf-item .wf-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* ── Data table (wind month by month, tides, etc.) ── */
.trip-table-wrap { overflow-x: auto; margin: 1rem 0; }
.trip-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.trip-table th, .trip-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border-sub);
  color: var(--text-dim);
  white-space: nowrap;
}
.trip-table th {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}
.trip-table td:first-child, .trip-table th:first-child { color: var(--text); font-weight: 700; white-space: normal; }
.trip-table tr:last-child td { border-bottom: 0; }

/* ── Included / not included ── */
.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 640px) { .include-grid { grid-template-columns: 1fr; } }
.include-col {
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border-sub);
  background: var(--bg-2);
}
.include-col.is-included { border-color: var(--gold-border); }
.include-col h3 {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: var(--gold);
}
.include-col.is-not h3 { color: var(--text-dim); }
.include-col ul { list-style: none; margin: 0; padding: 0; }
.include-col li {
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--border-sub);
  line-height: 1.5;
}
.include-col li:last-child { border-bottom: 0; }
.include-col.is-included li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.include-col.is-not li::before { content: "–"; position: absolute; left: 0.2rem; color: var(--text-muted); font-weight: 900; }
.include-col em { color: var(--text-muted); font-style: italic; }

/* ── Galerie photos reelles (Beach Boheme) ── */
.real-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.real-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-sub);
  background: var(--bg-2);
}
.real-gallery img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.real-gallery figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-sub);
}
.real-gallery figcaption strong { display: block; color: var(--text); font-size: 0.8rem; margin-bottom: 0.1rem; }

/* ── Photo placeholders (galerie) ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.photo-slot {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
}
.photo-slot .ps-inner { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.photo-slot .ps-inner strong { display: block; color: var(--text-dim); font-size: 0.82rem; margin-bottom: 0.3rem; }

/* ── Profile fit (pour qui / pas pour qui) ── */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }

/* ── FAQ (details/summary natif) ── */
.faq-list { margin-top: 1rem; }
.faq-item {
  border-bottom: 1px solid var(--border-sub);
  padding: 0.15rem 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.6rem 0.85rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.75rem;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── CTA secondaire (formulaire infos) ── */
.cta-strip .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Popup interet trip ── */
.trip-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.trip-modal.open { display: flex; }
.trip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(3px);
}
.trip-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.trip-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-sub);
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.trip-modal-panel h3 {
  margin: 0 1.5rem 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}
.trip-modal-intro {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.trip-modal-field {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.trip-modal-field input,
.trip-modal-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-sub);
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  resize: vertical;
}
.trip-modal-field input:focus,
.trip-modal-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.trip-modal-panel .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.trip-modal-feedback {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  min-height: 1.2em;
}
.trip-modal-feedback.error { color: #e08a8a; }
.trip-modal-feedback.success { color: var(--gold-light); }

/* ── Lightbox photos ── */
.real-gallery img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
}
.lightbox-image {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.7);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(17, 17, 17, 0.9); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(240, 235, 224, 0.75);
}

@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ── Sources ── */
.sources-list { font-size: 0.8rem; color: var(--text-dim); line-height: 1.9; }
.sources-list h4 { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 1rem 0 0.4rem; }
.sources-list a { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.sources-list a:hover { color: var(--gold); }
