/* La chevauchée animée (chevauchee.js) */
.chev{background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:16px 18px 12px;margin:8px 0 28px;min-width:0}
.chev h3,.chev .chev-t{margin:0 0 .3em;color:var(--accent)}
.chev .chev-t{font-size:1.5rem;border:0;padding:0}
.chev .intro{margin:0 0 .8em}
.chev-ctrl{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:0 0 10px}
.chev-ctrl label{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;color:var(--muted)}
.chev-btn,.chev-ctrl select{font:inherit;font-size:.92rem;padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer}
.chev-ctrl select{border-radius:6px;padding:4px 8px;max-width:100%}
.chev-play{background:var(--accent);border-color:var(--accent);color:var(--on-accent);min-width:7.2em}
.chev-btn:focus-visible,.chev-ctrl select:focus-visible,.chev-range:focus-visible,.chev-log button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.chev-time{margin:0 0 10px}
.chev-cur{margin:0;font-family:"IM Fell English SC",Georgia,serif;font-size:1.3rem;color:var(--accent);line-height:1.2}
.chev-cur .small{font-family:"EB Garamond",Georgia,serif}
.chev-range{width:100%;margin:6px 0 2px;accent-color:var(--accent);cursor:pointer}
.chev-bands{position:relative;height:6px;margin:0 8px;border-radius:3px;background:var(--line)}
.chev-bands span{position:absolute;top:0;height:6px;border-radius:3px}
.chev-ends{display:flex;justify-content:space-between;margin-top:2px}
.chev-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:14px;align-items:stretch}
.chev-map{height:min(66vh,560px);min-height:320px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.chev-journal{display:flex;flex-direction:column;min-width:0;height:min(66vh,560px);min-height:320px;border:1px solid var(--line);border-radius:6px;background:var(--bg);padding:12px 14px}
.chev-total{display:flex;flex-direction:column;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:8px}
.chev-total-v{font-family:"IM Fell English SC",Georgia,serif;font-size:1.6rem;color:var(--gold);line-height:1.1}
.chev-total .small{line-height:1.25}
.chev-now{flex:0 1 auto;max-height:52%;overflow-y:auto;min-height:5em}
.chev-now h4{font-family:"IM Fell English SC",Georgia,serif;font-weight:400;font-size:1.2rem;margin:.1em 0;line-height:1.2}
.chev-now p{margin:.25em 0}
.chev-desc{font-size:.95rem}
.chev-date{display:flex;align-items:center;gap:8px;font-family:"IM Fell English SC",Georgia,serif;color:var(--accent)}
.chev-flags{display:flex;flex-wrap:wrap;gap:4px}
.chev-flag{font:600 .72rem system-ui,sans-serif;padding:1px 8px;border-radius:999px;border:1px dashed var(--muted);color:var(--muted)}
.chev-flag-f{border-color:var(--accent);color:var(--accent)}
.chev-somme b{color:var(--gold);font-size:1.05rem}
.chev-log-h{font-family:"IM Fell English SC",Georgia,serif;font-weight:400;font-size:1rem;margin:.6em 0 .2em;color:var(--muted);border-top:1px solid var(--line);padding-top:6px}
.chev-log{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1 1 0;min-height:4em}
.chev-log li{margin:0}
.chev-log button{all:unset;box-sizing:border-box;display:block;width:100%;padding:3px 4px;font-size:.88rem;line-height:1.3;cursor:pointer;border-radius:4px}
.chev-log button:hover{background:var(--paper)}
.chev-log li.on button{background:var(--paper);outline:1px solid var(--line)}
.chev-log time{color:var(--accent);font-size:.82rem;margin:0 4px}
.chev-log b{color:var(--gold);font-weight:600}
.chev-q{display:inline-block;font:700 .7rem system-ui,sans-serif;color:var(--accent);border:1px dashed var(--accent);border-radius:50%;width:1.3em;height:1.3em;text-align:center;line-height:1.15em}
.chev-legend{margin:10px 0 0;line-height:1.9}
.chev-lg-t{font-weight:600;margin-right:4px}
.chev-lg{display:inline-flex;align-items:center;gap:4px;margin-right:12px;white-space:nowrap}
.chev-ico{display:inline-flex;width:20px;height:20px;border-radius:50%;background:var(--c);flex:none}
.chev-ico svg,.chev-stage svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chev-ico.chev-faible{opacity:.6;outline:1.5px dashed var(--muted);outline-offset:1px}
.chev-note{margin:.6em 0 .2em}
.chev-skip ul{margin:.3em 0;padding-left:20px}
/* marqueurs Leaflet */
.chev-stage span{display:block;width:22px;height:22px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.chev-stage.chev-faible span{opacity:.65;border-style:dashed}
.chev-stage.chev-cur span{transform:scale(1.25);box-shadow:0 0 0 3px var(--gold),0 1px 4px rgba(0,0,0,.45)}
.chev-stage:focus-visible{outline:none}
.chev-stage:focus-visible span{box-shadow:0 0 0 3px var(--accent)}
.chev-rider span{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--on-accent);
  border:3px solid var(--gold);font:1.15rem/1 "IM Fell English SC",Georgia,serif;box-shadow:0 2px 8px rgba(0,0,0,.5);position:relative}
.chev-rider span::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid var(--gold);opacity:0;animation:chev-pulse 1.8s ease-out infinite}
.chev-rider.chev-wait span{opacity:.55}
@keyframes chev-pulse{0%{transform:scale(.7);opacity:.8}100%{transform:scale(1.35);opacity:0}}
@media (prefers-reduced-motion: reduce){
  .chev-rider span::after{animation:none}
  .chev-stage.chev-cur span{transform:none}
}
@media (max-width:760px){
  .chev{padding:12px 10px 10px;margin-left:-4px;margin-right:-4px}
  .chev-grid{grid-template-columns:minmax(0,1fr)}
  .chev-map{height:52vh;min-height:280px;max-height:440px}
  .chev-journal{height:auto;min-height:0;max-height:none}
  .chev-now{max-height:none}
  .chev-log{max-height:220px;flex:none}
}
@media (max-width:440px){
  .chev-hide-s{display:none}
  .chev-ctrl label{font-size:.85rem}
  .chev-ctrl label:has(.chev-camp-sel){flex:1 1 100%}
  .chev-camp-sel{flex:1;min-width:0}
}
