/* =====================================================================
   KANMATY — pages : bannière d'accueil, header fixe, pied de page, fiche produit
   ===================================================================== */

/* ===================== Header fixe ===================== */
.kh-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.kh-spacer { height: 140px; }
@media (max-width: 991.98px) { .kh-spacer { height: 112px; } }

/* ===================== Accueil : bannière + vignettes ===================== */
.kc-home { padding-top: 2px; }
.kc-hero { position: relative; border-radius: 16px; overflow: hidden; background: #e9e9ee; margin-bottom: 14px; }
.kc-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.kc-hero__track::-webkit-scrollbar { display: none; }
.kc-hero__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1248 / 357; position: relative; }
.kc-hero__slide a, .kc-hero__slide picture { display: block; width: 100%; height: 100%; }
.kc-hero__slide a picture { height: 100%; }
.kc-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #ddd; color: #222; font-size: 22px; line-height: 1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); padding: 0; opacity: 0; transition: opacity .2s; }
.kc-hero:hover .kc-hero__arrow { opacity: 1; }
.kc-hero__arrow--prev { left: 14px; }
.kc-hero__arrow--next { right: 14px; }
.kc-hero__dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(255,255,255,.85); padding: 5px 9px; border-radius: 99px; z-index: 3; }
.kc-hero__dots button { width: 8px; height: 8px; border-radius: 99px; border: 1.5px solid #333; background: transparent; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.kc-hero__dots button.is-on { width: 26px; background: #333; }
@media (max-width: 767.98px) { .kc-hero { border-radius: 12px; } .kc-hero__slide { aspect-ratio: 1248 / 357; } .kc-hero__slide--m { aspect-ratio: 2 / 1; } .kc-hero__arrow { display: none; } }

.kc-tiles { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.kc-tiles .kc-rail { gap: 14px; }
.kc-tile { user-select: none; -webkit-user-drag: none; position: relative; flex: 0 0 calc((100% - 70px) / 6); min-width: 140px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; scroll-snap-align: start; display: block; background: #f1f1f4; transition: transform .2s, box-shadow .2s; }
.kc-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.kc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-tile__name { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255,255,255,.94); color: #222; font-size: 12px; font-weight: 700; text-align: center; padding: 5px 6px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) { .kc-tile { flex-basis: calc((100% - 42px) / 4); } }
@media (max-width: 767.98px) { .kc-tiles { padding: 10px; border-radius: 12px; } .kc-tile { flex-basis: 38%; min-width: 0; } }

/* ===================== Pied de page ===================== */
.kf { margin-top: 28px; background: #fff; color: #444; font-size: 14px; }
.kf-trust { background: #f4f5ff; border-top: 1px solid #e3e5ff; border-bottom: 1px solid #e3e5ff; }
.kf-trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.kf-trust__item { display: flex; align-items: center; gap: 12px; }
.kf-trust__item i { font-size: 26px; color: var(--kc-blue); width: 34px; text-align: center; }
.kf-trust__item b { display: block; color: var(--kc-navy); font-size: 14px; }
.kf-trust__item span { color: var(--kc-muted); font-size: 12px; }
.kf-main { background: var(--kc-navy); color: #c9d2ee; padding: 38px 0 22px; }
.kf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.kf-brand p { margin: 12px 0; line-height: 1.6; color: #b4bfe2; }
.kf-logo img { height: 46px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.kf-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.kf-col ul { list-style: none; margin: 0; padding: 0; }
.kf-col li { margin-bottom: 9px; }
.kf-col a { color: #c9d2ee; text-decoration: none; }
.kf-col a:hover { color: #fff; text-decoration: underline; }
.kf-contact li { display: flex; gap: 10px; align-items: flex-start; }
.kf-contact i { color: var(--kc-yellow); margin-top: 3px; width: 16px; text-align: center; }
.kf-contact span { color: #c9d2ee; }
.kf-social { display: flex; gap: 8px; margin-top: 14px; }
.kf-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; text-decoration: none; }
.kf-social a:hover { background: var(--kc-blue); text-decoration: none; }
.kf-app-title { margin-top: 22px !important; }
.kf-apps { display: flex; flex-direction: column; gap: 8px; }
.kf-apps a { display: flex; align-items: center; gap: 10px; background: #000; color: #fff !important; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 7px 14px; text-decoration: none !important; max-width: 190px; }
.kf-apps a:hover { background: var(--kc-blue); }
.kf-apps i { font-size: 24px; }
.kf-apps span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.15; font-size: 14px; }
.kf-apps small { font-weight: 400; font-size: 10px; opacity: .8; }
.kf-pay { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.kf-pay > span { font-size: 13px; color: #b4bfe2; }
.kf-pay div { display: flex; gap: 10px; flex-wrap: wrap; }
.kf-pay img { height: 30px; width: auto; background: #fff; border-radius: 6px; padding: 3px 8px; }
.kf-bottom { background: #00164a; color: #8d9bc9; font-size: 12px; }
.kf-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.kf-links a { color: #aab6df; margin-left: 16px; text-decoration: none; }
.kf-links a:hover { color: #fff; }
@media (max-width: 991.98px) { .kf-grid { grid-template-columns: 1fr 1fr; } .kf-trust .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .kf-grid { grid-template-columns: 1fr; gap: 24px; } .kf-trust .container { grid-template-columns: 1fr; } .kf-bottom .container { flex-direction: column; text-align: center; } .kf-links a { margin: 0 8px; } }

/* ===================== Fiche produit ===================== */
.kp { padding-bottom: 70px; }
.kp-crumbs { font-size: 13px; color: var(--kc-muted); padding: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kp-crumbs a { color: var(--kc-blue); text-decoration: none; }
.kp-crumbs a:hover { text-decoration: underline; }
.kp-crumbs strong { color: var(--kc-ink); font-weight: 600; }
.kp-card { background: #fff; border-radius: 16px; padding: 18px; }
.kp-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4.2fr) minmax(0, 2.8fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.kp-gallery { position: sticky; top: 150px; }
.kp-main { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f6f6f8; display: flex; align-items: center; justify-content: center; }
.kp-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s; }
.kp-main:hover img { transform: scale(1.06); }
.kp-badge { position: absolute; left: 12px; top: 12px; background: var(--kc-green); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 8px; font-size: 14px; z-index: 2; }
.kp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 2; padding: 0; line-height: 1; }
.kp-nav--prev { left: 10px; } .kp-nav--next { right: 10px; }
.kp-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.kp-thumbs button { flex: 0 0 68px; height: 68px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: #f6f6f8; cursor: pointer; }
.kp-thumbs button.is-on { border-color: var(--kc-blue); }
.kp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-brand { display: inline-block; font-size: 13px; color: var(--kc-blue); text-decoration: none; margin-bottom: 4px; }
.kp-title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0 0 10px; color: var(--kc-ink); }
.kp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--kc-muted); }
.kp-stars { color: #f68b1e; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.kp-stars small { color: var(--kc-muted); margin-left: 6px; }
.kp-noreview { color: var(--kc-blue); text-decoration: none; }
.kp-sep { margin: 14px 0; border-color: var(--kc-line); }
.kp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.kp-price strong { font-size: 32px; font-weight: 800; color: var(--kc-ink); letter-spacing: -.5px; }
.kp-price s { color: var(--kc-muted); font-size: 16px; }
.kp-off { background: var(--kc-green); color: #fff; font-weight: 700; padding: 2px 9px; border-radius: 6px; font-size: 14px; }
.kp-stock { margin-top: 10px; font-size: 14px; font-weight: 600; }
.kp-stock.ok { color: var(--kc-green); } .kp-stock.low { color: #c46500; } .kp-stock.out { color: #c0262d; }
.kp-variants { margin-top: 16px; }
.kp-variants h6 { font-size: 13px; margin: 0 0 8px; color: var(--kc-muted); font-weight: 600; }
.kp-variants h6 b { color: var(--kc-ink); }
.kp-variants > div { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-chip { border: 1.5px solid #d9d9e0; background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--kc-ink); }
.kp-chip:hover { border-color: var(--kc-blue); }
.kp-chip.is-on { border-color: var(--kc-blue); background: #f2f3ff; color: var(--kc-blue); font-weight: 700; box-shadow: 0 0 0 1px var(--kc-blue) inset; }
.kp-chip.is-out { opacity: .55; }
.kp-chip small { color: #c0262d; font-size: 11px; }
.kp-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.kp-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.kp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; flex: 1 1 200px; transition: background .15s, transform .1s; }
.kp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.kp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.kp-btn--primary { background: var(--kc-blue); color: #fff; } .kp-btn--primary:hover { background: var(--kc-navy); color: #fff; }
.kp-btn--wa { background: #e8f8ef; color: #128c4a; border: 1.5px solid #bfe9cf; } .kp-btn--wa:hover { background: #d4f3e1; color: #0b6b37; }
.kp-qty { display: inline-flex; align-items: center; border: 1.5px solid #d9d9e0; border-radius: 12px; overflow: hidden; }
.kp-qty button { width: 44px; height: 48px; border: 0; background: #f4f5ff; font-size: 20px; cursor: pointer; color: var(--kc-blue); font-weight: 700; }
.kp-qty button[disabled] { opacity: .4; }
.kp-qty span { min-width: 46px; text-align: center; font-weight: 700; font-size: 16px; }
.kp-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; }
.kp-actions a { color: var(--kc-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.kp-actions a:hover, .kp-actions a.is-on { color: #BE1E3C; }
.kp-side h5 { font-size: 15px; margin: 0 0 12px; font-weight: 700; }
.kp-side ul { list-style: none; padding: 0; margin: 0; }
.kp-side li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kc-line); }
.kp-side li:last-child { border-bottom: 0; }
.kp-side li i { color: var(--kc-blue); width: 22px; text-align: center; margin-top: 3px; }
.kp-side li b { display: block; font-size: 13px; } .kp-side li span { color: var(--kc-muted); font-size: 12px; line-height: 1.4; display: block; }
.kp-seller { margin-top: 14px; padding: 12px; background: #f4f5ff; border-radius: 12px; }
.kp-seller small { display: block; color: var(--kc-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.kp-seller strong { display: block; font-size: 15px; color: var(--kc-navy); }
.kp-verified { color: var(--kc-green); font-size: 12px; font-weight: 600; }
.kp-block { margin-bottom: 14px; }
.kp-block h3 { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--kc-line); font-weight: 700; }
.kp-block h3 small { color: var(--kc-muted); font-weight: 400; font-size: 14px; }
.kp-prose { line-height: 1.7; color: #3a3a3f; overflow-wrap: anywhere; }
.kp-prose img { max-width: 100%; height: auto; }
.kp-summary { background: #f9f9fb; border-left: 4px solid var(--kc-blue); padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.kp-video { width: 100%; max-width: 760px; border-radius: 12px; margin-top: 14px; background: #000; }
.kp-spec { width: 100%; border-collapse: collapse; }
.kp-spec th { width: 34%; text-align: left; color: var(--kc-muted); font-weight: 600; background: #f9f9fb; padding: 10px 14px; border-bottom: 1px solid var(--kc-line); }
.kp-spec td { padding: 10px 14px; border-bottom: 1px solid var(--kc-line); }
.kp-reviews { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.kp-score { text-align: center; padding: 16px; background: #f9f9fb; border-radius: 12px; align-self: start; }
.kp-score strong { font-size: 40px; display: block; line-height: 1; } .kp-score strong small { font-size: 16px; color: var(--kc-muted); }
.kp-score .kp-stars { justify-content: center; margin: 8px 0; font-size: 16px; }
.kp-comments article { padding: 14px 0; border-bottom: 1px solid var(--kc-line); }
.kp-comments header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.kp-comments time { color: var(--kc-muted); font-size: 12px; margin-left: auto; }
.kp-comments p { margin: 6px 0 0; color: #444; }
.kp-form { margin-top: 18px; padding: 16px; background: #f9f9fb; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.kp-form h5 { margin: 0; font-size: 15px; }
.kp-form textarea, .kp-form input { border: 1px solid #d9d9e0; border-radius: 10px; padding: 10px 12px; width: 100%; background: #fff; font-size: 14px; }
.kp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kp-rate button { background: none; border: 0; font-size: 24px; color: #f68b1e; cursor: pointer; padding: 0 2px; }
.kp-err { color: #c0262d; } .kp-note { color: var(--kc-muted); }
.kp-ok { background: #e6f7ec; color: #0f6b34; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.kp-form .kp-btn { flex: none; align-self: flex-start; }
.kp-sticky { display: none; }
@media (max-width: 1199.98px) { .kp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kp-side { grid-column: 1 / -1; } .kp-gallery { position: static; } }
@media (max-width: 767.98px) {
    .kp-top { grid-template-columns: 1fr; }
    .kp-card { padding: 14px; border-radius: 12px; }
    .kp-title { font-size: 18px; } .kp-price strong { font-size: 26px; }
    .kp-reviews { grid-template-columns: 1fr; } .kp-form-row { grid-template-columns: 1fr; }
    .kp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: #fff; border-top: 1px solid #e5e5ea; padding: 10px 14px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 14px rgba(0,0,0,.1); }
    .kp-sticky strong { display: block; font-size: 17px; } .kp-sticky s { color: var(--kc-muted); font-size: 12px; }
    .kp-sticky .kp-btn { flex: 0 0 auto; padding: 12px 18px; }
    .kp-buy .kp-btn { flex-basis: 100%; }
}
.kc-tile img { -webkit-user-drag: none; }
