/* Maquette + module lfppolochonui — styles inspirés des pastilles lfpflockcolors.
   Aucun nom de police client-visible. */
:root {
  --lfp-ink: #2a211c;
  --lfp-muted: #6a5e56;
  --lfp-accent: #803a3a;
  --lfp-link: #2445a2;
  --lfp-bg: #f6f1ea;
  --lfp-card: #fffdf9;
  --lfp-line: #e6ddd4;
  --lfp-radius: 14px;
}
@font-face {
  font-family: "lfpPrenom";
  src: url("../fonts/lfp-prenom.woff2") format("woff2"),
       url("../fonts/lfp-prenom.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "lfpCaps";
  src: url("../fonts/lfp-caps.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.lfp-mock-page { background: var(--lfp-bg); color: var(--lfp-ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0; }
.lfp-mock-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }
.lfp-mock-note { background: #fff3d6; border: 1px solid #e6c56a; color: #5a4708; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.lfp-mock-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .lfp-mock-grid { grid-template-columns: 1fr; } }

.lfp-preview { background: var(--lfp-card); border-radius: var(--lfp-radius); box-shadow: 0 8px 28px rgba(80,50,30,.08); overflow: hidden; position: relative; }
.lfp-preview-stage { position: relative; background: #f0ebe4; }
.lfp-preview-stage img.lfp-bag { display: block; width: 100%; height: auto; }
.lfp-preview-caption { padding: 10px 16px 14px; font-size: 13px; color: var(--lfp-muted); }

/* Aperçu en pastille, au-dessus du champ prénom — pas de dessin sur la photo. */
.lfp-pastille-wrap { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 16px; }
.lfp-pastille-label { font-size: 12px; font-weight: 600; color: var(--lfp-muted); margin: 0 0 6px; }
.lfp-pastille {
  width: 210px;
  height: 200px;
  border-radius: 28px;
  box-shadow: 0 8px 22px rgba(80,50,30,.12), inset 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3efe8;
  transition: background .2s ease;
}
.lfp-pastille.is-round { border-radius: 50%; width: 210px; height: 210px; }
.lfp-pastille-canvas { display: block; width: 188px; height: 168px; }

.lfp-pastille-accent-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--lfp-muted);
  margin: 8px 0 0;
  max-width: 240px;
  font-weight: 400;
}
.lfp-pastille-accent-note[hidden] { display: none; }


.lfp-info h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.7rem; margin: 0 0 8px; line-height: 1.25; }
.lfp-price { font-size: 1.45rem; font-weight: 700; margin: 0 0 6px; }
.lfp-delay { color: var(--lfp-accent); font-weight: 700; font-size: 0.95rem; margin: 0 0 14px; }
.lfp-ship { color: var(--lfp-link); font-size: 0.9rem; margin: 0 0 20px; }

.lfp-field { margin: 0 0 18px; }
.lfp-field label, .lfp-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.lfp-prenom { width: 100%; box-sizing: border-box; font-size: 1.05rem; padding: 10px 12px; border: 1px solid #d7cec4; border-radius: 8px; background: #fff; }
.lfp-prenom:focus { outline: 2px solid #2445a2; outline-offset: 1px; }

/* Pastilles inscription — même esprit que lfpflockcolors */
.lfpfc { margin: 0; }
.lfpfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px 4px; }
.lfpfc-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 4px; margin: 0;
  background: #fff; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; color: #222;
  min-height: 44px; -webkit-tap-highlight-color: transparent; }
.lfpfc-sw:focus { outline: none; }
.lfpfc-sw:focus-visible { outline: 3px solid #2445a2; outline-offset: 1px; }
.lfpfc-sw.is-on { border-color: #222; box-shadow: 0 0 0 1px #222 inset; }
.lfpfc-dot { position: relative; display: block; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lfpfc-dot.is-light { box-shadow: inset 0 0 0 2px #cfcfcf; }
.lfpfc-sw.is-on .lfpfc-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 7px;
  margin: -6px 0 0 -6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
.lfpfc-name { display: block; font-size: 11px; line-height: 1.2; text-align: center; }
.lfpfc-chosen { margin: 8px 0 0; font-size: 14px; }

/* Illustrations : grille compacte, data-driven, défile si 25+ */
.lfp-illu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-gutter: stable;
}
@media (min-width: 600px) {
  .lfp-illu-grid { grid-template-columns: repeat(6, 1fr); max-height: 280px; }
}
.lfp-illu { margin: 0; padding: 4px 3px 3px; background: #fff; border: 2px solid var(--lfp-line); border-radius: 8px; cursor: pointer; text-align: center; }
.lfp-illu img { display: block; width: 100%; height: 44px; object-fit: contain; }
.lfp-illu span { display: block; font-size: 10px; line-height: 1.2; color: var(--lfp-muted); margin-top: 2px; }
.lfp-illu.is-on { border-color: #222; box-shadow: 0 0 0 1px #222 inset; }
.lfp-illu:focus-visible { outline: 3px solid #2445a2; }

/* Couleur du sac : photos */
.lfp-bag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 600px) { .lfp-bag-grid { grid-template-columns: repeat(3, 1fr); } }
.lfp-bag-sw { margin: 0; padding: 0; border: 3px solid transparent; border-radius: 10px; cursor: pointer; background: #fff; overflow: hidden; }
.lfp-bag-sw img { display: block; width: 100%; height: 64px; object-fit: cover; }
.lfp-bag-sw span { display: block; font-size: 10.5px; line-height: 1.2; padding: 4px 4px 6px; text-align: center; color: var(--lfp-ink); }
.lfp-bag-sw.is-on { border-color: #222; }
.lfp-bag-sw:focus-visible { outline: 3px solid #2445a2; outline-offset: 1px; }

.lfp-cta { display: inline-block; background: #2a211c; color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-size: 1rem; cursor: default; margin-top: 8px; }
.lfp-cta[disabled] { opacity: .55; }

/* 1.0.5 — intégration sur les vrais champs PrestaShop */
#lfppolochonui-root[hidden] { display: none !important; }
.lfppu-real-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.lfppu-hide { display: none !important; }
.lfppu-radios-hidden { display: none !important; }
.product-customization-item.lfppu-prenom-item .lfp-pastille-wrap { margin: 4px 0 14px; }
.product-customization-item .lfp-illu-help,
.product-customization-item .lfpfc-help { font-size: 13px; margin: 2px 0 6px; color: var(--lfp-muted); }
.product-customization-item .lfp-illu-chosen { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.product-customization-item .lfp-illu-grid { margin: 0 0 4px; }
.product-variants-item .lfp-bag-grid { margin: 6px 0 4px; max-width: 520px; }
.lfp-illu, .lfp-bag-sw, .lfpfc-sw { -webkit-tap-highlight-color: transparent; }

/* 1.1.1 — aperçu trousse : prénom dans une zone sûre à l'intérieur du cœur (9248 / 9249) */
.lfp-trousse-wrap { display: flex; flex-direction: column; align-items: stretch; margin: 0 0 16px; max-width: 420px; }
.lfp-trousse-wrap .lfp-pastille-label { margin-bottom: 8px; }
.lfp-trousse-stage {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(80,50,30,.10), inset 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  line-height: 0;
}
.lfp-trousse-photo { display: block; width: 100%; height: auto; }
.lfp-trousse-canvas {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.product-customization-item.lfppu-prenom-item .lfp-trousse-wrap { margin: 4px 0 16px; }
.lfp-trousse-accent-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--lfp-muted);
  margin: 8px 0 0;
  font-weight: 400;
}
.lfp-trousse-accent-note[hidden] { display: none; }
