/* Chassezac Quad : la sortie (frise et photo collante), le hangar (photo, plaque, temps de route, horaires) */
.sortie { position: relative; z-index: 3; background: var(--c950); border-top: 1px solid var(--c700); }
.st-grid { display: grid; grid-template-columns: 41.667vw minmax(0, 1fr); }
.st-ph { position: sticky; top: calc(var(--demobar-offset, 0px) + var(--hd)); height: calc(100svh - var(--hd)); margin: 0; overflow: hidden; background: var(--c900); }
.st-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.st-ph img:first-child, .st-ph img.on { clip-path: inset(0 0 0 0); }
.st-r { position: relative; padding: 0 max(var(--gut), calc((100vw - 1640px) / 2 + var(--gut))) 0 clamp(48px, 5vw, 104px); }
.frise { --p: 0; position: relative; padding: 12svh 0 14svh 56px; }
.frise::before, .frise::after { content: ""; position: absolute; left: 8px; top: 12svh; bottom: 14svh; border-left: 3px dashed var(--c700); }
.frise::after { border-color: var(--or); clip-path: inset(0 0 calc(100% - var(--p) * 100%) 0); }
.frise-q { position: absolute; left: -2px; top: calc(12svh + (100% - 26svh) * var(--p)); z-index: 2; width: 24px; height: 32px; transform: translateY(-50%) rotate(180deg); --qb: var(--or); --qw: var(--k200); }
.et { position: relative; display: flex; align-items: center; min-height: 34svh; }
.et::before { content: ""; position: absolute; left: -55px; top: 50%; width: 17px; height: 17px; margin-top: -9px; background: var(--c700); border: 3px solid var(--c950); transition: background .3s; }
.et.on::before { background: var(--or); }
.et > img { display: none; }
.et-t { max-width: 34em; }
.et p { max-width: 54ch; }
.et time { display: block; margin-bottom: 6px; font: 400 22px/1.1 var(--f-t); color: var(--or); }
.et h3 { margin-bottom: 8px; font: 800 26px/1.15 var(--f-b); color: var(--blanc); }
.et p { margin: 0; color: var(--c200); }
.regle h3 { font: 400 44px/1 var(--f-t); color: var(--blanc); text-wrap: balance; }
.regle .dash { margin-top: 14px; color: var(--k100); }
.et .credit { margin-top: 10px; font-size: 14px; color: var(--c300); }
.et:last-child h3 { font: 400 34px/1.05 var(--f-t); }
.frise-pied { display: none; }

@media (max-width: 899px) {
  .sortie { padding-block: 40px 28px; }
  .st-grid { display: block; }
  .st-ph { display: none; }
  .st-r { padding: 0; }
  .frise { display: flex; align-items: flex-start; gap: 12px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .frise::-webkit-scrollbar { display: none; }
  .frise::before, .frise::after, .frise .frise-q { display: none; }
  .et { flex: 0 0 82%; display: block; min-height: 0; scroll-snap-align: start; background: var(--c900); border-radius: var(--r); overflow: hidden; }
  .et::before { display: none; }
  .et > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
  .et-t { padding: 14px 16px 18px; }
  .et time { font-size: 18px; }
  .et h3 { font-size: 20px; }
  .regle h3, .et:last-child h3 { font-size: 26px; }
  .et p, .regle .dash { font-size: 16px; }
  .frise-pied { display: flex; align-items: center; gap: 16px; margin: 14px 16px 0; }
  .frise-n { flex: none; min-width: 4.5ch; font: 400 18px var(--f-t); color: var(--blanc); }
  .frise-tr { position: relative; flex: 1; height: 32px; }
  .frise-tr::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed var(--c600); }
  .frise-pied .frise-q { position: absolute; top: 4px; left: calc((100% - 24px) * var(--p, 0)); width: 18px; height: 24px; transform: rotate(90deg); --qb: var(--or); --qw: var(--k200); }
}

/* Le hangar */
.hangar { position: relative; z-index: 3; background: var(--c950); }
.hg-ph { position: relative; height: 70svh; min-height: 460px; }
.hg-ph::before { content: ""; position: absolute; right: calc(max(var(--gut), (100% - 1640px) / 2 + var(--gut)) + 230px); top: 0; height: calc(100% - 140px); border-left: 3px dashed var(--or); z-index: 2; }
.hg-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hg-ph::after { content: ""; position: absolute; inset: 0; background: rgb(17 23 17 / .35); }
.hg-clip { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: clamp(24px, 4vw, 56px); overflow: clip; }
.plaque { position: relative; width: min(100%, 460px); padding: 30px 30px 22px; background: var(--or); color: var(--noir); }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--or-d); box-shadow: inset 0 0 0 2px rgb(12 16 12 / .35); }
.plaque::before { left: 12px; } .plaque::after { right: 12px; }
.pq-a { margin: 0 0 10px; font: 400 clamp(26px, 2.2vw, 36px)/1.02 var(--f-t); }
.pq-b { margin: 0 0 6px; font-size: 17px; line-height: 1.4; }
.pq-tel { display: inline-flex; align-items: center; min-height: 48px; font: 400 clamp(22px, 1.8vw, 28px)/1 var(--f-t); text-decoration: none; }
.pq-plan { display: flex; width: max-content; text-decoration-color: var(--noir); }
.plaque a:focus-visible { outline-color: var(--noir); }
.hg-bas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 96px); padding-block: 56px 40px; }
.cap { width: 20px; height: 20px; flex: none; fill: var(--or); transform: rotate(calc(var(--b, 0) * 1deg)); }
.acc li { display: grid; grid-template-columns: 22px minmax(150px, 190px) 1fr 70px; align-items: center; gap: 16px; padding: 8px 0; font-weight: 700; color: var(--k100); }
.acc-bar { height: 10px; background: var(--c800); }
.acc-bar i { display: block; height: 100%; width: calc(var(--m) / 55 * 100%); background: var(--or); transform-origin: 0 50%; }
.acc-v { color: var(--c200); font-weight: 400; text-align: right; white-space: nowrap; }
.hrs { display: grid; gap: 14px; align-content: start; }
.hrs dt { font-weight: 800; color: var(--blanc); }
.hrs dd { color: var(--c200); }

@media (max-width: 899px) {
  .hg-ph { height: 45svh; min-height: 340px; }
  .hg-ph::before { right: 50%; height: calc(100% - 120px); }
  .hg-clip { left: 0; transform: none; padding: 0 16px 16px; }
  .plaque { width: 100%; padding: 24px 20px 14px; }
  .hg-bas { grid-template-columns: 1fr; padding-block: 36px 28px; }
  .acc li { grid-template-columns: 20px 1fr auto; gap: 4px 12px; }
  .acc-bar { grid-column: 2 / 4; grid-row: 2; height: 6px; }
}
