/* ==========================================================================
   BOUTIQUE DES KITS INKORE (24/11/2026)
   Complète /styles.css : mêmes couleurs, mêmes polices locales, même en-tête.
   ========================================================================== */

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 7px;
}

.kits-page .internal-hero h1 {
  max-width: 760px;
}

/* Raccourcis vers les 5 kits */
.kit-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.kit-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(10, 13, 11, 0.6);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.kit-index a:hover {
  border-color: var(--gold);
  color: var(--ink-bright);
}

/* Bloc vendeur */
.kit-seller {
  max-width: 760px;
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 1px solid var(--gold);
  background: rgba(199, 157, 115, 0.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.kit-seller p + p {
  margin-top: 8px;
}

.kit-seller a,
.kit-check label a,
.kit-hint a,
.kit-thanks .internal-intro a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.kit-seller a:hover,
.kit-check label a:hover,
.kit-thanks .internal-intro a:hover {
  color: var(--ink-bright);
}

/* Cartes des kits */
.kits-list {
  display: grid;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 64px) 72px;
}

.kit-card {
  display: grid;
  gap: 28px;
  min-width: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 157, 115, 0.11), transparent 16rem),
    linear-gradient(160deg, rgba(15, 18, 16, 0.96), rgba(7, 9, 8, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  scroll-margin-top: 24px;
  overflow-wrap: anywhere;
}

.kit-main,
.kit-side {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.kit-head h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 6vw, 40px);
  overflow-wrap: normal;
}

.kit-tagline {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.kit-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  background: var(--bg-soft);
}

.kit-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.kit-for {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.kit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.kit-price strong {
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.kit-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.kit-includes h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.kit-includes ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.kit-includes li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.kit-includes li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.kit-card .button,
.kit-thanks .button {
  min-height: 52px;
  padding: 12px 20px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-align: center;
}

.kit-demo {
  width: 100%;
}

/* Achat : deux cases puis le bouton */
.kit-buy {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 10, 9, 0.78);
}

.kit-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kit-check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.kit-check input:checked {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

.kit-check input:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #080604;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.kit-check input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.kit-check label {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.kit-buy-button {
  width: 100%;
  border: 1px solid rgba(246, 209, 168, 0.72);
  background: linear-gradient(180deg, #d8b28b 0%, #ba8e63 100%);
  color: #080604;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(199, 157, 115, 0.25);
}

.kit-buy-button:hover {
  background: linear-gradient(180deg, #e4be97 0%, #c5986c 100%);
}

/* Tant que les deux cases ne sont pas cochées : visible, atteignable au clavier, sans effet. */
.kit-buy-button[aria-disabled="true"] {
  border-color: var(--line);
  background: rgba(12, 15, 13, 0.7);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.kit-buy-button[aria-busy="true"] {
  cursor: progress;
  transform: none;
}

.kit-buy-button[aria-busy="true"]::after,
.kit-wait::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: kit-spin 0.8s linear infinite;
}

.kit-wait::after {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.4em;
  border-color: var(--gold);
  border-right-color: transparent;
  vertical-align: middle;
}

@keyframes kit-spin {
  to {
    transform: rotate(360deg);
  }
}

.kit-hint {
  min-height: 1.6em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Pages de retour après paiement */
.kits-js [data-thanks]:not([data-ready]) {
  visibility: hidden;
}

.kit-thanks h1 {
  max-width: 820px;
  font-size: clamp(38px, 8vw, 64px);
}

.kit-bought {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.kit-thanks .internal-intro + .internal-intro {
  margin-top: 12px;
}

.kit-actions {
  margin: 8px 0 28px;
}

.kit-legal {
  max-width: 760px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 960px) {
  .kit-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 44px;
    padding: 36px;
  }
}

@media (max-width: 579px) {
  .kits-list {
    padding-top: 40px;
    gap: 22px;
  }

  .kit-thanks .button {
    width: 100%;
  }

  .kit-price strong {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kit-buy-button[aria-busy="true"]::after,
  .kit-wait::after {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.6;
  }
}
