/* case-study.css — page case-study-spyk-photo.php : frise chronologique, photos, bulle d'information.
   Tokens de site-v3.css. Frise : verticale et tout deplie sur mobile (et sans JS) ; horizontale au-dela de 860px,
   le detail de l'etape survolee / touchee / focalisee s'affiche dans le panneau sous la frise. */

.cs-tl { margin-top: 28px; }
.cs-tl ol { list-style: none; margin: 0; padding: 0; position: relative; }
.cs-tl li { position: relative; padding: 0 0 22px 34px; }
.cs-tl li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.cs-tl li:last-child::before { display: none; }
.cs-tl-btn { all: unset; display: block; cursor: default; border-radius: var(--radius); }
.cs-tl-btn::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--pit); border: 2px solid var(--action); box-sizing: border-box; transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.cs-tl-when { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--action); }
.cs-tl-title { display: block; margin-top: 2px; font: 700 1.125rem/1.3 var(--font-display); color: var(--text); }
.cs-tl-d { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.cs-tl-panel, .cs-tl-hint { display: none; }

@media (min-width: 860px) {
  .cs-tl.is-js ol { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
  .cs-tl.is-js ol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
  .cs-tl.is-js li { padding: 0; }
  .cs-tl.is-js li::before { display: none; }
  .cs-tl.is-js .cs-tl-btn { cursor: pointer; padding: 30px 12px 12px 0; }
  .cs-tl.is-js .cs-tl-btn::before { top: 0; }
  .cs-tl.is-js .cs-tl-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
  .cs-tl.is-js li.is-on .cs-tl-btn::before { background: var(--action); transform: scale(1.25); }
  .cs-tl.is-js li:not(.is-on) .cs-tl-title { color: var(--muted); }
  .cs-tl.is-js .cs-tl-d { display: none; }
  .cs-tl.is-js .cs-tl-panel { display: block; min-height: 7.5em; margin-top: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .cs-tl.is-js .cs-tl-panel b { display: block; font: 700 1.125rem/1.3 var(--font-display); color: var(--text); margin-bottom: 6px; }
  .cs-tl.is-js .cs-tl-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
  .cs-tl.is-js .cs-tl-hint { display: block; margin: 10px 0 0; font-size: .8125rem; color: var(--faint); }
}
@media (prefers-reduced-motion: reduce) { .cs-tl-btn::before { transition: none; } }

/* Photos du stand */
.cs-figs { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0; }
@media (min-width: 700px) { .cs-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-figs figure { margin: 0; }
.cs-figs img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.cs-figs figcaption, .cs-fig-wide figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.45; color: var(--faint); }
.cs-fig-wide { margin: 22px 0 26px; }
.cs-fig-wide img, .cs-fig-wide video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* Onglets Voitures / Motos (section « En ligne ») : sans JS, barre cachee et volets empiles avec leur titre */
.cs-tabs { margin: 18px 0 8px; }
.cs-tabs-bar { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.cs-tabs-bar[hidden] { display: none; }
.cs-tabs-bar [role="tab"] { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 .9375rem/1 var(--font-body); padding: 10px 18px; border-radius: var(--radius); cursor: pointer; transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.cs-tabs-bar [role="tab"]:hover { color: var(--text); }
.cs-tabs-bar [role="tab"][aria-selected="true"] { background: var(--action); color: var(--action-ink); }
.cs-tabs-bar [role="tab"]:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.cs-tabs-h { font-size: 1.0625rem; margin: 18px 0 6px; }
.cs-tabs.is-js .cs-tabs-h { display: none; }
.cs-tabs-pane > p { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .cs-tabs-bar [role="tab"] { transition: none; } }

/* Bulle d'information */
.cs-info { display: flex; gap: 14px; margin: 26px 0; padding: 16px 18px; background: var(--check-deep); border: 1px solid rgba(110, 168, 254, .35); border-radius: var(--radius); }
.cs-info .bi { flex: none; font-size: 1.25rem; line-height: 1.3; color: var(--action); }
.cs-info h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--text); }
.cs-info p { margin: 0; color: var(--muted); line-height: 1.55; }
