/* =========================================================================
   K.Pro — feuille principale du thème
   -------------------------------------------------------------------------
   Organisation :
     1. Design tokens (variables)
     2. Base (scopée sous .kpro pour ne pas impacter le header/footer du site)
     3. Composants transverses (boutons, étoiles, pictos)
     4. PDP — hero (galerie, infos, variantes, bloc achat, réglementaire)
     5. PDP — story (lecteur vidéo YouTube)
   Chargée uniquement sur les pages produit (inc/assets.php).
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --kp-navy: #002F78;
  --kp-blue: #015692;
  --kp-cyan: #21BBEF;
  --kp-yellow: #FFE501;
  --kp-orange: #FF4D01;
  --kp-green: #144F1A;
  --kp-ink: #0A1E46;
  --kp-muted: #5A6B8C;
  --kp-line: #E3E9F3;
  --kp-soft: #F3F6FB;
  --kp-soft-2: #EAF0F9;
  --kp-white: #fff;
  --kp-danger: #E30613;

  /* Couleurs de gamme — neutre K.Pro par défaut, surchargées par [data-gamme] */
  --g: var(--kp-cyan);
  --g-ink: #fff;
  --g-tint: #E7F7FD;

  --f-display: "protipo-compact", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --f-text: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 47, 120, .06), 0 2px 8px rgba(0, 47, 120, .05);
  --shadow-md: 0 8px 24px -8px rgba(0, 47, 120, .18), 0 2px 6px rgba(0, 47, 120, .06);
  --shadow-lg: 0 30px 60px -20px rgba(0, 30, 80, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-premium: cubic-bezier(.2, .8, .2, 1);
  --kp-container: 1280px;
  --kp-header-h: 76px;
}

[data-gamme="choc"]   { --g: var(--kp-yellow); --g-ink: var(--kp-navy); --g-tint: #FFFBD6; }
[data-gamme="expert"] { --g: var(--kp-orange); --g-ink: #fff; --g-tint: #FFEDE5; }
[data-gamme="impact"] { --g: var(--kp-green);  --g-ink: #fff; --g-tint: #E6F0E7; }

/* Ancres : compensation du header sticky du site */
html { scroll-padding-top: calc(var(--kp-header-h) + 64px); }
@media (max-width: 960px) { :root { --kp-header-h: 64px; } }

/* ---------- 2. Base (scopée) ---------- */
.kpro {
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.6;
  color: var(--kp-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.kpro *, .kpro *::before, .kpro *::after { box-sizing: border-box; }
.kpro img, .kpro video { display: block; max-width: 100%; height: auto; }
.kpro a { color: inherit; text-decoration: none; }
.kpro button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.kpro h1, .kpro h2, .kpro h3, .kpro h4 {
  font-family: var(--f-display); color: var(--kp-navy); line-height: 1.05; margin: 0;
  font-weight: 800; letter-spacing: -.01em; text-transform: none;
}
.kpro p { margin: 0 0 1em; }
.kpro :focus-visible { outline: 3px solid var(--kp-cyan); outline-offset: 3px; }

.kpro-container { width: min(100% - 40px, var(--kp-container)); margin-inline: auto; }
.kpro .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pictos SVG (navy par défaut ; blanc par filtre sur fond navy) */
.kpro .icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; object-fit: contain; }
.kpro .btn--primary .icon, .kpro .story__ctrl .icon, .kpro .story-ring__play .icon { filter: brightness(0) invert(1); }

/* ---------- 3. Composants transverses ---------- */

/* Fil d'Ariane */
.kpro .crumbs { padding: 18px 0 8px; font-size: 13px; color: var(--kp-muted); }
.kpro .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kpro .crumbs li + li::before { content: "/"; margin-right: 6px; color: #B5C1D8; }
.kpro .crumbs a:hover { color: var(--kp-navy); text-decoration: underline; }
.kpro .crumbs [aria-current] { color: var(--kp-navy); font-weight: 600; }

/* Logos de gamme */
.kpro .gamme-logo { display: block; height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 20, 60, .18)); }
.kpro .gallery__badges .gamme-logo { height: 46px; }

/* Étoiles (fond étoiles vides, masque plein en ::before selon --rating) */
.kpro .stars {
  --rating: 0; --sz: 18px; position: relative; display: inline-block; width: calc(var(--sz) * 5); height: var(--sz); flex: none;
  background: url("../icons/star-empty.svg") 0 0 / var(--sz) var(--sz) repeat-x;
}
.kpro .stars::before {
  content: ""; position: absolute; inset: 0; width: calc(var(--rating) / 5 * 100%);
  background: url("../icons/star.svg") 0 0 / var(--sz) var(--sz) repeat-x;
}
.kpro .stars--sm { --sz: 14px; }
.kpro .stars--lg { --sz: 22px; }
.kpro .rating-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--kp-muted); margin-top: -12px; }
.kpro .rating-link strong { color: var(--kp-navy); font-size: 14px; }
.kpro .rating-link:hover span { text-decoration: underline; }

/* Boutons */
.kpro .btn {
  --bh: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--bh); padding: 0 26px; border-radius: 0;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.kpro .btn .icon { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.kpro .btn--primary { background: var(--kp-navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 47, 120, .7); }
.kpro .btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.kpro .btn--primary:hover { color: var(--kp-navy); }
.kpro .btn--primary:hover::before { transform: none; }
.kpro .btn--primary:hover .icon { transform: translate(2px, -2px); filter: none; }
.kpro .btn--primary:active { transform: scale(.98); }
.kpro .btn--block { width: 100%; }
.kpro .btn--sm { --bh: 44px; font-size: 16px; padding: 0 18px; }
.kpro .btn__sub { display: block; font-family: var(--f-text); font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.kpro .btn__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.kpro .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--kp-navy); }
.kpro .link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.kpro .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 4. PDP — hero ---------- */
.kpro .pdp-hero { padding: 8px 0 56px; }
.kpro .pdp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 1023px) { .kpro .pdp-hero__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Galerie */
.kpro .gallery { position: sticky; top: calc(var(--kp-header-h) + 20px); display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
.kpro .gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.kpro .gallery__thumb {
  aspect-ratio: 1; border-radius: 0; background: #fff; border: 1.5px solid var(--kp-line); overflow: hidden; padding: 4px;
  transition: border-color .2s, transform .2s;
}
.kpro .gallery__thumb > img { width: 100%; height: 100%; object-fit: contain; }
.kpro .gallery__thumb:hover { transform: translateY(-2px); }
.kpro .gallery__thumb[aria-current="true"] { border-color: var(--kp-navy); box-shadow: 0 0 0 3px rgba(0, 47, 120, .1); }
.kpro .gallery__stage {
  position: relative; border-radius: 0; background: #fff; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--kp-line);
}
.kpro .gallery__stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--g);
}
.kpro .gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1;
}
.kpro .gallery__track::-webkit-scrollbar { display: none; }
.kpro .gallery__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; margin: 0; }
.kpro .gallery__slide img { width: 88%; height: 88%; object-fit: contain; transition: transform .5s var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.kpro .gallery__slide.is-zoom img { transform: scale(1.9); }
.kpro .gallery__badges { position: absolute; top: 18px; left: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 2; pointer-events: none; }
.kpro .gallery__dots { display: none; position: absolute; bottom: 18px; left: 0; right: 0; justify-content: center; gap: 6px; z-index: 2; }
.kpro .gallery__dots span { width: 6px; height: 6px; border-radius: 0; background: #C9D3E4; transition: width .3s, background .3s; }
.kpro .gallery__dots span.is-active { width: 22px; background: var(--kp-navy); }
@media (max-width: 1023px) {
.kpro .gallery { position: relative; top: 0; grid-template-columns: 1fr; }
.kpro .gallery__thumbs { display: none; }
.kpro .gallery__dots { display: flex; }
}

/* Bulle story */
.kpro .story-bubble {
  position: absolute; left: 18px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.kpro .story-bubble:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpro .story-ring { --size: 64px; position: relative; display: block; width: var(--size); height: var(--size); border-radius: 50%; padding: 3px; flex: none; }
.kpro .story-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--kp-yellow), var(--kp-orange), var(--kp-cyan), var(--kp-navy), var(--kp-yellow));
  animation: ring-spin 6s linear infinite;
}
.kpro .story-ring > img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; border: 3px solid #fff; background: #fff; }
.kpro .story-ring__play {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--kp-navy); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 3px #fff;
}
.kpro .story-ring__play .icon { width: 12px; height: 12px; margin-left: 1px; }
.kpro .story-bubble__txt { line-height: 1.15; text-align: left; }
.kpro .story-bubble__txt strong { display: block; font-family: var(--f-display); font-size: 17px; color: var(--kp-navy); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kpro .story-ring::before { animation: none; } }

/* Colonne infos */
.kpro .pdp-info { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.kpro .pdp-info__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.kpro .pdp-info__top .gamme-logo { position: static; filter: none; height: 44px; }
.kpro .pdp-info__ref { font-size: 12px; color: var(--kp-muted); letter-spacing: .02em; }
.kpro .pdp-title { font-size: clamp(34px, 4.4vw, 56px); }
.kpro .pdp-lead {
  font-size: 16px; color: #2D3F63; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.kpro .pdp-more { margin-top: -10px; font-size: 14px; }

.kpro .specs { display: flex; flex-wrap: wrap; gap: 10px; }
.kpro .spec { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; padding: 12px 20px 12px 16px; border-radius: 0; background: var(--kp-soft); }
.kpro .spec .icon { width: 26px; height: 26px; }
.kpro .spec span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--kp-muted); font-weight: 600; line-height: 1.2; }
.kpro .spec strong { display: block; font-family: var(--f-display); font-size: 22px; line-height: 1.05; color: var(--kp-navy); }

/* Sélecteur de variantes */
.kpro .variants { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kpro .variants__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--kp-muted); font-weight: 600; }
.kpro .variants__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.kpro .variants__pill {
  display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--kp-line); cursor: pointer; position: relative;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.kpro .variants__pill:hover { border-color: #B9C6DE; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0, 47, 120, .25); }
.kpro .variants__bubble {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--kp-soft); overflow: hidden; transition: background .25s;
}
.kpro .variants__bubble img { width: 100%; height: 100%; object-fit: contain; }
.kpro .variants__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.kpro .variants__txt strong { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--kp-navy); }
.kpro .variants__txt small { font-size: 11px; color: var(--kp-muted); font-weight: 500; margin-top: 2px; }
.kpro .variants__pill.is-active { border-color: var(--kp-navy); box-shadow: 0 0 0 3px rgba(0, 47, 120, .12); }
.kpro .variants__pill.is-active .variants__bubble { background: #E3EBFA; }
.kpro .variants__pill.is-active::after {
  content: ""; position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--kp-navy) url("../icons/check-active.svg") center / 11px no-repeat;
  box-shadow: 0 0 0 2.5px #fff;
}

/* Bloc achat */
.kpro .buy-box {
  border-radius: 0; padding: 20px; background: linear-gradient(180deg, #fff, var(--kp-soft));
  border: 1px solid var(--kp-line); display: flex; flex-direction: column; gap: 12px;
}
.kpro .buy-box__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.kpro .buy-box__row--solo { grid-template-columns: 1fr; }
.kpro .buy-box__note { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--kp-muted); margin: 2px 0 0; line-height: 1.4; }
.kpro .buy-box__note img { height: 22px; width: auto; flex: none; }
.kpro .btn-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--kp-line); color: var(--kp-navy); transition: box-shadow .2s;
}
.kpro .btn-icon:hover { box-shadow: inset 0 0 0 1.5px var(--kp-navy); }
.kpro .btn-icon .icon { width: 22px; height: 22px; }
/* Mobile : le pin laisse la place au CTA — sauf s'il est le seul lien d'achat (§5.17) */
@media (max-width: 860px) {
.kpro .buy-box__row .btn--primary + .btn-icon { display: none; }
}

/* Réassurance */
.kpro .trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--kp-muted); }
.kpro .trust span { display: inline-flex; align-items: center; gap: 8px; }
.kpro .trust .icon { width: 18px; height: 18px; }

/* Bloc réglementaire compact */
.kpro .reg-mini {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 0;
  border: 1px solid var(--kp-line); background: var(--kp-soft);
}
.kpro .reg-mini > .icon { width: 26px; height: 26px; margin-top: 2px; }
.kpro .reg-mini p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #2D3F63; }
.kpro .reg-mini p strong { color: var(--kp-navy); }
.kpro .reg-mini a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; color: var(--kp-navy); }

/* ---------- 5. PDP — story (lecteur YouTube) ---------- */
.kpro .story { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.kpro .story.is-open { visibility: visible; }
.kpro .story__backdrop {
  position: absolute; inset: 0; background: rgba(6, 15, 40, .82);
  opacity: 0; transition: opacity .5s var(--ease-out);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
}
.kpro .story.is-open .story__backdrop { opacity: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kpro .story__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  transform: translateX(102%); transition: transform .65s var(--ease-premium);
  display: flex; align-items: stretch;
}
.kpro .story.is-open .story__panel { transform: none; }
.kpro .story__player {
  position: relative; flex: 1; margin: 0; background: #060F28; overflow: hidden;
  display: flex; flex-direction: column;
}
.kpro .story__yt { position: absolute; inset: 0; z-index: 1; }
.kpro .story__yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.kpro .story__yt-bg { position: absolute; inset: 0; overflow: hidden; }
.kpro .story__yt-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.5); transform: scale(1.3); }
.kpro .story--yt-h .story__yt { display: flex; align-items: center; justify-content: center; }
.kpro .story--yt-h .story__yt iframe { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 100%; }

.kpro .story__head {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px;
  background: linear-gradient(180deg, rgba(6, 15, 40, .85), transparent);
}
.kpro .story__head > img { height: 30px; width: auto; }
.kpro .story__head p { margin: 0; flex: 1; min-width: 0; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; }
.kpro .story__head p small { display: block; font-weight: 400; font-size: 11px; opacity: .75; }
.kpro .story__ctrl {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s;
}
.kpro .story__ctrl:hover { background: rgba(255, 255, 255, .28); }
.kpro .story__ctrl .icon { width: 18px; height: 18px; }
.kpro .story__legal {
  position: relative; z-index: 2; margin: auto 0 0; padding: 10px 16px; font-size: 10.5px; line-height: 1.4;
  color: rgba(255, 255, 255, .55); background: linear-gradient(0deg, rgba(6, 15, 40, .9), transparent);
}
.kpro .story__foot {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px;
  background: rgba(6, 15, 40, .92);
}
.kpro .story__foot > img { width: 44px; height: 44px; object-fit: contain; background: #fff; }
.kpro .story__foot p { margin: 0; flex: 1; min-width: 0; color: #fff; font-weight: 700; font-family: var(--f-display); font-size: 15px; line-height: 1.15; }
.kpro .story__foot p small { display: block; font-family: var(--f-text); font-weight: 500; font-size: 11px; opacity: .7; }
.kpro .story__foot .btn { --bh: 44px; font-size: 15px; padding: 0 16px; }

/* Mobile : panneau plein écran glissant du bas (style Instagram) */
@media (max-width: 860px) {
.kpro .story__panel { width: 100%; top: auto; height: 100%; transform: translateY(102%); }
.kpro .story.is-open .story__panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.kpro .story__panel { transition-duration: .01s; }
.kpro .story__backdrop { transition-duration: .01s; }
}

/* ---------- 6. PDP — sections génériques ---------- */
.kpro .section { padding: 88px 0; }
.kpro .section--soft { background: var(--kp-soft); }
.kpro .eyebrow {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: 13px; color: var(--kp-cyan);
}
@media (max-width: 760px) { .kpro .section { padding: 60px 0; } }

/* Prose (description CRM en HTML) */
.kpro .prose { font-size: 16px; color: #2D3F63; max-width: 760px; }
.kpro .prose h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 8px 0 22px; }
.kpro .prose p { margin: 0 0 1em; }
.kpro .prose ul, .kpro .prose ol { margin: 0 0 1em; padding-left: 22px; }
.kpro .prose li { margin-bottom: 6px; }
.kpro .prose a { color: var(--kp-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kpro .prose strong { color: var(--kp-navy); }

/* Grille description + fiche d'identité */
.kpro .desc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.kpro .idcard { border-radius: 0; background: var(--kp-soft); padding: 28px; position: sticky; top: calc(var(--kp-header-h) + 80px); }
.kpro .idcard h3 { font-size: 24px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kpro .idcard h3 .icon { width: 24px; height: 24px; }
.kpro .idcard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.kpro .idcard dt, .kpro .idcard dd { padding: 12px 0; border-bottom: 1px solid #DCE4F1; margin: 0; font-size: 14px; }
.kpro .idcard dt { color: var(--kp-muted); padding-right: 18px; }
.kpro .idcard dd { font-weight: 600; color: var(--kp-navy); text-align: right; }
.kpro .idcard dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 960px) {
  .kpro .desc { grid-template-columns: 1fr; gap: 32px; }
  .kpro .idcard { position: static; }
}

/* Conseils d'utilisation (recommandations CRM, jamais tronquées) */
.kpro .adv--solo { margin-top: 36px; }
.kpro .adv__reco { border-radius: 0; border: 1px solid var(--kp-line); background: #fff; padding: 30px; }
.kpro .adv__reco h3 { font-size: 22px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kpro .adv__reco h3 .icon { width: 24px; height: 24px; }
.kpro .adv__reco .prose p { font-size: 15px; margin: 0 0 12px; }
.kpro .adv__reco .prose p:last-child { margin-bottom: 0; }

/* ---------- 8. PDP — sécurité / informations réglementaires ---------- */
.kpro .section--tab { padding: 0 0 48px; }
.kpro .reg-tab { border-top: 1px solid var(--kp-line); border-bottom: 1px solid var(--kp-line); }
.kpro .reg-tab > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 4px;
  font-size: 14px; font-weight: 600; color: var(--kp-muted); transition: color .2s;
}
.kpro .reg-tab > summary::-webkit-details-marker { display: none; }
.kpro .reg-tab > summary:hover { color: var(--kp-navy); }
.kpro .reg-tab > summary .icon:first-child { width: 18px; height: 18px; opacity: .7; }
.kpro .reg-tab > summary .chev { margin-left: auto; width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.kpro .reg-tab[open] > summary .chev { transform: rotate(180deg); }
.kpro .reg-tab__body { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 2px 4px 22px 34px; }
.kpro .reg-tab__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.kpro .reg-tab__txt p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--kp-muted); }
.kpro .reg-tab__tp { font-size: 12px; opacity: .85; }
.kpro .reg-tab__fds {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--kp-navy);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--kp-line); transition: text-decoration-color .2s;
}
.kpro .reg-tab__fds:hover { text-decoration-color: var(--kp-navy); }
.kpro .reg-tab__fds .icon { width: 18px; height: 18px; }
@media (max-width: 640px) { .kpro .reg-tab__body { padding-left: 4px; } }

/* ---------- 7. PDP — sous-nav sticky + CTA mobile ---------- */
.kpro .subnav {
  position: sticky; top: var(--kp-header-h); z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--kp-line);
}
.kpro .subnav__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.kpro .subnav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.kpro .subnav__links::-webkit-scrollbar { display: none; }
.kpro .subnav__links a {
  position: relative; white-space: nowrap; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--kp-muted); border-radius: 0;
  transition: color .2s, background .2s;
}
.kpro .subnav__links a:hover { color: var(--kp-navy); }
.kpro .subnav__links a.is-active { color: var(--kp-navy); background: var(--kp-soft-2); }
.kpro .subnav__buy { display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .35s var(--ease-out); }
.kpro .subnav.is-stuck .subnav__buy { opacity: 1; transform: none; pointer-events: auto; }
.kpro .subnav__buy > img { width: 44px; height: 44px; object-fit: contain; }
.kpro .subnav__buy p { margin: 0; line-height: 1.1; font-family: var(--f-display); font-weight: 700; color: var(--kp-navy); font-size: 16px; }
.kpro .subnav__buy p small { display: block; font-family: var(--f-text); font-size: 11px; color: var(--kp-muted); font-weight: 500; }
@media (max-width: 860px) {
  .kpro .subnav__buy { display: none; }
  .kpro .subnav__in { height: 54px; }
}

/* CTA mobile fixe en bas — apparaît quand le bloc achat est dépassé */
.kpro .mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px; border-radius: 0; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg);
  border: 1px solid var(--kp-line); transform: translateY(140%); transition: transform .45s var(--ease-out);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.kpro .mobile-cta.is-visible { transform: none; }
.kpro .mobile-cta > img { width: 42px; height: 42px; object-fit: contain; }
.kpro .mobile-cta p { margin: 0; flex: 1; min-width: 0; line-height: 1.15; font-family: var(--f-display); font-weight: 700; color: var(--kp-navy); font-size: 15px; }
.kpro .mobile-cta p small { display: block; font-family: var(--f-text); font-weight: 500; font-size: 11px; color: var(--kp-muted); }
.kpro .mobile-cta .btn { --bh: 48px; font-size: 16px; padding: 0 18px; }
@media (max-width: 860px) { .kpro .mobile-cta { display: flex; } }
