/* ═══════════════════════════════════════════════
   M-FORCE — page produit / commande COD
   ═══════════════════════════════════════════════ */

.pp-body { cursor: auto; }
.pp-body .header { opacity: 1; }

.pp-back { color: var(--gris); transition: color 0.25s; }
.pp-back:hover { color: var(--or); }

.pp {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

/* ═══════════ 1. BLOC ACHAT ═══════════ */
.buy {
  position: relative;
  overflow: hidden;
  padding: max(7.5rem, env(safe-area-inset-top) + 6rem) 2.5rem 4rem;
  border-bottom: 1px solid rgba(244, 240, 230, 0.09);
  background: radial-gradient(120% 130% at 74% 30%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 62%), #000;
}
.buy__watermark {
  position: absolute; right: -6%; top: 42%;
  transform: translateY(-50%);
  width: min(52vw, 620px); height: auto;
  color: var(--accent); opacity: 0.11;
  pointer-events: none;
}
.buy__inner {
  position: relative;
  max-width: 1240px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem; align-items: start;
}

.buy__visual { position: sticky; top: 6rem; }
.pp__stage {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 8px; background: #000;
}
.pp__stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
/* le packshot détouré s'affiche entier, jamais recadré */
.pp__stage img.is-packshot { object-fit: contain; padding: 6%; }
.pp__thumb:last-child img { object-fit: contain; padding: 12%; }
.pp__badge {
  position: absolute; top: 5%; right: 5%;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); background: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.12em;
}
.pp__thumbs { display: flex; gap: 0.55rem; width: 100%; margin-top: 0.8rem; }
.pp__thumb {
  flex: 1; aspect-ratio: 1; padding: 0;
  border: 1px solid rgba(244, 240, 230, 0.15); border-radius: 5px;
  overflow: hidden; background: #000; cursor: pointer;
  opacity: 0.5; transition: opacity 0.25s, border-color 0.25s;
}
.pp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__thumb:hover { opacity: 0.85; }
.pp__thumb.is-active { opacity: 1; border-color: var(--accent); }

/* panneau de commande */
.buy__eyebrow { color: var(--accent); letter-spacing: 0.22em; margin-bottom: 0.9rem; }
.buy__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.96; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--blanc);
}
.buy__desc {
  margin-top: 1rem; max-width: 32rem;
  font-weight: 300; line-height: 1.7; color: var(--gris);
}
.buy__price { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin: 1.5rem 0 1.2rem; }
.buy__now {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--accent);
}
.buy__price s { color: var(--gris); }
.buy__save {
  padding: 0.32rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.2);
  font-size: 0.55rem; color: rgba(244, 240, 230, 0.7);
}

.buy__form {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 10px; padding: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}
.buy__qtyrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.2rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(244, 240, 230, 0.1);
}
.pp__qty {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(244, 240, 230, 0.2); border-radius: 999px; padding: 0.35rem 0.9rem;
}
.pp__qty button { background: none; border: none; color: var(--accent); font-size: 1.35rem; cursor: pointer; line-height: 1; width: 34px; height: 34px; }
.pp__qty span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; min-width: 1.4rem; text-align: center; }
.pp__total { display: flex; align-items: baseline; gap: 0.7rem; }
.pp__total .mono { font-size: 0.55rem; }
.pp__total strong { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--accent); }
.pp__total s { color: var(--gris); font-size: 0.7rem; }

.buy__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.pp__field { display: block; }
.pp__field--full { grid-column: 1 / -1; }
.pp__field span { display: block; margin-bottom: 0.4rem; font-size: 0.55rem; }
.pp__field input {
  width: 100%; padding: 0.85rem 0.95rem;
  background: rgba(244, 240, 230, 0.04);
  border: 1px solid rgba(244, 240, 230, 0.16); border-radius: 5px;
  color: var(--blanc); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s;
}
.pp__field input:focus { outline: none; border-color: var(--accent); background: rgba(244, 240, 230, 0.07); }
.pp__field input::placeholder { color: rgba(141, 136, 124, 0.6); }
.pp__hp { position: absolute; left: -5000px; opacity: 0; height: 0; width: 0; }

.pp__error {
  margin: 1rem 0 0; padding: 0.8rem 1rem;
  border: 1px solid rgba(232, 72, 46, 0.55); border-radius: 5px;
  color: #ff8a75; background: rgba(232, 72, 46, 0.08);
  font-size: 0.66rem; line-height: 1.55;
}

.buy__submit {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 1.1rem; padding: 1.15rem;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: var(--accent); color: #000;
  border: none; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}
.buy__submit:hover { transform: translateY(-2px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent); }
.buy__submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.buy__submit-crest { width: 30px; height: auto; color: #000; flex: none; }
.pp__trust { margin-top: 0.9rem; text-align: center; font-size: 0.52rem; color: var(--gris); line-height: 1.7; }

/* succès */
.pp__success {
  margin-top: 1.4rem; padding: 2.6rem 1.6rem; text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px; background: rgba(255, 255, 255, 0.03);
}
.pp__success-crest { width: 84px; height: auto; margin: 0 auto 1rem; display: block; color: var(--accent); }
.pp__success h2 { font-family: var(--font-display); font-weight: 900; font-size: 2rem; letter-spacing: -0.01em; }
.pp__success .mono { color: var(--accent); margin: 0.7rem 0 1rem; }
.pp__success p:not(.mono) { max-width: 26rem; margin: 0 auto 1.6rem; color: var(--gris); font-weight: 300; line-height: 1.65; }

/* ═══════════ SECTIONS ═══════════ */
.sec { max-width: 1240px; margin-inline: auto; padding: 4.5rem 2.5rem; }
.sec + .sec { border-top: 1px solid rgba(244, 240, 230, 0.08); }
.sec__head { position: relative; margin-bottom: 2rem; padding-left: 3.6rem; }
.sec__crest { position: absolute; left: 0; top: 0.1rem; width: 44px; height: auto; color: var(--accent); }
.sec__head .mono { color: var(--accent); letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.sec__head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}

/* bénéfices */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; }
.benefits li {
  padding: 1.6rem 1.3rem;
  border: 1px solid rgba(244, 240, 230, 0.1); border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.benefits li span { display: block; color: var(--accent); margin-bottom: 0.7rem; }
.benefits li strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em;
}

/* formule */
.formula { list-style: none; }
.formula li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr);
  gap: 1rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid rgba(244, 240, 230, 0.09);
}
.formula__n { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-transform: uppercase; }
.formula__d { color: var(--accent); font-size: 0.68rem; }
.formula__w { color: var(--gris); font-weight: 300; font-size: 0.9rem; }

/* protocole */
.proto { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proto li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(244, 240, 230, 0.1); border-radius: 8px;
}
.proto__t {
  font-family: var(--font-display); font-weight: 900;
  font-size: 0.9rem; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px; padding: 0.35rem 0.65rem; flex: none;
}
.proto strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; margin-bottom: 0.35rem; }
.proto p { color: var(--gris); font-weight: 300; font-size: 0.86rem; line-height: 1.6; }

/* garanties */
.sec--trust { padding-top: 3rem; }
.pp__trustgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; list-style: none; }
.pp__trustgrid li {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.2rem 0.5rem; text-align: center;
  border: 1px solid rgba(244, 240, 230, 0.1); border-radius: 8px;
  background: rgba(244, 240, 230, 0.02);
}
.pp__trust-icon { width: 40px; height: auto; color: var(--accent); }
.pp__trustgrid span { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; line-height: 1.6; color: rgba(244, 240, 230, 0.7); }

.buy__jump {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin: 2.2rem auto 0; max-width: 26rem; padding: 1.15rem 1.6rem;
  background: var(--accent); color: #000; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.3s;
}
.buy__jump:hover { transform: translateY(-2px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent); }
.buy__jump-crest { width: 30px; height: auto; color: #000; flex: none; }

.pp__footer { text-align: center; padding: 2.5rem 1.3rem; border-top: 1px solid rgba(244, 240, 230, 0.08); font-size: 0.58rem; }

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 900px) {
  .buy { padding: max(5.6rem, env(safe-area-inset-top) + 4.4rem) 1.2rem 2.6rem; }
  .buy__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .buy__visual { position: static; }
  .pp__stage { aspect-ratio: 1 / 1; }
  .buy__watermark { width: 110vw; right: -34%; opacity: 0.09; }
  .buy__title { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .buy__form { padding: 1.1rem; }
  .buy__fields { grid-template-columns: 1fr; }
  .pp__field input { font-size: 16px; }   /* pas de zoom auto iOS */
  .sec { padding: 3rem 1.2rem; }
  .sec__head { padding-left: 0; margin-bottom: 1.4rem; }
  .sec__crest { position: static; margin-bottom: 0.6rem; width: 38px; }
  .benefits, .proto { grid-template-columns: 1fr; }
  .formula li { grid-template-columns: 1fr auto; row-gap: 0.3rem; }
  .formula__w { grid-column: 1 / -1; }
  .pp__trustgrid { grid-template-columns: repeat(2, 1fr); }
  .buy__jump { max-width: 100%; }
  .pp__footer { padding: 2rem 1.2rem max(2rem, env(safe-area-inset-bottom)); }
}
