/* Page /changelog — journal des versions. Préfixe cl- */

.cl { --cl-fuchsia: #f24cc0; --cl-ember: #FF6B35; --cl-amber: #FFA726; --cl-cyan: #4FC3F7;
  --cl-card: rgba(17, 32, 58, .66); --cl-line: rgba(242, 76, 192, .22); --cl-top: 72px; overflow-x: clip; }
@media (max-width: 540px) { .cl { --cl-top: 64px; } }

/* ── Héro ── */
.cl-hero { position: relative; padding: 68px 0 40px; isolation: isolate; }
.cl-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
  background: radial-gradient(50% 50% at 80% 40%, rgba(242,76,192,.16), transparent 70%),
              radial-gradient(40% 45% at 12% 20%, rgba(255,107,53,.14), transparent 70%),
              radial-gradient(35% 40% at 50% 100%, rgba(79,195,247,.08), transparent 70%); }
.cl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.cl-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cl-fuchsia); font-weight: 700; }
.cl-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 16px; }
.grad { background: linear-gradient(100deg, var(--cl-ember), var(--cl-fuchsia) 60%, #b39dff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: cl-sheen 8s ease-in-out infinite alternate; }
@keyframes cl-sheen { to { background-position: 100% 0; } }
.cl-hero .lead { font-size: 17.5px; line-height: 1.65; color: var(--text-muted); max-width: 560px; }

.cl-now { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 18px 10px 14px; border-radius: 16px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(120deg, var(--cl-ember), var(--cl-fuchsia), #b39dff) border-box;
  border: 1px solid transparent; text-decoration: none; color: var(--text); box-shadow: 0 14px 40px rgba(242,76,192,.14);
  transition: transform .2s, box-shadow .2s; max-width: 100%; }
.cl-now:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(242,76,192,.24); }
.cl-now .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: cl-ping 2s infinite; flex: none; }
@keyframes cl-ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.cl-now .v { font: 800 26px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.02em; }
.cl-now .t { font-size: 13px; color: var(--text-muted); line-height: 1.35; min-width: 0; }
.cl-now .t b { display: block; color: var(--text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.cl-kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 24px; margin-top: 26px; justify-content: start; }
.cl-kpi .v { font: 800 26px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.cl-kpi .v small { font-size: 14px; color: var(--cl-fuchsia); margin-left: 2px; }
.cl-kpi .l { font-size: 12px; color: var(--text-muted); margin-top: 4px; max-width: 120px; }

.cl-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; border: 1px solid var(--cl-line);
  background: radial-gradient(90% 90% at 30% 80%, #13223a, #07111f); box-shadow: 0 30px 80px rgba(0,0,0,.45); touch-action: pan-y; }
.cl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.cl-hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none;
  font: 600 11px/1.3 'JetBrains Mono', ui-monospace, monospace; color: #ffe0f6; }
.cl-hud span { background: rgba(7,17,31,.78); border: 1px solid var(--cl-line); padding: 6px 9px; border-radius: 8px; max-width: 62%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-hud span + span { color: var(--text-muted); }

/* ── Barre de filtres (visible seulement avec JS) ── */
.cl-bar { position: sticky; top: var(--cl-top); z-index: 50; display: none; background: rgba(10,22,40,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--border); }
.cl.js .cl-bar { display: block; }
.cl-bar-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.cl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0;
  mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.cl-chips::-webkit-scrollbar { display: none; }
.cl-chip { --c: var(--text); display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text-muted); font: 600 13px/1 Inter, sans-serif;
  cursor: pointer; transition: all .18s; }
.cl-chip svg { color: var(--c); }
.cl-chip i { font-style: normal; font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
.cl-chip:hover { color: var(--text); border-color: var(--border-strong); }
.cl-chip.on { color: #0a1628; background: var(--c); border-color: var(--c); box-shadow: 0 6px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.cl-chip.on svg { color: #0a1628; }
.cl-chip:focus-visible, .cl-search input:focus-visible { outline: 2px solid var(--cl-fuchsia); outline-offset: 2px; }
.cl-search { position: relative; display: flex; align-items: center; flex: 0 0 250px; color: var(--text-muted); }
.cl-search svg { position: absolute; left: 11px; pointer-events: none; }
.cl-search input { width: 100%; padding: 9px 12px 9px 33px; border-radius: 10px; border: 1px solid var(--border); background: #0a1322;
  color: var(--text); font: 14px Inter, sans-serif; }
.cl-count { flex: none; font: 600 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--text-muted); min-width: 120px; text-align: right; }

/* ── Frise ── */
.cl-body { padding: 34px 0 30px; }
.cl-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px; align-items: start; }
.cl-rail { position: sticky; top: calc(var(--cl-top) + 76px); max-height: calc(100vh - var(--cl-top) - 100px); overflow-y: auto;
  scrollbar-width: thin; font-size: 13px; padding-right: 6px; }
.cl-rail b { display: block; margin: 14px 0 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.cl-rail b:first-child { margin-top: 0; }
.cl-rail a { display: block; padding: 4px 10px; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; transition: all .18s; }
.cl-rail a.k-major { color: var(--text); font-weight: 700; }
.cl-rail a:hover { color: #fff; }
.cl-rail a.on { color: #fff; border-left-color: var(--cl-fuchsia); background: rgba(242,76,192,.08); }
.cl-rail a.off { opacity: .28; }

.cl-line { position: relative; padding-left: 46px; --p: 0; }
.cl-spine { position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.cl-spine i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); border-radius: 2px;
  background: linear-gradient(180deg, var(--cl-ember), var(--cl-fuchsia) 55%, #b39dff); box-shadow: 0 0 14px rgba(242,76,192,.6); }
.cl-spine i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(242,76,192,.35), 0 0 22px 6px rgba(242,76,192,.55); }

.cl-month { position: relative; margin: 30px 0 14px -46px; }
.cl-spine + .cl-month { margin-top: 0; }
.cl-month span { display: inline-block; font: 700 12px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  background: var(--navy); padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; }

.cl-rel { position: relative; margin-bottom: 22px; scroll-margin-top: calc(var(--cl-top) + 80px); }
.cl-node { position: absolute; left: -38px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy);
  border: 2px solid var(--border-strong); transition: all .4s; }
.cl-rel.k-major .cl-node { width: 18px; height: 18px; left: -40px; top: 20px; }
.cl-rel.is-lit .cl-node { border-color: var(--cl-fuchsia); background: #2a0f25; box-shadow: 0 0 0 5px rgba(242,76,192,.14), 0 0 18px rgba(242,76,192,.5); }
.cl-rel.k-major.is-lit .cl-node { background: radial-gradient(circle, #fff 0 25%, var(--cl-fuchsia) 30%); }

.cl-card { position: relative; background: var(--cl-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px 18px;
  transition: border-color .3s, transform .3s, box-shadow .3s; }
.cl-rel:hover .cl-card { border-color: var(--border-strong); }
.cl-rel:target .cl-card { border-color: var(--cl-fuchsia); box-shadow: 0 0 0 3px rgba(242,76,192,.18); }
.cl-rel.k-patch .cl-card { padding: 14px 20px 12px; background: rgba(17,32,58,.4); }
.cl-rel.k-patch h3 { font-size: 16px; }
.cl-rel.k-patch .cl-intro { font-size: 14px; }

.cl-rel.is-latest .cl-card { border: 1px solid transparent;
  background: linear-gradient(#0f1c33, #0f1c33) padding-box,
              conic-gradient(from var(--cl-a, 0deg), var(--cl-ember), var(--cl-fuchsia), #b39dff, var(--cl-cyan), var(--cl-ember)) border-box;
  box-shadow: 0 24px 70px rgba(242,76,192,.16); animation: cl-spin 6s linear infinite; }
@property --cl-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes cl-spin { to { --cl-a: 360deg; } }

.cl-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-card h2 { margin: 0; font: 800 24px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.02em; }
.cl-rel.k-patch h2 { font-size: 18px; }
.cl-card time { font: 12px 'JetBrains Mono', ui-monospace, monospace; color: var(--text-muted); }
.cl-badge { font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.cl-badge.now { color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); }
.cl-badge.big { color: #ffd1ef; background: rgba(242,76,192,.1); border: 1px solid rgba(242,76,192,.3); }
.cl-badge.fix { color: var(--text-muted); background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.cl-link { margin-left: auto; color: var(--text-dim); opacity: 0; transition: opacity .2s; display: inline-flex; padding: 4px; border-radius: 6px; }
.cl-rel:hover .cl-link, .cl-link:focus-visible { opacity: 1; }
.cl-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.cl-card h3 { margin: 10px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.cl-intro { margin: 0; color: var(--text-muted); line-height: 1.65; font-size: 15.5px; }

.cl-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.cl-card li { --c: var(--text); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px;
  margin-inline: -10px; border-radius: 10px; color: var(--text-muted); line-height: 1.6; font-size: 15px; transition: background .2s; }
.cl-card li:hover { background: rgba(255,255,255,.025); }
.cl-card li strong { color: var(--text); }
.cl-card li a { color: var(--accent); }
.cl-card li .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); margin-top: 1px; }
.cl-card li[hidden] { display: none; }
.cl mark { background: rgba(242,76,192,.28); color: #fff; border-radius: 3px; padding: 0 2px; }

.cl-rel[hidden], .cl-month[hidden] { display: none; }
.cl-empty { color: var(--text-muted); padding: 30px 0; }
.cl-empty button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Apparition */
.cl.js .cl-rel { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.cl.js .cl-rel.is-in { opacity: 1; transform: none; }

/* ── À venir ── */
.cl-next { padding: 40px 0 80px; }
.cl-next h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 8px; letter-spacing: -.015em; }
.cl-next-lead { color: var(--text-muted); max-width: 620px; margin: 0; }
.cl-next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 24px; }
.cl-soon { --c: var(--text); position: relative; padding: 18px 20px; border-radius: 16px; background: var(--cl-card); border: 1px solid var(--border);
  overflow: hidden; transition: transform .25s, border-color .25s; }
.cl-soon:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.cl-soon::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .8; }
.cl-soon.s-idee::before { background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 14px); }
.cl-soon .top { display: flex; align-items: center; justify-content: space-between; }
.cl-soon .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); }
.cl-soon .st { font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); }
.cl-soon.s-test .st { color: #22c55e; border-color: rgba(34,197,94,.35); }
.cl-soon.s-test .st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 6px;
  vertical-align: 1px; animation: cl-ping 2s infinite; }
.cl-soon h3 { margin: 14px 0 6px; font-size: 17px; }
.cl-soon p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.cl-soon a { color: var(--accent); }
.cl-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding: 22px 26px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,107,53,.12), rgba(242,76,192,.12)); border: 1px solid var(--cl-line); }
.cl-cta p { margin: 0; color: var(--text-muted); max-width: 640px; }
.cl-cta b { color: var(--text); }
.cl-fine { margin-top: 22px; font-size: 13px; color: var(--text-dim); }
.cl-fine a { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .cl-hero-grid { grid-template-columns: 1fr; }
  .cl-stage { aspect-ratio: 16 / 10; }
  .cl-layout { grid-template-columns: 1fr; }
  .cl-rail { display: none; }
  .cl-search { flex-basis: 200px; }
  .cl-count { display: none; }
}
@media (max-width: 640px) {
  .cl-hero { padding-top: 40px; }
  .cl-kpis { grid-template-columns: repeat(2, auto); }
  .cl-bar-in { flex-wrap: wrap; gap: 8px; }
  .cl-search { flex: 1 1 100%; order: -1; }
  .cl-line { padding-left: 30px; }
  .cl-spine { left: 7px; }
  .cl-node { left: -30px; width: 12px; height: 12px; }
  .cl-rel.k-major .cl-node { left: -32px; width: 16px; height: 16px; }
  .cl-month { margin-left: -30px; }
  .cl-card { padding: 16px 16px 12px; }
  .cl-card li { font-size: 14.5px; }
  .cl-cta { flex-direction: column; align-items: flex-start; }
  .cl-link { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .grad, .cl-now .dot, .cl-rel.is-latest .cl-card, .cl-soon.s-test .st::before { animation: none; }
  .cl.js .cl-rel { opacity: 1; transform: none; transition: none; }
}
