/* À la journée : une carte par activité, et la fenêtre de ses prochaines sorties (assets/js/dev2-themes.js).
   Cartes toutes de la même taille, quelle que soit la photo. La fenêtre reprend les cartes « affiche » : aplat de
   couleur, crête découpée, soleil doré ; ses mises en page suivent sa propre largeur (requêtes de conteneur). */
/* six activités : deux lignes de trois, centrées, chaque carte gardant la largeur d'une grille de quatre
   (demande du 6 novembre 2026) ; trois par ligne en pleine largeur sur tablette, une seule sur mobile */
.jt-w { --gold: #F2B544; --gap: 1.2rem; display: grid; gap: var(--gap); justify-content: center;
  grid-template-columns: repeat(3, calc((100% - 3 * var(--gap)) / 4)); }
@media (max-width: 1100px) { .jt-w { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jt { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--panel); color: #fff;
  box-shadow: 0 24px 44px -30px rgba(28, 38, 33, .8); transition: translate .3s; }
.jt:hover { translate: 0 -4px; }
.jt { cursor: pointer; }
/* la photo est posée en absolu : son format (portrait ou paysage) ne change jamais la taille de la carte */
.jt-ph { position: relative; margin: 0; aspect-ratio: 4 / 3.6; overflow: hidden; background: rgba(0, 0, 0, .2); }
.jt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.jt:hover .jt-ph img { scale: 1.06; }
.jt-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%; background: var(--panel);
  clip-path: polygon(0 60%, 9% 35%, 18% 52%, 30% 18%, 41% 46%, 52% 28%, 63% 50%, 74% 22%, 86% 44%, 100% 30%, 100% 100%, 0 100%); }
.jt-b { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: .3rem 1rem 1rem; }
.jt-b h3 { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.15; color: #fff; text-wrap: balance; }
.jt-n { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.jt-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* même allure que le « Voir plus » des cartes de formules (dev2-affiche.css) : lien doré souligné, flèche qui avance au survol */
.jt-btn { display: block; align-self: flex-start; margin-top: auto; padding: .3rem 0; border: 0; border-radius: 0;
  background: none; color: var(--gold); font: inherit; font-weight: 600; font-size: .82rem; line-height: 1.2; text-align: left;
  text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.jt-btn .jt-i { display: inline-block; width: 13px; height: 13px; margin-left: .3rem; vertical-align: -.12em; transition: transform .4s ease; }   /* la flèche suit le dernier mot */
.jt:hover .jt-btn .jt-i { transform: translateX(4px); }
.jt-btn::after { content: ""; position: absolute; inset: 0; }          /* toute la carte ouvre la fenêtre */
.jt-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.jt-rest { margin-top: 1.5rem; }
@media (max-width: 760px) {
  .jt-w { --gap: .7rem; grid-template-columns: minmax(0, 1fr); }
  .jt { flex-direction: row; min-height: 8rem; }
  .jt-ph { flex: 0 0 36%; aspect-ratio: auto; }
  .jt-ph::after { display: none; }
  .jt-b { justify-content: center; padding: .8rem 1rem; }
  .jt-btn { margin-top: .2rem; }
}

/* ---------- la fenêtre ---------- */
.jt-dlg { width: min(54rem, calc(100% - 2rem)); max-height: none; padding: 0; border: 0; border-radius: 22px; background: transparent; overflow: visible;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); container-type: inline-size; }
/* le contenu défile dans la fenêtre ; la fenêtre elle-même laisse dépasser les flèches */
.jt-dlg > .jx { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; }
.jt-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #1F3F35; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); translate: 0 -50%; transition: scale .2s, background .2s; }
.jt-nav:hover { scale: 1.08; background: #fff; }
.jt-nav:focus-visible { outline: 3px solid var(--gold, #F2B544); outline-offset: 3px; }
.jt-nav .jt-i { width: 24px; height: 24px; }
.jt-nav--prev { left: -76px; } .jt-nav--next { right: -76px; }
/* écran trop étroit pour les poser à côté : elles passent sur la photo, aux bords */
@media (max-width: 1060px) {
  /* un peu sous le milieu de la photo, pour ne pas toucher la croix de fermeture */
  .jt-nav { top: calc(clamp(11rem, 44cqi, 19rem) * .55); width: 40px; height: 40px; background: rgba(255, 255, 255, .85); }
  .jt-nav .jt-i { width: 20px; height: 20px; }
  .jt-nav--prev { left: .7rem; } .jt-nav--next { right: .7rem; }
}
.jt-dlg[open] { animation: jt-in .35s ease both; }
@keyframes jt-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.jt-dlg::backdrop { background: rgba(15, 25, 20, .6); backdrop-filter: blur(3px); }
.jt-x { position: absolute; top: .8rem; right: .8rem; z-index: 3; display: grid; place-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }   /* croix seule, sans cercle ; l'ombre la garde lisible sur la photo */
.jt-x .jt-i { width: 26px; height: 26px; stroke-width: 2.4; }
.jt-x:focus-visible { outline: 3px solid var(--gold, #F2B544); outline-offset: 0; }
@media (max-width: 640px) {
  .jt-dlg { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .jt-dlg > .jx { max-height: 92dvh; }
  .jt-dlg[open] { animation-name: jt-up; }
}
@keyframes jt-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .jt-dlg[open] { animation: none; } .jt, .jt-ph img { transition: none; } }

/* ---------- contenu commun aux cinq présentations ---------- */
.jx { --gold: #F2B544; --soft: rgba(255, 255, 255, .78); position: relative; background: var(--panel); color: #fff; }
.jx h3, .jx h4 { margin: 0; font-family: var(--display); color: #fff; text-wrap: balance; }
.jx ol { margin: 0; padding: 0; list-style: none; }
/* photo plus haute : on la voit vraiment (1er novembre 2026) */
.jx-hd { position: relative; height: clamp(11rem, 44cqi, 19rem); overflow: hidden; }
.jx-hd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jx-ridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 34%; }
.jx-ridge polygon { fill: var(--panel); }
.jx-in { padding: 0 clamp(1rem, 4cqi, 1.8rem) 1.2rem; margin-top: -.4rem; position: relative; }
.jx-in > h3 { font-size: clamp(1.5rem, 5cqi, 2rem); line-height: 1.05; }
.jx-count { display: flex; align-items: center; gap: .4rem; margin: .3rem 0 1rem; font-size: .84rem; font-weight: 600; color: var(--gold); }
.jx-sun { display: grid; place-content: center; flex: none; width: 3.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: #3A2600; text-align: center;
  line-height: 1; box-shadow: 0 0 0 5px rgba(242, 181, 68, .22); }
.jx-sun small { font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.jx-sun b { font-family: var(--display); font-size: 1.3rem; }
.jx-sun.is-free b { font-family: inherit; font-size: .62rem; font-weight: 800; }
.jx-lieu { display: flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.jx-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; margin: .25rem 0 0; font-size: .8rem; color: var(--soft); }
.jx-facts span { display: inline-flex; align-items: center; gap: .3rem; }
.jx-lv img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #fff; }
.jx-pr { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.jx-pr b { font-family: var(--display); font-size: 1.3rem; }
.jx-pr small { font-size: .7rem; color: var(--soft); }
.jx-pl { display: inline-block; padding: .18rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.jx-pl.is-few { background: var(--gold); color: #3A2600; }
.jx-pl.is-full { background: none; border: 2px solid #F6B4A3; color: #F6B4A3; letter-spacing: .12em; text-transform: uppercase; rotate: -4deg; }
.jx .is-full { opacity: .72; }
/* appel discret, comme le « Voir plus » des cartes de formules (dev2-affiche.css) */
/* le filet gris ferme la fiche, juste au-dessus de l'appel, sur toutes les fenêtres (4 novembre 2026) */
.jx-call { margin: 0 clamp(1rem, 4cqi, 1.8rem); padding: .8rem 0 1.2rem; border-top: 1px solid rgba(255, 255, 255, .16); text-align: right; }
.jx-call a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0; color: var(--gold); font-size: .82rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: .25em; }
.jx-call a .jt-i { width: 13px; height: 13px; }
.jx-call a .jt-i:last-child { transition: transform .4s ease; }
.jx-call a:hover .jt-i:last-child { transform: translateX(4px); }

/* ---------- 1 · La liste ---------- */
.jx-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.jx-rows h4 { font-size: 1.12rem; line-height: 1.15; margin-top: .1rem; }
.jx-rows .jx-end, .jx-tix .jx-end { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
@container (max-width: 520px) {
  .jx-rows li { grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; align-items: start; }
  .jx-rows .jx-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- 2 · Les billets ---------- */
.jx-tix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.jx-tix li { position: relative; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); border-radius: 14px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jx-stub { display: grid; place-content: center; text-align: center; line-height: 1; background: var(--gold); color: #3A2600; border-right: 3px dashed var(--panel); }
.jx-stub small { font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.jx-stub b { font-family: var(--display); font-size: 1.7rem; }
.jx-stub b.sm { font-family: inherit; font-size: .7rem; font-weight: 800; }
.jx-tb { padding: .7rem .9rem .8rem; min-width: 0; }
.jx-tix h4 { font-size: 1.05rem; line-height: 1.15; margin: .15rem 0 0; }
.jx-tix .jx-end { flex-direction: row; justify-content: space-between; align-items: center; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed rgba(255, 255, 255, .2); }
@container (max-width: 560px) { .jx-tix { grid-template-columns: 1fr; } }

/* ---------- 3 · Les soleils ---------- */
/* marge autour des soleils : le soleil choisi grossit et porte un halo, la rangée (qui défile) ne doit pas les rogner */
.jx-pick { display: flex; gap: .6rem; padding: .7rem .5rem 1.1rem; margin: 0 -.5rem; overflow-x: auto; scrollbar-width: none; }
.jx-pick::-webkit-scrollbar { display: none; }
.jx-pick button { flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: .55; transition: opacity .25s, transform .25s; }
.jx-pick button[aria-selected=true] { opacity: 1; transform: scale(1.08); }
.jx-pick .jx-sun { width: 3rem; box-shadow: 0 0 0 4px rgba(242, 181, 68, .22); }
.jx-pick .jx-sun b { font-size: 1.1rem; }
.jx-pick .jx-sun small { font-size: .5rem; }
.jx-pick .jx-sun.is-free { width: 3.6rem; }
.jx-pick .jx-sun.is-free b { font-size: .56rem; line-height: 1.1; }
.jx-pick button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* la fiche directement sur l'aplat, sans bloc gris, comme les cartes affiche ; un filet la sépare des dates */
.jx-one { padding: .4rem 0 .2rem; animation: jx-in .35s ease both; }
@keyframes jx-in { from { opacity: 0; transform: translateY(6px); } }
.jx-one h4 { font-size: 1.4rem; margin: .2rem 0 .3rem; }
.jx-res { margin: 0 0 .4rem; font-size: .92rem; color: var(--soft); }
.jx-one .jx-end { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; }

/* ---------- 4 · Le carnet ---------- */
.jx--4 .jx-month { margin: .6rem 0 .2rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--gold); }
.jx-book li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .55rem 0; border-bottom: 1px dotted rgba(255, 255, 255, .25); }
.jx-day { display: grid; text-align: center; line-height: 1; }
.jx-day b { font-family: var(--display); font-size: 2rem; color: var(--gold); }
.jx-day small { font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--soft); }
.jx-book h4 { font-size: 1.05rem; line-height: 1.15; }
.jx-book .jx-end { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
@container (min-width: 600px) {
  /* la photo passe à gauche, sur toute la hauteur */
  .jx--4 { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .jx--4 .jx-hd { grid-row: 1 / 3; height: auto; min-height: 100%; }
  .jx--4 .jx-ridge { display: none; }
  .jx--4 .jx-hd { clip-path: polygon(0 0, 100% 0, 93% 12%, 100% 26%, 91% 41%, 97% 56%, 90% 71%, 96% 86%, 92% 100%, 0 100%); }
  .jx--4 .jx-in { padding-top: 1.4rem; margin: 0; }
}
@container (max-width: 520px) {
  .jx-book li { grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; }
  .jx-book .jx-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- 5 · La crête ---------- */
.jx-crest { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .8rem; padding-top: 2.6rem !important; }
.jx-crest::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4.4rem; background: rgba(255, 255, 255, .1);
  clip-path: polygon(0 100%, 0 70%, 8% 45%, 16% 62%, 27% 20%, 38% 55%, 50% 30%, 61% 58%, 72% 15%, 84% 50%, 93% 35%, 100% 55%, 100% 100%); }
.jx-crest li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.jx-crest h4 { font-size: 1rem; line-height: 1.15; margin-top: .4rem; }
.jx-crest .jx-lieu { display: block; font-size: .6rem; line-height: 1.3; }
.jx-crest .jx-lieu .jt-i { display: none; }
.jx-crest .jx-facts { justify-content: center; }
.jx-crest .jx-end { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: auto; padding-top: .4rem; }
@container (max-width: 600px) {
  .jx-crest { grid-template-columns: 1fr; gap: 0; padding-top: 0 !important; }
  .jx-crest::before { left: 1.75rem; right: auto; top: .5rem; bottom: .5rem; height: auto; width: 0; border-left: 3px dashed rgba(242, 181, 68, .55); background: none; clip-path: none; }
  .jx-crest li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .1rem .9rem; align-items: start; text-align: left; padding: .6rem 0; }
  .jx-crest .jx-lieu .jt-i { display: inline; }
  .jx-crest li > .jx-sun { grid-row: span 4; }
  .jx-crest h4 { margin: 0; }
  .jx-crest .jx-lieu, .jx-crest .jx-facts { justify-content: flex-start; }
  .jx-crest .jx-end { flex-direction: row; align-items: center; justify-content: space-between; margin: 0; padding: 0; }
}

/* même correction que les affiches : l'aplat remonte de 3 px sur la photo, plus de ligne claire au survol (1er novembre 2026) */
.jt-b { position: relative; z-index: 2; margin-top: -3px; padding-top: calc(.3rem + 3px); background: var(--panel); }
.jt-nw { white-space: nowrap; }   /* la flèche reste collée au dernier mot */
.jx:focus { outline: none; }
/* photo du groupe au sommet (Col, lac, sommet) : cadrée plus bas pour que la crête ne coupe pas les visages */
.jt-ph img[src*="sommet-groupe"] { object-position: 50% 64%; }
.jx-hd img[src*="sommet-groupe"] { object-position: 50% 52%; }   /* fenêtre large : visages et sommets ensemble */
.jt-ph img[src*="brame"] { object-position: 42% 50%; }   /* le cerf est un peu à gauche de la photo */
.jx-hd img[src*="brame"] { object-position: 50% 32%; }   /* fenêtre : garder les bois du cerf */

/* texte d'une activité sous son titre (Animaux, Forêt…), à la place de « Date à convenir » */
.jx-intro { margin: .5rem 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .16);   /* le trait gris sépare le texte des dates (6 novembre 2026) */
  font-size: .98rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.jx-intro p { max-width: 48rem; margin: 0 0 .5rem; }
.jx-intro p:last-child { margin-bottom: 0; }
/* phrases côte à côte (« Col, lac, pic ») : chacune reste entière, elles passent à la ligne d'un bloc si la place manque */
.jx-intro .jx-row { display: flex; flex-wrap: wrap; column-gap: 1.4rem; row-gap: .1rem; max-width: none; }
.jx-row span { position: relative; }
.jx-row span + span::before { content: ""; position: absolute; left: -.85rem; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.jx-intro .jx-note { font-weight: 600; color: var(--gold); }   /* ligne courte en doré (« Accessible dès 6 ans… ») */
/* fenêtre étroite : les phrases côte à côte passent l'une sous l'autre, sans les points */
@container (max-width: 700px) { .jx-intro .jx-row { flex-direction: column; } .jx-row span + span::before { display: none; } }

/* audit mobile du 13 novembre 2026 : « Les prochaines sorties » à la taille d'un doigt */
@media (max-width: 700px) { .jt-btn { padding-block: .9rem; margin-block: -.6rem; } }   /* zone de toucher de 44 px, sans déplacer le lien */
/* cartes des thèmes sur téléphone : tous les titres partent du haut de la carte (audit mobile, 13 novembre 2026) */
@media (max-width: 760px) { .jt-b { justify-content: flex-start; padding-top: 1rem; } }
