/* ===== PAGES ÉDITIONS 2027 =====
   Ajustements propres aux pages 2027 (body.page-edition-2027), chargés après
   edition.css. Les pages 2026 n'incluent pas ce fichier. */

/* Titres de section (Description, Les traces…) en Passion One */
.page-edition-2027 .label {
  font-family: 'Passion One', 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

/* Pass Participant : ordre des inclusions sur mobile (le HTML garde l'ordre
   des emplacements autour du billet, utilisé sur grand écran) */
@media (max-width: 768px) {
  .page-edition-2027 .tk-note--l2 { order: 1; } /* Parcours balisé */
  .page-edition-2027 .tk-note--r1 { order: 2; } /* Sécurité */
  .page-edition-2027 .tk-note--b1 { order: 3; } /* Ravitaillements */
  .page-edition-2027 .tk-note--l1 { order: 4; } /* Transport de sac */
  .page-edition-2027 .tk-note--t1 { order: 5; } /* Accès au camp */
  .page-edition-2027 .tk-note--r2 { order: 6; } /* Animations au camp */
  .page-edition-2027 .tk-note--t2 { order: 7; } /* Petit déjeuner */
  .page-edition-2027 .tk-note--b2 { order: 8; } /* Sandwich du dimanche */
}

/* Pass Participant : ce qui n'est pas inclus, sous le billet */
.pass-excluded {
  max-width: 440px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1.5px dashed rgba(52, 52, 52, 0.22);
  border-radius: 14px;
}
.pass-excluded-title {
  margin-bottom: 0.9rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(52, 52, 52, 0.5);
}
.pass-excluded-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pass-excluded-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.pass-excluded-ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dark-2);
  color: rgba(52, 52, 52, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-excluded-ico svg { display: block; }
.pass-excluded-text { display: flex; flex-direction: column; gap: 2px; }
.pass-excluded-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #343434;
}
.pass-excluded-desc {
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(52, 52, 52, 0.6);
}

/* FAQ : réponses en plusieurs paragraphes (le plafond de 600px de faq.css
   coupait les plus longues sur mobile) */
.page-edition-2027 .faq-answer.is-open { max-height: 1400px; }
.page-edition-2027 .faq-answer p:not(:last-child) { padding-bottom: 0.9rem; }

/* Sidebar : intitulé au-dessus du prix unique */
.page-edition-2027 .sidebar-price-label {
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52, 52, 52, 0.45);
}
.page-edition-2027 .sidebar-price-note {
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* Camp de base : hébergements en dur à proximité, en simple mention discrète */
.page-edition-2027 .camp-lodging {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(52, 52, 52, 0.6);
}
.page-edition-2027 .camp-lodging a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(52, 52, 52, 0.3);
  text-underline-offset: 2px;
}
.page-edition-2027 .camp-lodging a:hover { color: var(--cream); }

/* Programme : détail d'un créneau (ce qu'on trouve au camp, à l'arrivée) */
.ed-timeline--v2 .tl-sublist {
  grid-column: 3;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: -0.25rem;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(52, 52, 52, 0.7);
}
.ed-timeline--v2 .tl-sublist li {
  display: flex;
  gap: 0.35em;
}
.ed-timeline--v2 .tl-sub-emoji {
  flex-shrink: 0;
  width: 1.4em;
  text-align: center;
}

/* Camp de base : nom du lieu, sous le titre de section */
.page-edition-2027 .camp-place {
  margin: 0 0 0.9rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #343434;
}

/* Inscriptions pas encore ouvertes : mention sous le bouton grisé (bureau)
   et bouton flottant grisé, avec la même mention (mobile) */
.page-edition-2027 .sidebar-deadline a,
.page-edition-2027 .ed-dock-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-edition-2027 .ed-dock-cta--soon,
.page-edition-2027 .ed-dock-cta--soon:active {
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.9rem;
  background: #c8c0b0;
  color: #343434;
  text-align: center;
}
.page-edition-2027 .ed-dock-label {
  color: #f5f0e8;
  line-height: 1.2;
}
/* Prix repris dans le bouton flottant (mobile), séparé du libellé par un filet */
.page-edition-2027 .ed-dock-price {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.page-edition-2027 .ed-dock-cta--soon .ed-dock-price { display: none; }
.page-edition-2027 .ed-dock-note {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

/* Bouton d'inscription : le libellé avec le prix tient sur la colonne la plus étroite */
.page-edition-2027 .sidebar-cta {
  padding-inline: 0.5rem;
  letter-spacing: 0.03em;
}

/* ===== ÉDITIONS À PLUSIEURS FORMATS (Volcans d'Auvergne) =====
   Le body porte data-format (format affiché) ; chaque bloc propre à un format
   porte data-show="<format>" et n'est visible que pour celui-ci. */
body[data-format="traversee"] [data-show="cantalienne"],
body[data-format="cantalienne"] [data-show="traversee"] { display: none !important; }

/* Sélecteur de format, entre le hero et les métriques */
.ed-format {
  padding: 1.6rem 4rem 0;
  background: var(--dark);
}
.ed-format-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.ed-format-label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: 'Passion One', 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.ed-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 16px;
  background: var(--dark-2);
}
.ed-format-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #343434;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ed-format-btn:hover { background: rgba(255, 255, 255, 0.55); }
.ed-format-btn[aria-selected="true"] {
  background: #343434;
  color: #fff;
  box-shadow: 0 6px 18px rgba(52, 52, 52, 0.18);
}
.ed-format-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ed-format-name {
  font-family: 'Passion One', 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .ed-format { padding: 1.1rem 1rem 1rem; }
  .ed-format-label { font-size: 1.15rem; margin-bottom: 0.6rem; }
  .ed-format-name { font-size: 1.1rem; }
  }

/* Pastille de la trace noire « Intégrale » (Grande Traversée) */
.ed-trace-badge--black {
  background: rgba(52, 52, 52, 0.1);
  color: #343434;
}
/* Pastille sans infobulle : on retire l'indice « i » */
.ed-trace-badge--plain::after { display: none; }

/* Grande Traversée : étapes de l'itinérance, reliées par un sentier en pointillés */
.vt-stages {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.vt-stages::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.2rem;
  border-left: 4px dotted var(--gold);
  transform: translateX(-50%);
}
.vt-node,
.vt-stage {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
}
.vt-node-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--dark);
  border: 1.5px solid rgba(52, 52, 52, 0.15);
  font-size: 1.1rem;
}
.vt-node-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: #343434;
}
.vt-stage-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: #343434;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.vt-stage-card {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.3rem 1rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(52, 52, 52, 0.1);
  border-radius: 12px;
  background: #fff;
}
.vt-stage-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.vt-stage-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #343434;
}
.vt-stage-route {
  font-size: 0.86rem;
  color: rgba(52, 52, 52, 0.75);
}
.vt-stage-zone {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(52, 52, 52, 0.5);
}
.vt-stage-figs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.vt-km { font-size: 1.35rem; line-height: 1; color: #343434; }
.vt-elev { font-size: 1rem; line-height: 1; color: #2e5e55; }
.vt-total {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--dark-3);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  color: #343434;
}
.vt-total-kicker {
  align-self: center;
  font-family: 'Reddit Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(52, 52, 52, 0.55);
}
.vt-total-big { font-size: 1.7rem; line-height: 1; }
@media (max-width: 520px) {
  .vt-node, .vt-stage { gap: 0.6rem; }
  .vt-stage-card { padding: 0.8rem 0.9rem; }
  .vt-km { font-size: 1.15rem; }
}

/* Grande Traversée : territoires traversés (en-tête d'un groupe d'étapes).
   Vignette carrée posée en ::after par-dessus le repli illustré :
   tant que le fichier n'existe pas, seul le repli reste visible. */
.vt-region {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.vt-region-dot {
  justify-self: center;
  align-self: center;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid var(--gold);
}
.vt-region-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.vt-region-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
}
.vt-region-name {
  font-family: 'Passion One', 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #343434;
}
.vt-region-meta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(52, 52, 52, 0.5);
}
.vt-region-photo {
  position: relative;
  flex: none;
  width: 4.2rem;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(52, 52, 52, 0.12);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60 L28 22 L42 38 L64 12 L88 40 L102 28 L120 46 L120 60 Z' fill='%23343434' fill-opacity='0.12'/%3E%3Cpath d='M0 60 L20 42 L38 52 L60 34 L84 54 L104 44 L120 56 L120 60 Z' fill='%23343434' fill-opacity='0.12'/%3E%3C/svg%3E") bottom / 100% 70% no-repeat,
    var(--sage);
}
.vt-region-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo) center / cover no-repeat;
}
.vt-region-photo-empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.vt-region + .vt-stage { margin-top: 0.1rem; }

/* Avertissement sur les traces, remonté sous le titre de section */
.tt-notice.tt-notice--top { margin: 0.2rem 0 1.4rem; }

/* Programme pas encore arrêté : mention « Détails à venir » dans chaque bloc de jour */
.ed-timeline--v2 .tl-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.8rem;
  border: 1.5px dashed rgba(52, 52, 52, 0.18);
  border-radius: 10px;
  font-size: 0.86rem;
  font-style: italic;
  color: rgba(52, 52, 52, 0.55);
  text-align: center;
}
.ed-timeline--v2 .tl-soon-ico { font-style: normal; }
.ed-timeline--v2 .tl-day:has(.tl-soon) { display: flex; flex-direction: column; }
.ed-timeline--v2 .tl-day:has(.tl-soon) .tl-soon { flex: 1; }

/* Bloc de programme couvrant plusieurs jours (« J2 > J5 ») : pastille élargie */
.ed-timeline--v2 .tl-day-tag--range {
  width: auto;
  padding: 0 0.6rem;
  white-space: nowrap;
}

/* Programme : gare de départ / d'arrivée en tête d'un bloc de jour */
.ed-timeline--v2 .tl-station {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(52, 52, 52, 0.8);
}
.ed-timeline--v2 .tl-station strong { font-weight: 500; color: #343434; }
.ed-timeline--v2 .tl-station-ico { font-size: 1.05rem; line-height: 1; }

/* S'y rendre détaillé (Volcans d'Auvergne) : une carte par ville, pleine largeur,
   avec un aller et un retour, chacun sur une ligne Aller / Retour */
.ed-timeline--v2.ed-timeline--acces-detail .tl-day { flex: 1 1 100%; }
.ed-timeline--acces-detail .tl-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ed-timeline--acces-detail .acces-leg {
  font-weight: 500;
  color: #343434;
}
.ed-timeline--acces-detail .acces-alt {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(52, 52, 52, 0.55);
}
