/* Teranga — parcours du jour (carte en tête d'Aujourd'hui) + puce de retour. Charte : variables de style.css, clair + nuit. */
.pj { padding: 18px; }
.pj-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pj-haut h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.25; }
.pj-niveau { flex: none; font-size: 13px; font-weight: 800; padding: 6px 11px; border-radius: 999px;
             background: var(--ciel); color: var(--kriolu); white-space: nowrap; }
.pj-cour { margin-top: 14px; }
.pj-num { font-size: 13px; font-weight: 700; color: var(--doux); margin-bottom: 8px; }
.pj-effort { color: var(--kriolu); } .pj-facile { color: var(--vert); }
.pj-cour .moment h3 { font-size: 17px; }
.pj-fini { text-align: center; padding: 10px 0 2px; }
.pj-fini h3 { margin: 4px 0 0; font-size: 19px; }
.pj-fini p { margin: 6px 0 0; color: var(--doux); }
.pj-bravo { font-size: 38px; line-height: 1; }
.pj-details { margin-top: 14px; border-top: 1px solid var(--bord); padding-top: 4px; }
.pj-details summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--lien); padding: 10px 0; min-height: 44px;
                      list-style: none; display: flex; align-items: center; gap: 6px; }
.pj-details summary::-webkit-details-marker { display: none; }
.pj-details summary::after { content: "›"; font-size: 20px; transition: transform .15s; }
.pj-details[open] summary::after { transform: rotate(90deg); }
.pj-liste { list-style: none; margin: 0; padding: 0; }
.pj-etape button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left;
                   padding: 8px 6px; min-height: 52px; border-radius: 12px; color: var(--texte); }
.pj-etape button:active { background: var(--sable-2); }
.pj-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; }
.pj-txt { flex: 1; min-width: 0; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.pj-min { font-size: 13px; color: var(--doux); white-space: nowrap; }
.pj-etape.fait .pj-ico { background: var(--vert-pale); color: var(--vert); font-weight: 800; }
.pj-etape.fait .pj-txt { color: var(--doux); text-decoration: line-through; text-decoration-color: var(--bord); }
.pj-etape.courante button { background: var(--ciel); }
.pj-etape.courante .pj-txt { color: var(--kriolu); font-weight: 800; }

/* puce flottante « retour au parcours » pendant une activité, au-dessus de la nav */
.pj-puce { position: fixed; left: 50%; transform: translateX(-50%); z-index: 15; bottom: calc(84px + env(safe-area-inset-bottom));
           max-width: calc(100% - 32px); border: 1.5px solid var(--btn); background: var(--carte); color: var(--kriolu);
           border-radius: 999px; padding: 10px 18px; min-height: 46px; font-weight: 800; font-size: 15px; white-space: nowrap;
           overflow: hidden; text-overflow: ellipsis; box-shadow: var(--ombre-flotte); animation: entree .2s; }
.pj-puce b { margin-left: 4px; }
.pj-puce.faite { background: var(--vert); border-color: var(--vert); color: #fff; }
html.nuit .pj-puce.faite { color: #06122b; }
body.sans-nav .pj-puce { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* ---------- freemium : la carotte (étape aperçu, fin de 1re île, jours offerts, bilan) ---------- */
.pj-palier { background: linear-gradient(165deg, var(--hero-a) 0%, var(--hero-b) 100%); color: #fff; border: 0; position: relative; overflow: hidden; }
.pj-palier::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--sn-vert) 0 33.4%, var(--sn-jaune) 33.4% 66.7%, var(--sn-rouge) 66.7%); }
.pj-palier .etiquette { color: var(--jaune); }
.pj-palier h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; color: #fff; }
.pj-palier p { color: rgba(255,255,255,.9); }
.pj-palier-haut { display: flex; gap: 14px; align-items: center; }
.pj-palier-ico { width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 30px; flex: none; }
.pj-suite { margin: 16px 0 0; font-size: 16px; color: #fff; }
.pj-palier .pj-chiffres li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.pj-palier .pj-chiffres small { color: rgba(255,255,255,.85); }
.pj-palier .pj-chiffres b { color: #fff; }
.pj-palier .pj-rassure { color: rgba(255,255,255,.8); }
.pj-palier .btn { position: relative; z-index: 1; }
html.nuit .pj-palier .btn.soleil { color: var(--encre-jaune); }
.pj-chiffres { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.pj-chiffres small { white-space: nowrap; }
.pj-chiffres li { border: 1px solid var(--bord); border-radius: 14px; padding: 10px 8px; text-align: center; background: var(--sable); }
.pj-chiffres span { display: block; font-size: 20px; line-height: 1.2; }
.pj-chiffres b { display: block; font-size: 22px; font-weight: 800; color: var(--kriolu); line-height: 1.1; margin-top: 2px; }
.pj-chiffres small { display: block; font-size: 13px; color: var(--doux); font-weight: 600; }
.pj-rassure { font-size: 14px; margin: 8px 0 0; text-align: center; color: var(--doux); }
.pj-essai { display: flex; width: 100%; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 12px; margin: -4px 0 14px;
            padding: 10px 12px; min-height: 44px; background: var(--jaune-pale); color: var(--texte); font-weight: 700; font-size: 15px; }
html.nuit .pj-essai { color: var(--jaune); }
.pj-feuille h2 { margin: 6px 0 0; font-size: 22px; line-height: 1.25; }
.pj-feuille .pj-doux, .pj-doux { color: var(--doux); }
.pj-celeb { font-size: 46px; text-align: center; line-height: 1; margin: 4px 0 6px; }
.pj-plus-tard { display: block; margin: 10px auto 2px; min-height: 44px; }
.pj-bilan { list-style: none; padding: 0; margin: 12px 0; }
.pj-bilan li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sable); margin-top: 6px; font-size: 16px; }
.pj-bilan span { font-size: 22px; }
.pj-ap-tete { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.pj-ap-tete h2 { margin: 0; font-size: 20px; }
.pj-ap-tete p { margin: 4px 0 0; font-size: 15px; }
.pj-ap-emo { width: 52px; height: 52px; border-radius: 16px; background: var(--jaune-pale); display: grid; place-items: center; font-size: 26px; flex: none; }
.pj-ap-texte { position: relative; margin: 14px 0 6px; border: 1px solid var(--bord); border-radius: 16px; padding: 14px; background: var(--sable); overflow: hidden; }
.pj-ligne { padding: 6px 0; }
.pj-ligne .k { display: block; color: var(--kriolu); font-weight: 800; font-size: 17px; }
.pj-ligne span { display: block; color: var(--doux); font-size: 15px; }
.pj-ligne.flou { filter: blur(5px); user-select: none; pointer-events: none; }
.pj-ap-voile { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; display: grid; place-items: end center; padding-bottom: 12px;
               background: linear-gradient(to bottom, transparent, var(--sable) 75%); }
.pj-serrure { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
              background: var(--jaune); box-shadow: 0 4px 14px rgba(6, 26, 64, .18); }
