/* Carte A, « Le trajet » (journey-view.js). Load after sillon.css: tokens, .feuille, .data, .eyebrow, .stamp, .station*,
   .trace-ink, .station-pop. The plan follows the grammar of network-plan.css / reference dir-a2.html, drawn from data.
   Colours: encre for sourced lines, graphite dotted for the possible, violet dotted for correspondances, red only for
   « tu es ici », blue only for sources, dates and links. Fonts only through the register variables. */
.jv{display:grid;gap:14px;min-width:0;color:var(--sillon-encre)}
.jv *{box-sizing:border-box}
.jv p{margin:0 0 6px}
.jv-h{margin:4px 0 6px;font-size:clamp(24px,2.3vw,32px);line-height:1.12}
.jv-top .jv-lede{font-size:15px;color:var(--sillon-encre)}
.jv-src-line{font-size:13px;line-height:1.45}
.jv-band{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px;padding:10px 14px;border:1.5px dashed var(--sillon-graphite);border-radius:var(--radius-tile);background:var(--sillon-feuille);font-size:14px}
.jv-band span{flex:1 1 260px}

/* ---------- The plan ---------- */
.jv-plan{margin:0;padding:14px 18px 10px;min-width:0}
.jv-plan-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}
.jv-fig{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0;font-family:var(--f-texte);font-size:13px;font-weight:700}
.jv-fig-n{font-family:var(--eleve-accent);font-style:italic;font-weight:600;font-size:16px}
.jv-leg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 15px;margin:0;padding:0;list-style:none;font-family:var(--f-texte);font-size:12px;font-weight:700}
.jv-leg li{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.jv-leg i{font-family:var(--f-accent);font-style:italic;font-weight:500;font-size:13px;color:var(--sillon-graphite)}
.jv-leg svg{width:28px;height:16px;flex:none;overflow:visible}
.jv-scroll{margin:8px -6px 0;padding:0 6px 6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;contain:inline-size;scrollbar-width:thin;scrollbar-color:var(--sillon-filet-fort) transparent}
/* journey-view.js lays the plan out for the scroller's own width at scale 1 (width/height attributes = viewBox), so the
   type below is the rendered size: text ≥ 13 px, mono caps at --data-size (11 px, parents 12 px). Never stretched or shrunk. */
.jv-map{display:block;overflow:visible;max-width:none}
.jv-plan-note{margin:6px 0 0}
.jv-scroll-hint{display:none;margin:8px 0 0}
.jv-plan.is-scrollable .jv-scroll-hint{display:block}

.jv svg .jv-ink{fill:none;stroke:var(--sillon-encre);stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round}
.jv svg .jv-pencil{fill:none;stroke:var(--sillon-graphite);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:2 6.5}
.jv svg .jv-violet{fill:none;stroke:var(--ligne-correspondance);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:2 6}
.jv-leg .jv-ink{stroke:var(--sillon-encre)} .jv-leg .jv-pencil{stroke:var(--sillon-graphite);stroke-dasharray:2 5.5}
.jv-leg .jv-violet{stroke-dasharray:2 5}
.jv svg .jv-st-fill{fill:var(--sillon-feuille);stroke:var(--sillon-encre)}
.jv svg .jv-st-pencil{fill:var(--sillon-papier);stroke:var(--sillon-graphite)}
.jv svg .jv-red{fill:var(--sillon-rouge)}
.jv svg .jv-white{fill:var(--sillon-feuille)}
.jv-map text{font-family:var(--f-texte)}
.jv-map .jv-lb{font-size:14px;font-weight:700;fill:var(--sillon-encre)}
.jv-map .jv-lb-start{font-size:15px}
.jv-map .jv-sub{font-size:13px;fill:var(--sillon-graphite)}
/* mono caps (their strings are upper case): the .data size and tracking of the register */
.jv-map .jv-sub-stamp,.jv-map .jv-cap,.jv-map .jv-mo{font-family:var(--f-data);font-stretch:var(--data-stretch);font-size:var(--data-size);font-weight:var(--data-weight);letter-spacing:var(--data-tracking)}
.jv-map .jv-cap{fill:var(--sillon-graphite)}
.jv-map .jv-mo{fill:var(--sillon-encre)}
.jv-map .jv-rd{font-family:var(--f-accent);font-style:italic;font-weight:600;font-size:14px;fill:var(--sillon-encre)}
.jv-map .jv-pn{font-family:var(--f-accent);font-style:italic;font-weight:500;font-size:13px;fill:var(--sillon-graphite)}
/* every focusable row (stations, start, correspondances) carries a .jv-hit of at least 44 px: the focus ring is drawn on it */
.jv-map .jv-row{cursor:pointer;outline:none}
.jv-map .jv-hit{fill:transparent;stroke:none}
.jv-map .jv-row:hover .jv-hit{fill:var(--sillon-voile)}
.jv-map .jv-row:focus-visible .jv-hit{fill:var(--sillon-voile);stroke:var(--sillon-encre);stroke-width:2.5}
.jv-map .station-pop{transform-box:fill-box;transform-origin:center}

/* ---------- Station drawers ---------- */
.jv-sections{display:grid;gap:12px;min-width:0}
.jv-sec{min-width:0;padding:0;overflow:hidden}
.jv-sec>summary{list-style:none;cursor:pointer}
.jv-sec>summary::-webkit-details-marker{display:none}
.jv-sec-head{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;min-height:44px}
.jv-sec>summary:hover{background:var(--sillon-voile)}
.jv-mark{display:inline-grid;place-items:center;width:24px;height:24px;flex:none;margin-top:16px}
.jv-head{display:grid;gap:2px;flex:1 1 auto;min-width:0}
.jv-title{font-family:var(--f-titre);font-weight:var(--titre-weight);font-stretch:var(--titre-stretch);letter-spacing:var(--titre-tracking);font-size:19px;line-height:1.2;overflow-wrap:anywhere}
.jv-subline{font-size:13px;color:var(--sillon-graphite);line-height:1.4;overflow-wrap:anywhere}
.jv-open{position:relative;flex:none;width:28px;height:28px;margin-top:12px;border-radius:50%;border:1.5px solid var(--sillon-encre);background:var(--sillon-feuille)}
.jv-open::before,.jv-open::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:1.8px;background:var(--sillon-encre);transform:translate(-50%,-50%)}
.jv-open::after{transform:translate(-50%,-50%) rotate(90deg)}
.jv-sec[open]>summary .jv-open::after{display:none}
.jv-sec-body{padding:0 18px 16px 54px;min-width:0;overflow-wrap:anywhere}
.jv-h3{margin:16px 0 6px;font-size:17px;line-height:1.25;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.jv-h4{margin:12px 0 4px;font-family:var(--f-texte);font-size:14px;font-weight:700}
.jv-diploma{padding:10px 0;border-top:1px solid var(--sillon-filet)}
.jv-diploma .jv-title{font-size:17px;display:block;margin-bottom:4px}
.jv-chips{display:flex;flex-wrap:wrap;gap:6px}
.jv-chip{display:inline-flex;align-items:center;border:1px solid var(--sillon-filet-fort);border-radius:var(--radius-chip);padding:3px 9px;font-size:12px;font-weight:700;background:var(--sillon-feuille);color:var(--sillon-encre)}
.jv-chip-strong{border-color:var(--sillon-encre)}
.jv-stamp{color:var(--sillon-encre)}
.jv-links{font-size:14px}
.jv-quote{margin:6px 0 10px;padding:8px 12px;border-left:3px solid var(--sillon-filet-fort);background:var(--sillon-voile);border-radius:0 9px 9px 0;font-size:14px;line-height:1.5}
.jv-gap{padding-left:10px;border-left:2px dashed var(--sillon-graphite);color:var(--sillon-graphite)}
.jv-failed{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0;padding:10px 12px;border:1.5px dashed var(--sillon-graphite);border-radius:12px;color:var(--sillon-encre)}
.jv-failed p{flex:1 1 240px;margin:0}
.jv-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.jv-btn{min-height:44px;font-size:13.5px;padding:9px 16px}
.jv-link-btn{min-height:44px;padding:8px 0;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--sillon-encre);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}
.jv-added{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:2px 0 8px}
.jv-added p{flex:1 1 220px;margin:0}
.jv-stage-note{margin:0 0 8px;padding-left:10px;border-left:2px dashed var(--sillon-graphite)}
.jv-coverage{margin:6px 0 2px}
.jv-ev-links{margin:2px 0 0;font-size:14px}
.jv-ev-links:empty{display:none}
.jv-evidence li p{margin:0 0 2px}
.jv-ids{text-transform:none;letter-spacing:.04em;overflow-wrap:anywhere;word-break:break-word}
.jv-list,.jv-careers,.jv-compat-list,.jv-sources,.jv-evidence,.jv-absences{margin:6px 0;padding:0;list-style:none}
.jv-list li,.jv-compat-list li,.jv-sources li,.jv-evidence li{padding:8px 0;border-top:1px solid var(--sillon-filet)}
.jv-list li>.station,.jv-list li>.station-possible{width:11px;height:11px;border-width:2px;margin-right:4px}
.jv-drawer{border-top:1px solid var(--sillon-filet);min-width:0}
.jv-drawer>summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:44px;padding:8px 0;cursor:pointer;font-weight:700;font-size:14px;list-style:none}
.jv-drawer>summary::-webkit-details-marker{display:none}
.jv-drawer>summary::before{content:"+";display:inline-grid;place-items:center;width:20px;height:20px;flex:none;border:1.3px solid var(--sillon-encre);border-radius:50%;font-family:var(--f-data);font-size:13px;line-height:1}
.jv-drawer[open]>summary::before{content:"−"}
.jv-sum-t{max-width:calc(100% - 34px)} /* a long summary wraps beside its ring instead of dropping below it */
.jv-drawer>summary .data{font-weight:700}
.jv-drawer>.jv-lazy{padding:0 0 10px 28px}
.jv-item>summary::before{display:none}
.jv-item>summary .station,.jv-item>summary .station-sortie{width:12px;height:12px}
.jv-item-title{font-weight:700}
.jv-item>summary .jv-subline{flex-basis:100%;padding-left:20px;font-weight:400}
.jv-zoom:not(:empty){margin:8px 0;padding:10px 12px;border:1px solid var(--sillon-filet);border-radius:var(--radius-tile);background:var(--sillon-papier)}
.jv-past-block{padding:4px 0 8px;border-top:1px solid var(--sillon-filet);margin-top:8px}
.jv-past-block>.eyebrow{margin-top:10px}
.jv-table-wrap{overflow-x:auto;margin:6px 0 10px;-webkit-overflow-scrolling:touch}
.jv-table{border-collapse:collapse;min-width:100%;font-size:13px}
.jv-table caption{text-align:left;font-weight:700;font-size:13px;padding:4px 0 6px}
.jv-table th,.jv-table td{padding:6px 10px 6px 0;border-bottom:1px solid var(--sillon-filet);text-align:left;vertical-align:top}
.jv-table thead th{font-family:var(--f-data);font-stretch:var(--data-stretch);font-size:var(--data-size);letter-spacing:var(--data-tracking);text-transform:uppercase;color:var(--sillon-graphite)}
.jv-table tbody th{font-weight:700}
.jv-table td{font-variant-numeric:tabular-nums}
.jv-table .jv-na{color:var(--sillon-graphite);font-style:italic}
.jv-absences li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--sillon-filet)}
.jv-absences .station-possible,.jv-absences .jv-mark-failed{margin-top:3px}
.jv-mark-failed{display:inline-grid;place-items:center;width:20px;height:20px;flex:none;border:1.5px dashed var(--sillon-graphite);border-radius:50%;font-family:var(--f-data);font-size:12px;font-weight:700;color:var(--sillon-graphite)}
.jv-mark-id{display:inline-block;width:16px;height:16px;border:1.6px dashed var(--sillon-graphite);border-radius:4px}
.jv-compat .stamp,.jv-h3 .stamp{font-size:10px}
.jv-scenario .jv-sec-body{padding-top:0}

/* ---------- States ---------- */
.jv-state{padding:18px 20px}
.jv-skeleton{display:block;width:100%;max-width:600px;height:auto;margin-top:8px}
.jv-loading .jv-h{font-size:22px}

@media (max-width:760px){
  .jv-plan{padding:12px 14px 8px}
  .jv-sec-head{padding:12px 14px;gap:10px}
  .jv-sec-body{padding:0 14px 14px}
  .jv-title{font-size:17px}
  .jv-drawer>.jv-lazy{padding-left:4px}
}
@media (prefers-reduced-motion:reduce){
  .jv *{animation:none!important;transition:none!important}
}
