/* JK — nouvelle home. S'ajoute à jkc.css (charte et briques des rayons). Préfixe .jkh- */

.jkh .jkh-m-seul { display: none !important; }
.jkh .jkc-wrap { padding-top: 10px; }
.jkh section, .jkh nav.jkc-read { scroll-margin-top: 110px; }

/* ---------- Boutons et liens ---------- */
.jkh .jkh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 30px; border-radius: 999px; background: var(--cr); color: #0A1128; font-weight: 700; font-size: 17px; white-space: nowrap; box-shadow: 0 10px 30px rgba(249,216,199,.18); transition: transform .2s, box-shadow .2s; }
.jkh .jkh-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(249,216,199,.28); color: #0A1128; }
.jkh .jkc-ghost { border: 2px solid var(--cr); background: rgba(249,216,199,.16); font-weight: 700; }
.jkh .jkh-lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--pe); white-space: nowrap; }
.jkh .jkh-lien svg { width: 16px; height: 16px; transition: transform .2s; }
.jkh .jkh-lien:hover { color: #fff; } .jkh .jkh-lien:hover svg { transform: translateX(4px); }
.jkh a:focus-visible, .jkh button:focus-visible, .jkh summary:focus-visible, .jkh [tabindex]:focus-visible { outline: 2px solid var(--pe); outline-offset: 3px; }

/* ---------- 1. Intro ---------- */
.jkh-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; padding: 22px 0 46px; }
.jkh .jkh-h1 { font-family: var(--ser); font-weight: 700; font-size: clamp(64px, 7.4vw, 106px); line-height: .98; letter-spacing: -.02em; color: #fff; margin: 0; }
.jkh .jkh-h1 span, .jkh .jkh-h1 em { display: block; }
.jkh .jkh-h1 em { font-style: italic; font-weight: 500; color: var(--pe); }
.jkh p.jkh-phrase { margin: 26px 0 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--t2, #E6EAF2); }
.jkh-intro-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; }
.jkh .jkh-note { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; color: #fff; }
.jkh .jkh-note .jkc-stars { color: var(--pe); letter-spacing: 2px; }
.jkh .jkh-note u { text-underline-offset: 4px; color: var(--t2, #E6EAF2); }
.jkh-astro { position: relative; justify-self: center; width: min(540px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.jkh-astro::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(249,200,167,.5); }
.jkh-astro::after { content: ""; position: absolute; left: 14%; top: 3.5%; width: 12px; height: 12px; border-radius: 50%; background: var(--pe); box-shadow: 0 0 0 5px rgba(249,200,167,.2), 0 0 18px rgba(249,200,167,.8); }
.jkh-astro img { width: 92%; height: 92%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 46%, #000 52%, transparent 71%); }

/* ---------- 2. Rayons ---------- */
.jkh-rayons { margin-top: 8px; }
.jkh-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.jkh .jkh-tuile { display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 14px 18px 14px 12px; border-radius: 26px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); color: #fff; transition: border-color .2s; }
.jkh .jkh-tuile:hover { border-color: var(--pe); color: #fff; }
.jkh-tuile-img { flex: none; width: 96px; height: 78px; display: grid; place-items: center; }
.jkh-tuile-img img { max-width: 96px; max-height: 78px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); transition: transform .25s; }
.jkh .jkh-tuile:hover .jkh-tuile-img img { transform: translateY(-6px); }
.jkh-tuile-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jkh-tuile-txt b { font-family: var(--ser); font-weight: 700; font-size: 23px; line-height: 1.08; }
.jkh-tuile-txt small { font-size: 13.5px; color: var(--t3, #B9C3D8); white-space: nowrap; }
.jkh-tuile-fl { flex: none; color: var(--pe); display: flex; }
.jkh p.jkh-aussi { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--t3, #B9C3D8); }
.jkh .jkh-aussi a { color: var(--pe); text-decoration: underline; text-underline-offset: 4px; }
.jkh .jkh-aussi a:hover { color: #fff; }

/* ---------- 3. Promos et 4. Sélection ---------- */
.jkh .jkh-promos { margin-top: 70px; }
.jkh .jkc-mini p.jkc-l2 { font-weight: 600; }
.jkh-sel { margin-top: 76px; }
.jkh .jkc-sec-head { align-items: flex-end; }

/* ---------- 5. Marque ---------- */
.jkh-marque { margin-top: 96px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 60px; align-items: center; }
.jkh .jkh-marque .jkc-h2 { margin: 10px 0 18px; }
.jkh .jkh-marque p:not(.jkc-over) { font-size: 17px; line-height: 1.6; color: var(--t2, #E6EAF2); margin: 0 0 12px; max-width: 560px; }
.jkh .jkh-marque p strong { color: #fff; }
.jkh .jkh-chiffres { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 44px; margin: 30px 0 0; }
.jkh .jkh-chiffres div { margin: 0; }
.jkh .jkh-chiffres dt { font-family: var(--ser); font-weight: 700; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--pe); }
.jkh .jkh-chiffres dd { margin: 8px 0 0; max-width: 110px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.35; color: var(--t2, #E6EAF2); }
.jkh-marque-img { width: 100%; height: auto; border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }

/* ---------- 7. Avis ---------- */
.jkh-avis { margin-top: 84px; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: 50px; align-items: center; }
.jkh .jkh-avis h2.jkc-over { margin: 0; font-family: var(--san); }
.jkh p.jkh-avis-gros { margin: 10px 0 0; font-family: var(--ser); font-weight: 900; font-size: clamp(90px, 10vw, 150px); line-height: .9; letter-spacing: -.03em; color: #fff; }
.jkh .jkh-avis-gros i { font-style: italic; font-weight: 500; font-size: .42em; color: var(--pe); margin-left: 6px; }
.jkh p.jkh-avis-nb { margin: 14px 0 12px; font-size: 16px; color: var(--t2, #E6EAF2); }
.jkh-avis-widget { min-width: 0; min-height: 180px; }

/* ---------- 10. Mag, 11. Appel final, 12. Réassurance ---------- */
.jkh .jkh-mag { margin-top: 96px; }
.jkh .jkh-mag .jkc-sec-head { margin-bottom: 22px; }
.jkh .jkh-mag .jkc-sec-head .jkc-over { margin-bottom: 8px !important; }
.jkh .jkh-mag > a:not(.jkh-lien) { font-size: clamp(20px, 2.1vw, 28px); min-height: 72px; }
.jkh .jkh-mag > a.jkh-lien { border: 0; min-height: 0; padding: 0; font-family: var(--san); font-size: 15px; }
.jkh-fin { margin-top: 100px; text-align: center; }
.jkh .jkh-fin p { margin: 14px 0 0; font-size: 17px; color: var(--t2, #E6EAF2); }
.jkh-fin-act { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.jkh .jkh-fin .jkc-ghost { min-height: 58px; }
.jkh ul.jkh-rea { list-style: none; margin: 84px 0 0; padding: 30px 0 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.jkh ul.jkh-rea li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
.jkh ul.jkh-rea li::before, .jkh ul.jkh-rea li::marker { content: none; }
.jkh ul.jkh-rea svg { flex: none; color: var(--pe); }
.jkh ul.jkh-rea b { display: block; font-weight: 700; font-size: 16px; color: #fff; }
.jkh ul.jkh-rea small { display: block; font-size: 13.5px; color: var(--t3, #B9C3D8); }

/* Barre panier : seulement quand le panier contient quelque chose */
.jkh .jkc-sticky:not(.has-items) { display: none !important; }

/* ---------- Tablette (non maquetté : version PC resserrée) ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .jkh-intro { grid-template-columns: 1fr; }
  .jkh-astro { width: 380px; order: -1; justify-self: start; }
  .jkh-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jkh .jkh-sel .jkc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jkh-marque, .jkh-avis { grid-template-columns: 1fr; gap: 30px; }
  .jkh ul.jkh-rea { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Sélection sur les largeurs intermédiaires (16/11/2026) : les prix au gramme se chevauchaient sous les pastilles. */
/* 2 colonnes sous 900 px, comme les rayons. */
@media (max-width: 900px) and (min-width: 768px) { .jkh .jkh-sel .jkc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Cartes à 5 grammages encore étroites : « /g » masqué, comme les rayons entre 1024 et 1200 px. */
@media (min-width: 901px) and (max-width: 1023px), (min-width: 1201px) and (max-width: 1279px) { .jkh .jkh-sel .jkc-grams-5 .jkc-pg { display: none; } }
/* 4 colonnes serrées : prix au gramme un peu plus petit pour tenir dans la pastille. */
@media (min-width: 1101px) and (max-width: 1200px) { .jkh .jkh-sel .jkc-g small { font-size: 9.5px; } }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .jkh .jkh-pc-seul { display: none !important; }
  .jkh span.jkh-m-seul { display: inline !important; }
  .jkh a.jkh-m-seul { display: inline-flex !important; }

  /* Intro : le titre, la phrase, le bouton ; l'astronaute passe derrière le titre, à droite */
  .jkh-intro { display: block; position: relative; padding: 14px 0 26px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; overflow: hidden; }
  .jkh-intro-txt { position: relative; z-index: 2; }
  .jkh .jkh-h1 { font-size: min(54px, 13.8vw); text-shadow: 0 2px 18px rgba(3,11,20,.7); }
  .jkh p.jkh-phrase { margin-top: 16px; font-size: 17px; max-width: 290px; text-wrap: balance; }
  .jkh-intro-act { margin-top: 20px; }
  .jkh .jkh-btn { width: 100%; min-height: 56px; }
  .jkh .jkh-note { display: none; }
  .jkh-astro { position: absolute; z-index: 1; right: -92px; top: 4px; width: 290px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 58%); mask-image: linear-gradient(90deg, transparent 12%, #000 58%); }
  .jkh-astro::after { display: none; }

  .jkh .jkc-h2 { font-size: 27px; }
  .jkh-rayons { margin-top: 4px; }
  .jkh-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
  .jkh .jkh-tuile { min-height: 64px; gap: 8px; padding: 8px 10px 8px 6px; border-radius: 18px; }
  .jkh-tuile-img { width: 54px; height: 48px; } .jkh-tuile-img img { max-width: 54px; max-height: 48px; }
  .jkh-tuile-txt b { font-size: 16.5px; }
  .jkh-tuile-txt small { font-size: 12px; }
  .jkh-tuile-fl { display: none; }
  .jkh p.jkh-aussi { margin-top: 14px; gap: 4px 14px; font-size: 14px; }
  .jkh .jkh-aussi a { min-height: 32px; display: inline-flex; align-items: center; }

  .jkh .jkh-promos { margin-top: 38px; }
  .jkh .jkh-promos .jkc-rail { scroll-padding: 0 16px; }
  .jkh-sel { margin-top: 40px; }

  /* Sélection : une rangée qui défile sur le côté, vignettes compactes de 150 px */
  .jkh .jkh-sel .jkc-grid { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 50px 16px 10px; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
  .jkh .jkh-sel .jkc-grid::-webkit-scrollbar { display: none; }
  .jkh .jkh-sel .jkc-card { display: block; flex: 0 0 150px; scroll-snap-align: start; position: relative; border-radius: 22px; padding: 0 10px 10px; min-height: 0; }
  .jkh .jkh-sel .jkc-card .jkc-card-img { position: static; display: block; width: auto; height: 78px; margin: -38px 0 8px; }
  .jkh .jkh-sel .jkc-card .jkc-card-img img, .jkh .jkh-sel .jkc-card.is-fort .jkc-card-img img { position: static; display: block; width: 100%; height: 100%; left: auto; top: auto; object-fit: contain; object-position: center bottom; transform: none; }
  .jkh .jkh-sel .jkc-card-body { display: block; padding: 0; }
  .jkh .jkh-sel .jkc-card-top, .jkh .jkh-sel .jkc-fav, .jkh .jkh-sel .jkc-grams, .jkh .jkh-sel p.jkc-l1, .jkh .jkh-sel .jkc-add .jkc-ico { display: none; }
  .jkh .jkh-sel .jkc-card-title { display: block; }
  .jkh .jkh-sel .jkc-card .jkc-name { font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jkh .jkh-sel .jkc-card .jkc-mol { display: none; }
  .jkh .jkh-sel .jkc-price-block { margin: 4px 0 0; }
  .jkh .jkh-sel .jkc-card p.jkc-price { font-size: 21px; white-space: nowrap; }
  .jkh .jkh-sel .jkc-card p.jkc-price s { font-size: 12px; }
  .jkh .jkh-sel .jkc-card p.jkc-l2 { font-size: 11.5px; min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px !important; }
  .jkh .jkh-sel .jkc-card .jkc-add { width: 100%; min-height: 44px; margin-top: 10px; font-size: 14.5px; padding: 0 8px; }
  .jkh .jkh-sel .jkc-card .jkc-badge { height: 26px; font-size: 13px; padding: 0 10px; top: -13px; right: 10px; }
  .jkh .jkh-sel .jkc-card .jkc-fort { width: 26px; height: 26px; padding: 0; gap: 0; justify-content: center; font-size: 0; top: -13px; left: 10px; }
  .jkh .jkh-tout { width: 100%; justify-content: center; margin-top: 12px; min-height: 52px; }

  .jkh-marque { margin-top: 46px; grid-template-columns: 1fr; gap: 22px; }
  .jkh .jkh-marque p:not(.jkc-over) { font-size: 16px; }
  .jkh .jkh-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 20px; }
  .jkh .jkh-chiffres dd { max-width: none; }
  .jkh-marque-img { border-radius: 22px; }
  .jkh-avis { margin-top: 44px; grid-template-columns: 1fr; gap: 18px; }
  .jkh p.jkh-avis-gros { font-size: 84px; }
  .jkh .jkh-mag { margin-top: 48px; }
  .jkh .jkh-mag > a:not(.jkh-lien) { font-size: 18.5px; min-height: 64px; padding: 14px 0; }
  .jkh .jkh-mag > a.jkh-lien { margin-top: 16px; min-height: 44px; }
  .jkh-fin { margin-top: 54px; }
  .jkh .jkh-fin p { font-size: 15.5px; }
  .jkh-fin-act { flex-direction: column; }
  .jkh .jkh-fin .jkc-ghost { justify-content: center; min-height: 54px; }
  .jkh ul.jkh-rea { margin-top: 46px; padding-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .jkh ul.jkh-rea li { gap: 10px; }
  .jkh ul.jkh-rea b { font-size: 14.5px; } .jkh ul.jkh-rea small { font-size: 12.5px; }
}
@media (max-width: 359px) {
  .jkh-tuile-img { width: 38px; height: 36px; } .jkh-tuile-img img { max-width: 38px; max-height: 36px; }
  .jkh-tuile-txt b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .jkh .jkh-btn, .jkh-tuile-img img, .jkh .jkh-lien svg { transition: none; }
  .jkh .jkh-tuile:hover .jkh-tuile-img img, .jkh .jkh-btn:hover { transform: none; }
}

/* Sigle : le grand chiffre ne déborde pas sur le texte */
.jkh .jkc-sigle { margin-top: 84px; }
.jkh .jkc-sigle-num span { font-size: clamp(84px, 10.5vw, 160px); white-space: nowrap; }
@media (max-width: 767px) { .jkh .jkc-sigle { margin-top: 46px; } .jkh .jkc-sigle-num span { font-size: 92px; } }

/* Le pied de page affiche déjà un bloc de réassurance blanc (avec le cashback) : masqué sur la nouvelle home, qui a le sien. */
body.jkh-page div.bg-white:has(img[src*="service-client"]) { display: none; }
/* Pastille Avis Vérifiés du bloc avis : taille contenue */
.jkh-avis-widget { display: flex; align-items: center; min-height: 0; }
.jkh-avis-widget > div:first-child { transform: scale(.82); transform-origin: left center; }
@media (max-width: 767px) {
  .jkh-avis { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .jkh-avis-widget > div:first-child { transform: scale(.6); transform-origin: right center; margin-left: -70px; }
  .jkh p.jkh-avis-gros { font-size: 70px; }
  .jkh-tuile-img { width: 46px; height: 44px; } .jkh-tuile-img img { max-width: 46px; max-height: 44px; }
  .jkh-tuile-txt b { font-size: 15.5px; letter-spacing: -.01em; }
}
