/* KillerPack — socle commun (toutes les pages) : jetons de couleur, typo, en-tête, menus, boutons, pied de page.
   Identité : bleu roi + orange du logo, kraft, jaune « prix choc ». Ton discounteur : simple, direct, percutant. */
@import url("../vendor/fonts/killerpack-fonts.css");

:root {
  --bleu: #1D4ED8;        /* bleu roi du logo */
  --bleu-nuit: #0B1B3F;   /* textes forts, bandeau haut */
  --orange: #FF6B35;      /* orange du logo / boutons du site actuel */
  --orange-fonce: #E8541C;
  --jaune: #FFD60A;       /* étiquettes « prix choc » */
  --kraft: #C99A62;
  --kraft-clair: #EBD9BE;
  --encre: #0F172A;
  --gris: #5B6475;
  --fond: #FFFFFF;
  --fond-2: #F5F1EA;      /* fond « carton » très clair */
  --ligne: #E6E1D8;
  --titre: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --texte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --entete: 68px;
  --barre-mobile: 72px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
main { overflow-x: clip; }

/* ---------- Typo ---------- */
.kp-titre { font-family: var(--titre); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; }
.kp-geant { font-size: clamp(54px, 12vw, 180px); }
.kp-grand { font-size: clamp(40px, 7vw, 104px); }
.kp-sur { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.kp-doux { color: var(--gris); font-size: clamp(17px, 1.5vw, 20px); max-width: 40ch; }

/* ---------- Boutons ---------- */
.kp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.kp-btn:active { transform: translateY(1px); }
.kp-btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-fonce); }
.kp-btn-orange:hover { background: var(--orange-fonce); }
.kp-btn-bleu { background: var(--bleu); color: #fff; box-shadow: 0 6px 0 #1638A8; }
.kp-btn-contour { background: #fff; color: var(--encre); border-color: var(--encre); }
.kp-btn svg { width: 20px; height: 20px; }

/* ---------- Étiquette prix (sticker jaune) ---------- */
.kp-prix {
  display: inline-grid; place-items: center; text-align: center; line-height: 1;
  background: var(--jaune); color: var(--encre); font-family: var(--titre);
  padding: .35em .55em .3em; border-radius: 10px; transform: rotate(-4deg);
  box-shadow: 0 4px 0 rgba(15,23,42,.18);
}
.kp-prix small { display: block; font-family: var(--texte); font-weight: 800; font-size: .32em; letter-spacing: .08em; text-transform: uppercase; }
.kp-barre { position: relative; color: var(--gris); }
.kp-barre::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--orange); transform: rotate(-8deg); border-radius: 4px; }

/* ---------- Bandeau haut + en-tête ---------- */
.kp-bandeau { background: var(--bleu-nuit); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 7px 12px; letter-spacing: .02em; }
.kp-bandeau b { color: var(--jaune); }
.kp-entete {
  position: sticky; top: 0; z-index: 50; height: var(--entete);
  display: flex; align-items: center; gap: 16px; padding: 0 clamp(14px, 3vw, 36px);
  background: rgba(255,255,255,.94); border-bottom: 1px solid var(--ligne);
}
.kp-entete .logo img { height: 46px; width: auto; }
.kp-nav { display: none; gap: 22px; font-weight: 700; font-size: 15px; }
.kp-nav a { text-decoration: none; color: var(--bleu-nuit); }
.kp-nav a:hover { color: var(--orange); }
.kp-recherche { flex: 1; display: none; max-width: 380px; margin-left: auto; position: relative; }
.kp-recherche input { width: 100%; min-height: 52px; border: 2px solid var(--ligne); border-radius: 12px; padding: 0 52px 0 14px; font: inherit; font-size: 15px; background: #fff; }
.kp-recherche button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: var(--bleu); color: #fff; border-radius: 9px; cursor: pointer; }
.kp-icones { display: flex; gap: 6px; margin-left: auto; }
.kp-icones a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--bleu-nuit); text-decoration: none; }
.kp-icones a:hover { background: var(--fond-2); }
.kp-icones svg { width: 22px; height: 22px; }
@media (min-width: 1100px) { .kp-nav { display: flex; } .kp-recherche { display: block; } .kp-icones { margin-left: 0; } }

/* ---------- Menus déroulants (Produits / Nos univers) ---------- */
.kp-nav { align-items: center; }
.kp-deroulant { position: relative; }
.kp-deroulant > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.kp-deroulant > a span { font-size: 11px; transition: transform .2s; }
.kp-mega {
  position: absolute; left: -24px; top: 100%; z-index: 70; display: grid; gap: 18px 28px;
  grid-template-columns: repeat(4, minmax(170px, 1fr)); width: min(940px, 80vw); padding: 26px 28px;
  background: #fff; border: 1px solid var(--ligne); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.kp-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont pour garder le survol */
.kp-deroulant:hover .kp-mega, .kp-deroulant:focus-within .kp-mega { opacity: 1; visibility: visible; transform: none; }
.kp-deroulant:hover > a span, .kp-deroulant:focus-within > a span { transform: rotate(180deg); }
.kp-famille { display: grid; align-content: start; gap: 4px; }
.kp-famille a { font-weight: 500; font-size: 15px; color: var(--gris); text-decoration: none; padding: 4px 0; }
.kp-famille a:hover { color: var(--orange); }
.kp-famille .kp-famille-titre { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: 19px; letter-spacing: .02em; color: var(--bleu-nuit); }
.kp-mega-pied { align-content: end; }
.kp-mega-pied .kp-btn { color: #fff; min-height: 46px; font-size: 15px; }
.kp-mega-univers { grid-template-columns: 1fr; width: 260px; gap: 2px; padding: 16px 20px; }
.kp-mega-univers a { font-weight: 600; font-size: 16px; color: var(--bleu-nuit); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.kp-mega-univers a:last-child { border-bottom: 0; }
.kp-mega-univers a:hover { color: var(--orange); }

/* ---------- Bandeau : lien de suivi ---------- */
.kp-suivi { color: #fff; margin-left: 14px; text-decoration: underline; text-underline-offset: 3px; display: none; }
@media (min-width: 760px) { .kp-suivi { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -12px 14px; vertical-align: middle; } }
.kp-nav > a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Burger + tiroir mobile ---------- */
.kp-burger { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; cursor: pointer; color: var(--bleu-nuit); }
.kp-burger svg { width: 24px; height: 24px; }
.kp-ico-large { display: none !important; }
@media (min-width: 1100px) { .kp-burger { display: none; } .kp-ico-large { display: grid !important; } }
.kp-tiroir { position: fixed; inset: 0; z-index: 120; background: rgba(11,27,63,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.kp-tiroir.ouvert { opacity: 1; visibility: visible; }
.kp-tiroir-panneau {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); overflow-y: auto; background: #fff;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.kp-tiroir.ouvert .kp-tiroir-panneau { transform: none; }
html.kp-tiroir-ouvert { overflow: hidden; }
.kp-tiroir-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kp-tiroir-tete img { height: 40px; width: auto; }
.kp-tiroir-fermer { width: 44px; height: 44px; border: 0; background: var(--fond-2); border-radius: 12px; font-size: 26px; cursor: pointer; }
.kp-tiroir-recherche input { width: 100%; min-height: 50px; border: 2px solid var(--ligne); border-radius: 12px; padding: 0 14px; font: inherit; margin-bottom: 8px; }
.kp-tiroir details { border-bottom: 1px solid var(--ligne); }
.kp-tiroir summary, .kp-tiroir-lien { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 800; font-size: 17px; color: var(--bleu-nuit); text-decoration: none; cursor: pointer; list-style: none; }
.kp-tiroir summary::-webkit-details-marker { display: none; }
.kp-tiroir summary::after { content: "+"; font-size: 22px; color: var(--orange); }
.kp-tiroir details[open] > summary::after { content: "–"; }
.kp-tiroir-lien { border-bottom: 1px solid var(--ligne); }
.kp-tiroir details a { display: flex; align-items: center; min-height: 44px; padding-left: 12px; color: var(--gris); font-weight: 600; text-decoration: none; }
.kp-tiroir .kp-tiroir-famille { border-bottom: 0; padding-left: 12px; }
.kp-tiroir .kp-tiroir-famille summary { font-size: 16px; min-height: 46px; }
.kp-tiroir .kp-tiroir-sous { padding-left: 12px; font-size: 16px; border-bottom: 0; }

/* ---------- Barre de commande collée en bas (mobile) ---------- */
.kp-barre-mobile {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--ligne);
}
.kp-barre-mobile .kp-btn { min-height: 50px; padding: 0 10px; font-size: 16px; box-shadow: none; }
@media (min-width: 760px) { .kp-barre-mobile { display: none; } }
@media (max-width: 759px) { body { padding-bottom: var(--barre-mobile); } }

/* ---------- Arguments (réassurance) ---------- */
.kp-arguments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 900px) { .kp-arguments { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.kp-arguments li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; line-height: 1.25; }
.kp-arguments li span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--fond-2); color: var(--orange); font-size: 20px; }

/* ---------- Écran de chargement ---------- */
.kp-chargement { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--fond-2); transition: opacity .5s, visibility .5s; }
.kp-chargement.fini { opacity: 0; visibility: hidden; pointer-events: none; }
.kp-chargement img { width: 180px; animation: kp-pulse 1.1s ease-in-out infinite; }
@keyframes kp-pulse { 50% { transform: scale(1.06) rotate(-2deg); } }

/* ---------- Pied de page ---------- */
.kp-pied { background: var(--bleu-nuit); color: #DCE3F2; padding: 48px clamp(16px, 4vw, 56px) 28px; }
.kp-pied a { color: #fff; }
.kp-pied-grille { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1200px; margin: 0 auto; }
.kp-pied h3 { color: #fff; font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; font-size: 22px; }
.kp-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.kp-pied .bas { max-width: 1200px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9FB0D0; }
@media (max-width: 759px) { .kp-pied { padding-bottom: calc(var(--barre-mobile) + 28px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
