/* MIXART — menus visuels branchés sur le catalogue (js/catalog.js).
   Même matière que le site : noir, Helvetica Neue, verre de GET STARTED pour l'achat. */

.cx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(16 * var(--u)); flex-wrap: wrap; }
.cx-tiers { display: flex; gap: calc(6 * var(--u)); }
.cx-tier {
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(2 * var(--u));
  padding: calc(12 * var(--u)) calc(20 * var(--u)) calc(11 * var(--u)); border-radius: calc(14 * var(--u));
  background: #121212; color: #9a9a9a; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.cx-tier span { font-size: calc(22 * var(--u)); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cx-tier small { font-size: calc(10.5 * var(--u)); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.cx-tier:hover { color: #fff; }
.cx-tier.is-on { background: #1b1b1b; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.cx-tier.is-empty:not(.is-on) { opacity: 0.55; }
.cx-tools { display: flex; gap: calc(10 * var(--u)); }

.cx-sources { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); margin: calc(22 * var(--u)) 0 calc(12 * var(--u)); min-height: calc(30 * var(--u)); }
.cx-src {
  height: calc(30 * var(--u)); padding: 0 calc(13 * var(--u)); border-radius: 999px;
  background: #1e1e1e; color: #bdbdbd; font-size: calc(13 * var(--u)); white-space: nowrap;
  display: inline-flex; align-items: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.cx-src:hover { color: #fff; background: #2a2a2a; }
.cx-src.is-on { background: #d0d0d0; color: #0a0a0a; }
.cx-src.is-static { cursor: default; }
.cx-active { margin-bottom: calc(16 * var(--u)); }
.cx-warn { font-size: calc(11 * var(--u)); letter-spacing: 0.04em; color: #e0a07a; }

/* grille : les médias d'origine, à leurs proportions de vignette */
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(250 * var(--u)), 1fr)); gap: calc(26 * var(--u)) calc(18 * var(--u)); }
.cx-card { animation: gx-in 0.55s var(--ease-out) both; animation-delay: calc(min(var(--i), 16) * 26ms); min-width: 0; }
.cx-card-btn { display: block; width: 100%; text-align: left; color: inherit; }
.cx-media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: calc(12 * var(--u));
  background: #141414; transition: transform 0.6s var(--ease-out), box-shadow 0.3s ease;
}
.cx-media img, .cx-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-media video { opacity: 0; transition: opacity 0.35s ease; }
.cx-card.is-playing video { opacity: 1; }
.cx-card-btn:hover .cx-media, .cx-card-btn:focus-visible .cx-media { transform: translateY(calc(-3 * var(--u))); box-shadow: 0 0 0 calc(1.5 * var(--u)) #fff; }
.cx-card.is-icon .cx-media { background: radial-gradient(circle at 50% 40%, #222, #111 70%); }
.cx-media img.is-svg { object-fit: contain; padding: 22%; }
.cx-badge {
  position: absolute; left: calc(10 * var(--u)); bottom: calc(10 * var(--u)); display: inline-flex; align-items: center; gap: calc(5 * var(--u));
  height: calc(22 * var(--u)); padding: 0 calc(8 * var(--u)); border-radius: 999px; background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: calc(11 * var(--u));
  transition: opacity 0.3s ease;
}
.cx-badge svg { width: calc(9 * var(--u)); height: calc(9 * var(--u)); fill: currentColor; }
.cx-badge i { font-style: normal; font-variant-numeric: tabular-nums; }
.cx-card.is-playing .cx-badge { opacity: 0; }
.cx-price { position: absolute; right: calc(10 * var(--u)); top: calc(10 * var(--u)); padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 999px; background: #fff; color: #0a0a0a; font-size: calc(11.5 * var(--u)); font-weight: 600; }
.cx-font { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--u)); color: #f2f2f2; font-size: calc(64 * var(--u)); line-height: 1; }
.cx-font small { font-size: calc(13 * var(--u)); color: #8a8a8a; font-family: var(--font, inherit); letter-spacing: 0.02em; }
.cx-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-size: calc(12 * var(--u)); letter-spacing: 0.1em; text-transform: uppercase; }
.cx-cap { display: flex; flex-direction: column; gap: calc(3 * var(--u)); margin-top: calc(11 * var(--u)); min-width: 0; }
.cx-title { font-size: calc(14.5 * var(--u)); color: #dadada; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.cx-meta { font-size: calc(11.5 * var(--u)); color: #6e6e6e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-card-btn:hover .cx-title { color: #fff; }

.cx-foot { display: flex; justify-content: center; align-items: center; min-height: calc(90 * var(--u)); }
.cx-spin { width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18); border-top-color: #fff; animation: sz-spin2 0.8s linear infinite; }
.cx-spin[hidden], .cx-more[hidden] { display: none; }
.cx-empty { padding: calc(60 * var(--u)) calc(20 * var(--u)); text-align: center; border: 1px dashed rgba(255,255,255,0.12); border-radius: calc(16 * var(--u)); }
.cx-empty h3 { margin: 0 0 calc(10 * var(--u)); font-size: calc(22 * var(--u)); color: #eee; letter-spacing: -0.01em; }
.cx-empty p { margin: 0 auto; max-width: 60ch; color: #8a8a8a; font-size: calc(14 * var(--u)); line-height: 1.55; }
.cx-empty code { font-size: 0.9em; color: #cfcfcf; }
.cx-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.cx-note { margin: calc(8 * var(--u)) 0 calc(120 * var(--u)); font-size: calc(10.5 * var(--u)); letter-spacing: 0.06em; text-transform: uppercase; color: #555; text-align: center; }
.cx-note em { font-style: normal; color: #7a7a7a; text-transform: none; letter-spacing: 0; }

/* fiche : le média d'origine en grand */
.cx-sheet-media { display: grid; place-items: center; background: #000; }
.cx-sheet-media img, .cx-sheet-media video { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; display: block; }
.cx-svg { width: 100%; height: 100%; min-height: calc(380 * var(--u)); display: grid; place-items: center; background: repeating-conic-gradient(#151515 0 25%, #1c1c1c 0 50%) 0 0 / 24px 24px; }
.cx-svg img { width: 46%; height: auto; max-height: 60%; object-fit: contain; }
.cx-fontview { width: 100%; padding: calc(40 * var(--u)); color: #f2f2f2; }
.cx-fontview p { margin: 0 0 calc(24 * var(--u)); font-size: calc(46 * var(--u)); line-height: 1.1; outline: none; }
.cx-fontview span { font-size: calc(22 * var(--u)); color: #9a9a9a; line-height: 1.4; }
.cx-loading { position: absolute; bottom: calc(16 * var(--u)); left: 50%; transform: translateX(-50%); font-size: calc(12 * var(--u)); color: #bbb; }
.cx-sheet-media { position: relative; }
.cx-desc { margin: calc(14 * var(--u)) 0 0; font-size: calc(13 * var(--u)); line-height: 1.55; color: #9e9e9e; max-height: calc(120 * var(--u)); overflow: auto; }
.gx-sheet-author a { color: #cfcfcf; }
.cx-files-box { margin-top: auto; padding-top: calc(20 * var(--u)); }
.cx-files { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(6 * var(--u)); }
.cx-files li { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); padding: calc(8 * var(--u)) 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: calc(13 * var(--u)); color: #d6d6d6; }
.cx-files em { font-style: normal; color: #6e6e6e; margin-left: calc(6 * var(--u)); font-variant-numeric: tabular-nums; }
.cx-dl .sz-dl-txt { min-width: calc(64 * var(--u)); }
.cx-files-wait { font-size: calc(13 * var(--u)); color: #8a8a8a; }
.cx-buy p { margin: 0 0 calc(14 * var(--u)); font-size: calc(13.5 * var(--u)); color: #bdbdbd; }
.cx-buy b { color: #fff; font-size: 1.2em; }
.cx-cta .cta-pill { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); }
.cx-cta svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (max-width: 640px) {
  .cx-tier { padding: 10px 14px; }
  .cx-tier span { font-size: 18px; }
  .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .cx-title { font-size: 13px; } .cx-meta { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .cx-card { animation: none; } .cx-spin { animation: none; } }
.cx-fadein { animation: cx-fade 0.5s ease both; }
@keyframes cx-fade { from { opacity: 0; } }
/* catégories de la source choisie (Pixabay…) : petites pastilles sous les sources */
.cx-facets { display: flex; flex-wrap: wrap; gap: calc(5 * var(--u)); margin: calc(-2 * var(--u)) 0 calc(14 * var(--u)); }
.cx-facets[hidden] { display: none; }
.cx-facet { height: calc(26 * var(--u)); padding: 0 calc(11 * var(--u)); border-radius: 999px; color: #9a9a9a; font-size: calc(12 * var(--u)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); transition: color 0.2s ease, box-shadow 0.2s ease; }
.cx-facet:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.cx-facet.is-on { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* Inspiration Studio : mosaïque façon Pinterest, chaque image à ses proportions */
.cx-grid.is-masonry { display: block; column-width: calc(240 * var(--u)); column-gap: calc(16 * var(--u)); }
.cx-grid.is-masonry .cx-card { break-inside: avoid; margin-bottom: calc(22 * var(--u)); display: inline-block; width: 100%; }
.cx-grid.is-masonry .cx-media { aspect-ratio: auto; min-height: calc(120 * var(--u)); }
.cx-grid.is-masonry .cx-media[style] { min-height: 0; }
.cx-grid.is-masonry .cx-media img { position: relative; display: block; height: auto; min-height: 100%; }
.cx-grid.is-masonry .cx-media[style] img { position: absolute; height: 100%; }
.cx-topics { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); margin: 0 0 calc(18 * var(--u)); }
.cx-topic { height: calc(32 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: 999px; background: #151515; color: #cfcfcf; font-size: calc(13 * var(--u)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.cx-topic:hover { color: #fff; background: #1f1f1f; }
.cx-topic.is-on { background: #fff; color: #0a0a0a; }
@media (max-width: 640px) { .cx-grid.is-masonry { column-width: 150px; column-gap: 10px; } }
