/* =========================
   FONTS
========================= */

@font-face {
   font-family: "Mohave";
   src: url("../fonts/Mohave-Light.woff2") format("woff2");
   font-weight: 200;
}

@font-face {
   font-family: "Mohave";
   src: url("../fonts/Mohave-Regular.woff2") format("woff2");
   font-weight: 400;
}

@font-face {
   font-family: "Mohave";
   src: url("../fonts/Mohave-Bold.woff2") format("woff2");
   font-weight: 700;
}

/* =========================
   GLOBAL
========================= */

html,
body {
   margin: 0;
   padding: 0;
   height: 100%;
   overflow: hidden;
   font-family: "Mohave", sans-serif;
}

.map-page {
   position: relative;
   height: 100vh;
   width: 100%;
}

/* =========================
   MAP BACKGROUND
========================= */

.map-background {
   position: absolute;
   inset: 0;
   z-index: 1;
}

.map-background object {
   width: 100%;
   height: 100%;
   border: none;
}

/* =========================
   INTRO VIDEO
========================= */

.intro-video {
   position: fixed;
   inset: 0;
   z-index: 99999;
   display: flex;
   align-items: center;
   justify-content: center;
}

.intro-video video {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.intro-logo {
   position: relative;
   z-index: 2;
   height: 200px;
   width: auto;
   transition: opacity 0.8s ease;
}

.intro-video.started .intro-logo {
   opacity: 0;
}

.intro-video.hidden {
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.8s ease;
}

/* =========================
   HEADER CENTRÉ
========================= */
.chemins-panel {
   position: fixed;
   top: 20px;
   left: 60px;
   width: 500px;
   max-width: calc(100% - 40px);
   z-index: 100;
}
.chemins-header {
   position: relative;
   height: 160px;
   background: white;
   border: 4px solid #ffd70099;
   border-radius: 12px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
   z-index: 2;
   overflow: visible;
}

.chemins-header {
   gap: 0.5rem;
   padding: 0.75rem 1.25rem;
   box-sizing: border-box;
   text-align: center;
}

.chemins-logo {
   display: block;
   width: auto;
   height: auto;
   max-height: 90px;
   max-width: 80%;
   margin: 0;
}

.chemins-subtitle {
   margin: 0;
   font-family: "Mohave", sans-serif;
   font-weight: 400;
   font-size: 0.95rem;
   line-height: 1.2;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   text-align: center;
   color: goldenrod;
}
.details-toggle {
   position: absolute;
   bottom: -35px;
   left: 14px;
   width: 44px;
   height: 28px;
   cursor: pointer;
   z-index: 3;
   background: white;
   border: 3px solid #ffd70099;
   border-radius: 0 0 8px 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background 0.3s ease;
}
.details-toggle.open {
   background: #ffd70099;
}

.tag-triangle {
   width: 0;
   height: 0;
   border-left: 9px solid transparent;
   border-right: 9px solid transparent;
   border-top: 12px solid #ffd700;
   transition: border-top-color 0.3s ease;
}

.details-toggle.open .tag-triangle {
   border-top-color: white;
}
/* =========================
   COLONNE GAUCHE
========================= */

/* =========================
   DETAILS (INTRO TEXTE)
========================= */

.details {
   margin: 1rem 0 1rem 0;
   background: white;
   border: 4px solid #ffd70099;
   border-radius: 12px;
   padding: 1.5rem;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
   max-height: 0;
   overflow: hidden;
   opacity: 0;
   transform: translateY(-10px);
   transition: all 0.4s ease;
}

.details.open {
   max-height: calc(100vh - 300px);
   opacity: 1;
   transform: translateY(0);
   overflow-y: auto;
}

/* =========================
   FICHE (BOTTOM PANEL LEFT)
========================= */

.chemins-side {
   position: fixed;
   top: 220px;
   left: 60px;

   width: 500px;
   max-width: calc(100% - 40px);

   display: flex;
   flex-direction: column;
   gap: 1rem;

   z-index: 50;
}

.chemins-body {
   background: white;
   border: 4px solid #ffd70099;
   border-radius: 12px;

   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);

   display: none;
   flex-direction: column;

   max-height: 100vh;
   overflow-y: auto;

   pointer-events: auto;
}

.chemins-body.is-visible {
   display: flex;
}

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

.chemin-card {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   padding: 1rem;
}

.chemin-media {
   width: 100%;
   border-radius: 8px;
   overflow: hidden;
}

.chemin-media:has(img),
.chemin-media:has(video) {
   aspect-ratio: 16 / 9;
}

.chemin-media img,
.chemin-media video {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.chemin-title {
   font-size: 1.4rem;
   margin: 0;
   text-align: center;
}

.chemin-text {
   line-height: 1.5;
   font-size: 0.95rem;
}

.chemin-button {
   align-self: flex-start;
   padding: 0.5rem 1rem;

   border: 2px solid #ffd70099;
   border-radius: 10px;

   text-decoration: none;
   color: black;

   transition: background 0.2s ease;
}

.chemin-button:hover {
   background: #ffd70022;
}
.video-gallery {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px;
   width: 100%;
}

.vignette-wrapper {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 4px;
}

.vignette-label {
   font-size: 0.85rem;
   font-weight: bold;
   text-align: center;
   color: #333;
   font-family: "Mohave", sans-serif;
}
.vignette {
   position: relative;
   aspect-ratio: 16/9;
   overflow: hidden;
   border-radius: 8px;
   cursor: pointer;
   background: #000;
}

.vignette video {
   width: 100%;
   height: 100%;
   object-fit: cover;
   pointer-events: none;
}

.vignette-play {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   color: white;
   background: rgba(0, 0, 0, 0.35);
   transition: background 0.2s ease;
}

.vignette:hover .vignette-play {
   background: rgba(0, 0, 0, 0.55);
}

#video-lightbox {
   position: fixed;
   inset: 0;
   z-index: 99999999;
   background: rgba(0, 0, 0, 0.85);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s ease;
}

#video-lightbox.open {
   opacity: 1;
   pointer-events: auto;
}

#video-lightbox video {
   width: 90%;
   max-width: 900px;
   max-height: 80vh;
   border-radius: 12px;
}

#video-lightbox-close {
   position: absolute;
   top: 20px;
   right: 28px;
   font-size: 2rem;
   color: white;
   cursor: pointer;
}
/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
   html,
   body {
      overflow: hidden;
   }

   .intro-logo {
      width: 80%;
      height: auto;
   }
   /* =========================
     PANNEAU HEADER — pleine largeur en haut
  ========================= */
   .chemins-panel {
      top: 0;
      left: 0;
      width: 100%;
      max-width: 100%;
      border-radius: 0;
      padding: 0;
   }

   .chemins-header {
      width: 100%;
      height: 110px;
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-top: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 0.2rem;
      padding: 6px 50px 6px 6px;
      box-sizing: border-box;
      isolation: isolate;
   }

  .chemins-header {
   height: 110px;
   padding: 6px 12px;
   gap: 0.25rem;
}

.chemins-logo {
   max-height: 56px;
   max-width: 100%;
}

.chemins-subtitle {
   font-size: 0.7rem;
   letter-spacing: 0.04em;
}

   .details-toggle {
      bottom: -35px;
      right: 10px;
      left: auto;
      z-index: 10;
   }

   .details {
      border-radius: 0;
      border-left: none;
      border-right: none;
      margin: 0;
      font-size: 1.1rem;
   }

   .details.open {
      max-height: 50vh;
   }

   /* =========================
     FICHE POINT — masquée par défaut sur mobile
     (gérée par le popup JS)
  ========================= */
   .chemins-side {
      display: none;
   }
}


/* =========================
   CONTENUS 2026 — titre, accroche, intro en sections
   (ajouts : le reste de la feuille est inchangé)
========================= */

/* Le logo est le titre h1 de la page */
.chemins-title {
   margin: 0;
   width: 100%;
   display: flex;
   justify-content: center;
   line-height: 0;
}

/* Accroche : plus longue qu'avant, donc en minuscules et sur 2 lignes */
.chemins-header {
   height: auto;
   min-height: 160px;
}
.chemins-logo {
   max-height: 80px;
}
.chemins-subtitle {
   font-size: 0.85rem;
   line-height: 1.25;
   letter-spacing: 0.01em;
   text-transform: none;
   max-width: 92%;
}

/* Intro en sections (h2 + paragraphes) */
.details h2 {
   margin: 1.3rem 0 0.4rem;
   font-size: 1.1rem;
   line-height: 1.2;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: goldenrod;
}
.details h2:first-child {
   margin-top: 0;
}
.details p {
   margin: 0 0 0.8rem;
   line-height: 1.55;
}

@media (max-width: 768px) {
   .chemins-header {
      height: auto;
      min-height: 110px;
   }
   .chemins-logo {
      max-height: 48px;
   }
   .chemins-subtitle {
      font-size: 0.7rem;
   }
}
