/* Chronologie des saisons : en-tête, frise de logos collée sous la navigation, bandeaux
   d'année, cartes de saison et blocs d'extension (voir js/pages/chronology.js). */

/* ---------- En-tête ---------- */
.ch-hero { position: relative; min-height: 72vh; min-height: 72svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--deep); }
.ch-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 16s ease-out forwards; }
.ch-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 22, .92) 0%, rgba(6, 10, 22, .55) 46%, rgba(6, 10, 22, .1) 80%),
    linear-gradient(0deg, var(--night) 0%, rgba(6, 10, 22, .55) 26%, rgba(6, 10, 22, 0) 56%),
    linear-gradient(180deg, rgba(6, 10, 22, .7) 0%, rgba(6, 10, 22, 0) 20%);
}
.ch-hero-content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 150px var(--gutter) 48px; }
.ch-hero h1 { margin: 12px 0 16px; max-width: 900px; font-size: clamp(2.4rem, 6.4vw, 5.2rem); font-weight: 800; line-height: .96; text-transform: uppercase; color: var(--pearl); text-shadow: 0 4px 40px rgba(0, 0, 0, .45); text-wrap: balance; }
.ch-lede { margin: 0 0 30px; max-width: 640px; font-family: var(--font-lore); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; color: #e9e3d6; }
.ch-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0 0 22px; padding: 0; list-style: none; }
.ch-stats li { display: grid; gap: 2px; }
.ch-stats b { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; color: var(--pearl); font-variant-numeric: tabular-nums; }
.ch-stats span { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ch-warn { margin: 0; font-size: .74rem; letter-spacing: .04em; color: var(--faint); }

/* ---------- Frise de logos ---------- */
.ch-rail { position: sticky; top: 60px; z-index: 20; margin-top: -1px; border-block: 1px solid transparent; transition: background .3s, border-color .3s; }
.ch-rail.stuck { background: rgba(6, 10, 22, .9); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ch-rail-track { display: flex; gap: 22px; max-width: 1280px; margin: 0 auto; padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.ch-rail-track::-webkit-scrollbar { display: none; }
.ch-rail-year { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; padding-left: 12px; border-left: 1px solid var(--line); }
.ch-rail-year:first-child { padding-left: 0; border-left: 0; }
.ch-rail-label { margin-right: 6px; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--faint); transition: color .25s; }
.ch-rail-year.active .ch-rail-label, .ch-rail-label:hover { color: var(--gold-hi); }
.ch-rail-item { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 50%; opacity: .42; transition: opacity .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.ch-rail-item img { width: 22px; height: 22px; object-fit: contain; }
.ch-rail-item:hover, .ch-rail-item:focus-visible { opacity: 1; transform: translateY(-2px); }
.ch-rail-item.active { opacity: 1; border-color: var(--gold-hi); background: rgba(241, 219, 164, .12); box-shadow: 0 0 16px rgba(241, 219, 164, .28); }

/* ---------- Année ---------- */
.ch-year { position: relative; scroll-margin-top: 110px; }
.ch-year-head { position: relative; display: flex; align-items: flex-end; min-height: clamp(260px, 38vw, 420px); overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: var(--deep); }
.ch-year-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ch-year-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 22, .94) 0%, rgba(6, 10, 22, .62) 48%, rgba(6, 10, 22, .2) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(6, 10, 22, 0) 46%);
}
.ch-year-text { width: 100%; max-width: 1280px; margin: 0 auto; padding: 70px var(--gutter) 34px; }
.ch-year-n { display: flex; align-items: baseline; gap: 16px; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.ch-year-n span { letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-year h2 { margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--pearl); text-wrap: balance; }
.ch-year-intro { margin: 0; max-width: 680px; font-size: 1.05rem; line-height: 1.7; color: #cdd3e6; }

/* ---------- Frise verticale ---------- */
.ch-list { position: relative; max-width: 1280px; margin: 0 auto; padding: 46px var(--gutter) 70px; }
.ch-list::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 43px); width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong) 60px, var(--line-strong) calc(100% - 60px), transparent); }
.ch-item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 30px; margin-bottom: 34px; scroll-margin-top: 130px; }
.ch-item:last-child { margin-bottom: 0; }
.ch-mark { position: sticky; top: 132px; align-self: start; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d2a52, #0a1124 72%); box-shadow: 0 0 0 6px var(--night), 0 0 30px rgba(120, 170, 255, .16); }
.ch-mark img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .28)); }
.ch-mark--ext { width: 22px; height: 22px; margin: 33px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ch-mark--ext i { width: 16px; height: 16px; transform: rotate(45deg); border: 1px solid var(--gold-hi); background: var(--gold); box-shadow: 0 0 0 6px var(--night), 0 0 18px rgba(241, 219, 164, .6); }

.ch-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.ch-card-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: stretch; padding: 26px 28px 0; }
.ch-card h3 { margin: 6px 0 4px; font-size: clamp(1.4rem, 2.5vw, 2.05rem); font-weight: 800; line-height: 1.08; text-transform: uppercase; color: var(--pearl); text-wrap: balance; }
.ch-alt { margin: 0 0 4px; font-size: .8rem; color: var(--faint); }
.ch-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-span { margin-left: 8px; padding: 2px 9px; border: 1px solid var(--line-strong); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ch-sum { margin: 16px 0 0; font-family: var(--font-lore); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; color: var(--gold-hi); text-wrap: balance; }
.ch-photo { position: relative; margin: 0; min-height: 170px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); }
.ch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ch-card:hover .ch-photo img { transform: scale(1.05); }
.ch-photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(6, 10, 22, .55); }

.ch-story { padding: 22px 28px 0; max-width: 860px; }
.ch-story p { margin: 0 0 12px; color: #cdd3e6; }
.ch-story p:last-child { margin-bottom: 0; }

.ch-beats { margin: 22px 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ch-beats li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ch-beats time { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.9; color: var(--teal); font-variant-numeric: tabular-nums; }
.ch-beats span { color: var(--ink); }

.ch-adds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 22px 28px 26px; list-style: none; }
.ch-adds li { display: flex; align-items: stretch; border: 1px solid var(--line-strong); font-size: .78rem; line-height: 1.35; }
.ch-adds b { display: flex; align-items: center; padding: 5px 9px; background: rgba(225, 232, 255, .09); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.ch-adds span { padding: 5px 11px; color: var(--pearl); }

.ch-places { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding: 14px 28px; border-top: 1px solid var(--line); background: rgba(6, 10, 22, .4); }
.ch-places > span { margin-right: 6px; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.ch-place { padding: 3px 10px; border: 1px solid rgba(241, 219, 164, .35); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); transition: background .25s, color .25s, border-color .25s; }
.ch-place:hover, .ch-place:focus-visible { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }

/* ---------- Extension ---------- */
.ch-ext .ch-card { border-color: rgba(216, 180, 106, .45); background: linear-gradient(180deg, rgba(40, 32, 14, .5), var(--panel) 220px); }
.ch-ext-head { position: relative; display: flex; align-items: center; gap: 26px; min-height: 230px; padding: 30px 28px; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(216, 180, 106, .3); }
.ch-ext-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ch-ext-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 10, 20, .95) 0%, rgba(8, 10, 20, .74) 44%, rgba(8, 10, 20, .12) 100%); }
.ch-shield { flex: 0 0 auto; width: clamp(84px, 11vw, 132px); height: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .6)); }
.ch-shield--glyph { width: clamp(64px, 8vw, 96px); padding: 14px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(8, 10, 20, .6); }
.ch-ext .tag { color: var(--gold-hi); }
.ch-ext h3 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.ch-ext .ch-sum { margin-top: 10px; color: #f3eee4; }

/* ---------- Fin de page ---------- */
.ch-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px var(--gutter) 90px; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1020px) {
  .ch-card-head { grid-template-columns: minmax(0, 1fr); }
  .ch-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .ch-rail { top: 58px; }
  .ch-list { padding-block: 30px 48px; }
  .ch-list::before { left: calc(var(--gutter) + 21px); }
  .ch-item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .ch-mark { top: 124px; width: 44px; height: 44px; box-shadow: 0 0 0 4px var(--night); }
  .ch-mark img { width: 24px; height: 24px; }
  .ch-mark--ext { width: 16px; height: 16px; margin: 14px; }
  .ch-mark--ext i { width: 12px; height: 12px; }
  .ch-card-head { padding: 18px 16px 0; }
  .ch-story { padding: 16px 16px 0; }
  .ch-beats { margin: 18px 16px 0; }
  .ch-beats li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ch-adds { padding: 18px 16px 20px; }
  .ch-places { padding: 12px 16px; }
  .ch-ext-head { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 22px 16px; }
}
