/* =========================================================================
   Kaetel&Kids — styles des pages (mobile d'abord)
   Les variables de couleur viennent de assets/css/theme.css (chargé avant).
   Valeurs de repli ci-dessous à spécificité nulle : le thème est prioritaire.
   ========================================================================= */
:where(:root) {
  --kk-primary: #F4A098; --kk-primary-dark: #B5493D; --kk-secondary: #A3D2C0; --kk-accent: #F9D393;
  --kk-bg: #FFF8F3; --kk-surface: #fff; --kk-text: #3F4458; --kk-muted: #6B6F82; --kk-border: #EDE3DA;
  --kk-success: #2F7D5B; --kk-danger: #C0392B; --kk-radius: 12px; --kk-radius-lg: 24px;
  --kk-shadow: 0 6px 20px rgba(63, 68, 88, .08), 0 2px 6px rgba(63, 68, 88, .06);
  --kk-font-title: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --kk-font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --kk-primary-light: #FDE7E3; --kk-secondary-light: #E6F4EE; --kk-secondary-dark: #3E7F6A;
  --kk-accent-light: #FFF3DC; --kk-lavender: #C9BCEB; --kk-sky: #AEDCF2;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--kk-bg); color: var(--kk-text);
  font: 16px/1.55 var(--kk-font-body); min-height: 100vh; display: flex; flex-direction: column;
}
body.kk-noscroll { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--kk-primary-dark); }
h1, h2, h3 { font-family: var(--kk-font-title); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--kk-primary-dark); outline-offset: 2px; border-radius: 6px; }
.kk-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.kk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kk-muted { color: var(--kk-muted); }
.kk-skip { position: absolute; left: -999px; top: 8px; background: var(--kk-surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.kk-skip:focus { left: 8px; }

/* ---------- icônes ---------- */
.kk-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; display: inline-block; }
.kk-ico--md { width: 20px; height: 20px; }
.kk-ico--lg { width: 24px; height: 24px; }
.kk-tag .kk-ico, .kk-reassure .kk-ico, .kk-pinfo__unique .kk-ico { color: var(--kk-primary-dark); }
.kk-reassure .kk-ico { color: var(--kk-secondary-dark); }
.kk-footer .kk-ico { color: var(--kk-primary); }
.kk-noimg .kk-ico { width: 40%; height: 40%; max-width: 64px; max-height: 64px; opacity: .6; }

/* ---------- boutons ---------- */
.kk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--kk-primary-dark); border-radius: 999px;
  background: var(--kk-primary-dark); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.kk-btn:hover { transform: translateY(-1px); box-shadow: var(--kk-shadow); }
.kk-btn:disabled { background: var(--kk-border); border-color: var(--kk-border); color: var(--kk-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.kk-btn--ghost { background: transparent; color: var(--kk-primary-dark); }
.kk-btn--success { background: var(--kk-success); border-color: var(--kk-success); }
.kk-btn--soft { background: var(--kk-primary); border-color: var(--kk-primary); color: var(--kk-text); }
.kk-btn--block { width: 100%; }
.kk-linkbtn {
  display: inline-block; background: none; border: 0; padding: 8px 0; color: var(--kk-primary-dark);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.kk-linkbtn--danger { color: var(--kk-danger); }
.kk-input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 2px solid var(--kk-border); border-radius: var(--kk-radius);
  background: var(--kk-surface); transition: border-color .15s;
}
.kk-input:focus { border-color: var(--kk-primary); outline: none; box-shadow: 0 0 0 3px var(--kk-primary-light); }
select.kk-input { padding-right: 32px; }

/* ---------- header ---------- */
.kk-header { background: var(--kk-surface); box-shadow: 0 1px 0 var(--kk-border); position: relative; z-index: 40; }
@media (min-width: 900px) { .kk-header { position: sticky; top: 0; } }
.kk-topbar { background: var(--kk-secondary-light); color: var(--kk-secondary-dark); text-align: center; font-size: .82rem; font-weight: 700; padding: 6px 12px; }
.kk-header__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo cart" "search search search"; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; }
.kk-burger { grid-area: burger; width: 44px; height: 44px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer; border-radius: 10px; }
.kk-burger span { display: block; height: 3px; background: var(--kk-text); border-radius: 3px; }
.kk-logo { grid-area: logo; justify-self: center; display: flex; align-items: center; text-decoration: none; }
.kk-logo img { height: 46px; width: auto; }
.kk-logo__text { font-family: var(--kk-font-title); font-weight: 700; font-size: 1.5rem; color: var(--kk-text); }
/* recherche : pilule douce, centrée, loupe dessinée main, anneau menthe au focus */
.kk-search {
  grid-area: search; justify-self: center; width: 100%; max-width: 520px;
  display: flex; align-items: center; gap: 4px; padding: 2px 2px 2px 18px;
  background: var(--kk-surface); border: 2px solid var(--kk-border); border-radius: 999px;
  box-shadow: 0 3px 0 var(--kk-primary-light), 0 6px 16px rgba(63, 68, 88, .06);
  transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.kk-search:hover { border-color: var(--kk-secondary); }
.kk-search:focus-within {
  border-color: var(--kk-secondary-dark); transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--kk-secondary-light), 0 0 0 6px var(--kk-secondary), 0 8px 20px rgba(62, 127, 106, .14);
}
.kk-search input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; border: 0; background: none; padding: 6px 0; outline: none; font-weight: 600; }
.kk-search input::placeholder { color: var(--kk-muted); font-weight: 600; opacity: 1; }
.kk-search input::-webkit-search-cancel-button { cursor: pointer; }
.kk-search button {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--kk-secondary); color: var(--kk-text); transition: background .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.kk-search button .kk-ico { width: 22px; height: 22px; stroke-width: 2.2; transform-origin: 40% 40%; }
.kk-search button:hover { background: var(--kk-secondary-dark); color: #fff; }
.kk-search:focus-within button .kk-ico { animation: kk-loupe-peek 1.1s ease-in-out; }
@keyframes kk-loupe-peek {
  0%, 100% { transform: none; } 25% { transform: translate(-2px, -1px) rotate(-12deg); }
  55% { transform: translate(2px, -1px) rotate(10deg); } 80% { transform: rotate(-3deg); }
}

/* panier du header : petit sac arrondi, poignée en cœur, visage souriant */
.kk-cartlink {
  grid-area: cart; justify-self: end; position: relative; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 18px; text-decoration: none; transform-origin: 50% 90%;
}
.kk-cartlink:hover { background: var(--kk-primary-light); }
.kk-cartbag { width: 42px; height: 42px; overflow: visible; transform-origin: 50% 90%; }
.kk-cartbag__handle { fill: none; stroke: var(--kk-primary-dark); stroke-width: 2.2; stroke-linejoin: round; }
.kk-cartbag__body { fill: var(--kk-primary); stroke: var(--kk-primary-dark); stroke-width: 1.8; stroke-linejoin: round; }
.kk-cartbag__fold { fill: var(--kk-secondary); stroke: var(--kk-primary-dark); stroke-width: 1.8; stroke-linejoin: round; }
.kk-cartbag__eye { fill: var(--kk-text); }
.kk-cartbag__cheek { fill: #FDE7E3; opacity: .85; }
.kk-cartbag__smile { fill: none; stroke: var(--kk-text); stroke-width: 1.7; stroke-linecap: round; }
.kk-cartbag__star { fill: var(--kk-accent); stroke: #E7B85C; stroke-width: .8; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.kk-cartlink:hover .kk-cartbag, .kk-cartlink:focus-visible .kk-cartbag { animation: kk-bag-wiggle .9s ease-in-out; }
.kk-cartlink:hover .kk-cartbag__star { animation: kk-star-twinkle .9s ease-in-out; }
@keyframes kk-bag-wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-3deg); } }
@keyframes kk-star-twinkle { 0%, 100% { transform: none; } 50% { transform: scale(1.5) rotate(45deg); } }
/* compteur : bulle-étiquette jaune */
.kk-cartlink__count {
  position: absolute; top: -3px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px 12px 12px 4px; border: 2px solid var(--kk-surface);
  background: var(--kk-accent); color: var(--kk-text); font-family: var(--kk-font-title); font-size: .8rem; font-weight: 700; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 4px rgba(63, 68, 88, .15);
}
.kk-cartlink__count.is-empty { background: #F1ECE7; color: var(--kk-muted); box-shadow: none; }
.kk-nav { display: none; border-top: 1px solid var(--kk-border); }
.kk-nav.is-open { display: block; }
.kk-nav ul { list-style: none; margin: 0; padding: 8px 16px 12px; display: flex; flex-direction: column; }
.kk-nav a { display: block; padding: 10px 4px; text-decoration: none; color: var(--kk-text); font-weight: 700; border-bottom: 1px dashed var(--kk-border); }
.kk-nav a.is-active, .kk-nav a:hover { color: var(--kk-primary-dark); }

@media (min-width: 900px) {
  /* colonnes latérales égales : la recherche est réellement centrée dans la page */
  .kk-header__inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 540px) minmax(0, 1fr); grid-template-areas: "logo search cart"; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
  .kk-burger { display: none; }
  .kk-logo { justify-self: start; }
  .kk-logo img { height: 58px; }
  .kk-search { max-width: 540px; }
  .kk-nav { display: block; }
  .kk-nav ul { flex-direction: row; justify-content: center; gap: 8px; padding: 0 16px; }
  .kk-nav a { border: 0; padding: 10px 14px; border-bottom: 3px solid transparent; }
  .kk-nav a.is-active { border-bottom-color: var(--kk-primary); }
}

/* ---------- footer ---------- */
.kk-footer { background: var(--kk-text); color: #F3EEE9; margin-top: 56px; }
.kk-footer a { color: #FFE3DD; text-decoration: none; }
.kk-footer a:hover { text-decoration: underline; }
.kk-footer__inner { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 24px; grid-template-columns: 1fr 1fr; }
.kk-footer__col:first-child { grid-column: 1 / -1; }
.kk-footer__brand { font-family: var(--kk-font-title); font-size: 1.5rem; margin: 0 0 4px; color: #fff; }
.kk-footer__title { font-weight: 800; color: var(--kk-accent); margin: 0 0 8px; }
.kk-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kk-footer__copy { text-align: center; font-size: .85rem; padding: 16px; margin: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 900px) {
  .kk-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .kk-footer__col:first-child { grid-column: auto; }
}

/* ---------- sections, titres ---------- */
.kk-page { padding-top: 20px; }
.kk-section { margin-top: 40px; }
.kk-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kk-section__head h2 { margin: 0; }
.kk-section__head a { font-weight: 700; white-space: nowrap; }
.kk-crumbs { font-size: .88rem; color: var(--kk-muted); margin: 4px 0 16px; }
.kk-crumbs a { color: var(--kk-muted); }

/* ---------- accueil ---------- */
.kk-hero {
  position: relative; overflow: hidden; border-radius: var(--kk-radius-lg); margin-top: 16px;
  background: #FFF0EA url("../assets/hero.svg") 70% 100% / cover no-repeat; min-height: 340px;
  display: flex; align-items: center;
}
.kk-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 248, 243, .95) 0%, rgba(255, 248, 243, .85) 55%, rgba(255, 248, 243, 0) 100%); }
.kk-hero__content { position: relative; padding: 32px 24px; max-width: 560px; }
.kk-hero__kicker { display: inline-block; background: var(--kk-secondary); color: var(--kk-text); font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.kk-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 12px; }
.kk-hero h1 em { font-style: normal; color: var(--kk-primary-dark); }
.kk-hero p { font-size: 1.05rem; margin: 0 0 20px; color: var(--kk-text); }
.kk-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .kk-hero { min-height: 420px; background-position: center bottom; }
  .kk-hero__content { padding: 48px 56px; }
}

.kk-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kk-shortcut {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 8px;
  border-radius: var(--kk-radius-lg); text-decoration: none; color: var(--kk-text); font-family: var(--kk-font-title);
  font-weight: 600; font-size: 1.15rem; transition: transform .15s, box-shadow .15s; text-align: center;
}
.kk-shortcut:hover { transform: translateY(-3px); box-shadow: var(--kk-shadow); }
.kk-shortcut__icon { display: block; width: 80px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; flex-shrink: 0; }
.kk-shortcut small { font-family: var(--kk-font-body); font-weight: 600; font-size: .8rem; color: var(--kk-muted); }
.kk-shortcut--fille { background: var(--kk-primary-light); }
.kk-shortcut--garcon { background: #E3F1FA; }
.kk-shortcut--bebe { background: var(--kk-accent-light); }
@media (min-width: 900px) { .kk-shortcut { padding: 32px 16px; font-size: 1.5rem; } .kk-shortcut__icon { width: 104px; } }

.kk-ages { display: flex; flex-wrap: wrap; gap: 10px; }
.kk-age {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 104px; padding: 12px 16px; border-radius: var(--kk-radius);
  background: var(--kk-surface); border: 2px solid var(--kk-border); text-decoration: none; color: var(--kk-text); font-weight: 800;
}
.kk-age small { color: var(--kk-muted); font-weight: 600; }
.kk-age:hover { border-color: var(--kk-primary); background: var(--kk-primary-light); }

.kk-universes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .kk-universes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.kk-univers > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.kk-univers {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--kk-radius); text-decoration: none;
  color: var(--kk-text); background: var(--kk-surface); box-shadow: var(--kk-shadow); font-weight: 800;
}
.kk-univers:hover { outline: 2px solid var(--kk-secondary); }
.kk-univers__emoji { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--kk-secondary-light); color: var(--kk-secondary-dark); }
.kk-univers__emoji .kk-ico { width: 24px; height: 24px; }
.kk-univers--img .kk-univers__emoji { width: 60px; height: 60px; background: none; }
.kk-univers__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kk-univers--img { flex-direction: column; text-align: center; justify-content: center; padding: 16px 10px; }
.kk-univers--img > span:last-child { overflow-wrap: normal; hyphens: auto; }
@media (min-width: 900px) { .kk-univers--img .kk-univers__emoji { width: 76px; height: 76px; } }
.kk-univers small { display: block; color: var(--kk-muted); font-weight: 600; }

.kk-perks { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 700px) { .kk-perks { grid-template-columns: repeat(3, 1fr); } }
.kk-perk { background: var(--kk-secondary-light); border-radius: var(--kk-radius-lg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.kk-perk__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--kk-surface); color: var(--kk-secondary-dark); }
.kk-perk__icon .kk-ico { width: 24px; height: 24px; }
.kk-perk h3 { margin: 0 0 4px; font-size: 1.1rem; }
.kk-perk p { margin: 0; color: var(--kk-muted); font-size: .95rem; }

/* ---------- grille / cartes produits ---------- */
.kk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .kk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .kk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.kk-grid--scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(160px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.kk-grid--scroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .kk-grid--scroll { grid-auto-columns: minmax(200px, 23%); } }

.kk-card { position: relative; background: var(--kk-surface); border-radius: var(--kk-radius); overflow: hidden; box-shadow: var(--kk-shadow); transition: transform .15s; }
.kk-card:hover { transform: translateY(-3px); }
.kk-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.kk-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--kk-primary-light); }
.kk-card__img, .kk-card__media .kk-noimg { width: 100%; height: 100%; object-fit: cover; }
.kk-card.is-reserved .kk-card__img { filter: grayscale(.6) opacity(.7); }
.kk-card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kk-card__body { padding: 10px 12px 14px; }
.kk-card__title { font-family: var(--kk-font-body); font-weight: 700; font-size: .92rem; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.kk-card__meta { font-size: .8rem; color: var(--kk-muted); margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-card__price { margin: 0; font-weight: 800; color: var(--kk-primary-dark); font-size: 1.05rem; }
/* bouton « étiquette » : pastille festonnée suspendue à une ficelle en haut à droite
   de la photo ; se balance au survol, se retourne en menthe + coche à l'ajout */
.kk-card__add {
  position: absolute; top: 0; right: 10px; z-index: 2; width: 48px; height: 60px; padding: 0; border: 0;
  background: none; color: var(--kk-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.kk-card__tag { position: absolute; inset: 0; display: block; transform-origin: 56% 0; filter: drop-shadow(0 3px 3px rgba(63, 68, 88, .2)); }
.kk-card__tag-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kk-card__tag-string { fill: none; stroke: var(--kk-secondary-dark); stroke-width: 2; stroke-linecap: round; }
.kk-card__tag-body { fill: var(--kk-primary); stroke: var(--kk-primary-dark); stroke-width: 1.6; stroke-linejoin: round; transition: fill .35s, stroke .35s; }
.kk-card__tag-stitch { fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 2.2 2.4; stroke-linecap: round; opacity: .9; }
.kk-card__tag-hole { fill: var(--kk-bg); stroke: var(--kk-primary-dark); stroke-width: 1.4; transition: stroke .35s; }
.kk-card__tag-star { fill: var(--kk-accent); stroke: #D9A441; stroke-width: .7; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.kk-card__add .kk-ico {
  position: absolute; left: 50%; top: 66.6%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  stroke-width: 3; color: var(--kk-text); vertical-align: 0;
}
/* (sélecteurs renforcés : priment sur ambient.css / fx.css chargés après) */
.kk-card .kk-card__add:not(.is-in):hover, .kk-card .kk-card__add:hover { transform: none; }
.kk-card .kk-card__add:not(.is-in):hover .kk-card__tag,
.kk-card .kk-card__add:not(.is-in):focus-visible .kk-card__tag { animation: kk-tag-swing 1.3s ease-in-out infinite; }
.kk-card .kk-card__add:hover .kk-card__tag-star { transform: scale(1.45) rotate(45deg); }
.kk-card .kk-card__add:active .kk-card__tag { scale: .92; }
.kk-card .kk-card__add:focus-visible { outline: none; }
.kk-card .kk-card__add:focus-visible .kk-card__tag-body { stroke: var(--kk-text); stroke-width: 2.6; }
@keyframes kk-tag-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(9deg); } 75% { transform: rotate(-9deg); } }
/* dans le panier : étiquette menthe + coche */
.kk-card .kk-card__add.is-in { animation: none; }
.kk-card__add.is-in .kk-card__tag-body { fill: var(--kk-secondary); stroke: var(--kk-secondary-dark); }
.kk-card__add.is-in .kk-card__tag-hole { stroke: var(--kk-secondary-dark); }
.kk-card__add.is-in .kk-ico { color: #24584A; }
.kk-card__add.is-just-in .kk-card__tag { animation: kk-tag-flip .75s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes kk-tag-flip {
  0% { transform: rotateY(0) rotate(0); } 45% { transform: rotateY(180deg) rotate(-10deg) scale(1.12); }
  75% { transform: rotateY(360deg) rotate(6deg); } 100% { transform: rotateY(360deg) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .kk-card .kk-card__add .kk-card__tag, .kk-search button .kk-ico, .kk-cartbag, .kk-cartbag__star { animation: none !important; }
  .kk-search:focus-within { transform: none; }
}
.kk-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--kk-surface); }
.kk-badge--reserved { background: var(--kk-text); color: #fff; }
.kk-badge--new { background: var(--kk-accent); color: var(--kk-text); }
.kk-noimg { display: grid; place-items: center; color: var(--kk-primary-dark); font-size: 2.5rem; background: var(--kk-primary-light); width: 100%; height: 100%; }

/* ---------- boutique ---------- */
.kk-shop__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.kk-shop { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 900px) { .kk-shop { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }

.kk-filters { background: var(--kk-surface); }
.kk-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--kk-border); }
.kk-filters__head h2 { margin: 0; font-size: 1.3rem; }
.kk-filters__close { width: 44px; height: 44px; border: 0; background: var(--kk-bg); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.kk-filters__body { padding: 8px 16px 16px; }
.kk-filters__foot { padding: 12px 16px; border-top: 1px solid var(--kk-border); background: var(--kk-surface); }
@media (max-width: 899px) {
  .kk-filters {
    position: fixed; inset: 0 auto 0 0; width: min(92vw, 380px); z-index: 60; display: flex; flex-direction: column;
    transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .15);
  }
  .kk-filters.is-open { transform: none; }
  .kk-filters__body { flex: 1; overflow-y: auto; }
  .kk-filters::after { content: ""; position: fixed; inset: 0 0 0 100%; width: 100vw; background: rgba(63, 68, 88, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .kk-filters.is-open::after { opacity: 1; pointer-events: auto; }
}
@media (min-width: 900px) {
  .kk-filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; border-radius: var(--kk-radius); box-shadow: var(--kk-shadow); }
  .kk-filters__close, .kk-filters__foot, .kk-filters-open { display: none !important; }
  .kk-filters__head { padding: 14px 16px; }
}
.kk-facet { border-bottom: 1px solid var(--kk-border); padding: 4px 0; }
.kk-facet summary { cursor: pointer; padding: 10px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.kk-facet summary::-webkit-details-marker { display: none; }
.kk-facet summary::after { content: "+"; font-size: 1.3rem; color: var(--kk-muted); margin-left: auto; padding-left: 8px; }
.kk-facet[open] summary::after { content: "–"; }
.kk-facet__n:not(:empty) { background: var(--kk-primary); border-radius: 999px; font-size: .75rem; padding: 1px 8px; margin-left: 6px; }
.kk-facet__body { padding-bottom: 10px; }
.kk-facet__search { margin-bottom: 8px; min-height: 38px; padding: 6px 12px; }
.kk-facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kk-facet__list li { display: flex; }
.kk-facet__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kk-facet__list label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; border-radius: 8px; font-size: .95rem; }
.kk-facet__list label::before { content: ""; width: 20px; height: 20px; flex: none; border: 2px solid var(--kk-border); border-radius: 6px; background: var(--kk-surface); }
.kk-facet__list input:checked + label::before { background: var(--kk-primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--kk-primary-dark); }
.kk-facet__list input:focus-visible + label { outline: 3px solid var(--kk-primary-dark); }
.kk-facet__list label:hover { background: var(--kk-bg); }
.kk-opt__count { color: var(--kk-muted); font-size: .82rem; margin-left: auto; }
.kk-facet__list li.is-empty label { opacity: .55; }
.kk-facet__list--chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-facet__list--chips label { padding: 6px 12px; border: 2px solid var(--kk-border); border-radius: 999px; font-size: .88rem; gap: 4px; }
.kk-facet__list--chips label::before { display: none; }
.kk-facet__list--chips input:checked + label { background: var(--kk-primary); border-color: var(--kk-primary); font-weight: 800; }
.kk-facet__list--chips .kk-opt__count { margin-left: 2px; font-size: .75rem; }
.kk-facet__hint { font-size: .8rem; color: var(--kk-muted); margin: 6px 0 0; }
.kk-price { display: flex; gap: 10px; }
.kk-price label { display: flex; align-items: center; gap: 6px; font-size: .9rem; flex: 1; }
.kk-price .kk-input { min-height: 38px; padding: 6px 8px; }
.kk-switch { display: flex; gap: 8px; align-items: center; padding: 12px 0 4px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.kk-switch input { width: 18px; height: 18px; accent-color: var(--kk-primary-dark); }

.kk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.kk-toolbar__count { font-weight: 800; margin: 0; }
.kk-toolbar__right { display: flex; gap: 8px; align-items: center; }
.kk-toolbar select { width: auto; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.kk-filters-open { min-height: 42px; padding: 8px 18px; }
.kk-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.kk-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--kk-primary-light); color: var(--kk-text); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.kk-chip:hover { background: var(--kk-primary); }
.kk-more { text-align: center; margin-top: 28px; }
.kk-more p { color: var(--kk-muted); font-size: .9rem; margin: 0 0 10px; }
.kk-empty { text-align: center; padding: 48px 16px; grid-column: 1 / -1; }
.kk-empty__emoji { margin: 0 auto 8px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--kk-primary-light); color: var(--kk-primary-dark); }
.kk-empty__emoji .kk-ico { width: 36px; height: 36px; }

/* ---------- fiche produit ---------- */
.kk-product { display: grid; gap: 24px; }
@media (min-width: 900px) { .kk-product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.kk-gallery__main { position: relative; aspect-ratio: 3 / 4; border-radius: var(--kk-radius-lg); overflow: hidden; background: var(--kk-primary-light); box-shadow: var(--kk-shadow); }
.kk-gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kk-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--kk-shadow); color: var(--kk-text); }
.kk-gallery__nav--prev { left: 10px; }
.kk-gallery__nav--next { right: 10px; }
.kk-gallery__pos { position: absolute; bottom: 10px; right: 12px; background: rgba(63, 68, 88, .75); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.kk-gallery__badge { position: absolute; top: 12px; left: 12px; font-size: .9rem; padding: 6px 14px; }
.kk-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.kk-gallery__thumb { flex: none; width: 68px; height: 84px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--kk-primary-light); }
.kk-gallery__thumb img, .kk-gallery__thumb .kk-noimg { width: 100%; height: 100%; object-fit: cover; font-size: 1.2rem; }
.kk-gallery__thumb.is-active { border-color: var(--kk-primary-dark); }
.kk-pinfo__title { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.kk-pinfo__price { font-size: 2rem; font-weight: 800; color: var(--kk-primary-dark); margin: 0 0 12px; font-family: var(--kk-font-title); }
.kk-pinfo__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kk-tag { background: var(--kk-secondary-light); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }
.kk-pinfo__buy { display: grid; gap: 6px; justify-items: center; }
.kk-pinfo__unique { background: var(--kk-accent-light); padding: 10px 14px; border-radius: var(--kk-radius); font-size: .92rem; margin: 14px 0; }
.kk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--kk-border); border-radius: var(--kk-radius); overflow: hidden; margin: 0 0 16px; }
.kk-facts div { background: var(--kk-surface); padding: 10px 14px; }
.kk-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--kk-muted); font-weight: 700; }
.kk-facts dd { margin: 0; font-weight: 700; }
.kk-reassure { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--kk-muted); font-size: .92rem; }
.kk-note { font-size: .85rem; color: var(--kk-muted); margin: 10px 0 0; }

/* ---------- panier ---------- */
.kk-cart { display: grid; gap: 24px; }
@media (min-width: 900px) { .kk-cart { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.kk-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kk-cart__item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--kk-surface); border-radius: var(--kk-radius); padding: 12px; box-shadow: var(--kk-shadow); }
.kk-cart__item.is-reserved { opacity: .7; }
.kk-cart__thumb { width: 84px; height: 104px; border-radius: 10px; overflow: hidden; display: block; background: var(--kk-primary-light); }
.kk-cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kk-cart__title { font-weight: 800; color: var(--kk-text); text-decoration: none; }
.kk-cart__meta, .kk-cart__qty { font-size: .85rem; color: var(--kk-muted); margin: 4px 0 0; }
.kk-cart__warn { color: var(--kk-danger); font-weight: 700; font-size: .85rem; margin: 4px 0 0; }
.kk-cart__right { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
.kk-cart__price { font-weight: 800; color: var(--kk-primary-dark); margin: 0; font-size: 1.1rem; }
@media (min-width: 640px) {
  .kk-cart__item { grid-template-columns: 96px 1fr auto; }
  .kk-cart__thumb { width: 96px; height: 120px; }
  .kk-cart__right { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: space-between; }
}
.kk-summary { background: var(--kk-surface); border-radius: var(--kk-radius-lg); padding: 20px; box-shadow: var(--kk-shadow); display: grid; gap: 10px; }
.kk-summary h2, .kk-summary h3 { margin: 0 0 4px; font-size: 1.3rem; }
.kk-summary__row { display: flex; justify-content: space-between; gap: 12px; }
.kk-summary__total { border-top: 2px dashed var(--kk-border); padding-top: 10px; font-weight: 800; font-size: 1.2rem; }
.kk-summary__hint { margin: 0; background: var(--kk-accent-light); padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.kk-summary .kk-linkbtn { justify-self: center; }

/* ---------- commande ---------- */
.kk-checkout { display: grid; gap: 20px; }
@media (min-width: 900px) { .kk-checkout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .kk-checkout__side { position: sticky; top: 150px; } }
.kk-checkout__main { display: grid; gap: 16px; }
.kk-box { border: 0; margin: 0; background: var(--kk-surface); border-radius: var(--kk-radius-lg); padding: 20px; box-shadow: var(--kk-shadow); min-width: 0; }
.kk-box legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-family: var(--kk-font-title); font-weight: 600; font-size: 1.25rem; }
.kk-fields { clear: both; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .kk-fields { grid-template-columns: 1fr 1fr; } .kk-field--wide { grid-column: 1 / -1; } }
.kk-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.kk-field__err { color: var(--kk-danger); font-size: .82rem; font-weight: 700; margin: 4px 0 0; min-height: 0; }
.kk-field__err:empty { display: none; }
.kk-field.has-error .kk-input { border-color: var(--kk-danger); }
.kk-ship { clear: both; display: grid; gap: 8px; margin-bottom: 16px; }
.kk-ship__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--kk-border); border-radius: var(--kk-radius); cursor: pointer; }
.kk-ship__opt:has(input:checked) { border-color: var(--kk-primary); background: var(--kk-primary-light); }
.kk-ship__opt input { width: 20px; height: 20px; accent-color: var(--kk-primary-dark); flex: none; }
.kk-ship__label { flex: 1; display: grid; }
.kk-ship__label small { color: var(--kk-muted); }
.kk-ship__price { font-weight: 800; }
.kk-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.kk-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--kk-primary-dark); flex: none; }
.kk-mini { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.kk-mini li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.kk-mini__img { width: 48px; height: 58px; border-radius: 8px; overflow: hidden; display: block; background: var(--kk-primary-light); }
.kk-mini__img img, .kk-mini__img .kk-noimg { width: 100%; height: 100%; object-fit: cover; font-size: 1rem; }
.kk-mini__t { font-weight: 700; line-height: 1.25; display: grid; }
.kk-mini__t small { color: var(--kk-muted); font-weight: 600; }
.kk-mini li > span:last-child { font-weight: 800; }

.kk-confirm { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 14px; }
.kk-confirm__emoji { margin: 0 auto; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--kk-secondary-light); color: var(--kk-success); }
.kk-confirm__emoji .kk-ico { width: 48px; height: 48px; }
.kk-confirm__id { color: var(--kk-primary-dark); white-space: nowrap; }
.kk-confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kk-confirm__recap { text-align: left; }

/* ---------- pages de contenu ---------- */
.kk-prose { max-width: 780px; background: var(--kk-surface); border-radius: var(--kk-radius-lg); padding: 24px; box-shadow: var(--kk-shadow); }
.kk-prose h2 { margin-top: 1.6em; }
.kk-prose h2:first-child { margin-top: 0; }
@media (min-width: 900px) { .kk-prose { padding: 40px 48px; } }
.kk-about { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .kk-about { grid-template-columns: 1fr 320px; } }
.kk-about__mark { max-width: 280px; margin: 0 auto; }

/* ---------- toast ---------- */
.kk-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 90; background: var(--kk-text); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: transform .25s;
  max-width: calc(100vw - 32px); text-align: center;
}
.kk-toast.is-on { transform: translate(-50%, 0); }
.kk-toast a { color: var(--kk-accent); margin-left: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
