/* ---------- Offres & packs ---------- */
.pk { --pk-orange: #f26a1b; --pk-kaki: #3e4430; --pk-kaki-2: #59603f; --pk-stage: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pk { --pk-stage: #f1f0ec; } }
:root[data-theme="dark"] .pk { --pk-stage: #f1f0ec; }

/* En-tête du pack */
.pk-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 5vh, 48px); }
.pk-hero h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); line-height: 0.95; font-weight: 900; letter-spacing: -0.03em; font-variation-settings: "wdth" 115; }
.pk-hero h1 em { font-style: normal; color: var(--pk-orange); }
.pk-hero .page__intro { margin-top: 16px; }
.pk-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pk-badges span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--pk-kaki); color: #fff; font-weight: 700; font-size: 14px; }
.pk-badges span:first-child { background: var(--pk-orange); }
.pk-offer { background: var(--pk-kaki); color: #fff; border-radius: var(--r-card); padding: 22px 24px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.pk-offer::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--pk-orange); opacity: 0.9; }
.pk-offer > * { position: relative; z-index: 1; }
.pk-offer small { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.pk-offer s { font-size: 22px; font-weight: 700; opacity: 0.7; }
.pk-offer b { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.pk-offer p { font-size: 15px; opacity: 0.9; }

/* Étape 1 : le logo */
.pk-step { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 14px; }
.pk-step i { font-style: normal; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 16px; flex: none; transform: translateY(-3px); }
.pk-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; margin-bottom: clamp(28px, 4vh, 40px); }
.pk-drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r-card); background: var(--card); transition: border-color 0.2s, background-color 0.2s; }
.pk-drop.is-over { border-color: var(--pk-orange); background: color-mix(in srgb, var(--pk-orange) 8%, var(--card)); }
.pk-drop.has-logo { border-style: solid; border-color: var(--pk-kaki-2); }
.pk-drop.is-loading { opacity: 0.6; }
.pk-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pk-drop__thumb { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#e6e6e3 0 25%, #fff 0 50%) 0 0 / 14px 14px; flex: none; }
.pk-drop__txt { display: grid; gap: 4px; min-width: 0; }
.pk-drop__txt b { font-size: 17px; }
.pk-drop__txt span { font-size: 14px; color: var(--ink-2); }
.pk-drop__txt [data-logo-etat] { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pk-drop .btn { margin-left: auto; flex: none; }
.pk-drop__reset { border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; display: none; }
.pk-drop.has-logo .pk-drop__reset { display: inline; }
.pk-views { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); align-self: center; }
.pk-views span { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 8px 0 10px; }
.pk-views button, .pk-side button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; }
.pk-views button { height: 40px; padding: 0 18px; font-size: 15px; }
.pk-views button[aria-pressed="true"], .pk-side button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Étape 2 : les produits */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: opacity 0.25s, filter 0.25s; }
.pk-card.is-off { opacity: 0.55; }
.pk-card.is-off .pk-stage { filter: grayscale(0.8); }
.pk-stage { position: relative; background: var(--pk-stage); aspect-ratio: 1 / 1; }
.pk-flip { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; display: block; width: 100%; }
.pk-garment { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pk-logo { position: absolute; height: auto; max-height: 22%; object-fit: contain; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); pointer-events: none; filter: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.25)); }
.pk-side { position: absolute; top: 10px; left: 10px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.9); box-shadow: 0 2px 10px -4px rgb(0 0 0 / 0.3); }
.pk-side button { height: 32px; padding: 0 12px; font-size: 13px; color: #161618; }
.pk-side button[aria-pressed="true"] { background: #161618; color: #fff; }
.pk-zone { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--pk-kaki); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.pk-body { padding: 16px 18px 18px; display: grid; gap: 12px; flex: 1; align-content: start; }
.pk-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.pk-head h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.pk-ref { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.pk-price { font-size: 24px; font-weight: 900; color: var(--pk-orange); white-space: nowrap; }
.pk-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.pk-colors { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.pk-color { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.pk-color span, .pk-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); flex: none; }
.pk-color[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pk-colors--one { align-items: center; gap: 8px; color: var(--ink-2); }
.pk-dot { width: 20px; height: 20px; }
.pk-lines { display: grid; gap: 8px; }
.pk-line { display: flex; align-items: center; gap: 8px; }
.pk-size select, .pk-size--one { height: 42px; min-width: 104px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; padding: 0 10px; }
.pk-size--one { display: inline-flex; align-items: center; color: var(--ink-2); }
.pk-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; height: 42px; }
.pk-qty button { width: 40px; height: 100%; border: 0; background: var(--paper); color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; }
.pk-qty input { width: 52px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 16px; background: var(--card); color: var(--ink); -moz-appearance: textfield; }
.pk-qty input::-webkit-outer-spin-button, .pk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pk-del { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); font-size: 22px; cursor: pointer; }
.pk-add { justify-self: start; border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.pk-add[hidden] { display: none; }
.pk-on { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; cursor: pointer; }
.pk-on input { width: 20px; height: 20px; accent-color: var(--pk-orange); }
@media (hover: hover) {
  .pk-color:hover, .pk-qty button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .pk-flip:hover .pk-garment { transform: scale(1.02); }
}
.pk-garment { transition: transform 0.35s var(--ease-out); }
.pk-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }

/* Barre du total, collée en bas */
.pk-bar { position: sticky; bottom: 12px; z-index: 30; margin-top: 24px; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 22px; border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.55); transition: opacity 0.25s, transform 0.25s; }
.pk-bar.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.pk-bar__sum { display: grid; gap: 2px; min-width: 0; }
.pk-bar__sum b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.pk-bar__sum em { font-style: normal; font-size: 14px; font-weight: 800; color: #1c1c1e; background: #ffd23f; padding: 2px 8px; border-radius: 999px; }
.pk-bar__sum > span { font-size: 14px; opacity: 0.8; }
.pk-bar .btn { margin-left: auto; flex: none; background: var(--pk-orange); color: #fff; box-shadow: none; }
.pk-bar .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Étape 3 : la demande */
.pk-form { margin-top: clamp(48px, 8vh, 80px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 4vw, 40px); scroll-margin-top: calc(var(--nav-h) + 16px); }
.pk-form > p { color: var(--ink-2); margin: -4px 0 20px; max-width: 64ch; }
.pk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pk-field { display: grid; gap: 6px; }
.pk-field--full { grid-column: 1 / -1; }
.pk-field label { font-size: 14px; font-weight: 700; }
.pk-field input, .pk-field select, .pk-field textarea { width: 100%; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; padding: 10px 12px; }
.pk-field textarea { min-height: 96px; resize: vertical; }
.pk-field input:focus-visible, .pk-field select:focus-visible, .pk-field textarea:focus-visible { outline: 2px solid var(--pk-orange); outline-offset: 1px; }
.pk-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.pk-form__end .btn { background: var(--pk-orange); color: #fff; box-shadow: none; }
.pk-form__end small { color: var(--ink-2); font-size: 13.5px; max-width: 52ch; }
[data-form-msg] { font-weight: 700; color: var(--accent-text); }
.pk-ok { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: color-mix(in srgb, var(--pk-kaki) 14%, var(--card)); border: 1px solid var(--pk-kaki-2); font-weight: 600; }
.pk-form.is-sent .pk-fields, .pk-form.is-sent .pk-form__end { display: none; }
.pk-hp { position: absolute; left: -9999px; }

/* Liste des offres */
.of-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 460px)); gap: 20px; }
.of-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-card); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
@media (hover: hover) { .of-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgb(0 0 0 / 0.5); } .of-card:hover .of-card__go { background: var(--pk-orange); } }
.of-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px 16px; }
.of-card__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pk-orange); }
.of-card__head h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; font-variation-settings: "wdth" 112; }
.of-card__tag { flex: none; background: var(--pk-orange); color: #fff; font-weight: 900; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.of-card__img { background: linear-gradient(160deg, var(--pk-kaki-2), var(--pk-kaki)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 16px 16px 8px; }
.of-card__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.of-card__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 20px 18px; }
.of-card__foot > p:first-child { color: var(--ink-2); font-size: 14.5px; }
.of-card__price { text-align: right; }
.of-card__price s { display: block; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.of-card__price b { font-size: 28px; font-weight: 900; color: var(--pk-orange); white-space: nowrap; }
.of-card__go { display: block; text-align: center; margin: 0 20px 20px; height: 48px; line-height: 48px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; transition: background-color 0.2s; }
.of-soon { margin-top: 24px; color: var(--ink-2); }

@media (max-width: 860px) {
  .pk-hero { grid-template-columns: 1fr; align-items: start; }
  .pk-tools { grid-template-columns: 1fr; }
  .pk-views { justify-self: start; }
}
@media (max-width: 560px) {
  .pk-drop { flex-wrap: wrap; }
  .pk-drop .btn { margin-left: 0; width: 100%; }
  .pk-fields { grid-template-columns: 1fr; }
  .pk-bar { padding: 10px 10px 10px 16px; gap: 10px; bottom: 8px; }
  .pk-bar__sum b { font-size: 22px; }
  .pk-bar__sum > span { font-size: 12.5px; }
  .pk-bar .btn { padding: 0 16px; }
}
.pk-hero h1 .script { display: block; font-size: 0.72em; margin-top: 0.08em; letter-spacing: 0; }
/* Le bouton "remonter" passe au-dessus de la barre du total */
body:has(.pk-bar) .totop { bottom: 92px; }
.pk-price small, .pk-offer .pk-ttc { font-size: 0.5em; font-weight: 800; opacity: 0.75; letter-spacing: 0.02em; }
/* "Votre logo" sur les vêtements de l'encart */
.of-prod { position: relative; display: block; }
.of-prod .of-logo { position: absolute; height: auto; aspect-ratio: auto; transform: translate(-50%, -50%); pointer-events: none; }
/* Fond treillis de l'encart, assombri pour que les vêtements ressortent */
.of-card__img { background: linear-gradient(rgb(22 24 16 / 0.28), rgb(22 24 16 / 0.28)), url("/assets/packs/treillis.webp") center / 320px repeat, var(--pk-kaki); }
.of-prod > img:first-child { filter: drop-shadow(0 0 5px rgb(255 255 255 / 0.35)) drop-shadow(0 6px 8px rgb(0 0 0 / 0.35)); }
