/* =========================================================
   KAIZEN ONLINE : STORE v2
   Accueil en tuiles -> categories (menu) -> panier a droite.
   Charge apres kaizen-v3.css. Tout est en rem (2K / 4K ok).
   ========================================================= */

.ks { padding: 0 1.5rem 4rem; }

/* ---------- En-tete ---------- */
.ks-hero { max-width: 88rem; margin: 0 auto; padding: 6.4rem 0 1.4rem; text-align: center; }
.ks-hero .section-kicker { margin-bottom: 0.55rem; }
.ks-hero .section-heading { font-size: 2.1rem; margin: 0 0 0.35rem; }
.ks-hero .section-sub { margin: 0 auto; max-width: 44rem; font-size: 0.98rem; }
.ks-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ks-trust li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfd3dc; font-size: 0.8rem;
}
.ks-trust b { color: #fff; }
.ks-trust .kz-ico { width: 0.95rem; height: 0.95rem; color: var(--k-purple-3); }

/* ---------- Mise en page ---------- */
.ks-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 1.5rem; align-items: start;
  max-width: 88rem; margin: 0 auto;
}
.ks-main { min-width: 0; }
.ks-side {
  position: sticky; top: var(--ks-top, 5.6rem);
  max-height: calc(100vh - var(--ks-top, 5.6rem) - 1rem); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  display: flex; flex-direction: column; gap: 0.9rem;
  min-width: 0;
}
.store-page .ks-side .cart-panel { position: relative; top: auto; }
.store-page .ks-side .recent-wrap { display: block; margin: 0; }
.store-page .ks-side .recent-wrap[hidden] { display: none; }
.store-page .ks-side .recent-wrap::before { display: none; }

/* ---------- Menu des categories ---------- */
.ks-nav {
  position: sticky; top: var(--ks-top, 5.4rem); z-index: 30;
  display: flex; gap: 0.3rem; align-items: center;
  margin-bottom: 1.1rem; padding: 0.4rem;
  border-radius: 0.95rem;
  background: rgba(16, 14, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.35);
  overflow-x: auto; scrollbar-width: none;
}
.ks-nav::-webkit-scrollbar { display: none; }
.ks-nav:empty { display: none; }
.ks-nav-item {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  padding: 0.55rem 0.95rem; border-radius: 0.7rem;
  border: 1px solid transparent;
  color: #cfd3dc; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ks-nav-item .kz-ico { width: 1.05rem; height: 1.05rem; color: var(--k-purple-3); }
.ks-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ks-nav-item.is-hot .kz-ico { color: #f5c04a; }
.ks-nav-item.is-active {
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.32), rgba(90, 18, 214, 0.22));
  border-color: var(--k-purple-line); color: #fff;
}
.ks-nav-item.is-active .kz-ico { color: #fff; }

/* apparition douce de chaque vue */
.ks-view.is-in > * { animation: ksIn .35s var(--k-ease) both; }
@keyframes ksIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Accueil : tuiles ---------- */
.ks-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); grid-auto-rows: 13rem; gap: 1rem; }
.ks-tiles.has-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ks-tiles.has-feature .is-feature { grid-column: span 2; grid-row: span 2; }

.ks-tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-width: 0; border-radius: 1.1rem; overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 28%, rgba(139, 61, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #1c1a2b, #13121c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff; text-decoration: none;
  transition: transform .25s var(--k-ease), border-color .25s ease, box-shadow .25s ease;
}
.ks-tile:hover { transform: translateY(-4px); border-color: var(--k-purple-line); box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.45); }
.ks-tile-art {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0.8rem 0.8rem 0;
}
.ks-tile-art img {
  height: 82%; max-height: 6.5rem; width: auto; max-width: 42%; object-fit: contain;
  filter: drop-shadow(0 0.5rem 0.8rem rgba(0, 0, 0, 0.55));
  transition: transform .35s var(--k-ease);
}
.ks-tile-art.n1 img { max-width: 70%; }
.ks-tile-art.n3 img:nth-child(1) { transform: translateX(18%) rotate(-8deg) scale(0.86); }
.ks-tile-art.n3 img:nth-child(2) { position: relative; z-index: 2; }
.ks-tile-art.n3 img:nth-child(3) { transform: translateX(-18%) rotate(8deg) scale(0.86); }
.ks-tile-art.n2 img:nth-child(1) { transform: translateX(10%) rotate(-6deg); }
.ks-tile-art.n2 img:nth-child(2) { transform: translateX(-10%) rotate(6deg); }
.ks-tile:hover .ks-tile-art img:nth-child(2), .ks-tile:hover .ks-tile-art.n1 img { transform: translateY(-4px) scale(1.06); }
.ks-tile:hover .ks-tile-art.n3 img:nth-child(1) { transform: translateX(10%) rotate(-12deg) scale(0.86); }
.ks-tile:hover .ks-tile-art.n3 img:nth-child(3) { transform: translateX(-10%) rotate(12deg) scale(0.86); }

.ks-tile-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 1rem 0.85rem; }
.ks-tile-name { display: flex; align-items: center; gap: 0.5rem; font-family: 'Gabarito', sans-serif; font-size: 1.12rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.ks-tile-ico { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 0.5rem; background: var(--k-purple-soft); border: 1px solid var(--k-purple-line); }
.ks-tile-ico .kz-ico { width: 0.95rem; height: 0.95rem; color: var(--k-purple-3); }
.ks-tile-text { color: #a9aebb; font-size: 0.8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ks-tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.15rem; color: #8a90a2; font-size: 0.76rem; }
.ks-tile-meta b { color: #fff; font-family: 'Space Grotesk', sans-serif; }
.ks-tile-go { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--k-purple-3); font-weight: 700; white-space: nowrap; }
.ks-tile-go .kz-ico { width: 0.85rem; height: 0.85rem; transition: transform .2s ease; }
.ks-tile:hover .ks-tile-go .kz-ico { transform: translateX(3px); }

/* tuile vedette : les ranks */
.ks-tile.is-feature {
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(245, 192, 74, 0.16), transparent 70%),
    radial-gradient(90% 80% at 0% 100%, rgba(233, 79, 79, 0.16), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(139, 61, 255, 0.24), transparent 60%),
    linear-gradient(180deg, #211d31, #14121d);
  border-color: rgba(245, 192, 74, 0.35);
}
.ks-tile.is-feature:hover { border-color: rgba(245, 192, 74, 0.6); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5), 0 0 2.4rem rgba(245, 192, 74, 0.1); }
.ks-tile.is-feature .ks-tile-art img { max-height: 15rem; height: 88%; }
.ks-tile.is-feature .ks-tile-body { padding: 0.9rem 1.4rem 1.2rem; }
.ks-tile.is-feature .ks-tile-name { font-size: 1.7rem; }
.ks-tile.is-feature .ks-tile-ico { width: 2.3rem; height: 2.3rem; background: rgba(245, 192, 74, 0.14); border-color: rgba(245, 192, 74, 0.45); }
.ks-tile.is-feature .ks-tile-ico .kz-ico { width: 1.25rem; height: 1.25rem; color: #f5c04a; }
.ks-tile.is-feature .ks-tile-text { font-size: 0.92rem; -webkit-line-clamp: 2; color: #c4c8d2; }
.ks-tile.is-feature .ks-tile-meta { font-size: 0.85rem; }
.ks-tile.is-feature .ks-tile-go {
  padding: 0.55rem 1rem; border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--k-accent), var(--k-accent-2)); color: #fff;
  box-shadow: 0 0.5rem 1.2rem rgba(233, 79, 79, 0.3);
}
.ks-tile-flag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(245, 192, 74, 0.16); border: 1px solid rgba(245, 192, 74, 0.5);
  color: #ffd97a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ks-tile-flag .kz-ico { width: 0.85rem; height: 0.85rem; }

/* squelette de chargement */
.ks-skel { pointer-events: none; background: linear-gradient(100deg, #191826 30%, #232136 50%, #191826 70%); background-size: 300% 100%; animation: ksSkel 1.4s linear infinite; }
@keyframes ksSkel { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* ---------- En-tete de categorie ---------- */
.ks-cat-head { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.1rem; }
.ks-cat-ico { display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 0.85rem; background: var(--k-purple-soft); border: 1px solid var(--k-purple-line); }
.ks-cat-ico .kz-ico { width: 1.35rem; height: 1.35rem; color: var(--k-purple-3); }
.ks-cat-title { flex: 1; min-width: 0; }
.ks-cat-title h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: #fff; font-size: 1.6rem; letter-spacing: 0.02em; text-transform: uppercase; }
.ks-cat-title p { margin: 0.15rem 0 0; color: #a9aebb; font-size: 0.9rem; }
.ks-count {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.4rem; padding: 0 0.4rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  color: #cfd3dc; font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0;
}
.ks-back {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
  padding: 0.5rem 0.85rem; border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1); color: #cfd3dc; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.ks-back .kz-ico { width: 0.95rem; height: 0.95rem; }
.ks-back:hover { border-color: var(--k-purple-line); color: #fff; }

/* ---------- Grille d'articles ---------- */
.ks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.4rem, 1fr)); gap: 0.9rem; }
.ks-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 1rem; overflow: hidden;
  background: linear-gradient(180deg, #1b1a28, #13121c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .25s var(--k-ease), border-color .25s ease, box-shadow .25s ease;
}
.ks-card:hover { transform: translateY(-4px); border-color: var(--k-purple-line); box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.45); }
.ks-card-media {
  display: grid; place-items: center; height: 9rem; padding: 0.8rem;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(60% 75% at 50% 45%, rgba(139, 61, 255, 0.22), transparent 70%), #16141f;
  cursor: pointer;
}
.ks-card-media img { max-height: 7.4rem; max-width: 80%; object-fit: contain; filter: drop-shadow(0 0.5rem 0.8rem rgba(0, 0, 0, 0.5)); transition: transform .35s var(--k-ease); }
.ks-card:hover .ks-card-media img { transform: translateY(-3px) scale(1.06); }
.ks-card-body { display: flex; flex-direction: column; flex: 1; padding: 0.9rem 1rem 1rem; }
.ks-card h3 { margin: 0 0 0.3rem; font-size: 1rem; line-height: 1.3; }
.ks-card h3 button {
  all: unset; cursor: pointer; color: #fff; font-family: 'Gabarito', sans-serif; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ks-card h3 button:hover { color: var(--k-purple-3); }
.ks-card h3 button:focus-visible { outline: 2px solid var(--k-purple); outline-offset: 2px; border-radius: 0.2rem; }
.ks-card-desc { flex: 1; margin: 0 0 0.85rem; color: #a9aebb; font-size: 0.84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.ks-card-flag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(58, 208, 127, 0.16); border: 1px solid rgba(58, 208, 127, 0.55);
  color: #8ff0b9; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ks-card.is-flagged { border-color: rgba(58, 208, 127, 0.35); }

.ks-price { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.22rem; font-weight: 700; white-space: nowrap; }
.ks-price s { margin-right: 0.25rem; color: #7d8496; font-size: 0.8em; font-weight: 500; }

.ks-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem; border-radius: 0.6rem; font-size: 0.85rem; white-space: nowrap; cursor: pointer;
}
.ks-add .kz-ico { width: 0.95rem; height: 0.95rem; }
.ks-add.is-added { animation: ksPop .45s var(--k-ease); }
@keyframes ksPop { 40% { transform: scale(1.1); } 100% { transform: none; } }

/* ---------- Ranks ---------- */
.ks-rank-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1rem; }
.ks-rank {
  --rc: #8b3dff;
  position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0;
  padding: 1.5rem 1.2rem 1.2rem; border-radius: 1.1rem; text-align: center;
  background:
    radial-gradient(85% 55% at 50% 0%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 75%),
    linear-gradient(180deg, #1b1a28, #13121c);
  border: 1px solid color-mix(in srgb, var(--rc) 30%, rgba(255, 255, 255, 0.06));
  transition: transform .25s var(--k-ease), box-shadow .25s ease, border-color .25s ease;
}
.ks-rank::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 1.1rem 1.1rem 0 0; background: var(--rc); }
.ks-rank:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.45), 0 0 2rem color-mix(in srgb, var(--rc) 18%, transparent); }
.ks-rank.has-badge { border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 0 2.2rem color-mix(in srgb, var(--rc) 16%, transparent); }
.ks-rank-badge {
  position: absolute; top: 0.8rem; right: 0.8rem;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--rc); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0.3rem 0.9rem color-mix(in srgb, var(--rc) 40%, transparent);
}
.ks-rank-art { all: unset; cursor: pointer; display: grid; place-items: center; height: 9.5rem; width: 100%; }
.ks-rank-art img { max-height: 9rem; max-width: 80%; object-fit: contain; filter: drop-shadow(0 0.7rem 1rem rgba(0, 0, 0, 0.55)); transition: transform .35s var(--k-ease); }
.ks-rank:hover .ks-rank-art img { transform: translateY(-4px) scale(1.05); }
.ks-rank h3 { margin: 0.7rem 0 0.15rem; color: #fff; font-size: 1.4rem; text-shadow: 0 0 1.2rem color-mix(in srgb, var(--rc) 45%, transparent); }
.ks-rank-tag { margin: 0; min-height: 2.6em; color: #a9aebb; font-size: 0.86rem; line-height: 1.5; }
.ks-rank-price { margin: 0.6rem 0 0.8rem; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 700; }
.ks-rank-price s { margin-right: 0.3rem; color: #7d8496; font-size: 0.55em; }
.ks-rank-add { width: 100%; height: 2.9rem; font-size: 0.95rem; }
.ks-rank-perks { width: 100%; margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.07); list-style: none; text-align: left; }
.ks-rank-perks li { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.3rem 0; color: #d6d9e0; font-size: 0.86rem; line-height: 1.4; }
.ks-rank-perks .kz-ico { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.1rem; color: color-mix(in srgb, var(--rc) 70%, #fff); }
.ks-rank-more { all: unset; cursor: pointer; margin-top: auto; padding-top: 0.8rem; color: #8a90a2; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
.ks-rank-more:hover { color: #fff; }

/* tableau comparatif */
.ks-compare-wrap { margin-top: 1.4rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); overflow-x: auto; }
.ks-compare { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ks-compare caption { padding: 1rem 1.1rem 0.4rem; color: #fff; font-family: 'Gabarito', sans-serif; font-size: 1.1rem; font-weight: 800; text-align: left; letter-spacing: 0.04em; text-transform: uppercase; }
.ks-compare th, .ks-compare td { padding: 0.65rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-align: center; }
.ks-compare thead th { color: var(--rc, #fff); font-family: 'Gabarito', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid color-mix(in srgb, var(--rc, #fff) 55%, transparent); }
.ks-compare thead th:first-child { color: #8a90a2; font-size: 0.78rem; border-bottom-color: rgba(255, 255, 255, 0.1); }
.ks-compare th[scope="row"], .ks-compare thead th:first-child, .ks-compare tfoot th { text-align: left; color: #d6d9e0; font-weight: 600; }
.ks-compare tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.ks-compare tbody tr:hover { background: rgba(139, 61, 255, 0.07); }
.ks-compare td { color: #fff; font-weight: 600; }
.ks-compare .kz-ico { width: 1.1rem; height: 1.1rem; vertical-align: middle; }
.ks-compare .is-yes .kz-ico { padding: 0.2rem; border-radius: 50%; background: rgba(58, 208, 127, 0.16); color: #3ad07f; stroke-width: 3; }
.ks-compare .is-no .kz-ico { color: #5b6070; }
.ks-compare tfoot td, .ks-compare tfoot th { border-bottom: 0; padding: 0.9rem; }
.ks-compare tfoot .ks-add { width: 100%; }

/* deja un rank ? */
.ks-upsell {
  margin-top: 1.4rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 1rem;
  background: radial-gradient(60% 120% at 0% 0%, rgba(139, 61, 255, 0.16), transparent 70%), rgba(255, 255, 255, 0.02);
  border: 1px solid var(--k-purple-line);
}
.ks-upsell-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.ks-upsell-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; background: var(--k-purple-soft); border: 1px solid var(--k-purple-line); }
.ks-upsell-ico .kz-ico { width: 1.1rem; height: 1.1rem; color: var(--k-purple-3); }
.ks-upsell h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.ks-upsell p { margin: 0.1rem 0 0; color: #a9aebb; font-size: 0.86rem; }

.ks-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.7rem; }
.ks-mini {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
  padding: 0.55rem 0.6rem 0.55rem 0.55rem; border-radius: 0.85rem;
  background: #16141f; border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color .2s ease;
}
.ks-mini:hover { border-color: var(--k-purple-line); }
.ks-mini-media { all: unset; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; width: 4.6rem; height: 3.4rem; border-radius: 0.6rem; background: radial-gradient(circle, rgba(139, 61, 255, 0.2), transparent 70%), #121019; }
.ks-mini-media img { max-width: 92%; max-height: 92%; object-fit: contain; }
.ks-mini-body { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.ks-mini-name { all: unset; cursor: pointer; color: #fff; font-family: 'Gabarito', sans-serif; font-weight: 800; font-size: 0.92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-mini-name:hover { color: var(--k-purple-3); }
.ks-mini .ks-price { font-size: 1rem; }
.ks-add-icon { width: 2.5rem; height: 2.5rem; padding: 0; flex-shrink: 0; }
.ks-add-icon .kz-ico { width: 1.05rem; height: 1.05rem; }

.ks-crosslink {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: 0.9rem;
  border: 1px dashed rgba(245, 192, 74, 0.45); background: rgba(245, 192, 74, 0.06);
  color: #e8d9ad; font-size: 0.9rem; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.ks-crosslink b { color: #ffd97a; }
.ks-crosslink .kz-ico { width: 1rem; height: 1rem; color: #f5c04a; }
.ks-crosslink:hover { background: rgba(245, 192, 74, 0.12); border-color: rgba(245, 192, 74, 0.7); }

/* ---------- Colonne laterale ---------- */
.ks-who { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--k-purple-line); background: rgba(139, 61, 255, 0.1); }
.ks-who img { width: 2.6rem; height: 2.6rem; border-radius: 0.45rem; image-rendering: pixelated; background: #0f0e16; flex-shrink: 0; }
.ks-who-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ks-who-text span { color: #b9a6e8; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ks-who-text b { color: #fff; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-who:not(.is-set) .ks-who-text b { color: #8a90a2; font-weight: 600; font-size: 0.92rem; }
.ks-who-btn {
  flex-shrink: 0; padding: 0.42rem 0.75rem; border-radius: 0.55rem;
  border: 1px solid var(--k-purple-line); background: rgba(139, 61, 255, 0.18);
  color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.ks-who-btn:hover { background: rgba(139, 61, 255, 0.32); }

.store-page .cart-head { padding: 0.9rem 1.1rem; }
.store-page .cart-head h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.store-page .cart-head h3 .kz-ico { width: 1.05rem; height: 1.05rem; color: var(--k-purple-3); }
.store-page .ks-side .cart-items { max-height: 15rem; padding: 0.4rem 1.1rem; }
.store-page .cart-empty { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.3rem 0; }
.store-page .cart-empty .kz-ico { width: 1.7rem; height: 1.7rem; color: #4b4f5c; margin-bottom: 0.2rem; }
.store-page .cart-empty small { color: #6f7586; font-size: 0.76rem; }
.store-page .cart-item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; }
.ks-cart-img { width: 2.4rem; height: 2.4rem; object-fit: contain; border-radius: 0.45rem; background: #16141f; }
.store-page .cart-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-page .cart-foot { padding: 0.9rem 1.1rem 1rem; }
.store-page .cart-secure { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.6rem 0 0; color: #8a90a2; font-size: 0.76rem; }
.store-page .cart-secure .kz-ico { width: 0.85rem; height: 0.85rem; color: #3ad07f; }
.store-page .cart-secure b { color: #d6d9e0; }
.store-page .cart-terms { margin-top: 0.4rem; }
.ks-tebex-link { align-self: center; color: #7d8496; font-size: 0.78rem; text-decoration: none; }
.ks-tebex-link:hover { color: #fff; }

/* modale pseudo */
.ks-link-head { display: block; width: 3.5rem; height: 3.5rem; margin: 0 auto 0.6rem; border-radius: 0.6rem; image-rendering: pixelated; background: #0f0e16; }
.store-page .link-modal-card h3 { text-align: center; }

/* ---------- Tablette / mobile ---------- */
@media (max-width: 1200px) and (min-width: 981px) {
  .ks-layout { grid-template-columns: minmax(0, 1fr) 18rem; }
  .ks-tiles.has-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ks-tiles.has-feature .is-feature { grid-row: span 2; }
  .ks-rank { padding-inline: 0.9rem; }
}
@media (max-width: 980px) {
  .ks { padding: 0 1rem 3rem; }
  .ks-hero { padding-top: 5.6rem; }
  .ks-hero .section-heading { font-size: 1.75rem; }
  .ks-layout { grid-template-columns: 1fr; }
  .ks-side { position: static; max-height: none; overflow: visible; }
  .ks-nav { top: var(--ks-top, 4.4rem); }
  .ks-tiles.has-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ks-tiles.has-feature .is-feature { grid-column: 1 / -1; grid-row: span 2; }
  .ks-cat-head { align-items: flex-start; }
  .ks-back { display: none; }
  /* ranks : on fait defiler les colonnes horizontalement */
  .ks-rank-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 80%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; scrollbar-width: none;
  }
  .ks-rank-row::-webkit-scrollbar { display: none; }
  .ks-rank { scroll-snap-align: center; }
  .ks-compare th[scope="row"], .ks-compare thead th:first-child, .ks-compare tfoot th { position: sticky; left: 0; z-index: 1; background: #17151f; min-width: 9rem; }
  .ks-compare th, .ks-compare td { padding: 0.6rem 0.7rem; }
}
@media (max-width: 560px) {
  .ks-tiles { grid-auto-rows: 11.5rem; gap: 0.7rem; }
  .ks-tile-body { padding: 0.6rem 0.75rem 0.7rem; }
  .ks-tile-name { font-size: 0.95rem; }
  .ks-tile:not(.is-feature) .ks-tile-text { display: none; }
  .ks-tile:not(.is-feature) .ks-tile-go { display: none; }
  .ks-tile.is-feature .ks-tile-name { font-size: 1.35rem; }
  .ks-tile.is-feature .ks-tile-meta { flex-wrap: wrap; }
  .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .ks-card-media { height: 7rem; }
  .ks-card-media img { max-height: 5.8rem; }
  .ks-card-body { padding: 0.75rem; }
  .ks-card h3 { font-size: 0.9rem; }
  .ks-card-desc { display: none; }
  .ks-card-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .ks-price { font-size: 1.05rem; }
  .ks-cat-title h2 { font-size: 1.3rem; }
  .ks-trust li { font-size: 0.74rem; }
}

/* nombre de colonnes choisi selon le nombre d'articles (grand ecran) */
@media (min-width: 1201px) {
  .ks-grid.has-cols { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}
.ks-side > * { flex-shrink: 0; }


/* =========================================================
   PAGE SOULS
   ========================================================= */
.ks-souls { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0.9rem; align-items: stretch; padding-top: 0.8rem; }
.ks-soul {
  --glow: calc(0.08 + var(--lvl, 0) * 0.22);
  position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0;
  padding: 2.1rem 0.9rem 1rem; border-radius: 1.1rem; text-align: center;
  background:
    radial-gradient(90% 55% at 50% 22%, rgba(168, 85, 247, var(--glow)), transparent 72%),
    linear-gradient(180deg, #1c1a2c, #13121c);
  border: 1px solid rgba(168, 85, 247, calc(0.12 + var(--lvl, 0) * 0.25));
  transition: transform .25s var(--k-ease), box-shadow .25s ease, border-color .25s ease;
}
.ks-soul:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.45), 0 0 2rem rgba(168, 85, 247, 0.15); }
.ks-soul.is-best {
  border-color: rgba(245, 192, 74, 0.6);
  background:
    radial-gradient(90% 55% at 50% 22%, rgba(245, 192, 74, 0.16), transparent 72%),
    radial-gradient(90% 70% at 50% 100%, rgba(168, 85, 247, 0.25), transparent 70%),
    linear-gradient(180deg, #221d31, #14121d);
  box-shadow: 0 0 2.4rem rgba(245, 192, 74, 0.12);
}
.ks-soul-best {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: linear-gradient(135deg, #f5c04a, #e0912f); color: #1b1408;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0.4rem 1rem rgba(245, 192, 74, 0.35);
}
.ks-soul-best .kz-ico { width: 0.85rem; height: 0.85rem; }
.ks-soul-bonus {
  position: absolute; top: 0.75rem; right: 0.75rem;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: rgba(58, 208, 127, 0.14); border: 1px solid rgba(58, 208, 127, 0.5);
  color: #8ff0b9; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.ks-soul-bonus.is-none { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #a9aebb; }
.ks-soul.is-best .ks-soul-bonus { top: 1rem; }
.ks-soul-art { all: unset; cursor: pointer; display: grid; place-items: center; width: 100%; height: 8.2rem; }
.ks-soul-art img { max-height: 7.8rem; max-width: 92%; object-fit: contain; filter: drop-shadow(0 0.6rem 1rem rgba(0, 0, 0, 0.5)); transition: transform .35s var(--k-ease); }
.ks-soul:hover .ks-soul-art img { transform: translateY(-4px) scale(1.06); }
.ks-soul-amount { display: flex; flex-direction: column; align-items: center; margin-top: 0.5rem; line-height: 1; }
.ks-soul-amount b {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700;
  background: linear-gradient(180deg, #fff 35%, #d6b8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ks-soul-amount span { margin-top: 0.25rem; color: #c9a8ff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.ks-soul-split { margin-top: 0.55rem; min-height: 1.3em; color: #a9aebb; font-size: 0.82rem; }
.ks-soul-split em { color: #8ff0b9; font-style: normal; font-weight: 700; }
.ks-soul-meter { width: 80%; height: 0.3rem; margin: 0.7rem 0 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ks-soul-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b3dff, #3ad07f); }
.ks-soul-price { margin: 0.7rem 0 0.75rem; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
.ks-soul-price s { margin-right: 0.25rem; color: #7d8496; font-size: 0.6em; }
.ks-soul-add { width: 100%; height: 2.6rem; margin-top: auto; font-size: 0.85rem; }
.ks-soul.is-best .ks-soul-add { box-shadow: 0 0.6rem 1.4rem rgba(233, 79, 79, 0.35); }

.ks-souls-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.ks-souls-info li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a9aebb; font-size: 0.84rem; line-height: 1.35;
}
.ks-souls-info b { color: #fff; }
.ks-souls-info .kz-ico { flex-shrink: 0; width: 1.6rem; height: 1.6rem; padding: 0.35rem; border-radius: 0.5rem; background: var(--k-purple-soft); color: var(--k-purple-3); }

@media (max-width: 1200px) {
  .ks-souls { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.4rem; }
}
@media (max-width: 560px) {
  .ks-souls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.6rem; }
  .ks-soul { padding: 1.9rem 0.6rem 0.8rem; }
  .ks-soul.is-best { grid-column: 1 / -1; }
  .ks-soul-art { height: 6rem; }
  .ks-soul-art img { max-height: 5.8rem; }
  .ks-soul-amount b { font-size: 1.6rem; }
  .ks-soul-price { font-size: 1.2rem; }
  .ks-soul-add { font-size: 0.78rem; }
  .ks-soul-bonus { top: 0.5rem; right: 0.5rem; font-size: 0.6rem; }
  .ks-souls-info { grid-template-columns: 1fr; }
}

/* =========================================================
   TUILE RANKS (accueil du store) : la gamme en escalier
   ========================================================= */
.ks-rtile { padding: 1.25rem 1.3rem 1.1rem; gap: 0.9rem; }
.ks-rtile-head { display: flex; flex-direction: column; gap: 0.3rem; }
.ks-rtile .ks-tile-name { font-size: 1.6rem; }
.ks-rtile .ks-tile-text { -webkit-line-clamp: 2; }
.ks-rtile-line {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: end; gap: 0.6rem;
}
.ks-rtile-rank {
  --lift: calc((var(--n) - 1 - var(--i)) * 0.7rem);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  height: calc(100% - var(--lift)); min-height: 0;
  padding: 0.6rem 0.4rem 0.7rem; border-radius: 0.9rem;
  background:
    radial-gradient(90% 60% at 50% 35%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, rgba(255, 255, 255, 0.02)), rgba(0, 0, 0, 0.25));
  border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
  border-top: 2px solid var(--rc);
  transition: transform .3s var(--k-ease), border-color .25s ease;
}
.ks-rtile-art { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.ks-rtile-art img {
  max-height: 100%; max-width: 92%; object-fit: contain;
  filter: drop-shadow(0 0.6rem 0.9rem rgba(0, 0, 0, 0.55));
  transition: transform .35s var(--k-ease);
}
.ks-rtile-rank b {
  color: #fff; font-family: 'Gabarito', sans-serif; font-size: 0.98rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  text-shadow: 0 0 0.9rem color-mix(in srgb, var(--rc) 55%, transparent);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ks-rtile-rank small {
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 700;
}
.ks-rtile-rank em {
  position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--rc); color: #fff;
  font-size: 0.6rem; font-style: normal; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ks-rtile:hover .ks-rtile-rank { transform: translateY(-3px); }
.ks-rtile:hover .ks-rtile-rank:nth-child(2n) { transform: translateY(-5px); }
.ks-rtile:hover .ks-rtile-art img { transform: scale(1.05); }
.ks-rtile .ks-tile-meta { margin-top: 0; }

@media (max-width: 560px) {
  .ks-rtile { padding: 1rem 0.9rem 0.9rem; }
  .ks-rtile .ks-tile-name { font-size: 1.3rem; }
  .ks-rtile-line { gap: 0.35rem; }
  .ks-rtile-rank { padding: 0.45rem 0.2rem 0.5rem; --lift: calc((var(--n) - 1 - var(--i)) * 0.45rem); }
  .ks-rtile-rank b { font-size: 0.72rem; }
  .ks-rtile-rank small { font-size: 0.68rem; padding: 0.1rem 0.35rem; }
}
.ks-rtile-line { padding-top: 0.75rem; }

/* Abonnement (Kaizen+) : haut de gamme, dore */
.ks-rtile-rank.is-sub {
  border-top-width: 3px;
  box-shadow: 0 0 1.6rem color-mix(in srgb, var(--rc) 22%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--rc) 25%, transparent);
}
.ks-rtile-rank.is-sub em { color: #1b1408; }
.ks-rtile-rank small i { margin-left: 0.15rem; color: #c9ced8; font-style: normal; font-weight: 500; font-size: 0.85em; }
.ks-rank.is-sub .ks-rank-badge { color: #1b1408; }
.ks-rank-per { margin-left: 0.35rem; color: #a9aebb; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500; }

/* place pour les badges (Monthly, Best perks) au-dessus des ranks les plus hauts */
.ks-rtile-line { padding-top: 1.3rem; }
.ks-rtile-rank { --lift: calc((var(--n) - 1 - var(--i)) * 0.55rem); }
.ks-rtile-rank em { top: -0.7rem; box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.35); }
